aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-01-09 06:03:55 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-01-09 06:03:55 -0500
commit5852973c129cf7c7e6c229abb7250673fc2a50c9 (patch)
treece61401fc06a086309d496ae2e015d7d3b504ab8 /include/sound
parent3e8e1952e3a3dd59b11233a532ca68e6471742d9 (diff)
parentc6d1662b229410e64092fe3a9caed6535fb3dc65 (diff)
Merge branch 'for-2.6.29' into for-2.6.30
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc-dapm.h2
-rw-r--r--include/sound/soc.h15
2 files changed, 2 insertions, 15 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index 075244ef41eb..0accdba211f9 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -188,7 +188,7 @@
188 .private_value = (unsigned long)&xenum } 188 .private_value = (unsigned long)&xenum }
189#define SOC_DAPM_VALUE_ENUM(xname, xenum) \ 189#define SOC_DAPM_VALUE_ENUM(xname, xenum) \
190{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \ 190{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
191 .info = snd_soc_info_value_enum_double, \ 191 .info = snd_soc_info_enum_double, \
192 .get = snd_soc_dapm_get_value_enum_double, \ 192 .get = snd_soc_dapm_get_value_enum_double, \
193 .put = snd_soc_dapm_put_value_enum_double, \ 193 .put = snd_soc_dapm_put_value_enum_double, \
194 .private_value = (unsigned long)&xenum } 194 .private_value = (unsigned long)&xenum }
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 9d5a0362a055..7039343e8a78 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -106,7 +106,7 @@
106 .private_value = (unsigned long)&xenum } 106 .private_value = (unsigned long)&xenum }
107#define SOC_VALUE_ENUM(xname, xenum) \ 107#define SOC_VALUE_ENUM(xname, xenum) \
108{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname,\ 108{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname,\
109 .info = snd_soc_info_value_enum_double, \ 109 .info = snd_soc_info_enum_double, \
110 .get = snd_soc_get_value_enum_double, \ 110 .get = snd_soc_get_value_enum_double, \
111 .put = snd_soc_put_value_enum_double, \ 111 .put = snd_soc_put_value_enum_double, \
112 .private_value = (unsigned long)&xenum } 112 .private_value = (unsigned long)&xenum }
@@ -224,8 +224,6 @@ int snd_soc_get_enum_double(struct snd_kcontrol *kcontrol,
224 struct snd_ctl_elem_value *ucontrol); 224 struct snd_ctl_elem_value *ucontrol);
225int snd_soc_put_enum_double(struct snd_kcontrol *kcontrol, 225int snd_soc_put_enum_double(struct snd_kcontrol *kcontrol,
226 struct snd_ctl_elem_value *ucontrol); 226 struct snd_ctl_elem_value *ucontrol);
227int snd_soc_info_value_enum_double(struct snd_kcontrol *kcontrol,
228 struct snd_ctl_elem_info *uinfo);
229int snd_soc_get_value_enum_double(struct snd_kcontrol *kcontrol, 227int snd_soc_get_value_enum_double(struct snd_kcontrol *kcontrol,
230 struct snd_ctl_elem_value *ucontrol); 228 struct snd_ctl_elem_value *ucontrol);
231int snd_soc_put_value_enum_double(struct snd_kcontrol *kcontrol, 229int snd_soc_put_value_enum_double(struct snd_kcontrol *kcontrol,
@@ -453,17 +451,6 @@ struct soc_enum {
453 unsigned char shift_l; 451 unsigned char shift_l;
454 unsigned char shift_r; 452 unsigned char shift_r;
455 unsigned int max; 453 unsigned int max;
456 const char **texts;
457 void *dapm;
458};
459
460/* semi enumerated kcontrol */
461struct soc_value_enum {
462 unsigned short reg;
463 unsigned short reg2;
464 unsigned char shift_l;
465 unsigned char shift_r;
466 unsigned int max;
467 unsigned int mask; 454 unsigned int mask;
468 const char **texts; 455 const char **texts;
469 const unsigned int *values; 456 const unsigned int *values;