]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ASoC: tlv320aix3x: Use SOC_SINGLE_EXT() instead of open-coding it
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 19 Jun 2013 17:33:53 +0000 (19:33 +0200)
committerMark Brown <broonie@linaro.org>
Wed, 19 Jun 2013 18:47:29 +0000 (19:47 +0100)
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/tlv320aic3x.c

index 1514bf845e4b1e6e5e8ab37b7400632d5d60f3ad..e5b926883131180c71cfe6239d1bca3be8fcf674 100644 (file)
@@ -128,10 +128,8 @@ static const u8 aic3x_reg[AIC3X_CACHEREGNUM] = {
 };
 
 #define SOC_DAPM_SINGLE_AIC3X(xname, reg, shift, mask, invert) \
-{      .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
-       .info = snd_soc_info_volsw, \
-       .get = snd_soc_dapm_get_volsw, .put = snd_soc_dapm_put_volsw_aic3x, \
-       .private_value =  SOC_SINGLE_VALUE(reg, shift, mask, invert) }
+       SOC_SINGLE_EXT(xname, reg, shift, mask, invert, \
+               snd_soc_dapm_get_volsw, snd_soc_dapm_put_volsw_aic3x)
 
 /*
  * All input lines are connected when !0xf and disconnected with 0xf bit field,