Ignore:
Timestamp:
May 9, 2009, 11:45:26 AM (16 years ago)
Author:
Paul Smedley
Message:

Update alsa-kernel to ALSA 1.0.20 level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/include/sound/soc-dapm.h

    r410 r426  
    119119        wevent, wflags) \
    120120{       .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, \
    122122        .event = wevent, .event_flags = wflags}
    123123#define SND_SOC_DAPM_MUX_E(wname, wreg, wshift, winvert, wcontrols, \
     
    193193        .put = snd_soc_dapm_put_value_enum_double, \
    194194        .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 }
    195201
    196202/* dapm stream operations */
     
    239245int snd_soc_dapm_put_value_enum_double(struct snd_kcontrol *kcontrol,
    240246        struct snd_ctl_elem_value *ucontrol);
     247int snd_soc_dapm_info_pin_switch(struct snd_kcontrol *kcontrol,
     248        struct snd_ctl_elem_info *uinfo);
     249int snd_soc_dapm_get_pin_switch(struct snd_kcontrol *kcontrol,
     250        struct snd_ctl_elem_value *uncontrol);
     251int snd_soc_dapm_put_pin_switch(struct snd_kcontrol *kcontrol,
     252        struct snd_ctl_elem_value *uncontrol);
    241253int snd_soc_dapm_new_control(struct snd_soc_codec *codec,
    242254        const struct snd_soc_dapm_widget *widget);
Note: See TracChangeset for help on using the changeset viewer.