Changeset 426 for GPL/trunk/alsa-kernel/include/sound/soc-dapm.h
- Timestamp:
- May 9, 2009, 11:45:26 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/include/sound/soc-dapm.h
r410 r426 119 119 wevent, wflags) \ 120 120 { .id = snd_soc_dapm_switch, .name = wname, .reg = wreg, .shift = wshift, \ 121 .invert = winvert, .kcontrols = wcontrols, .num_kcontrols = 1 \121 .invert = winvert, .kcontrols = wcontrols, .num_kcontrols = 1, \ 122 122 .event = wevent, .event_flags = wflags} 123 123 #define SND_SOC_DAPM_MUX_E(wname, wreg, wshift, winvert, wcontrols, \ … … 193 193 .put = snd_soc_dapm_put_value_enum_double, \ 194 194 .private_value = (unsigned long)&xenum } 195 #define SOC_DAPM_PIN_SWITCH(xname) \ 196 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname " Switch", \ 197 .info = snd_soc_dapm_info_pin_switch, \ 198 .get = snd_soc_dapm_get_pin_switch, \ 199 .put = snd_soc_dapm_put_pin_switch, \ 200 .private_value = (unsigned long)xname } 195 201 196 202 /* dapm stream operations */ … … 239 245 int snd_soc_dapm_put_value_enum_double(struct snd_kcontrol *kcontrol, 240 246 struct snd_ctl_elem_value *ucontrol); 247 int snd_soc_dapm_info_pin_switch(struct snd_kcontrol *kcontrol, 248 struct snd_ctl_elem_info *uinfo); 249 int snd_soc_dapm_get_pin_switch(struct snd_kcontrol *kcontrol, 250 struct snd_ctl_elem_value *uncontrol); 251 int snd_soc_dapm_put_pin_switch(struct snd_kcontrol *kcontrol, 252 struct snd_ctl_elem_value *uncontrol); 241 253 int snd_soc_dapm_new_control(struct snd_soc_codec *codec, 242 254 const struct snd_soc_dapm_widget *widget);
Note:
See TracChangeset
for help on using the changeset viewer.