]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ASoC: dapm: Enable autodisable on SOC_DAPM_SINGLE_TLV_AUTODISABLE
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Wed, 22 Apr 2015 12:58:47 +0000 (13:58 +0100)
committerJiri Slaby <jslaby@suse.cz>
Fri, 15 May 2015 07:10:47 +0000 (09:10 +0200)
commit a2d97723cb3a7741af81868427b36bba274b681b upstream.

Correct small copy and paste error where autodisable was not being
enabled for the SOC_DAPM_SINGLE_TLV_AUTODISABLE control.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
include/sound/soc-dapm.h

index 9e600b418467db7a3f911816b098886f04a2ecd6..11a6d2d68914d6bdde6103a41c6eb3c9e256edd1 100644 (file)
@@ -300,7 +300,7 @@ struct device;
        .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ | SNDRV_CTL_ELEM_ACCESS_READWRITE,\
        .tlv.p = (tlv_array), \
        .get = snd_soc_dapm_get_volsw, .put = snd_soc_dapm_put_volsw, \
-       .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert, 0) }
+       .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert, 1) }
 #define SOC_DAPM_ENUM(xname, xenum) \
 {      .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
        .info = snd_soc_info_enum_double, \