aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBard Liao <bardliao@realtek.com>2018-01-03 07:39:01 -0500
committerMark Brown <broonie@kernel.org>2018-01-04 07:08:49 -0500
commitbd70b19e9e7e87ad330d820386774f304e74d112 (patch)
tree4888a1a2dc8be3a451f67c92b61b7887b583ca5f
parentb70b309950418437bbd2a30afd169c4f09dee3e5 (diff)
ASoC: rt5645: change micbias widget type to supply.
Register "micbias1" and "micbias2" to supply widgets as modern drivers do. This should not cause any (new) issues for existing users of the codec, since micbias support is broken anyways. Micbias support needs the RT5645_MICBIAS?_POW_CTRL_SEL bits in the RT5645_GEN_CTRL2 register to be updated when enabled/disabled which we currently do not do. The updating of these bits will be fixed in a follow-up commit. Signed-off-by: Bard Liao <bardliao@realtek.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/rt5645.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
index daf7b73ba415..6f6da0abe220 100644
--- a/sound/soc/codecs/rt5645.c
+++ b/sound/soc/codecs/rt5645.c
@@ -1980,10 +1980,10 @@ static const struct snd_soc_dapm_widget rt5645_dapm_widgets[] = {
1980 1980
1981 /* Input Side */ 1981 /* Input Side */
1982 /* micbias */ 1982 /* micbias */
1983 SND_SOC_DAPM_MICBIAS("micbias1", RT5645_PWR_ANLG2, 1983 SND_SOC_DAPM_SUPPLY("micbias1", RT5645_PWR_ANLG2,
1984 RT5645_PWR_MB1_BIT, 0), 1984 RT5645_PWR_MB1_BIT, 0, NULL, 0),
1985 SND_SOC_DAPM_MICBIAS("micbias2", RT5645_PWR_ANLG2, 1985 SND_SOC_DAPM_SUPPLY("micbias2", RT5645_PWR_ANLG2,
1986 RT5645_PWR_MB2_BIT, 0), 1986 RT5645_PWR_MB2_BIT, 0, NULL, 0),
1987 /* Input Lines */ 1987 /* Input Lines */
1988 SND_SOC_DAPM_INPUT("DMIC L1"), 1988 SND_SOC_DAPM_INPUT("DMIC L1"),
1989 SND_SOC_DAPM_INPUT("DMIC R1"), 1989 SND_SOC_DAPM_INPUT("DMIC R1"),