File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -762,19 +762,19 @@ class AudioDriverES8374Class : public AudioDriver {
762
762
class AudioDriverES8388Class : public AudioDriver {
763
763
public:
764
764
bool setMute (bool mute) { return es8388_set_voice_mute (mute) == RESULT_OK; }
765
- bool setMute (bool mute, int line) {
766
- switch (line) {
767
- case 1 :
768
- return es8388_config_output_device (DAC_OUTPUT_LINE1) == RESULT_OK;
769
- break ;
770
- case 2 :
771
- return es8388_config_output_device (DAC_OUTPUT_LINE2) == RESULT_OK;
772
- break ;
773
- default :
774
- AD_LOGE (" Invalid dac %d" , volume);
775
- return false ;
776
- }
777
- }
765
+ // bool setMute(bool mute, int line) {
766
+ // switch (line) {
767
+ // case 1:
768
+ // return es8388_config_output_device(DAC_OUTPUT_LINE1) == RESULT_OK;
769
+ // break;
770
+ // case 2:
771
+ // return es8388_config_output_device(DAC_OUTPUT_LINE2) == RESULT_OK;
772
+ // break;
773
+ // default:
774
+ // AD_LOGE("Invalid dac %d", volume);
775
+ // return false;
776
+ // }
777
+ // }
778
778
bool setVolume (int volume) {
779
779
AD_LOGD (" volume %d" , volume);
780
780
return es8388_set_voice_volume (limitValue (volume)) == RESULT_OK;
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ error_t es8388_config_input_device(es_input_device_t input);
248
248
* - RESULT_FAIL Parameter error
249
249
* - RESULT_OK Success
250
250
*/
251
- error_t es8388_config_output_device (es_output_device_t output );
251
+ error_t es8388_config_output_device (output_device_t output );
252
252
253
253
/**
254
254
* @brief Write ES8388 register
You can’t perform that action at this time.
0 commit comments