~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to include/sound/soc-dapm.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
        SND_SOC_DAPM_INIT_REG_VAL(wreg, wshift, winvert), \
105
105
        .kcontrol_news = wcontrols, .num_kcontrols = 1}
106
106
#define SND_SOC_DAPM_MUX(wname, wreg, wshift, winvert, wcontrols) \
107
 
{       .id = snd_soc_dapm_mux, .name = wname, .reg = wreg, \
 
107
{       .id = snd_soc_dapm_mux, .name = wname, \
 
108
        SND_SOC_DAPM_INIT_REG_VAL(wreg, wshift, winvert), \
108
109
        .kcontrol_news = wcontrols, .num_kcontrols = 1}
109
110
#define SND_SOC_DAPM_VIRT_MUX(wname, wreg, wshift, winvert, wcontrols) \
110
111
{       .id = snd_soc_dapm_virt_mux, .name = wname, \
286
287
        .info = snd_soc_info_volsw, \
287
288
        .get = snd_soc_dapm_get_volsw, .put = snd_soc_dapm_put_volsw, \
288
289
        .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert, 1) }
 
290
#define SOC_DAPM_SINGLE_VIRT(xname, max) \
 
291
        SOC_DAPM_SINGLE(xname, SND_SOC_NOPM, 0, max, 0)
289
292
#define SOC_DAPM_SINGLE_TLV(xname, reg, shift, max, invert, tlv_array) \
290
293
{       .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
291
294
        .info = snd_soc_info_volsw, \
300
303
        .tlv.p = (tlv_array), \
301
304
        .get = snd_soc_dapm_get_volsw, .put = snd_soc_dapm_put_volsw, \
302
305
        .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert, 0) }
 
306
#define SOC_DAPM_SINGLE_TLV_VIRT(xname, max, tlv_array) \
 
307
        SOC_DAPM_SINGLE(xname, SND_SOC_NOPM, 0, max, 0, tlv_array)
303
308
#define SOC_DAPM_ENUM(xname, xenum) \
304
309
{       .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
305
310
        .info = snd_soc_info_enum_double, \