]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
ASoC: fix codec breakage caused by the volsw/volsw_2r merger
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 6 Oct 2011 04:43:21 +0000 (07:43 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 6 Oct 2011 19:02:55 +0000 (20:02 +0100)
By accident few places still uses the _2r calls from
the core.
This is a quick fix, the drivers using the old callbacks
going to be changed.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc.h

index 88ba85a422fb0ba1cf00afc3822e6730f50f47ba..858291dc08f9deb02f5005eeebf8067738075c80 100644 (file)
@@ -393,6 +393,8 @@ int snd_soc_get_volsw(struct snd_kcontrol *kcontrol,
        struct snd_ctl_elem_value *ucontrol);
 int snd_soc_put_volsw(struct snd_kcontrol *kcontrol,
        struct snd_ctl_elem_value *ucontrol);
+#define snd_soc_get_volsw_2r snd_soc_get_volsw
+#define snd_soc_put_volsw_2r snd_soc_put_volsw
 int snd_soc_info_volsw_s8(struct snd_kcontrol *kcontrol,
        struct snd_ctl_elem_info *uinfo);
 int snd_soc_get_volsw_s8(struct snd_kcontrol *kcontrol,