File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -1423,23 +1423,22 @@ class AudioDriverLyratMiniClass : public AudioDriver {
1423
1423
// setup SPI for SD
1424
1424
pins.setSPIActiveForSD (codecCfg.sd_active );
1425
1425
1426
- // Start ADC
1426
+ // Start ES7243
1427
1427
bool ok = true ;
1428
+
1429
+ // Start ES8311
1430
+ AD_LOGI (" starting ES8311" );
1431
+ dac.setPins (this ->pins ());
1432
+ ok = dac.setConfig (codecCfg);
1433
+ setPAPower (true );
1434
+ setVolume (DRIVER_DEFAULT_VOLUME);
1435
+
1428
1436
if (codecCfg.input_device != ADC_INPUT_NONE){
1429
- AD_LOGI (" starting ADC " );
1430
- dac .setPins (this ->pins ());
1437
+ AD_LOGI (" starting ES7243 " );
1438
+ adc .setPins (this ->pins ());
1431
1439
ok = ok && adc.setConfig (codecCfg);
1432
1440
}
1433
1441
1434
- // Start DAC
1435
- if (codecCfg.output_device != DAC_OUTPUT_NONE){
1436
- AD_LOGI (" starting DAC" );
1437
- dac.setPins (this ->pins ());
1438
- ok = dac.setConfig (codecCfg);
1439
- setPAPower (true );
1440
- setVolume (DRIVER_DEFAULT_VOLUME);
1441
- }
1442
-
1443
1442
if (!ok) {
1444
1443
AD_LOGI (" AudioDriverLyratMiniClass::begin failed" );
1445
1444
}
You can’t perform that action at this time.
0 commit comments