soc.h (71c21b4cf62177a9d1ea46ff4c6073c907122226) soc.h (12ef193d5817504621e503e78d641265f6a86ac4)
1/*
2 * linux/sound/soc.h -- ALSA SoC Layer
3 *
4 * Author: Liam Girdwood
5 * Created: Aug 11th 2005
6 * Copyright: Wolfson Microelectronics. PLC.
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 14 unchanged lines hidden (view full) ---

23
24#define SND_SOC_VERSION "0.13.2"
25
26/*
27 * Convenience kcontrol builders
28 */
29#define SOC_SINGLE_VALUE(xreg, xshift, xmax, xinvert) \
30 ((unsigned long)&(struct soc_mixer_control) \
1/*
2 * linux/sound/soc.h -- ALSA SoC Layer
3 *
4 * Author: Liam Girdwood
5 * Created: Aug 11th 2005
6 * Copyright: Wolfson Microelectronics. PLC.
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 14 unchanged lines hidden (view full) ---

23
24#define SND_SOC_VERSION "0.13.2"
25
26/*
27 * Convenience kcontrol builders
28 */
29#define SOC_SINGLE_VALUE(xreg, xshift, xmax, xinvert) \
30 ((unsigned long)&(struct soc_mixer_control) \
31 {.reg = xreg, .shift = xshift, .rshift = xshift, .max = xmax, \
32 .invert = xinvert})
31 {.reg = xreg, .shift = xshift, .max = xmax, .invert = xinvert})
33#define SOC_SINGLE_VALUE_EXT(xreg, xmax, xinvert) \
34 ((unsigned long)&(struct soc_mixer_control) \
35 {.reg = xreg, .max = xmax, .invert = xinvert})
36#define SOC_SINGLE(xname, reg, shift, max, invert) \
37{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
38 .info = snd_soc_info_volsw, .get = snd_soc_get_volsw,\
39 .put = snd_soc_put_volsw, \
40 .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert) }

--- 380 unchanged lines hidden (view full) ---

421 size_t, unsigned int);
422 hw_write_t hw_write;
423 hw_read_t hw_read;
424 void *reg_cache;
425 short reg_cache_size;
426 short reg_cache_step;
427
428 /* dapm */
32#define SOC_SINGLE_VALUE_EXT(xreg, xmax, xinvert) \
33 ((unsigned long)&(struct soc_mixer_control) \
34 {.reg = xreg, .max = xmax, .invert = xinvert})
35#define SOC_SINGLE(xname, reg, shift, max, invert) \
36{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
37 .info = snd_soc_info_volsw, .get = snd_soc_get_volsw,\
38 .put = snd_soc_put_volsw, \
39 .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert) }

--- 380 unchanged lines hidden (view full) ---

420 size_t, unsigned int);
421 hw_write_t hw_write;
422 hw_read_t hw_read;
423 void *reg_cache;
424 short reg_cache_size;
425 short reg_cache_step;
426
427 /* dapm */
428 u32 pop_time;
429 struct list_head dapm_widgets;
430 struct list_head dapm_paths;
431 enum snd_soc_bias_level bias_level;
432 enum snd_soc_bias_level suspend_bias_level;
433 struct delayed_work delayed_work;
434
435 /* codec DAI's */
436 struct snd_soc_dai *dai;

--- 75 unchanged lines hidden (view full) ---

512 struct device *dev;
513 struct snd_soc_machine *machine;
514 struct snd_soc_platform *platform;
515 struct snd_soc_codec *codec;
516 struct snd_soc_codec_device *codec_dev;
517 struct delayed_work delayed_work;
518 struct work_struct deferred_resume_work;
519 void *codec_data;
429 struct list_head dapm_widgets;
430 struct list_head dapm_paths;
431 enum snd_soc_bias_level bias_level;
432 enum snd_soc_bias_level suspend_bias_level;
433 struct delayed_work delayed_work;
434
435 /* codec DAI's */
436 struct snd_soc_dai *dai;

--- 75 unchanged lines hidden (view full) ---

512 struct device *dev;
513 struct snd_soc_machine *machine;
514 struct snd_soc_platform *platform;
515 struct snd_soc_codec *codec;
516 struct snd_soc_codec_device *codec_dev;
517 struct delayed_work delayed_work;
518 struct work_struct deferred_resume_work;
519 void *codec_data;
520#ifdef CONFIG_DEBUG_FS
521 struct dentry *debugfs_root;
522#endif
520};
521
522/* runtime channel data */
523struct snd_soc_pcm_runtime {
524 struct snd_soc_dai_link *dai;
525 struct snd_soc_device *socdev;
526};
527

--- 18 unchanged lines hidden ---
523};
524
525/* runtime channel data */
526struct snd_soc_pcm_runtime {
527 struct snd_soc_dai_link *dai;
528 struct snd_soc_device *socdev;
529};
530

--- 18 unchanged lines hidden ---