Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
soc-dapm.h File Reference
#include <linux/types.h>
#include <sound/control.h>

Go to the source code of this file.

Data Structures

struct  snd_soc_dapm_route
 
struct  snd_soc_dapm_path
 
struct  snd_soc_dapm_widget
 
struct  snd_soc_dapm_update
 
struct  snd_soc_dapm_context
 
struct  snd_soc_dapm_widget_list
 
struct  snd_soc_dapm_stats
 

Macros

#define SND_SOC_NOPM   -1
 
#define SND_SOC_DAPM_VMID(wname)
 
#define SND_SOC_DAPM_SIGGEN(wname)
 
#define SND_SOC_DAPM_INPUT(wname)
 
#define SND_SOC_DAPM_OUTPUT(wname)
 
#define SND_SOC_DAPM_MIC(wname, wevent)
 
#define SND_SOC_DAPM_HP(wname, wevent)
 
#define SND_SOC_DAPM_SPK(wname, wevent)
 
#define SND_SOC_DAPM_LINE(wname, wevent)
 
#define SND_SOC_DAPM_PGA(wname, wreg, wshift, winvert, wcontrols, wncontrols)
 
#define SND_SOC_DAPM_OUT_DRV(wname, wreg, wshift, winvert, wcontrols, wncontrols)
 
#define SND_SOC_DAPM_MIXER(wname, wreg, wshift, winvert, wcontrols, wncontrols)
 
#define SND_SOC_DAPM_MIXER_NAMED_CTL(wname, wreg, wshift, winvert, wcontrols, wncontrols)
 
#define SND_SOC_DAPM_MICBIAS(wname, wreg, wshift, winvert)
 
#define SND_SOC_DAPM_SWITCH(wname, wreg, wshift, winvert, wcontrols)
 
#define SND_SOC_DAPM_MUX(wname, wreg, wshift, winvert, wcontrols)
 
#define SND_SOC_DAPM_VIRT_MUX(wname, wreg, wshift, winvert, wcontrols)
 
#define SND_SOC_DAPM_VALUE_MUX(wname, wreg, wshift, winvert, wcontrols)
 
#define SOC_PGA_ARRAY(wname, wreg, wshift, winvert, wcontrols)
 
#define SOC_MIXER_ARRAY(wname, wreg, wshift, winvert, wcontrols)
 
#define SOC_MIXER_NAMED_CTL_ARRAY(wname, wreg, wshift, winvert, wcontrols)
 
#define SND_SOC_DAPM_PGA_E(wname, wreg, wshift, winvert, wcontrols, wncontrols, wevent, wflags)
 
#define SND_SOC_DAPM_OUT_DRV_E(wname, wreg, wshift, winvert, wcontrols, wncontrols, wevent, wflags)
 
#define SND_SOC_DAPM_MIXER_E(wname, wreg, wshift, winvert, wcontrols, wncontrols, wevent, wflags)
 
#define SND_SOC_DAPM_MIXER_NAMED_CTL_E(wname, wreg, wshift, winvert, wcontrols, wncontrols, wevent, wflags)
 
#define SND_SOC_DAPM_SWITCH_E(wname, wreg, wshift, winvert, wcontrols, wevent, wflags)
 
#define SND_SOC_DAPM_MUX_E(wname, wreg, wshift, winvert, wcontrols, wevent, wflags)
 
#define SND_SOC_DAPM_VIRT_MUX_E(wname, wreg, wshift, winvert, wcontrols, wevent, wflags)
 
#define SND_SOC_DAPM_PGA_S(wname, wsubseq, wreg, wshift, winvert, wevent, wflags)
 
#define SND_SOC_DAPM_SUPPLY_S(wname, wsubseq, wreg, wshift, winvert, wevent, wflags)
 
#define SOC_PGA_E_ARRAY(wname, wreg, wshift, winvert, wcontrols, wevent, wflags)
 
#define SOC_MIXER_E_ARRAY(wname, wreg, wshift, winvert, wcontrols, wevent, wflags)
 
#define SOC_MIXER_NAMED_CTL_E_ARRAY(wname, wreg, wshift, winvert, wcontrols, wevent, wflags)
 
#define SND_SOC_DAPM_PRE(wname, wevent)
 
#define SND_SOC_DAPM_POST(wname, wevent)
 
#define SND_SOC_DAPM_AIF_IN(wname, stname, wslot, wreg, wshift, winvert)
 
#define SND_SOC_DAPM_AIF_IN_E(wname, stname, wslot, wreg, wshift, winvert, wevent, wflags)
 
#define SND_SOC_DAPM_AIF_OUT(wname, stname, wslot, wreg, wshift, winvert)
 
#define SND_SOC_DAPM_AIF_OUT_E(wname, stname, wslot, wreg, wshift, winvert, wevent, wflags)
 
#define SND_SOC_DAPM_DAC(wname, stname, wreg, wshift, winvert)
 
#define SND_SOC_DAPM_DAC_E(wname, stname, wreg, wshift, winvert, wevent, wflags)
 
#define SND_SOC_DAPM_ADC(wname, stname, wreg, wshift, winvert)
 
#define SND_SOC_DAPM_ADC_E(wname, stname, wreg, wshift, winvert, wevent, wflags)
 
#define SND_SOC_DAPM_CLOCK_SUPPLY(wname)
 
#define SND_SOC_DAPM_REG(wid, wname, wreg, wshift, wmask, won_val, woff_val)
 
#define SND_SOC_DAPM_SUPPLY(wname, wreg, wshift, winvert, wevent, wflags)
 
#define SND_SOC_DAPM_REGULATOR_SUPPLY(wname, wdelay, wflags)
 
#define SOC_DAPM_SINGLE(xname, reg, shift, max, invert)
 
#define SOC_DAPM_SINGLE_TLV(xname, reg, shift, max, invert, tlv_array)
 
#define SOC_DAPM_ENUM(xname, xenum)
 
#define SOC_DAPM_ENUM_VIRT(xname, xenum)
 
#define SOC_DAPM_ENUM_EXT(xname, xenum, xget, xput)
 
#define SOC_DAPM_VALUE_ENUM(xname, xenum)
 
#define SOC_DAPM_PIN_SWITCH(xname)
 
#define SND_SOC_DAPM_STREAM_NOP   0x0
 
#define SND_SOC_DAPM_STREAM_START   0x1
 
#define SND_SOC_DAPM_STREAM_STOP   0x2
 
#define SND_SOC_DAPM_STREAM_SUSPEND   0x4
 
#define SND_SOC_DAPM_STREAM_RESUME   0x8
 
#define SND_SOC_DAPM_STREAM_PAUSE_PUSH   0x10
 
#define SND_SOC_DAPM_STREAM_PAUSE_RELEASE   0x20
 
#define SND_SOC_DAPM_PRE_PMU   0x1 /* before widget power up */
 
#define SND_SOC_DAPM_POST_PMU   0x2 /* after widget power up */
 
#define SND_SOC_DAPM_PRE_PMD   0x4 /* before widget power down */
 
#define SND_SOC_DAPM_POST_PMD   0x8 /* after widget power down */
 
#define SND_SOC_DAPM_PRE_REG   0x10 /* before audio path setup */
 
#define SND_SOC_DAPM_POST_REG   0x20 /* after audio path setup */
 
#define SND_SOC_DAPM_PRE_POST_PMD   (SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD)
 
#define SND_SOC_DAPM_EVENT_ON(e)   (e & (SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU))
 
#define SND_SOC_DAPM_EVENT_OFF(e)   (e & (SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD))
 
#define SND_SOC_DAPM_REGULATOR_BYPASS   0x1 /* bypass when disabled */
 

Enumerations

enum  snd_soc_dapm_type {
  snd_soc_dapm_input = 0, snd_soc_dapm_output, snd_soc_dapm_mux, snd_soc_dapm_virt_mux,
  snd_soc_dapm_value_mux, snd_soc_dapm_mixer, snd_soc_dapm_mixer_named_ctl, snd_soc_dapm_pga,
  snd_soc_dapm_out_drv, snd_soc_dapm_adc, snd_soc_dapm_dac, snd_soc_dapm_micbias,
  snd_soc_dapm_mic, snd_soc_dapm_hp, snd_soc_dapm_spk, snd_soc_dapm_line,
  snd_soc_dapm_switch, snd_soc_dapm_vmid, snd_soc_dapm_pre, snd_soc_dapm_post,
  snd_soc_dapm_supply, snd_soc_dapm_regulator_supply, snd_soc_dapm_clock_supply, snd_soc_dapm_aif_in,
  snd_soc_dapm_aif_out, snd_soc_dapm_siggen, snd_soc_dapm_dai, snd_soc_dapm_dai_link
}
 
enum  snd_soc_dapm_subclass { SND_SOC_DAPM_CLASS_INIT = 0, SND_SOC_DAPM_CLASS_RUNTIME = 1 }
 

Functions

int dapm_reg_event (struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event)
 
int dapm_regulator_event (struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event)
 
int dapm_clock_event (struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event)
 
int snd_soc_dapm_put_volsw (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
 
int snd_soc_dapm_get_volsw (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
 
int snd_soc_dapm_get_enum_double (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
 
int snd_soc_dapm_put_enum_double (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
 
int snd_soc_dapm_get_enum_virt (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
 
int snd_soc_dapm_put_enum_virt (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
 
int snd_soc_dapm_get_value_enum_double (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
 
int snd_soc_dapm_put_value_enum_double (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
 
int snd_soc_dapm_info_pin_switch (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
 
int snd_soc_dapm_get_pin_switch (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uncontrol)
 
int snd_soc_dapm_put_pin_switch (struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uncontrol)
 
int snd_soc_dapm_new_controls (struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_widget *widget, int num)
 
int snd_soc_dapm_new_dai_widgets (struct snd_soc_dapm_context *dapm, struct snd_soc_dai *dai)
 
int snd_soc_dapm_link_dai_widgets (struct snd_soc_card *card)
 
int snd_soc_dapm_new_pcm (struct snd_soc_card *card, const struct snd_soc_pcm_stream *params, struct snd_soc_dapm_widget *source, struct snd_soc_dapm_widget *sink)
 
int snd_soc_dapm_new_widgets (struct snd_soc_dapm_context *dapm)
 
void snd_soc_dapm_free (struct snd_soc_dapm_context *dapm)
 
int snd_soc_dapm_add_routes (struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_route *route, int num)
 
int snd_soc_dapm_del_routes (struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_route *route, int num)
 
int snd_soc_dapm_weak_routes (struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_route *route, int num)
 
void snd_soc_dapm_stream_event (struct snd_soc_pcm_runtime *rtd, int stream, int event)
 
void snd_soc_dapm_shutdown (struct snd_soc_card *card)
 
int snd_soc_dapm_mixer_update_power (struct snd_soc_dapm_widget *widget, struct snd_kcontrol *kcontrol, int connect)
 
int snd_soc_dapm_mux_update_power (struct snd_soc_dapm_widget *widget, struct snd_kcontrol *kcontrol, int mux, struct soc_enum *e)
 
int snd_soc_dapm_sys_add (struct device *dev)
 
void snd_soc_dapm_debugfs_init (struct snd_soc_dapm_context *dapm, struct dentry *parent)
 
int snd_soc_dapm_enable_pin (struct snd_soc_dapm_context *dapm, const char *pin)
 
int snd_soc_dapm_disable_pin (struct snd_soc_dapm_context *dapm, const char *pin)
 
int snd_soc_dapm_nc_pin (struct snd_soc_dapm_context *dapm, const char *pin)
 
int snd_soc_dapm_get_pin_status (struct snd_soc_dapm_context *dapm, const char *pin)
 
int snd_soc_dapm_sync (struct snd_soc_dapm_context *dapm)
 
int snd_soc_dapm_force_enable_pin (struct snd_soc_dapm_context *dapm, const char *pin)
 
int snd_soc_dapm_ignore_suspend (struct snd_soc_dapm_context *dapm, const char *pin)
 
void snd_soc_dapm_auto_nc_codec_pins (struct snd_soc_codec *codec)
 
void dapm_mark_dirty (struct snd_soc_dapm_widget *w, const char *reason)
 
void dapm_mark_io_dirty (struct snd_soc_dapm_context *dapm)
 
int snd_soc_dapm_dai_get_connected_widgets (struct snd_soc_dai *dai, int stream, struct snd_soc_dapm_widget_list **list)
 

Macro Definition Documentation

#define SND_SOC_DAPM_ADC (   wname,
  stname,
  wreg,
  wshift,
  winvert 
)
Value:
{ .id = snd_soc_dapm_adc, .name = wname, .sname = stname, .reg = wreg, \
.shift = wshift, .invert = winvert}

Definition at line 224 of file soc-dapm.h.

#define SND_SOC_DAPM_ADC_E (   wname,
  stname,
  wreg,
  wshift,
  winvert,
  wevent,
  wflags 
)
Value:
{ .id = snd_soc_dapm_adc, .name = wname, .sname = stname, .reg = wreg, \
.shift = wshift, .invert = winvert, \
.event = wevent, .event_flags = wflags}

Definition at line 227 of file soc-dapm.h.

#define SND_SOC_DAPM_AIF_IN (   wname,
  stname,
  wslot,
  wreg,
  wshift,
  winvert 
)
Value:
{ .id = snd_soc_dapm_aif_in, .name = wname, .sname = stname, \
.reg = wreg, .shift = wshift, .invert = winvert }

Definition at line 200 of file soc-dapm.h.

#define SND_SOC_DAPM_AIF_IN_E (   wname,
  stname,
  wslot,
  wreg,
  wshift,
  winvert,
  wevent,
  wflags 
)
Value:
{ .id = snd_soc_dapm_aif_in, .name = wname, .sname = stname, \
.reg = wreg, .shift = wshift, .invert = winvert, \
.event = wevent, .event_flags = wflags }

Definition at line 203 of file soc-dapm.h.

#define SND_SOC_DAPM_AIF_OUT (   wname,
  stname,
  wslot,
  wreg,
  wshift,
  winvert 
)
Value:
{ .id = snd_soc_dapm_aif_out, .name = wname, .sname = stname, \
.reg = wreg, .shift = wshift, .invert = winvert }

Definition at line 208 of file soc-dapm.h.

#define SND_SOC_DAPM_AIF_OUT_E (   wname,
  stname,
  wslot,
  wreg,
  wshift,
  winvert,
  wevent,
  wflags 
)
Value:
{ .id = snd_soc_dapm_aif_out, .name = wname, .sname = stname, \
.reg = wreg, .shift = wshift, .invert = winvert, \
.event = wevent, .event_flags = wflags }

Definition at line 211 of file soc-dapm.h.

#define SND_SOC_DAPM_CLOCK_SUPPLY (   wname)
Value:
{ .id = snd_soc_dapm_clock_supply, .name = wname, \
.reg = SND_SOC_NOPM, .event = dapm_clock_event, \

Definition at line 232 of file soc-dapm.h.

#define SND_SOC_DAPM_DAC (   wname,
  stname,
  wreg,
  wshift,
  winvert 
)
Value:
{ .id = snd_soc_dapm_dac, .name = wname, .sname = stname, .reg = wreg, \
.shift = wshift, .invert = winvert}

Definition at line 216 of file soc-dapm.h.

#define SND_SOC_DAPM_DAC_E (   wname,
  stname,
  wreg,
  wshift,
  winvert,
  wevent,
  wflags 
)
Value:
{ .id = snd_soc_dapm_dac, .name = wname, .sname = stname, .reg = wreg, \
.shift = wshift, .invert = winvert, \
.event = wevent, .event_flags = wflags}

Definition at line 219 of file soc-dapm.h.

#define SND_SOC_DAPM_EVENT_OFF (   e)    (e & (SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD))

Definition at line 320 of file soc-dapm.h.

#define SND_SOC_DAPM_EVENT_ON (   e)    (e & (SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU))

Definition at line 318 of file soc-dapm.h.

#define SND_SOC_DAPM_HP (   wname,
  wevent 
)
Value:
{ .id = snd_soc_dapm_hp, .name = wname, .kcontrol_news = NULL, \
.num_kcontrols = 0, .reg = SND_SOC_NOPM, .event = wevent, \

Definition at line 60 of file soc-dapm.h.

#define SND_SOC_DAPM_INPUT (   wname)
Value:
{ .id = snd_soc_dapm_input, .name = wname, .kcontrol_news = NULL, \
.num_kcontrols = 0, .reg = SND_SOC_NOPM }

Definition at line 50 of file soc-dapm.h.

#define SND_SOC_DAPM_LINE (   wname,
  wevent 
)
Value:
{ .id = snd_soc_dapm_line, .name = wname, .kcontrol_news = NULL, \
.num_kcontrols = 0, .reg = SND_SOC_NOPM, .event = wevent, \

Definition at line 68 of file soc-dapm.h.

#define SND_SOC_DAPM_MIC (   wname,
  wevent 
)
Value:
{ .id = snd_soc_dapm_mic, .name = wname, .kcontrol_news = NULL, \
.num_kcontrols = 0, .reg = SND_SOC_NOPM, .event = wevent, \

Definition at line 56 of file soc-dapm.h.

#define SND_SOC_DAPM_MICBIAS (   wname,
  wreg,
  wshift,
  winvert 
)
Value:
{ .id = snd_soc_dapm_micbias, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .kcontrol_news = NULL, .num_kcontrols = 0}

Definition at line 91 of file soc-dapm.h.

#define SND_SOC_DAPM_MIXER (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols,
  wncontrols 
)
Value:
{ .id = snd_soc_dapm_mixer, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .kcontrol_news = wcontrols, .num_kcontrols = wncontrols}

Definition at line 82 of file soc-dapm.h.

#define SND_SOC_DAPM_MIXER_E (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols,
  wncontrols,
  wevent,
  wflags 
)
Value:
{ .id = snd_soc_dapm_mixer, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .kcontrol_news = wcontrols, .num_kcontrols = wncontrols, \
.event = wevent, .event_flags = wflags}

Definition at line 134 of file soc-dapm.h.

#define SND_SOC_DAPM_MIXER_NAMED_CTL (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols,
  wncontrols 
)
Value:
{ .id = snd_soc_dapm_mixer_named_ctl, .name = wname, .reg = wreg, \
.shift = wshift, .invert = winvert, .kcontrol_news = wcontrols, \
.num_kcontrols = wncontrols}

Definition at line 86 of file soc-dapm.h.

#define SND_SOC_DAPM_MIXER_NAMED_CTL_E (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols,
  wncontrols,
  wevent,
  wflags 
)
Value:
{ .id = snd_soc_dapm_mixer, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .kcontrol_news = wcontrols, \
.num_kcontrols = wncontrols, .event = wevent, .event_flags = wflags}

Definition at line 139 of file soc-dapm.h.

#define SND_SOC_DAPM_MUX (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols 
)
Value:
{ .id = snd_soc_dapm_mux, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .kcontrol_news = wcontrols, .num_kcontrols = 1}

Definition at line 97 of file soc-dapm.h.

#define SND_SOC_DAPM_MUX_E (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols,
  wevent,
  wflags 
)
Value:
{ .id = snd_soc_dapm_mux, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .kcontrol_news = wcontrols, .num_kcontrols = 1, \
.event = wevent, .event_flags = wflags}

Definition at line 149 of file soc-dapm.h.

#define SND_SOC_DAPM_OUT_DRV (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols,
  wncontrols 
)
Value:
{ .id = snd_soc_dapm_out_drv, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .kcontrol_news = wcontrols, .num_kcontrols = wncontrols}

Definition at line 78 of file soc-dapm.h.

#define SND_SOC_DAPM_OUT_DRV_E (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols,
  wncontrols,
  wevent,
  wflags 
)
Value:
{ .id = snd_soc_dapm_out_drv, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .kcontrol_news = wcontrols, .num_kcontrols = wncontrols, \
.event = wevent, .event_flags = wflags}

Definition at line 129 of file soc-dapm.h.

#define SND_SOC_DAPM_OUTPUT (   wname)
Value:
{ .id = snd_soc_dapm_output, .name = wname, .kcontrol_news = NULL, \
.num_kcontrols = 0, .reg = SND_SOC_NOPM }

Definition at line 53 of file soc-dapm.h.

#define SND_SOC_DAPM_PGA (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols,
  wncontrols 
)
Value:
{ .id = snd_soc_dapm_pga, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .kcontrol_news = wcontrols, .num_kcontrols = wncontrols}

Definition at line 74 of file soc-dapm.h.

#define SND_SOC_DAPM_PGA_E (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols,
  wncontrols,
  wevent,
  wflags 
)
Value:
{ .id = snd_soc_dapm_pga, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .kcontrol_news = wcontrols, .num_kcontrols = wncontrols, \
.event = wevent, .event_flags = wflags}

Definition at line 124 of file soc-dapm.h.

#define SND_SOC_DAPM_PGA_S (   wname,
  wsubseq,
  wreg,
  wshift,
  winvert,
  wevent,
  wflags 
)
Value:
{ .id = snd_soc_dapm_pga, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .event = wevent, .event_flags = wflags, \
.subseq = wsubseq}

Definition at line 161 of file soc-dapm.h.

#define SND_SOC_DAPM_POST (   wname,
  wevent 
)
Value:
{ .id = snd_soc_dapm_post, .name = wname, .kcontrol_news = NULL, \
.num_kcontrols = 0, .reg = SND_SOC_NOPM, .event = wevent, \

Definition at line 194 of file soc-dapm.h.

#define SND_SOC_DAPM_POST_PMD   0x8 /* after widget power down */

Definition at line 311 of file soc-dapm.h.

#define SND_SOC_DAPM_POST_PMU   0x2 /* after widget power up */

Definition at line 309 of file soc-dapm.h.

#define SND_SOC_DAPM_POST_REG   0x20 /* after audio path setup */

Definition at line 313 of file soc-dapm.h.

#define SND_SOC_DAPM_PRE (   wname,
  wevent 
)
Value:
{ .id = snd_soc_dapm_pre, .name = wname, .kcontrol_news = NULL, \
.num_kcontrols = 0, .reg = SND_SOC_NOPM, .event = wevent, \

Definition at line 190 of file soc-dapm.h.

#define SND_SOC_DAPM_PRE_PMD   0x4 /* before widget power down */

Definition at line 310 of file soc-dapm.h.

#define SND_SOC_DAPM_PRE_PMU   0x1 /* before widget power up */

Definition at line 308 of file soc-dapm.h.

#define SND_SOC_DAPM_PRE_POST_PMD   (SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD)

Definition at line 314 of file soc-dapm.h.

#define SND_SOC_DAPM_PRE_REG   0x10 /* before audio path setup */

Definition at line 312 of file soc-dapm.h.

#define SND_SOC_DAPM_REG (   wid,
  wname,
  wreg,
  wshift,
  wmask,
  won_val,
  woff_val 
)
Value:
{ .id = wid, .name = wname, .kcontrol_news = NULL, .num_kcontrols = 0, \
.reg = -((wreg) + 1), .shift = wshift, .mask = wmask, \
.on_val = won_val, .off_val = woff_val, .event = dapm_reg_event, \

Definition at line 238 of file soc-dapm.h.

#define SND_SOC_DAPM_REGULATOR_BYPASS   0x1 /* bypass when disabled */

Definition at line 324 of file soc-dapm.h.

#define SND_SOC_DAPM_REGULATOR_SUPPLY (   wname,
  wdelay,
  wflags 
)
Value:
{ .id = snd_soc_dapm_regulator_supply, .name = wname, \
.reg = SND_SOC_NOPM, .shift = wdelay, .event = dapm_regulator_event, \
.invert = wflags}

Definition at line 247 of file soc-dapm.h.

#define SND_SOC_DAPM_SIGGEN (   wname)
Value:
{ .id = snd_soc_dapm_siggen, .name = wname, .kcontrol_news = NULL, \
.num_kcontrols = 0, .reg = SND_SOC_NOPM }

Definition at line 47 of file soc-dapm.h.

#define SND_SOC_DAPM_SPK (   wname,
  wevent 
)
Value:
{ .id = snd_soc_dapm_spk, .name = wname, .kcontrol_news = NULL, \
.num_kcontrols = 0, .reg = SND_SOC_NOPM, .event = wevent, \

Definition at line 64 of file soc-dapm.h.

#define SND_SOC_DAPM_STREAM_NOP   0x0

Definition at line 299 of file soc-dapm.h.

#define SND_SOC_DAPM_STREAM_PAUSE_PUSH   0x10

Definition at line 304 of file soc-dapm.h.

#define SND_SOC_DAPM_STREAM_PAUSE_RELEASE   0x20

Definition at line 305 of file soc-dapm.h.

#define SND_SOC_DAPM_STREAM_RESUME   0x8

Definition at line 303 of file soc-dapm.h.

#define SND_SOC_DAPM_STREAM_START   0x1

Definition at line 300 of file soc-dapm.h.

#define SND_SOC_DAPM_STREAM_STOP   0x2

Definition at line 301 of file soc-dapm.h.

#define SND_SOC_DAPM_STREAM_SUSPEND   0x4

Definition at line 302 of file soc-dapm.h.

#define SND_SOC_DAPM_SUPPLY (   wname,
  wreg,
  wshift,
  winvert,
  wevent,
  wflags 
)
Value:
{ .id = snd_soc_dapm_supply, .name = wname, .reg = wreg, \
.shift = wshift, .invert = winvert, .event = wevent, \
.event_flags = wflags}

Definition at line 243 of file soc-dapm.h.

#define SND_SOC_DAPM_SUPPLY_S (   wname,
  wsubseq,
  wreg,
  wshift,
  winvert,
  wevent,
  wflags 
)
Value:
{ .id = snd_soc_dapm_supply, .name = wname, .reg = wreg, \
.shift = wshift, .invert = winvert, .event = wevent, \
.event_flags = wflags, .subseq = wsubseq}

Definition at line 166 of file soc-dapm.h.

#define SND_SOC_DAPM_SWITCH (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols 
)
Value:
{ .id = snd_soc_dapm_switch, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .kcontrol_news = wcontrols, .num_kcontrols = 1}

Definition at line 94 of file soc-dapm.h.

#define SND_SOC_DAPM_SWITCH_E (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols,
  wevent,
  wflags 
)
Value:
{ .id = snd_soc_dapm_switch, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .kcontrol_news = wcontrols, .num_kcontrols = 1, \
.event = wevent, .event_flags = wflags}

Definition at line 144 of file soc-dapm.h.

#define SND_SOC_DAPM_VALUE_MUX (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols 
)
Value:
{ .id = snd_soc_dapm_value_mux, .name = wname, .reg = wreg, \
.shift = wshift, .invert = winvert, .kcontrol_news = wcontrols, \
.num_kcontrols = 1}

Definition at line 103 of file soc-dapm.h.

#define SND_SOC_DAPM_VIRT_MUX (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols 
)
Value:
{ .id = snd_soc_dapm_virt_mux, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .kcontrol_news = wcontrols, .num_kcontrols = 1}

Definition at line 100 of file soc-dapm.h.

#define SND_SOC_DAPM_VIRT_MUX_E (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols,
  wevent,
  wflags 
)
Value:
{ .id = snd_soc_dapm_virt_mux, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .kcontrol_news = wcontrols, .num_kcontrols = 1, \
.event = wevent, .event_flags = wflags}

Definition at line 154 of file soc-dapm.h.

#define SND_SOC_DAPM_VMID (   wname)
Value:
{ .id = snd_soc_dapm_vmid, .name = wname, .kcontrol_news = NULL, \
.num_kcontrols = 0}

Definition at line 42 of file soc-dapm.h.

#define SND_SOC_NOPM   -1

Definition at line 22 of file soc-dapm.h.

#define SOC_DAPM_ENUM (   xname,
  xenum 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.private_value = (unsigned long)&xenum }

Definition at line 267 of file soc-dapm.h.

#define SOC_DAPM_ENUM_EXT (   xname,
  xenum,
  xget,
  xput 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.get = xget, \
.put = xput, \
.private_value = (unsigned long)&xenum }

Definition at line 279 of file soc-dapm.h.

#define SOC_DAPM_ENUM_VIRT (   xname,
  xenum 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.private_value = (unsigned long)&xenum }

Definition at line 273 of file soc-dapm.h.

#define SOC_DAPM_PIN_SWITCH (   xname)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname " Switch", \
.private_value = (unsigned long)xname }

Definition at line 291 of file soc-dapm.h.

#define SOC_DAPM_SINGLE (   xname,
  reg,
  shift,
  max,
  invert 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.info = snd_soc_info_volsw, \
.private_value = SOC_SINGLE_VALUE(reg, shift, max, invert) }

Definition at line 255 of file soc-dapm.h.

#define SOC_DAPM_SINGLE_TLV (   xname,
  reg,
  shift,
  max,
  invert,
  tlv_array 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.info = snd_soc_info_volsw, \
.tlv.p = (tlv_array), \
.private_value = SOC_SINGLE_VALUE(reg, shift, max, invert) }

Definition at line 260 of file soc-dapm.h.

#define SOC_DAPM_VALUE_ENUM (   xname,
  xenum 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.private_value = (unsigned long)&xenum }

Definition at line 285 of file soc-dapm.h.

#define SOC_MIXER_ARRAY (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols 
)
Value:
{ .id = snd_soc_dapm_mixer, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .kcontrol_news = wcontrols, .num_kcontrols = ARRAY_SIZE(wcontrols)}

Definition at line 113 of file soc-dapm.h.

#define SOC_MIXER_E_ARRAY (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols,
  wevent,
  wflags 
)
Value:
{ .id = snd_soc_dapm_mixer, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .kcontrol_news = wcontrols, .num_kcontrols = ARRAY_SIZE(wcontrols), \
.event = wevent, .event_flags = wflags}

Definition at line 178 of file soc-dapm.h.

#define SOC_MIXER_NAMED_CTL_ARRAY (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols 
)
Value:
{ .id = snd_soc_dapm_mixer_named_ctl, .name = wname, .reg = wreg, \
.shift = wshift, .invert = winvert, .kcontrol_news = wcontrols, \
.num_kcontrols = ARRAY_SIZE(wcontrols)}

Definition at line 117 of file soc-dapm.h.

#define SOC_MIXER_NAMED_CTL_E_ARRAY (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols,
  wevent,
  wflags 
)
Value:
{ .id = snd_soc_dapm_mixer, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .kcontrol_news = wcontrols, \
.num_kcontrols = ARRAY_SIZE(wcontrols), .event = wevent, .event_flags = wflags}

Definition at line 183 of file soc-dapm.h.

#define SOC_PGA_ARRAY (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols 
)
Value:
{ .id = snd_soc_dapm_pga, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .kcontrol_news = wcontrols, .num_kcontrols = ARRAY_SIZE(wcontrols)}

Definition at line 109 of file soc-dapm.h.

#define SOC_PGA_E_ARRAY (   wname,
  wreg,
  wshift,
  winvert,
  wcontrols,
  wevent,
  wflags 
)
Value:
{ .id = snd_soc_dapm_pga, .name = wname, .reg = wreg, .shift = wshift, \
.invert = winvert, .kcontrol_news = wcontrols, .num_kcontrols = ARRAY_SIZE(wcontrols), \
.event = wevent, .event_flags = wflags}

Definition at line 173 of file soc-dapm.h.

Enumeration Type Documentation

Enumerator:
SND_SOC_DAPM_CLASS_INIT 
SND_SOC_DAPM_CLASS_RUNTIME 

Definition at line 457 of file soc-dapm.h.

Enumerator:
snd_soc_dapm_input 
snd_soc_dapm_output 
snd_soc_dapm_mux 
snd_soc_dapm_virt_mux 
snd_soc_dapm_value_mux 
snd_soc_dapm_mixer 
snd_soc_dapm_mixer_named_ctl 
snd_soc_dapm_pga 
snd_soc_dapm_out_drv 
snd_soc_dapm_adc 
snd_soc_dapm_dac 
snd_soc_dapm_micbias 
snd_soc_dapm_mic 
snd_soc_dapm_hp 
snd_soc_dapm_spk 
snd_soc_dapm_line 
snd_soc_dapm_switch 
snd_soc_dapm_vmid 
snd_soc_dapm_pre 
snd_soc_dapm_post 
snd_soc_dapm_supply 
snd_soc_dapm_regulator_supply 
snd_soc_dapm_clock_supply 
snd_soc_dapm_aif_in 
snd_soc_dapm_aif_out 
snd_soc_dapm_siggen 
snd_soc_dapm_dai 
snd_soc_dapm_dai_link 

Definition at line 426 of file soc-dapm.h.

Function Documentation

int dapm_clock_event ( struct snd_soc_dapm_widget w,
struct snd_kcontrol kcontrol,
int  event 
)

Definition at line 1049 of file soc-dapm.c.

void dapm_mark_dirty ( struct snd_soc_dapm_widget w,
const char reason 
)

Definition at line 134 of file soc-dapm.c.

void dapm_mark_io_dirty ( struct snd_soc_dapm_context dapm)

Definition at line 144 of file soc-dapm.c.

int dapm_reg_event ( struct snd_soc_dapm_widget w,
struct snd_kcontrol kcontrol,
int  event 
)

Definition at line 997 of file soc-dapm.c.

int dapm_regulator_event ( struct snd_soc_dapm_widget w,
struct snd_kcontrol kcontrol,
int  event 
)

Definition at line 1017 of file soc-dapm.c.

int snd_soc_dapm_add_routes ( struct snd_soc_dapm_context dapm,
const struct snd_soc_dapm_route route,
int  num 
)

snd_soc_dapm_add_routes - Add routes between DAPM widgets : DAPM context : audio routes : number of routes

Connects 2 dapm widgets together via a named audio path. The sink is the widget receiving the audio signal, whilst the source is the sender of the audio signal.

Returns 0 for success else error. On error all resources can be freed with a call to snd_soc_card_free().

Definition at line 2383 of file soc-dapm.c.

void snd_soc_dapm_auto_nc_codec_pins ( struct snd_soc_codec codec)

snd_soc_dapm_auto_nc_codec_pins - call snd_soc_dapm_nc_pin for unused pins : The codec whose pins should be processed

Automatically call snd_soc_dapm_nc_pin() for any external pins in the codec which are unused. Pins are used if they are connected externally to the codec, whether that be to some other device, or a loop-back connection to the codec itself.

Definition at line 3661 of file soc-dapm.c.

int snd_soc_dapm_dai_get_connected_widgets ( struct snd_soc_dai dai,
int  stream,
struct snd_soc_dapm_widget_list **  list 
)

snd_soc_dapm_get_connected_widgets - query audio path and it's widgets. : the soc DAI. : stream direction. : list of active widgets for this stream.

Queries DAPM graph as to whether an valid audio stream path exists for the initial stream specified by name. This takes into account current mixer and mux kcontrol settings. Creates list of valid widgets.

Returns the number of valid paths or negative error.

Definition at line 973 of file soc-dapm.c.

void snd_soc_dapm_debugfs_init ( struct snd_soc_dapm_context dapm,
struct dentry parent 
)

Definition at line 1876 of file soc-dapm.c.

int snd_soc_dapm_del_routes ( struct snd_soc_dapm_context dapm,
const struct snd_soc_dapm_route route,
int  num 
)

snd_soc_dapm_del_routes - Remove routes between DAPM widgets : DAPM context : audio routes : number of routes

Removes routes from the DAPM context.

Definition at line 2412 of file soc-dapm.c.

int snd_soc_dapm_disable_pin ( struct snd_soc_dapm_context dapm,
const char pin 
)

snd_soc_dapm_disable_pin - disable pin. : DAPM context : pin name

Disables input/output pin and its parents or children widgets. NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to do any widget power switching.

Definition at line 3543 of file soc-dapm.c.

int snd_soc_dapm_enable_pin ( struct snd_soc_dapm_context dapm,
const char pin 
)

snd_soc_dapm_enable_pin - enable pin. : DAPM context : pin name

Enables input/output pin and its parents or children widgets iff there is a valid audio route and active audio stream. NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to do any widget power switching.

Definition at line 3497 of file soc-dapm.c.

int snd_soc_dapm_force_enable_pin ( struct snd_soc_dapm_context dapm,
const char pin 
)

snd_soc_dapm_force_enable_pin - force a pin to be enabled : DAPM context : pin name

Enables input/output pin regardless of any other state. This is intended for use with microphone bias supplies used in microphone jack detection.

NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to do any widget power switching.

Definition at line 3515 of file soc-dapm.c.

void snd_soc_dapm_free ( struct snd_soc_dapm_context dapm)

snd_soc_dapm_free - free dapm resources : DAPM context

Free all dapm widgets and resources.

Definition at line 3697 of file soc-dapm.c.

int snd_soc_dapm_get_enum_double ( struct snd_kcontrol kcontrol,
struct snd_ctl_elem_value ucontrol 
)

snd_soc_dapm_get_enum_double - dapm enumerated double mixer get callback : mixer control : control element information

Callback to get the value of a dapm enumerated double mixer control.

Returns 0 for success.

Definition at line 2694 of file soc-dapm.c.

int snd_soc_dapm_get_enum_virt ( struct snd_kcontrol kcontrol,
struct snd_ctl_elem_value ucontrol 
)

snd_soc_dapm_get_enum_virt - Get virtual DAPM mux : mixer control : control element information

Returns 0 for success.

Definition at line 2780 of file soc-dapm.c.

int snd_soc_dapm_get_pin_status ( struct snd_soc_dapm_context dapm,
const char pin 
)

snd_soc_dapm_get_pin_status - get audio pin status : DAPM context : audio signal pin endpoint (or start point)

Get audio pin status - connected or disconnected.

Returns 1 for connected otherwise 0.

Definition at line 3579 of file soc-dapm.c.

int snd_soc_dapm_get_pin_switch ( struct snd_kcontrol kcontrol,
struct snd_ctl_elem_value ucontrol 
)

snd_soc_dapm_get_pin_switch - Get information for a pin switch

: mixer control : Value

Definition at line 2965 of file soc-dapm.c.

int snd_soc_dapm_get_value_enum_double ( struct snd_kcontrol kcontrol,
struct snd_ctl_elem_value ucontrol 
)

snd_soc_dapm_get_value_enum_double - dapm semi enumerated double mixer get callback : mixer control : control element information

Callback to get the value of a dapm semi enumerated double mixer control.

Semi enumerated mixer: the enumerated items are referred as values. Can be used for handling bitfield coded enumeration for example.

Returns 0 for success.

Definition at line 2846 of file soc-dapm.c.

int snd_soc_dapm_get_volsw ( struct snd_kcontrol kcontrol,
struct snd_ctl_elem_value ucontrol 
)

snd_soc_dapm_get_volsw - dapm mixer get callback : mixer control : control element information

Callback to get the value of a dapm mixer control.

Returns 0 for success.

Definition at line 2589 of file soc-dapm.c.

int snd_soc_dapm_ignore_suspend ( struct snd_soc_dapm_context dapm,
const char pin 
)

snd_soc_dapm_ignore_suspend - ignore suspend status for DAPM endpoint : DAPM context : audio signal pin endpoint (or start point)

Mark the given endpoint or pin as ignoring suspend. When the system is disabled a path between two endpoints flagged as ignoring suspend will not be disabled. The path must already be enabled via normal means at suspend time, it will not be turned on if it was not already enabled.

Definition at line 3602 of file soc-dapm.c.

int snd_soc_dapm_info_pin_switch ( struct snd_kcontrol kcontrol,
struct snd_ctl_elem_info uinfo 
)

snd_soc_dapm_info_pin_switch - Info for a pin switch

: mixer control : control element information

Callback to provide information about a pin switch control.

Definition at line 2947 of file soc-dapm.c.

int snd_soc_dapm_link_dai_widgets ( struct snd_soc_card card)

Definition at line 3356 of file soc-dapm.c.

int snd_soc_dapm_mixer_update_power ( struct snd_soc_dapm_widget widget,
struct snd_kcontrol kcontrol,
int  connect 
)

Definition at line 1978 of file soc-dapm.c.

int snd_soc_dapm_mux_update_power ( struct snd_soc_dapm_widget widget,
struct snd_kcontrol kcontrol,
int  mux,
struct soc_enum e 
)

Definition at line 1932 of file soc-dapm.c.

int snd_soc_dapm_nc_pin ( struct snd_soc_dapm_context dapm,
const char pin 
)

snd_soc_dapm_nc_pin - permanently disable pin. : DAPM context : pin name

Marks the specified pin as being not connected, disabling it along any parent or child widgets. At present this is identical to snd_soc_dapm_disable_pin() but in future it will be extended to do additional things such as disabling controls which only affect paths through the pin.

NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to do any widget power switching.

Definition at line 3564 of file soc-dapm.c.

int snd_soc_dapm_new_controls ( struct snd_soc_dapm_context dapm,
const struct snd_soc_dapm_widget widget,
int  num 
)

snd_soc_dapm_new_controls - create new dapm controls : DAPM context : widget array : number of widgets

Creates new DAPM controls based upon the templates.

Returns 0 for success else error.

Definition at line 3129 of file soc-dapm.c.

int snd_soc_dapm_new_dai_widgets ( struct snd_soc_dapm_context dapm,
struct snd_soc_dai dai 
)

Definition at line 3306 of file soc-dapm.c.

int snd_soc_dapm_new_pcm ( struct snd_soc_card card,
const struct snd_soc_pcm_stream params,
struct snd_soc_dapm_widget source,
struct snd_soc_dapm_widget sink 
)

Definition at line 3259 of file soc-dapm.c.

int snd_soc_dapm_new_widgets ( struct snd_soc_dapm_context dapm)

snd_soc_dapm_new_widgets - add new dapm widgets : DAPM context

Checks the codec for any new dapm widgets and creates them if found.

Returns 0 for success.

Definition at line 2516 of file soc-dapm.c.

int snd_soc_dapm_put_enum_double ( struct snd_kcontrol kcontrol,
struct snd_ctl_elem_value ucontrol 
)

snd_soc_dapm_put_enum_double - dapm enumerated double mixer set callback : mixer control : control element information

Callback to set the value of a dapm enumerated double mixer control.

Returns 0 for success.

Definition at line 2721 of file soc-dapm.c.

int snd_soc_dapm_put_enum_virt ( struct snd_kcontrol kcontrol,
struct snd_ctl_elem_value ucontrol 
)

snd_soc_dapm_put_enum_virt - Set virtual DAPM mux : mixer control : control element information

Returns 0 for success.

Definition at line 2799 of file soc-dapm.c.

int snd_soc_dapm_put_pin_switch ( struct snd_kcontrol kcontrol,
struct snd_ctl_elem_value ucontrol 
)

snd_soc_dapm_put_pin_switch - Set information for a pin switch

: mixer control : Value

Definition at line 2988 of file soc-dapm.c.

int snd_soc_dapm_put_value_enum_double ( struct snd_kcontrol kcontrol,
struct snd_ctl_elem_value ucontrol 
)

snd_soc_dapm_put_value_enum_double - dapm semi enumerated double mixer set callback : mixer control : control element information

Callback to set the value of a dapm semi enumerated double mixer control.

Semi enumerated mixer: the enumerated items are referred as values. Can be used for handling bitfield coded enumeration for example.

Returns 0 for success.

Definition at line 2887 of file soc-dapm.c.

int snd_soc_dapm_put_volsw ( struct snd_kcontrol kcontrol,
struct snd_ctl_elem_value ucontrol 
)

snd_soc_dapm_put_volsw - dapm mixer set callback : mixer control : control element information

Callback to set the value of a dapm mixer control.

Returns 0 for success.

Definition at line 2626 of file soc-dapm.c.

void snd_soc_dapm_shutdown ( struct snd_soc_card card)

Definition at line 3744 of file soc-dapm.c.

void snd_soc_dapm_stream_event ( struct snd_soc_pcm_runtime rtd,
int  stream,
int  event 
)

snd_soc_dapm_stream_event - send a stream event to the dapm core : PCM runtime data : stream name : stream event

Sends a stream event to the dapm core. The core then makes any necessary widget power changes.

Returns 0 for success else error.

Definition at line 3477 of file soc-dapm.c.

int snd_soc_dapm_sync ( struct snd_soc_dapm_context dapm)

snd_soc_dapm_sync - scan and power dapm paths : DAPM context

Walks all dapm audio paths and powers widgets according to their stream or path usage.

Returns 0 for success.

Definition at line 2149 of file soc-dapm.c.

int snd_soc_dapm_sys_add ( struct device dev)

Definition at line 2053 of file soc-dapm.c.

int snd_soc_dapm_weak_routes ( struct snd_soc_dapm_context dapm,
const struct snd_soc_dapm_route route,
int  num 
)

snd_soc_dapm_weak_routes - Mark routes between DAPM widgets as weak : DAPM context : audio routes : number of routes

Mark existing routes matching those specified in the passed array as being weak, meaning that they are ignored for the purpose of power decisions. The main intended use case is for sidetone paths which couple audio between other independent paths if they are both active in order to make the combination work better at the user level but which aren't intended to be "used".

Note that CODEC drivers should not use this as sidetone type paths can frequently also be used as bypass paths.

Definition at line 2489 of file soc-dapm.c.