Commit 4f293dfe authored by Paul Cercueil's avatar Paul Cercueil Committed by Mark Brown

ASoC: codecs/jz4770: Don't change cap-couple setting in HP PMU/PMD

There is simply no reason to do that.
Signed-off-by: default avatarPaul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20201207125338.119397-4-paul@crapouillou.netSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 6b4da537
...@@ -371,9 +371,9 @@ static int hpout_event(struct snd_soc_dapm_widget *w, ...@@ -371,9 +371,9 @@ static int hpout_event(struct snd_soc_dapm_widget *w,
switch (event) { switch (event) {
case SND_SOC_DAPM_PRE_PMU: case SND_SOC_DAPM_PRE_PMU:
/* set cap-less, unmute HP */ /* unmute HP */
regmap_clear_bits(jz_codec->regmap, JZ4770_CODEC_REG_CR_HP, regmap_clear_bits(jz_codec->regmap, JZ4770_CODEC_REG_CR_HP,
REG_CR_HP_SB_HPCM | REG_CR_HP_MUTE); REG_CR_HP_MUTE);
break; break;
case SND_SOC_DAPM_POST_PMU: case SND_SOC_DAPM_POST_PMU:
...@@ -394,9 +394,9 @@ static int hpout_event(struct snd_soc_dapm_widget *w, ...@@ -394,9 +394,9 @@ static int hpout_event(struct snd_soc_dapm_widget *w,
break; break;
case SND_SOC_DAPM_POST_PMD: case SND_SOC_DAPM_POST_PMD:
/* set cap-couple, mute HP */ /* mute HP */
regmap_set_bits(jz_codec->regmap, JZ4770_CODEC_REG_CR_HP, regmap_set_bits(jz_codec->regmap, JZ4770_CODEC_REG_CR_HP,
REG_CR_HP_SB_HPCM | REG_CR_HP_MUTE); REG_CR_HP_MUTE);
err = regmap_read_poll_timeout(jz_codec->regmap, err = regmap_read_poll_timeout(jz_codec->regmap,
JZ4770_CODEC_REG_IFR, JZ4770_CODEC_REG_IFR,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment