[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240412103554.3487290-3-wtli@nuvoton.com>
Date: Fri, 12 Apr 2024 18:35:54 +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>, <YHCHuang@...oton.com>, <KCHSU0@...oton.com>,
<CTLIN0@...oton.com>, <SJLIN0@...oton.com>, <wtli@...oton.com>,
<scott6986@...il.com>, <supercraig0719@...il.com>, <dardar923@...il.com>,
<edson.drosdeck@...il.com>, <u.kleine-koenig@...gutronix.de>
Subject: [PATCH 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