Skip to content

Commit 0b90648

Browse files
committed
Compile error
1 parent 8767105 commit 0b90648

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/Driver.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -762,19 +762,19 @@ class AudioDriverES8374Class : public AudioDriver {
762762
class AudioDriverES8388Class : public AudioDriver {
763763
public:
764764
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+
// }
778778
bool setVolume(int volume) {
779779
AD_LOGD("volume %d", volume);
780780
return es8388_set_voice_volume(limitValue(volume)) == RESULT_OK;

src/Driver/es8388/es8388.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ error_t es8388_config_input_device(es_input_device_t input);
248248
* - RESULT_FAIL Parameter error
249249
* - RESULT_OK Success
250250
*/
251-
error_t es8388_config_output_device(es_output_device_t output);
251+
error_t es8388_config_output_device(output_device_t output);
252252

253253
/**
254254
* @brief Write ES8388 register

0 commit comments

Comments
 (0)