aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsound/soc/codecs/wm8994_herring.c2
-rwxr-xr-xsound/soc/codecs/wm8994_samsung.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8994_herring.c b/sound/soc/codecs/wm8994_herring.c
index e227066..65ddcca 100755
--- a/sound/soc/codecs/wm8994_herring.c
+++ b/sound/soc/codecs/wm8994_herring.c
@@ -934,6 +934,7 @@ void wm8994_disable_rec_path(struct snd_soc_codec *codec)
break;
case BT_REC:
+ DEBUG_LOG("Disbaling BT Mic path..\n");
val = wm8994_read(codec, WM8994_AIF1_ADC1_LEFT_MIXER_ROUTING);
val &= ~(WM8994_AIF2DACL_TO_AIF1ADC1L_MASK |
WM8994_ADC1L_TO_AIF1ADC1L_MASK);
@@ -952,6 +953,7 @@ void wm8994_disable_rec_path(struct snd_soc_codec *codec)
case MIC_OFF:
DEBUG_LOG("Mic is already OFF!\n");
+ break;
default:
DEBUG_LOG_ERR("Path[%d] is not invaild!\n", mic);
diff --git a/sound/soc/codecs/wm8994_samsung.c b/sound/soc/codecs/wm8994_samsung.c
index d3e5385..84e8064 100755
--- a/sound/soc/codecs/wm8994_samsung.c
+++ b/sound/soc/codecs/wm8994_samsung.c
@@ -316,6 +316,9 @@ static int wm8994_set_mic_path(struct snd_kcontrol *kcontrol,
case 2:
wm8994->rec_path = BT_REC;
break;
+ case 3:
+ wm8994_disable_rec_path(codec);
+ return 0;
default:
return -EINVAL;
}