@@ -362,6 +362,7 @@ class AudioDriverES7210Class : public AudioDriver {
362
362
return es7210_adc_init (&codec_cfg, i2c.value ().p_wire ) == RESULT_OK;
363
363
}
364
364
bool deinit () { return es7210_adc_deinit () == RESULT_OK; }
365
+
365
366
bool controlState (codec_mode_t mode) {
366
367
return es7210_adc_ctrl_state_active (mode, true ) == RESULT_OK;
367
368
}
@@ -399,6 +400,7 @@ class AudioDriverES7243Class : public AudioDriver {
399
400
return es7243_adc_init (&codec_cfg, i2c.value ().p_wire ) == RESULT_OK;
400
401
}
401
402
bool deinit () { return es7243_adc_deinit () == RESULT_OK; }
403
+
402
404
bool controlState (codec_mode_t mode) {
403
405
return es7243_adc_ctrl_state_active (mode, true ) == RESULT_OK;
404
406
}
@@ -417,7 +419,6 @@ class AudioDriverES7243eClass : public AudioDriver {
417
419
public:
418
420
bool setMute (bool mute) {
419
421
return mute ? setVolume (0 ) == RESULT_OK : setVolume (volume) == RESULT_OK;
420
- ;
421
422
}
422
423
bool setVolume (int volume) {
423
424
this ->volume = volume;
@@ -441,6 +442,7 @@ class AudioDriverES7243eClass : public AudioDriver {
441
442
return es7243e_adc_init (&codec_cfg, i2c.value ().p_wire ) == RESULT_OK;
442
443
}
443
444
bool deinit () { return es7243e_adc_deinit () == RESULT_OK; }
445
+
444
446
bool controlState (codec_mode_t mode) {
445
447
return es7243e_adc_ctrl_state_active (mode, true ) == RESULT_OK;
446
448
}
@@ -480,6 +482,7 @@ class AudioDriverES8156Class : public AudioDriver {
480
482
return es8156_codec_init (&codec_cfg, i2c.value ().p_wire ) == RESULT_OK;
481
483
}
482
484
bool deinit () { return es8156_codec_deinit () == RESULT_OK; }
485
+
483
486
bool controlState (codec_mode_t mode) {
484
487
return es8156_codec_ctrl_state_active (mode, true ) == RESULT_OK;
485
488
}
@@ -519,6 +522,7 @@ class AudioDriverES8311Class : public AudioDriver {
519
522
RESULT_OK;
520
523
}
521
524
bool deinit () { return es8311_codec_deinit () == RESULT_OK; }
525
+
522
526
bool controlState (codec_mode_t mode) {
523
527
return es8311_codec_ctrl_state_active (mode, true ) == RESULT_OK;
524
528
}
@@ -557,6 +561,7 @@ class AudioDriverES8374Class : public AudioDriver {
557
561
RESULT_OK;
558
562
}
559
563
bool deinit () { return es8374_codec_deinit () == RESULT_OK; }
564
+
560
565
bool controlState (codec_mode_t mode) {
561
566
return es8374_codec_ctrl_state_active (mode, true ) == RESULT_OK;
562
567
}
@@ -607,6 +612,7 @@ class AudioDriverES8388Class : public AudioDriver {
607
612
return es8388_init (&codec_cfg, i2c.value ().p_wire ) == RESULT_OK;
608
613
}
609
614
bool deinit () { return es8388_deinit () == RESULT_OK; }
615
+
610
616
bool controlState (codec_mode_t mode) {
611
617
return es8388_ctrl_state_active (mode, true ) == RESULT_OK;
612
618
}
0 commit comments