mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-02 03:26:40 -04:00
WM8731: Extract interface configuration method.
This commit is contained in:
parent
f0947a4917
commit
6c3a1384fb
2 changed files with 15 additions and 9 deletions
|
@ -25,6 +25,18 @@
|
|||
namespace wolfson {
|
||||
namespace wm8731 {
|
||||
|
||||
void WM8731::configure_interface_i2s_slave() {
|
||||
write(DigitalAudioInterfaceFormat {
|
||||
.format = 2,
|
||||
.iwl = 0,
|
||||
.lrp = 0,
|
||||
.lrswap = 0,
|
||||
.ms = 0,
|
||||
.bclkinv = 0,
|
||||
.reserved0 = 0,
|
||||
});
|
||||
}
|
||||
|
||||
void WM8731::init() {
|
||||
reset();
|
||||
|
||||
|
@ -49,15 +61,7 @@ void WM8731::init() {
|
|||
// .reserved0 = 0,
|
||||
// });
|
||||
|
||||
write(DigitalAudioInterfaceFormat {
|
||||
.format = 2,
|
||||
.iwl = 0,
|
||||
.lrp = 0,
|
||||
.lrswap = 0,
|
||||
.ms = 0,
|
||||
.bclkinv = 0,
|
||||
.reserved0 = 0,
|
||||
});
|
||||
configure_interface_i2s_slave();
|
||||
|
||||
write(DigitalAudioPathControl {
|
||||
.adchpd = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue