mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-15 00:17:41 +00:00
Audio: Add codec config methods for external I2S master.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user