mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-22 15:29:58 +00:00
awac-pdm: improve read_stat().
This commit is contained in:
parent
074a760b6a
commit
c3f2c9e84c
@ -105,9 +105,8 @@ AwacDevicePdm::AwacDevicePdm() : AwacsBase("AWAC-PDM")
|
||||
|
||||
uint32_t AwacDevicePdm::read_stat()
|
||||
{
|
||||
LOG_F(INFO, "%s: status requested!", this->name.c_str());
|
||||
// TODO: return valid status including manufacturer & device IDs
|
||||
return 0;
|
||||
// TODO: implement all other status bits
|
||||
return (AWAC_REV_AWACS << 12) | (AWAC_MAKER_CRYSTAL << 8);
|
||||
}
|
||||
|
||||
void AwacDevicePdm::write_ctrl(uint32_t addr, uint16_t value)
|
||||
|
@ -149,8 +149,9 @@ public:
|
||||
virtual void snd_ctrl_write(uint32_t offset, uint32_t value, int size) = 0;
|
||||
};
|
||||
|
||||
/** AWACs Screamer manufacturer and revision. */
|
||||
/** AWACs manufacturers and revisions. */
|
||||
#define AWAC_MAKER_CRYSTAL 1
|
||||
#define AWAC_REV_AWACS 2
|
||||
#define AWAC_REV_SCREAMER 3
|
||||
|
||||
/** Screamer sound codec. */
|
||||
|
Loading…
Reference in New Issue
Block a user