summaryrefslogtreecommitdiff
path: root/include/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2015-12-23 00:23:33 +0000
committerMark Brown <broonie@kernel.org>2015-12-23 00:23:33 +0000
commit89c172e2aa3063b3860ef1ace33e9a27c45a5aa7 (patch)
tree1605e0ac85c4debda68358423b1a7bea415a6ebf /include/sound
parenta93202fa7b450a2783feecc571dcd0fee55c91c4 (diff)
parenta9b17a638af5ae374677c5349653114231483419 (diff)
downloadlinux-89c172e2aa3063b3860ef1ace33e9a27c45a5aa7.tar.gz
linux-89c172e2aa3063b3860ef1ace33e9a27c45a5aa7.tar.xz
Merge remote-tracking branch 'asoc/topic/pcm3168a' into asoc-next
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 9ea797d48d43..ea443239cc6d 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -110,6 +110,14 @@
.put = snd_soc_put_volsw, \
.private_value = SOC_DOUBLE_VALUE(reg, shift_left, shift_right, \
max, invert, 0) }
+#define SOC_DOUBLE_STS(xname, reg, shift_left, shift_right, max, invert) \
+{ \
+ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
+ .info = snd_soc_info_volsw, .get = snd_soc_get_volsw, \
+ .access = SNDRV_CTL_ELEM_ACCESS_READ | \
+ SNDRV_CTL_ELEM_ACCESS_VOLATILE, \
+ .private_value = SOC_DOUBLE_VALUE(reg, shift_left, shift_right, \
+ max, invert, 0) }
#define SOC_DOUBLE_R(xname, reg_left, reg_right, xshift, xmax, xinvert) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
.info = snd_soc_info_volsw, \