@@ -362,6 +362,7 @@ class AudioDriverES7210Class : public AudioDriver {
362362 return es7210_adc_init (&codec_cfg, i2c.value ().p_wire ) == RESULT_OK;
363363 }
364364 bool deinit () { return es7210_adc_deinit () == RESULT_OK; }
365+
365366 bool controlState (codec_mode_t mode) {
366367 return es7210_adc_ctrl_state_active (mode, true ) == RESULT_OK;
367368 }
@@ -399,6 +400,7 @@ class AudioDriverES7243Class : public AudioDriver {
399400 return es7243_adc_init (&codec_cfg, i2c.value ().p_wire ) == RESULT_OK;
400401 }
401402 bool deinit () { return es7243_adc_deinit () == RESULT_OK; }
403+
402404 bool controlState (codec_mode_t mode) {
403405 return es7243_adc_ctrl_state_active (mode, true ) == RESULT_OK;
404406 }
@@ -417,7 +419,6 @@ class AudioDriverES7243eClass : public AudioDriver {
417419public:
418420 bool setMute (bool mute) {
419421 return mute ? setVolume (0 ) == RESULT_OK : setVolume (volume) == RESULT_OK;
420- ;
421422 }
422423 bool setVolume (int volume) {
423424 this ->volume = volume;
@@ -441,6 +442,7 @@ class AudioDriverES7243eClass : public AudioDriver {
441442 return es7243e_adc_init (&codec_cfg, i2c.value ().p_wire ) == RESULT_OK;
442443 }
443444 bool deinit () { return es7243e_adc_deinit () == RESULT_OK; }
445+
444446 bool controlState (codec_mode_t mode) {
445447 return es7243e_adc_ctrl_state_active (mode, true ) == RESULT_OK;
446448 }
@@ -480,6 +482,7 @@ class AudioDriverES8156Class : public AudioDriver {
480482 return es8156_codec_init (&codec_cfg, i2c.value ().p_wire ) == RESULT_OK;
481483 }
482484 bool deinit () { return es8156_codec_deinit () == RESULT_OK; }
485+
483486 bool controlState (codec_mode_t mode) {
484487 return es8156_codec_ctrl_state_active (mode, true ) == RESULT_OK;
485488 }
@@ -519,6 +522,7 @@ class AudioDriverES8311Class : public AudioDriver {
519522 RESULT_OK;
520523 }
521524 bool deinit () { return es8311_codec_deinit () == RESULT_OK; }
525+
522526 bool controlState (codec_mode_t mode) {
523527 return es8311_codec_ctrl_state_active (mode, true ) == RESULT_OK;
524528 }
@@ -557,6 +561,7 @@ class AudioDriverES8374Class : public AudioDriver {
557561 RESULT_OK;
558562 }
559563 bool deinit () { return es8374_codec_deinit () == RESULT_OK; }
564+
560565 bool controlState (codec_mode_t mode) {
561566 return es8374_codec_ctrl_state_active (mode, true ) == RESULT_OK;
562567 }
@@ -607,6 +612,7 @@ class AudioDriverES8388Class : public AudioDriver {
607612 return es8388_init (&codec_cfg, i2c.value ().p_wire ) == RESULT_OK;
608613 }
609614 bool deinit () { return es8388_deinit () == RESULT_OK; }
615+
610616 bool controlState (codec_mode_t mode) {
611617 return es8388_ctrl_state_active (mode, true ) == RESULT_OK;
612618 }
0 commit comments