-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WM8731 Audio Codec #104
Comments
According to the user manual:
This link isn't the datasheet, so it doesn't seem to go into specific detail how this is accomplished. But you should be able to connect your Android Things board to this peripheral over I2C and then send commands to it. If you want to transfer data, you can also connect an SPI line and read/write data. |
@Fleker I can see the device as an SPI interface and set it up as an audio device output. |
So if 15:9 are the addresses, and you have 9 bits (8:0) of data, you'll need to use the generic write method. So you may want to start with something like this:
|
I'm not sure if that will work, as sending [0x12, 0x01] wouldn't correspond to register 0x12. Bits 15 - 8 must be your first byte, and bits 7 - 0 must be your second byte. |
It does work. Turns out my problem was that the board was not powering the DAC. |
Anyone knows what is required to make Android Things work with this board?
e.g https://www.mikroe.com/audio-codec-proto-board
Thank you
The text was updated successfully, but these errors were encountered: