ASoC: rt5682: disable MICBIAS and Vref2 widget in default
authorShuming Fan <shumingf@realtek.com>
Fri, 17 Jul 2020 07:02:56 +0000 (15:02 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 17 Jul 2020 13:46:59 +0000 (14:46 +0100)
commit969943bfc9629f7c999fb5168a1d693cf03acc36
treef6c0f21339b260c90c340a98335a52163c0211dc
parent4c5b809377b3c66fb3c7a3e5b03c78f6ae16fd83
ASoC: rt5682: disable MICBIAS and Vref2 widget in default

The pin status of the widget was connected after the sound card registered.
The rt5682_headset_detect function will use the pin status of these two widgets
to decide the certain register setting on/off.
Therefore this patch disables the pin of these two widgets in the codec probe.
This patch could avoid the misjudgment.

Signed-off-by: Shuming Fan <shumingf@realtek.com>
Link: https://lore.kernel.org/r/20200717070256.28712-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5682.c