mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-12-11 06:02:00 -05:00
Audio: Add codec config methods for external I2S master.
This commit is contained in:
parent
6c3a1384fb
commit
ac423ee769
4 changed files with 20 additions and 0 deletions
|
|
@ -37,6 +37,18 @@ void WM8731::configure_interface_i2s_slave() {
|
|||
});
|
||||
}
|
||||
|
||||
void WM8731::configure_interface_i2s_master() {
|
||||
write(DigitalAudioInterfaceFormat {
|
||||
.format = 2,
|
||||
.iwl = 0,
|
||||
.lrp = 0,
|
||||
.lrswap = 0,
|
||||
.ms = 1,
|
||||
.bclkinv = 0,
|
||||
.reserved0 = 0,
|
||||
});
|
||||
}
|
||||
|
||||
void WM8731::init() {
|
||||
reset();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue