aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8994.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8994.c')
-rw-r--r--sound/soc/codecs/wm8994.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index 25580b5a853f..1d4b1ec66e36 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -290,10 +290,8 @@ static const DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0);
290static const DECLARE_TLV_DB_SCALE(mixin_boost_tlv, 0, 900, 0); 290static const DECLARE_TLV_DB_SCALE(mixin_boost_tlv, 0, 900, 0);
291 291
292#define WM8994_DRC_SWITCH(xname, reg, shift) \ 292#define WM8994_DRC_SWITCH(xname, reg, shift) \
293{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \ 293 SOC_SINGLE_EXT(xname, reg, shift, 1, 0, \
294 .info = snd_soc_info_volsw, .get = snd_soc_get_volsw,\ 294 snd_soc_get_volsw, wm8994_put_drc_sw)
295 .put = wm8994_put_drc_sw, \
296 .private_value = SOC_SINGLE_VALUE(reg, shift, 1, 0) }
297 295
298static int wm8994_put_drc_sw(struct snd_kcontrol *kcontrol, 296static int wm8994_put_drc_sw(struct snd_kcontrol *kcontrol,
299 struct snd_ctl_elem_value *ucontrol) 297 struct snd_ctl_elem_value *ucontrol)
@@ -1433,10 +1431,8 @@ SOC_DAPM_SINGLE("AIF1.1 Switch", WM8994_DAC2_RIGHT_MIXER_ROUTING,
1433}; 1431};
1434 1432
1435#define WM8994_CLASS_W_SWITCH(xname, reg, shift, max, invert) \ 1433#define WM8994_CLASS_W_SWITCH(xname, reg, shift, max, invert) \
1436{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \ 1434 SOC_SINGLE_EXT(xname, reg, shift, max, invert, \
1437 .info = snd_soc_info_volsw, \ 1435 snd_soc_get_volsw, wm8994_put_class_w)
1438 .get = snd_soc_dapm_get_volsw, .put = wm8994_put_class_w, \
1439 .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert) }
1440 1436
1441static int wm8994_put_class_w(struct snd_kcontrol *kcontrol, 1437static int wm8994_put_class_w(struct snd_kcontrol *kcontrol,
1442 struct snd_ctl_elem_value *ucontrol) 1438 struct snd_ctl_elem_value *ucontrol)