From: Charles Keepax <ckeepax@opensource.cirrus.com>
To: <broonie@kernel.org>
Cc: <lgirdwood@gmail.com>, <peda@axentia.se>,
<andrei.simion@microchip.com>, <nuno.sa@analog.com>,
<paul@crapouillou.net>, <oder_chiou@realtek.com>,
<kiseok.jo@irondevice.com>, <shenghao-ding@ti.com>,
<kevin-lu@ti.com>, <baojun.xu@ti.com>,
<srinivas.kandagatla@linaro.org>, <linux-sound@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <patches@opensource.cirrus.com>
Subject: [PATCH 08/12] ASoC: atmel: tse850-pcm5142: Use SOC_SINGLE_EXT() helper macro
Date: Wed, 26 Feb 2025 15:31:33 +0000 [thread overview]
Message-ID: <20250226153137.2791938-9-ckeepax@opensource.cirrus.com> (raw)
In-Reply-To: <20250226153137.2791938-1-ckeepax@opensource.cirrus.com>
The TSE850_DAPM_SINGLE_EXT() macro is an identical duplicate of the
core SOC_SINGLE_EXT() marco. Use the macro provided by the core.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
---
sound/soc/atmel/tse850-pcm5142.c | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/sound/soc/atmel/tse850-pcm5142.c b/sound/soc/atmel/tse850-pcm5142.c
index 0a9efd5f28615..2a1d0408a4cf1 100644
--- a/sound/soc/atmel/tse850-pcm5142.c
+++ b/sound/soc/atmel/tse850-pcm5142.c
@@ -227,16 +227,9 @@ static const struct snd_kcontrol_new mux1 =
static const struct snd_kcontrol_new mux2 =
SOC_DAPM_ENUM_EXT("MUX2", mux_enum, tse850_get_mux2, tse850_put_mux2);
-#define TSE850_DAPM_SINGLE_EXT(xname, reg, shift, max, invert, xget, xput) \
-{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
- .info = snd_soc_info_volsw, \
- .get = xget, \
- .put = xput, \
- .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert, 0) }
-
static const struct snd_kcontrol_new mix[] = {
- TSE850_DAPM_SINGLE_EXT("IN Switch", SND_SOC_NOPM, 0, 1, 0,
- tse850_get_mix, tse850_put_mix),
+ SOC_SINGLE_EXT("IN Switch", SND_SOC_NOPM, 0, 1, 0,
+ tse850_get_mix, tse850_put_mix),
};
static const char * const ana_text[] = {
--
2.39.5
next prev parent reply other threads:[~2025-02-26 15:32 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-26 15:31 [PATCH 00/12] Tidy up ASoC VALUE control macros Charles Keepax
2025-02-26 15:31 ` [PATCH 01/12] ASoC: rt715: Remove duplicate SOC_DOUBLE_R_EXT() helper macro Charles Keepax
2025-02-26 15:31 ` [PATCH 02/12] ASoC: sma1307: Use SOC_SINGLE_EXT() " Charles Keepax
2025-02-26 15:31 ` [PATCH 03/12] ASoC: tas2562: Use SOC_SINGLE_EXT_TLV() " Charles Keepax
2025-02-26 15:31 ` [PATCH 04/12] ASoC: wcd938x: " Charles Keepax
2025-02-26 15:31 ` [PATCH 05/12] ASoC: wm9712: Use SOC_SINGLE_EXT() " Charles Keepax
2025-02-26 15:31 ` [PATCH 06/12] ASoC: wm9713: Use SOC_DOUBLE_EXT() " Charles Keepax
2025-02-26 15:31 ` [PATCH 07/12] ASoC: wsa881x: Use SOC_SINGLE_EXT_TLV() " Charles Keepax
2025-02-26 15:31 ` Charles Keepax [this message]
2025-02-26 15:31 ` [PATCH 09/12] ASoC: dapm: Add missing SOC_DAPM_DOUBLE_R_TLV() helper Charles Keepax
2025-02-26 15:31 ` [PATCH 10/12] ASoC: dapm: Use ASoC control macros where possible Charles Keepax
2025-02-26 15:31 ` [PATCH 11/12] ASoC: Tidy up SOC_DOUBLE_R_* helpers Charles Keepax
2025-03-03 12:56 ` Mark Brown
2025-02-26 15:31 ` [PATCH 12/12] ASoC: Tidy up SOC_DOUBLE_* and SOC_SINGLE_* helpers Charles Keepax
2025-03-04 16:53 ` [PATCH 00/12] Tidy up ASoC VALUE control macros Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250226153137.2791938-9-ckeepax@opensource.cirrus.com \
--to=ckeepax@opensource.cirrus.com \
--cc=andrei.simion@microchip.com \
--cc=baojun.xu@ti.com \
--cc=broonie@kernel.org \
--cc=kevin-lu@ti.com \
--cc=kiseok.jo@irondevice.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=oder_chiou@realtek.com \
--cc=patches@opensource.cirrus.com \
--cc=paul@crapouillou.net \
--cc=peda@axentia.se \
--cc=shenghao-ding@ti.com \
--cc=srinivas.kandagatla@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox