[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240415070649.3496487-4-wtli@nuvoton.com>
Date: Mon, 15 Apr 2024 15:06:49 +0800
From: Seven Lee <wtli@...oton.com>
To: <broonie@...nel.org>
CC: <lgirdwood@...il.com>, <alsa-devel@...a-project.org>,
<devicetree@...r.kernel.org>, <linux-sound@...r.kernel.org>,
<krzysztof.kozlowski+dt@...aro.org>, <linux-kernel@...r.kernel.org>,
<robh+dt@...nel.org>, <conor+dt@...nel.org>, <perex@...ex.cz>,
<tiwai@...e.com>, <edson.drosdeck@...il.com>,
<u.kleine-koenig@...gutronix.de>, <YHCHuang@...oton.com>,
<KCHSU0@...oton.com>, <CTLIN0@...oton.com>, <SJLIN0@...oton.com>,
<wtli@...oton.com>, <scott6986@...il.com>, <supercraig0719@...il.com>,
<dardar923@...il.com>
Subject: [PATCH v2 3/3] ASoC: nau8821: Remove redundant ADC controls
Remove redundant left/right adc channel enable controls.
Signed-off-by: Seven Lee <wtli@...oton.com>
---
sound/soc/codecs/nau8821.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/sound/soc/codecs/nau8821.c b/sound/soc/codecs/nau8821.c
index fec669e00a10..6818bbd1d3c7 100644
--- a/sound/soc/codecs/nau8821.c
+++ b/sound/soc/codecs/nau8821.c
@@ -512,12 +512,8 @@ static int nau8821_left_adc_event(struct snd_soc_dapm_widget *w,
switch (event) {
case SND_SOC_DAPM_POST_PMU:
msleep(nau8821->adc_delay);
- regmap_update_bits(nau8821->regmap, NAU8821_R01_ENA_CTRL,
- NAU8821_EN_ADCL, NAU8821_EN_ADCL);
break;
case SND_SOC_DAPM_POST_PMD:
- regmap_update_bits(nau8821->regmap,
- NAU8821_R01_ENA_CTRL, NAU8821_EN_ADCL, 0);
break;
default:
return -EINVAL;
@@ -536,12 +532,8 @@ static int nau8821_right_adc_event(struct snd_soc_dapm_widget *w,
switch (event) {
case SND_SOC_DAPM_POST_PMU:
msleep(nau8821->adc_delay);
- regmap_update_bits(nau8821->regmap, NAU8821_R01_ENA_CTRL,
- NAU8821_EN_ADCR, NAU8821_EN_ADCR);
break;
case SND_SOC_DAPM_POST_PMD:
- regmap_update_bits(nau8821->regmap,
- NAU8821_R01_ENA_CTRL, NAU8821_EN_ADCR, 0);
break;
default:
return -EINVAL;
--
2.25.1
Powered by blists - more mailing lists