diff options
author | Mark Brown <broonie@linaro.org> | 2014-05-21 19:23:44 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-21 19:23:44 -0400 |
commit | e3ac3f2510e5adb62eb4296d3fd0fac5441b2037 (patch) | |
tree | 1c6ef3f82fbd8f77129beb3c411c4b8bf2edd60c /include/sound | |
parent | 566d4eeff85a8112dddab9d455322e1fcf5defe7 (diff) | |
parent | 9de98da2a7531ec9dedfbe95d69ee55237bbd9d5 (diff) |
Merge remote-tracking branch 'asoc/topic/enum' into asoc-next
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc-dapm.h | 12 | ||||
-rw-r--r-- | include/sound/soc.h | 2 |
2 files changed, 0 insertions, 14 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index 5932d66fd654..6b59471cdf44 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
@@ -107,10 +107,6 @@ struct device; | |||
107 | { .id = snd_soc_dapm_mux, .name = wname, \ | 107 | { .id = snd_soc_dapm_mux, .name = wname, \ |
108 | SND_SOC_DAPM_INIT_REG_VAL(wreg, wshift, winvert), \ | 108 | SND_SOC_DAPM_INIT_REG_VAL(wreg, wshift, winvert), \ |
109 | .kcontrol_news = wcontrols, .num_kcontrols = 1} | 109 | .kcontrol_news = wcontrols, .num_kcontrols = 1} |
110 | #define SND_SOC_DAPM_VIRT_MUX(wname, wreg, wshift, winvert, wcontrols) \ | ||
111 | SND_SOC_DAPM_MUX(wname, wreg, wshift, winvert, wcontrols) | ||
112 | #define SND_SOC_DAPM_VALUE_MUX(wname, wreg, wshift, winvert, wcontrols) \ | ||
113 | SND_SOC_DAPM_MUX(wname, wreg, wshift, winvert, wcontrols) | ||
114 | 110 | ||
115 | /* Simplified versions of above macros, assuming wncontrols = ARRAY_SIZE(wcontrols) */ | 111 | /* Simplified versions of above macros, assuming wncontrols = ARRAY_SIZE(wcontrols) */ |
116 | #define SOC_PGA_ARRAY(wname, wreg, wshift, winvert,\ | 112 | #define SOC_PGA_ARRAY(wname, wreg, wshift, winvert,\ |
@@ -166,10 +162,6 @@ struct device; | |||
166 | SND_SOC_DAPM_INIT_REG_VAL(wreg, wshift, winvert), \ | 162 | SND_SOC_DAPM_INIT_REG_VAL(wreg, wshift, winvert), \ |
167 | .kcontrol_news = wcontrols, .num_kcontrols = 1, \ | 163 | .kcontrol_news = wcontrols, .num_kcontrols = 1, \ |
168 | .event = wevent, .event_flags = wflags} | 164 | .event = wevent, .event_flags = wflags} |
169 | #define SND_SOC_DAPM_VIRT_MUX_E(wname, wreg, wshift, winvert, wcontrols, \ | ||
170 | wevent, wflags) \ | ||
171 | SND_SOC_DAPM_MUX_E(wname, wreg, wshift, winvert, wcontrols, wevent, \ | ||
172 | wflags) | ||
173 | 165 | ||
174 | /* additional sequencing control within an event type */ | 166 | /* additional sequencing control within an event type */ |
175 | #define SND_SOC_DAPM_PGA_S(wname, wsubseq, wreg, wshift, winvert, \ | 167 | #define SND_SOC_DAPM_PGA_S(wname, wsubseq, wreg, wshift, winvert, \ |
@@ -304,16 +296,12 @@ struct device; | |||
304 | .get = snd_soc_dapm_get_enum_double, \ | 296 | .get = snd_soc_dapm_get_enum_double, \ |
305 | .put = snd_soc_dapm_put_enum_double, \ | 297 | .put = snd_soc_dapm_put_enum_double, \ |
306 | .private_value = (unsigned long)&xenum } | 298 | .private_value = (unsigned long)&xenum } |
307 | #define SOC_DAPM_ENUM_VIRT(xname, xenum) \ | ||
308 | SOC_DAPM_ENUM(xname, xenum) | ||
309 | #define SOC_DAPM_ENUM_EXT(xname, xenum, xget, xput) \ | 299 | #define SOC_DAPM_ENUM_EXT(xname, xenum, xget, xput) \ |
310 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \ | 300 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \ |
311 | .info = snd_soc_info_enum_double, \ | 301 | .info = snd_soc_info_enum_double, \ |
312 | .get = xget, \ | 302 | .get = xget, \ |
313 | .put = xput, \ | 303 | .put = xput, \ |
314 | .private_value = (unsigned long)&xenum } | 304 | .private_value = (unsigned long)&xenum } |
315 | #define SOC_DAPM_VALUE_ENUM(xname, xenum) \ | ||
316 | SOC_DAPM_ENUM(xname, xenum) | ||
317 | #define SOC_DAPM_PIN_SWITCH(xname) \ | 305 | #define SOC_DAPM_PIN_SWITCH(xname) \ |
318 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname " Switch", \ | 306 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname " Switch", \ |
319 | .info = snd_soc_dapm_info_pin_switch, \ | 307 | .info = snd_soc_dapm_info_pin_switch, \ |
diff --git a/include/sound/soc.h b/include/sound/soc.h index c9ae1271281e..431bfd267c52 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -196,8 +196,6 @@ | |||
196 | .info = snd_soc_info_enum_double, \ | 196 | .info = snd_soc_info_enum_double, \ |
197 | .get = snd_soc_get_enum_double, .put = snd_soc_put_enum_double, \ | 197 | .get = snd_soc_get_enum_double, .put = snd_soc_put_enum_double, \ |
198 | .private_value = (unsigned long)&xenum } | 198 | .private_value = (unsigned long)&xenum } |
199 | #define SOC_VALUE_ENUM(xname, xenum) \ | ||
200 | SOC_ENUM(xname, xenum) | ||
201 | #define SOC_SINGLE_EXT(xname, xreg, xshift, xmax, xinvert,\ | 199 | #define SOC_SINGLE_EXT(xname, xreg, xshift, xmax, xinvert,\ |
202 | xhandler_get, xhandler_put) \ | 200 | xhandler_get, xhandler_put) \ |
203 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \ | 201 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \ |