]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: rt715: Remove duplicate SOC_DOUBLE_R_EXT() helper macro
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 3 Mar 2025 17:14:13 +0000 (17:14 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 3 Mar 2025 18:14:46 +0000 (18:14 +0000)
The rt715 does not appear to use the SOC_DOUBLE_R_EXT() macro and even
if it did, the macro is defined identically in the ASoC headers.
Remove the redundant macro definitions.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20250303171424.444556-3-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt715-sdca.c
sound/soc/codecs/rt715.c

index 7e10fd9138122a558d9f692ea2c13747a54a3d88..7fb02654c16bd992ee1299c68de981f22d633626 100644 (file)
@@ -427,14 +427,6 @@ static int rt715_sdca_fu_info(struct snd_kcontrol *kcontrol,
        .private_value = RT715_SDCA_PR_VALUE(reg_base, xcount, xmax, \
                                        xshift, xinvert)}
 
-#define SOC_DOUBLE_R_EXT(xname, reg_left, reg_right, xshift, xmax, xinvert,\
-        xhandler_get, xhandler_put) \
-{      .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
-       .info = snd_soc_info_volsw, \
-       .get = xhandler_get, .put = xhandler_put, \
-       .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
-                                           xmax, xinvert) }
-
 #define RT715_SDCA_EXT_TLV(xname, reg_base, xhandler_get,\
         xhandler_put, tlv_array, xcount, xmax) \
 {      .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
index 299c9b12377c6ada95a40b4a876a43dd127786be..2cf4618520918bb16d4d43a0ac8516d8b6c04173 100644 (file)
@@ -486,14 +486,6 @@ static int rt715_vol_info(struct snd_kcontrol *kcontrol,
        return 0;
 }
 
-#define SOC_DOUBLE_R_EXT(xname, reg_left, reg_right, xshift, xmax, xinvert,\
-        xhandler_get, xhandler_put) \
-{      .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
-       .info = snd_soc_info_volsw, \
-       .get = xhandler_get, .put = xhandler_put, \
-       .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
-                                           xmax, xinvert) }
-
 #define RT715_MAIN_SWITCH_EXT(xname, xhandler_get, xhandler_put) \
 {      .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
        .info = rt715_switch_info, \