awac-pdm: improve read_stat().

This commit is contained in:
Maxim Poliakovski 2023-11-03 10:28:30 +01:00
parent 074a760b6a
commit c3f2c9e84c
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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. */