|
@@ -275,9 +275,10 @@ static int rt286_jack_detect(struct rt286_priv *rt286, bool *hp, bool *mic)
|
|
|
regmap_read(rt286->regmap, RT286_GET_MIC1_SENSE, &buf);
|
|
|
*mic = buf & 0x80000000;
|
|
|
}
|
|
|
-
|
|
|
- snd_soc_dapm_disable_pin(dapm, "HV");
|
|
|
- snd_soc_dapm_disable_pin(dapm, "VREF");
|
|
|
+ if (!*mic) {
|
|
|
+ snd_soc_dapm_disable_pin(dapm, "HV");
|
|
|
+ snd_soc_dapm_disable_pin(dapm, "VREF");
|
|
|
+ }
|
|
|
if (!*hp)
|
|
|
snd_soc_dapm_disable_pin(dapm, "LDO1");
|
|
|
snd_soc_dapm_sync(dapm);
|