File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -653,7 +653,7 @@ class AudioDriverES7243eClass : public AudioDriver {
653
653
};
654
654
655
655
/* *
656
- * @brief Driver API for ES8388 codec chip
656
+ * @brief Driver API for ES8156 codec chip
657
657
* @author Phil Schatzmann
658
658
* @copyright GPLv3
659
659
*/
@@ -774,10 +774,13 @@ class AudioDriverES8374Class : public AudioDriver {
774
774
*/
775
775
class AudioDriverES8388Class : public AudioDriver {
776
776
public:
777
- bool setMute (bool mute) { return es8388_set_voice_mute (mute) == RESULT_OK; }
777
+ bool setMute (bool mute) {
778
+ line_active[0 ] = !mute;
779
+ line_active[1 ] = !mute;
780
+ return es8388_set_voice_mute (mute) == RESULT_OK;
781
+ }
778
782
// mute line: lines start at 0
779
783
bool setMute (bool mute, int line) {
780
- bool line_active[2 ];
781
784
if (line > 1 ) {
782
785
AD_LOGD (" invalid line %d" , line);
783
786
return false ;
@@ -820,6 +823,8 @@ class AudioDriverES8388Class : public AudioDriver {
820
823
bool isInputVolumeSupported () { return true ; }
821
824
822
825
protected:
826
+ bool line_active[2 ] = {true };
827
+
823
828
bool init (codec_config_t codec_cfg) {
824
829
return es8388_init (&codec_cfg, getI2C ()) == RESULT_OK;
825
830
}
You can’t perform that action at this time.
0 commit comments