Home
last modified time | relevance | path

Searched refs:dapm (Results 1 – 138 of 138) sorted by relevance

/linux-4.4.14/sound/soc/intel/boards/
Dmfld_machine.c105 struct snd_soc_dapm_context *dapm = &card->dapm; in headset_set_switch() local
110 snd_soc_dapm_mutex_lock(dapm); in headset_set_switch()
114 snd_soc_dapm_enable_pin_unlocked(dapm, "Headphones"); in headset_set_switch()
115 snd_soc_dapm_disable_pin_unlocked(dapm, "EPOUT"); in headset_set_switch()
118 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphones"); in headset_set_switch()
119 snd_soc_dapm_enable_pin_unlocked(dapm, "EPOUT"); in headset_set_switch()
122 snd_soc_dapm_sync_unlocked(dapm); in headset_set_switch()
124 snd_soc_dapm_mutex_unlock(dapm); in headset_set_switch()
131 static void lo_enable_out_pins(struct snd_soc_dapm_context *dapm) in lo_enable_out_pins() argument
133 snd_soc_dapm_enable_pin_unlocked(dapm, "IHFOUTL"); in lo_enable_out_pins()
[all …]
Dcht_bsw_max98090_ti.c108 struct snd_soc_dapm_context *dapm = &jack->card->dapm; in cht_ti_jack_event() local
111 snd_soc_dapm_force_enable_pin(dapm, "SHDN"); in cht_ti_jack_event()
112 snd_soc_dapm_force_enable_pin(dapm, "MICBIAS"); in cht_ti_jack_event()
113 snd_soc_dapm_sync(dapm); in cht_ti_jack_event()
115 snd_soc_dapm_disable_pin(dapm, "MICBIAS"); in cht_ti_jack_event()
116 snd_soc_dapm_disable_pin(dapm, "SHDN"); in cht_ti_jack_event()
117 snd_soc_dapm_sync(dapm); in cht_ti_jack_event()
Dbyt-rt5640.c139 card->dapm.idle_bias_off = true; in byt_rt5640_init()
163 ret = snd_soc_dapm_add_routes(&card->dapm, custom_map, num_routes); in byt_rt5640_init()
173 snd_soc_dapm_ignore_suspend(&card->dapm, "Headphone"); in byt_rt5640_init()
174 snd_soc_dapm_ignore_suspend(&card->dapm, "Speaker"); in byt_rt5640_init()
Dcht_bsw_rt5672.c65 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control() local
66 struct snd_soc_card *card = dapm->card; in platform_clock_control()
Dcht_bsw_rt5645.c66 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control() local
67 struct snd_soc_card *card = dapm->card; in platform_clock_control()
Dbyt-max98090.c91 card->dapm.idle_bias_off = true; in byt_max98090_init()
/linux-4.4.14/sound/soc/
Dsoc-dapm.c48 #define DAPM_UPDATE_STAT(widget, val) widget->dapm->card->dapm_stats.val++;
57 static int snd_soc_dapm_add_path(struct snd_soc_dapm_context *dapm,
64 snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm,
68 snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm,
128 static void dapm_assert_locked(struct snd_soc_dapm_context *dapm) in dapm_assert_locked() argument
130 if (dapm->card && dapm->card->instantiated) in dapm_assert_locked()
131 lockdep_assert_held(&dapm->card->dapm_mutex); in dapm_assert_locked()
167 dapm_assert_locked(w->dapm); in dapm_mark_dirty()
170 dev_vdbg(w->dapm->dev, "Marking %s dirty due to %s\n", in dapm_mark_dirty()
172 list_add_tail(&w->dirty, &w->dapm->card->dapm_dirty); in dapm_mark_dirty()
[all …]
Dsoc-core.c653 snd_soc_dapm_sync(&card->dapm); in snd_soc_suspend()
657 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in snd_soc_suspend() local
662 switch (snd_soc_dapm_get_bias_level(dapm)) { in snd_soc_suspend()
670 if (dapm->idle_bias_off) { in snd_soc_suspend()
800 snd_soc_dapm_sync(&card->dapm); in soc_resume_deferred()
1103 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in soc_probe_component() local
1124 dapm->card = card; in soc_probe_component()
1130 ret = snd_soc_dapm_new_controls(dapm, component->dapm_widgets, in soc_probe_component()
1141 ret = snd_soc_dapm_new_dai_widgets(dapm, dai); in soc_probe_component()
1157 WARN(dapm->idle_bias_off && in soc_probe_component()
[all …]
Dsoc-jack.c78 struct snd_soc_dapm_context *dapm; in snd_soc_jack_report() local
88 dapm = &jack->card->dapm; in snd_soc_jack_report()
104 snd_soc_dapm_enable_pin(dapm, pin->pin); in snd_soc_jack_report()
106 snd_soc_dapm_disable_pin(dapm, pin->pin); in snd_soc_jack_report()
116 snd_soc_dapm_sync(dapm); in snd_soc_jack_report()
Dsoc-topology.c84 snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm,
87 snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm,
1072 struct snd_soc_dapm_context *dapm = &tplg->comp->dapm; in soc_tplg_dapm_graph_elems_load() local
1117 snd_soc_dapm_add_routes(dapm, &route, 1); in soc_tplg_dapm_graph_elems_load()
1373 struct snd_soc_dapm_context *dapm = &tplg->comp->dapm; in soc_tplg_dapm_widget_create() local
1481 widget = snd_soc_dapm_new_control(dapm, &template); in soc_tplg_dapm_widget_create()
1483 widget = snd_soc_dapm_new_control_unlocked(dapm, &template); in soc_tplg_dapm_widget_create()
1784 remove_widget(w->dapm->component, &w->dobj, SOC_TPLG_PASS_WIDGET); in snd_soc_tplg_widget_remove()
1789 void snd_soc_tplg_widget_remove_all(struct snd_soc_dapm_context *dapm, in snd_soc_tplg_widget_remove_all() argument
1794 list_for_each_entry_safe(w, next_w, &dapm->card->widgets, list) { in snd_soc_tplg_widget_remove_all()
[all …]
DMakefile1 snd-soc-core-objs := soc-core.o soc-dapm.o soc-jack.o soc-cache.o soc-utils.o
/linux-4.4.14/sound/soc/pxa/
Dspitz.c47 static void spitz_ext_control(struct snd_soc_dapm_context *dapm) in spitz_ext_control() argument
49 snd_soc_dapm_mutex_lock(dapm); in spitz_ext_control()
52 snd_soc_dapm_enable_pin_unlocked(dapm, "Ext Spk"); in spitz_ext_control()
54 snd_soc_dapm_disable_pin_unlocked(dapm, "Ext Spk"); in spitz_ext_control()
60 snd_soc_dapm_disable_pin_unlocked(dapm, "Headset Jack"); in spitz_ext_control()
61 snd_soc_dapm_disable_pin_unlocked(dapm, "Mic Jack"); in spitz_ext_control()
62 snd_soc_dapm_disable_pin_unlocked(dapm, "Line Jack"); in spitz_ext_control()
63 snd_soc_dapm_enable_pin_unlocked(dapm, "Headphone Jack"); in spitz_ext_control()
69 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in spitz_ext_control()
70 snd_soc_dapm_disable_pin_unlocked(dapm, "Headset Jack"); in spitz_ext_control()
[all …]
Dcorgi.c48 static void corgi_ext_control(struct snd_soc_dapm_context *dapm) in corgi_ext_control() argument
50 snd_soc_dapm_mutex_lock(dapm); in corgi_ext_control()
58 snd_soc_dapm_disable_pin_unlocked(dapm, "Mic Jack"); in corgi_ext_control()
59 snd_soc_dapm_disable_pin_unlocked(dapm, "Line Jack"); in corgi_ext_control()
60 snd_soc_dapm_enable_pin_unlocked(dapm, "Headphone Jack"); in corgi_ext_control()
61 snd_soc_dapm_disable_pin_unlocked(dapm, "Headset Jack"); in corgi_ext_control()
67 snd_soc_dapm_enable_pin_unlocked(dapm, "Mic Jack"); in corgi_ext_control()
68 snd_soc_dapm_disable_pin_unlocked(dapm, "Line Jack"); in corgi_ext_control()
69 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in corgi_ext_control()
70 snd_soc_dapm_disable_pin_unlocked(dapm, "Headset Jack"); in corgi_ext_control()
[all …]
Dtosa.c47 static void tosa_ext_control(struct snd_soc_dapm_context *dapm) in tosa_ext_control() argument
50 snd_soc_dapm_mutex_lock(dapm); in tosa_ext_control()
55 snd_soc_dapm_disable_pin_unlocked(dapm, "Mic (Internal)"); in tosa_ext_control()
56 snd_soc_dapm_enable_pin_unlocked(dapm, "Headphone Jack"); in tosa_ext_control()
57 snd_soc_dapm_disable_pin_unlocked(dapm, "Headset Jack"); in tosa_ext_control()
60 snd_soc_dapm_enable_pin_unlocked(dapm, "Mic (Internal)"); in tosa_ext_control()
61 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in tosa_ext_control()
62 snd_soc_dapm_disable_pin_unlocked(dapm, "Headset Jack"); in tosa_ext_control()
65 snd_soc_dapm_disable_pin_unlocked(dapm, "Mic (Internal)"); in tosa_ext_control()
66 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in tosa_ext_control()
[all …]
Dmagician.c44 static void magician_ext_control(struct snd_soc_dapm_context *dapm) in magician_ext_control() argument
47 snd_soc_dapm_mutex_lock(dapm); in magician_ext_control()
50 snd_soc_dapm_enable_pin_unlocked(dapm, "Speaker"); in magician_ext_control()
52 snd_soc_dapm_disable_pin_unlocked(dapm, "Speaker"); in magician_ext_control()
54 snd_soc_dapm_enable_pin_unlocked(dapm, "Headphone Jack"); in magician_ext_control()
56 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in magician_ext_control()
60 snd_soc_dapm_disable_pin_unlocked(dapm, "Headset Mic"); in magician_ext_control()
61 snd_soc_dapm_enable_pin_unlocked(dapm, "Call Mic"); in magician_ext_control()
64 snd_soc_dapm_disable_pin_unlocked(dapm, "Call Mic"); in magician_ext_control()
65 snd_soc_dapm_enable_pin_unlocked(dapm, "Headset Mic"); in magician_ext_control()
[all …]
Dpoodle.c46 static void poodle_ext_control(struct snd_soc_dapm_context *dapm) in poodle_ext_control() argument
55 snd_soc_dapm_enable_pin(dapm, "Headphone Jack"); in poodle_ext_control()
61 snd_soc_dapm_disable_pin(dapm, "Headphone Jack"); in poodle_ext_control()
66 snd_soc_dapm_enable_pin(dapm, "Ext Spk"); in poodle_ext_control()
68 snd_soc_dapm_disable_pin(dapm, "Ext Spk"); in poodle_ext_control()
71 snd_soc_dapm_sync(dapm); in poodle_ext_control()
79 poodle_ext_control(&rtd->card->dapm); in poodle_startup()
154 poodle_ext_control(&card->dapm); in poodle_set_jack()
174 poodle_ext_control(&card->dapm); in poodle_set_spk()
Dmioa701_wm9713.c84 struct snd_soc_codec *codec = widget->dapm->card->rtd[0].codec; in rear_amp_event()
/linux-4.4.14/sound/soc/omap/
Dams-delta.c102 struct snd_soc_dapm_context *dapm = &card->dapm; in ams_delta_set_audio_mode() local
114 snd_soc_dapm_mutex_lock(dapm); in ams_delta_set_audio_mode()
122 if (pin != snd_soc_dapm_get_pin_status(dapm, "Mouthpiece")) { in ams_delta_set_audio_mode()
125 snd_soc_dapm_enable_pin_unlocked(dapm, "Mouthpiece"); in ams_delta_set_audio_mode()
127 snd_soc_dapm_disable_pin_unlocked(dapm, "Mouthpiece"); in ams_delta_set_audio_mode()
130 if (pin != snd_soc_dapm_get_pin_status(dapm, "Earpiece")) { in ams_delta_set_audio_mode()
133 snd_soc_dapm_enable_pin_unlocked(dapm, "Earpiece"); in ams_delta_set_audio_mode()
135 snd_soc_dapm_disable_pin_unlocked(dapm, "Earpiece"); in ams_delta_set_audio_mode()
138 if (pin != snd_soc_dapm_get_pin_status(dapm, "Microphone")) { in ams_delta_set_audio_mode()
141 snd_soc_dapm_enable_pin_unlocked(dapm, "Microphone"); in ams_delta_set_audio_mode()
[all …]
Domap3pandora.c91 dev_err(w->dapm->dev, "Failed to power DAC: %d\n", ret); in omap3pandora_dac_event()
157 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in omap3pandora_out_init() local
160 snd_soc_dapm_nc_pin(dapm, "EARPIECE"); in omap3pandora_out_init()
161 snd_soc_dapm_nc_pin(dapm, "PREDRIVEL"); in omap3pandora_out_init()
162 snd_soc_dapm_nc_pin(dapm, "PREDRIVER"); in omap3pandora_out_init()
163 snd_soc_dapm_nc_pin(dapm, "HSOL"); in omap3pandora_out_init()
164 snd_soc_dapm_nc_pin(dapm, "HSOR"); in omap3pandora_out_init()
165 snd_soc_dapm_nc_pin(dapm, "CARKITL"); in omap3pandora_out_init()
166 snd_soc_dapm_nc_pin(dapm, "CARKITR"); in omap3pandora_out_init()
167 snd_soc_dapm_nc_pin(dapm, "HFL"); in omap3pandora_out_init()
[all …]
Dn810.c56 static void n810_ext_control(struct snd_soc_dapm_context *dapm) in n810_ext_control() argument
71 snd_soc_dapm_mutex_lock(dapm); in n810_ext_control()
74 snd_soc_dapm_enable_pin_unlocked(dapm, "Ext Spk"); in n810_ext_control()
76 snd_soc_dapm_disable_pin_unlocked(dapm, "Ext Spk"); in n810_ext_control()
79 snd_soc_dapm_enable_pin_unlocked(dapm, "Headphone Jack"); in n810_ext_control()
81 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in n810_ext_control()
83 snd_soc_dapm_enable_pin_unlocked(dapm, "LINE1L"); in n810_ext_control()
85 snd_soc_dapm_disable_pin_unlocked(dapm, "LINE1L"); in n810_ext_control()
88 snd_soc_dapm_enable_pin_unlocked(dapm, "DMic"); in n810_ext_control()
90 snd_soc_dapm_disable_pin_unlocked(dapm, "DMic"); in n810_ext_control()
[all …]
Domap-twl4030.c153 static inline void twl4030_disconnect_pin(struct snd_soc_dapm_context *dapm, in twl4030_disconnect_pin() argument
157 snd_soc_dapm_disable_pin(dapm, pin); in twl4030_disconnect_pin()
163 struct snd_soc_dapm_context *dapm = &card->dapm; in omap_twl4030_init() local
194 twl4030_disconnect_pin(dapm, pdata->has_ear, "Earpiece Spk"); in omap_twl4030_init()
195 twl4030_disconnect_pin(dapm, pdata->has_hf, "Handsfree Spk"); in omap_twl4030_init()
196 twl4030_disconnect_pin(dapm, pdata->has_hs, "Headset Stereophone"); in omap_twl4030_init()
197 twl4030_disconnect_pin(dapm, pdata->has_predriv, "Ext Spk"); in omap_twl4030_init()
198 twl4030_disconnect_pin(dapm, pdata->has_carkit, "Carkit Spk"); in omap_twl4030_init()
200 twl4030_disconnect_pin(dapm, pdata->has_mainmic, "Main Mic"); in omap_twl4030_init()
201 twl4030_disconnect_pin(dapm, pdata->has_submic, "Sub Mic"); in omap_twl4030_init()
[all …]
Drx51.c60 static void rx51_ext_control(struct snd_soc_dapm_context *dapm) in rx51_ext_control() argument
62 struct snd_soc_card *card = dapm->card; in rx51_ext_control()
78 snd_soc_dapm_mutex_lock(dapm); in rx51_ext_control()
81 snd_soc_dapm_enable_pin_unlocked(dapm, "Ext Spk"); in rx51_ext_control()
83 snd_soc_dapm_disable_pin_unlocked(dapm, "Ext Spk"); in rx51_ext_control()
85 snd_soc_dapm_enable_pin_unlocked(dapm, "DMic"); in rx51_ext_control()
87 snd_soc_dapm_disable_pin_unlocked(dapm, "DMic"); in rx51_ext_control()
89 snd_soc_dapm_enable_pin_unlocked(dapm, "Headphone Jack"); in rx51_ext_control()
91 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in rx51_ext_control()
93 snd_soc_dapm_enable_pin_unlocked(dapm, "HS Mic"); in rx51_ext_control()
[all …]
Domap-abe-twl6040.c205 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in omap_abe_dmic_init() local
207 return snd_soc_dapm_add_routes(dapm, dmic_audio_map, in omap_abe_dmic_init()
/linux-4.4.14/sound/soc/samsung/
Dsmdk_wm8994.c89 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in smdk_wm8994_init_paiftx() local
92 snd_soc_dapm_nc_pin(dapm, "HPOUT2P"); in smdk_wm8994_init_paiftx()
93 snd_soc_dapm_nc_pin(dapm, "HPOUT2N"); in smdk_wm8994_init_paiftx()
94 snd_soc_dapm_nc_pin(dapm, "SPKOUTLN"); in smdk_wm8994_init_paiftx()
95 snd_soc_dapm_nc_pin(dapm, "SPKOUTLP"); in smdk_wm8994_init_paiftx()
96 snd_soc_dapm_nc_pin(dapm, "SPKOUTRP"); in smdk_wm8994_init_paiftx()
97 snd_soc_dapm_nc_pin(dapm, "SPKOUTRN"); in smdk_wm8994_init_paiftx()
98 snd_soc_dapm_nc_pin(dapm, "LINEOUT1N"); in smdk_wm8994_init_paiftx()
99 snd_soc_dapm_nc_pin(dapm, "LINEOUT1P"); in smdk_wm8994_init_paiftx()
100 snd_soc_dapm_nc_pin(dapm, "LINEOUT2N"); in smdk_wm8994_init_paiftx()
[all …]
Dspeyside.c25 struct snd_soc_dapm_context *dapm, in speyside_set_bias_level() argument
31 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level()
57 struct snd_soc_dapm_context *dapm, in speyside_set_bias_level_post() argument
63 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level_post()
68 if (card->dapm.bias_level == SND_SOC_BIAS_STANDBY) { in speyside_set_bias_level_post()
90 card->dapm.bias_level = level; in speyside_set_bias_level_post()
170 snd_soc_dapm_ignore_suspend(&card->dapm, "Headphone"); in speyside_late_probe()
171 snd_soc_dapm_ignore_suspend(&card->dapm, "Headset Mic"); in speyside_late_probe()
172 snd_soc_dapm_ignore_suspend(&card->dapm, "Main AMIC"); in speyside_late_probe()
173 snd_soc_dapm_ignore_suspend(&card->dapm, "Main DMIC"); in speyside_late_probe()
[all …]
Dneo1973_wm8753.c256 snd_soc_dapm_disable_pin(&card->dapm, "GSM Line Out"); in neo1973_wm8753_init()
257 snd_soc_dapm_disable_pin(&card->dapm, "GSM Line In"); in neo1973_wm8753_init()
258 snd_soc_dapm_disable_pin(&card->dapm, "Headset Mic"); in neo1973_wm8753_init()
259 snd_soc_dapm_disable_pin(&card->dapm, "Handset Mic"); in neo1973_wm8753_init()
260 snd_soc_dapm_disable_pin(&card->dapm, "Stereo Out"); in neo1973_wm8753_init()
261 snd_soc_dapm_disable_pin(&card->dapm, "Handset Spk"); in neo1973_wm8753_init()
264 snd_soc_dapm_ignore_suspend(&card->dapm, "GSM Line Out"); in neo1973_wm8753_init()
265 snd_soc_dapm_ignore_suspend(&card->dapm, "GSM Line In"); in neo1973_wm8753_init()
266 snd_soc_dapm_ignore_suspend(&card->dapm, "Headset Mic"); in neo1973_wm8753_init()
267 snd_soc_dapm_ignore_suspend(&card->dapm, "Handset Mic"); in neo1973_wm8753_init()
[all …]
Dsmartq_wm8987.c140 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in smartq_wm8987_init() local
144 snd_soc_dapm_nc_pin(dapm, "LINPUT1"); in smartq_wm8987_init()
145 snd_soc_dapm_nc_pin(dapm, "RINPUT1"); in smartq_wm8987_init()
146 snd_soc_dapm_nc_pin(dapm, "OUT3"); in smartq_wm8987_init()
147 snd_soc_dapm_nc_pin(dapm, "ROUT1"); in smartq_wm8987_init()
Dtobermory.c23 struct snd_soc_dapm_context *dapm, in tobermory_set_bias_level() argument
29 if (dapm->dev != codec_dai->dev) in tobermory_set_bias_level()
34 if (dapm->bias_level == SND_SOC_BIAS_STANDBY) { in tobermory_set_bias_level()
62 struct snd_soc_dapm_context *dapm, in tobermory_set_bias_level_post() argument
68 if (dapm->dev != codec_dai->dev) in tobermory_set_bias_level_post()
92 dapm->bias_level = level; in tobermory_set_bias_level_post()
Dlittlemill.c23 struct snd_soc_dapm_context *dapm, in littlemill_set_bias_level() argument
29 if (dapm->dev != aif1_dai->dev) in littlemill_set_bias_level()
38 if (dapm->bias_level == SND_SOC_BIAS_STANDBY) { in littlemill_set_bias_level()
66 struct snd_soc_dapm_context *dapm, in littlemill_set_bias_level_post() argument
72 if (dapm->dev != aif1_dai->dev) in littlemill_set_bias_level_post()
96 dapm->bias_level = level; in littlemill_set_bias_level_post()
170 struct snd_soc_card *card = w->dapm->card; in bbclk_ev()
Dbells.c58 struct snd_soc_dapm_context *dapm, in bells_set_bias_level() argument
66 if (dapm->dev != codec_dai->dev) in bells_set_bias_level()
71 if (dapm->bias_level != SND_SOC_BIAS_STANDBY) in bells_set_bias_level()
99 struct snd_soc_dapm_context *dapm, in bells_set_bias_level_post() argument
107 if (dapm->dev != codec_dai->dev) in bells_set_bias_level_post()
132 dapm->bias_level = level; in bells_set_bias_level_post()
Dlowland.c75 snd_soc_dapm_nc_pin(&rtd->card->dapm, "LINEOUT"); in lowland_wm9081_init()
Dsmdk_wm8580.c142 snd_soc_dapm_disable_pin(&rtd->card->dapm, "MicIn"); in smdk_wm8580_init_paiftx()
/linux-4.4.14/sound/soc/ux500/
Dmop500_ab8500.c365 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in mop500_ab8500_machine_init() local
414 ret = snd_soc_dapm_disable_pin(dapm, "Earpiece"); in mop500_ab8500_machine_init()
415 ret |= snd_soc_dapm_disable_pin(dapm, "Speaker Left"); in mop500_ab8500_machine_init()
416 ret |= snd_soc_dapm_disable_pin(dapm, "Speaker Right"); in mop500_ab8500_machine_init()
417 ret |= snd_soc_dapm_disable_pin(dapm, "LineOut Left"); in mop500_ab8500_machine_init()
418 ret |= snd_soc_dapm_disable_pin(dapm, "LineOut Right"); in mop500_ab8500_machine_init()
419 ret |= snd_soc_dapm_disable_pin(dapm, "Vibra 1"); in mop500_ab8500_machine_init()
420 ret |= snd_soc_dapm_disable_pin(dapm, "Vibra 2"); in mop500_ab8500_machine_init()
421 ret |= snd_soc_dapm_disable_pin(dapm, "Mic 1"); in mop500_ab8500_machine_init()
422 ret |= snd_soc_dapm_disable_pin(dapm, "Mic 2"); in mop500_ab8500_machine_init()
[all …]
/linux-4.4.14/include/sound/
Dsoc-dapm.h378 int snd_soc_dapm_new_controls(struct snd_soc_dapm_context *dapm,
381 int snd_soc_dapm_new_dai_widgets(struct snd_soc_dapm_context *dapm,
393 void snd_soc_dapm_free(struct snd_soc_dapm_context *dapm);
394 int snd_soc_dapm_add_routes(struct snd_soc_dapm_context *dapm,
396 int snd_soc_dapm_del_routes(struct snd_soc_dapm_context *dapm,
398 int snd_soc_dapm_weak_routes(struct snd_soc_dapm_context *dapm,
401 void snd_soc_dapm_reset_cache(struct snd_soc_dapm_context *dapm);
409 int snd_soc_dapm_mixer_update_power(struct snd_soc_dapm_context *dapm,
412 int snd_soc_dapm_mux_update_power(struct snd_soc_dapm_context *dapm,
418 void snd_soc_dapm_debugfs_init(struct snd_soc_dapm_context *dapm,
[all …]
Dsoc.h820 struct snd_soc_dapm_context dapm; member
1098 struct snd_soc_dapm_context *dapm,
1101 struct snd_soc_dapm_context *dapm,
1156 struct snd_soc_dapm_context dapm; member
1287 struct snd_soc_dapm_context *dapm) in snd_soc_dapm_to_component() argument
1289 return container_of(dapm, struct snd_soc_component, dapm); in snd_soc_dapm_to_component()
1300 struct snd_soc_dapm_context *dapm) in snd_soc_dapm_to_codec() argument
1302 return snd_soc_component_to_codec(snd_soc_dapm_to_component(dapm)); in snd_soc_dapm_to_codec()
1314 struct snd_soc_dapm_context *dapm) in snd_soc_dapm_to_platform() argument
1316 return snd_soc_component_to_platform(snd_soc_dapm_to_component(dapm)); in snd_soc_dapm_to_platform()
[all …]
Dsoc-topology.h173 void snd_soc_tplg_widget_remove_all(struct snd_soc_dapm_context *dapm,
/linux-4.4.14/Documentation/DocBook/
Dalsa-driver-api.xml.db225 API-snd-soc-dapm-to-component
226 API-snd-soc-dapm-to-codec
227 API-snd-soc-dapm-to-platform
228 API-snd-soc-component-get-dapm
229 API-snd-soc-codec-get-dapm
233 API-snd-soc-dapm-kcontrol-codec
300 API-snd-soc-dapm-kcontrol-widget
301 API-snd-soc-dapm-kcontrol-dapm
302 API-snd-soc-dapm-force-bias-level
303 API-snd-soc-dapm-sync-unlocked
[all …]
D.alsa-driver-api.xml.cmd2 …/soc/soc-pcm.c sound/soc/soc-ops.c sound/soc/soc-compress.c sound/soc/soc-dapm.c sound/soc/soc-gen…
/linux-4.4.14/drivers/input/misc/
Darizona-haptics.c42 if (!haptics->arizona->dapm) { in arizona_haptics_work()
69 ret = snd_soc_dapm_enable_pin(arizona->dapm, "HAPTICS"); in arizona_haptics_work()
76 ret = snd_soc_dapm_sync(arizona->dapm); in arizona_haptics_work()
84 ret = snd_soc_dapm_disable_pin(arizona->dapm, "HAPTICS"); in arizona_haptics_work()
91 ret = snd_soc_dapm_sync(arizona->dapm); in arizona_haptics_work()
115 if (!arizona->dapm) { in arizona_haptics_play()
146 if (haptics->arizona->dapm) in arizona_haptics_close()
147 snd_soc_dapm_disable_pin(haptics->arizona->dapm, "HAPTICS"); in arizona_haptics_close()
/linux-4.4.14/sound/soc/sirf/
Dsirf-audio.c26 struct snd_soc_dapm_context *dapm = w->dapm; in sirf_audio_hp_event() local
27 struct snd_soc_card *card = dapm->card; in sirf_audio_hp_event()
38 struct snd_soc_dapm_context *dapm = w->dapm; in sirf_audio_spk_event() local
39 struct snd_soc_card *card = dapm->card; in sirf_audio_spk_event()
/linux-4.4.14/sound/soc/codecs/
Dadav80x.c215 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in adav80x_dapm_sysclk_check()
239 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in adav80x_dapm_pll_check()
542 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in adav80x_set_sysclk() local
575 snd_soc_dapm_sync(dapm); in adav80x_set_sysclk()
602 snd_soc_dapm_mutex_lock(dapm); in adav80x_set_sysclk()
605 snd_soc_dapm_disable_pin_unlocked(dapm, "PLL1"); in adav80x_set_sysclk()
607 snd_soc_dapm_force_enable_pin_unlocked(dapm, "PLL1"); in adav80x_set_sysclk()
610 snd_soc_dapm_disable_pin_unlocked(dapm, "PLL2"); in adav80x_set_sysclk()
612 snd_soc_dapm_force_enable_pin_unlocked(dapm, "PLL2"); in adav80x_set_sysclk()
614 snd_soc_dapm_sync_unlocked(dapm); in adav80x_set_sysclk()
[all …]
Dwm8994.c215 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in configure_clock() local
243 snd_soc_dapm_sync(dapm); in configure_clock()
253 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in check_clk_sys()
811 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in clk_sys_event()
986 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in vmid_event()
1042 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in aif1clk_ev()
1140 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in aif2clk_ev()
1225 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in aif1clk_late_ev()
1243 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in aif2clk_late_ev()
1261 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in late_enable_ev()
[all …]
Dadau1761.c258 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in adau1761_dejitter_fixup()
485 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in adau1761_setup_digmic_jackdetect() local
518 ret = snd_soc_dapm_add_routes(dapm, adau1761_no_dmic_routes, in adau1761_setup_digmic_jackdetect()
524 ret = snd_soc_dapm_new_controls(dapm, adau1761_dmic_widgets, in adau1761_setup_digmic_jackdetect()
529 ret = snd_soc_dapm_add_routes(dapm, adau1761_dmic_routes, in adau1761_setup_digmic_jackdetect()
547 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in adau1761_setup_headphone_mode() local
578 ret = snd_soc_dapm_new_controls(dapm, in adau1761_setup_headphone_mode()
583 ret = snd_soc_dapm_add_routes(dapm, in adau1761_setup_headphone_mode()
591 ret = snd_soc_dapm_new_controls(dapm, in adau1761_setup_headphone_mode()
596 ret = snd_soc_dapm_add_routes(dapm, in adau1761_setup_headphone_mode()
[all …]
Drt286.c217 struct snd_soc_dapm_context *dapm; in rt286_jack_detect() local
226 dapm = snd_soc_codec_get_dapm(rt286->codec); in rt286_jack_detect()
236 snd_soc_dapm_force_enable_pin(dapm, "HV"); in rt286_jack_detect()
237 snd_soc_dapm_force_enable_pin(dapm, "VREF"); in rt286_jack_detect()
239 snd_soc_dapm_force_enable_pin(dapm, "LDO1"); in rt286_jack_detect()
240 snd_soc_dapm_sync(dapm); in rt286_jack_detect()
277 snd_soc_dapm_disable_pin(dapm, "HV"); in rt286_jack_detect()
278 snd_soc_dapm_disable_pin(dapm, "VREF"); in rt286_jack_detect()
280 snd_soc_dapm_disable_pin(dapm, "LDO1"); in rt286_jack_detect()
281 snd_soc_dapm_sync(dapm); in rt286_jack_detect()
[all …]
Dadau17x1.c64 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in adau17x1_pll_event()
158 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in adau17x1_dsp_mux_enum_put() local
192 snd_soc_dapm_mux_update_power(dapm, kcontrol, in adau17x1_dsp_mux_enum_put()
448 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(dai->codec); in adau17x1_set_dai_sysclk() local
463 snd_soc_dapm_add_routes(dapm, in adau17x1_set_dai_sysclk()
466 snd_soc_dapm_del_routes(dapm, in adau17x1_set_dai_sysclk()
808 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in adau17x1_add_widgets() local
816 ret = snd_soc_dapm_new_controls(dapm, adau17x1_dapm_widgets, in adau17x1_add_widgets()
822 ret = snd_soc_dapm_new_controls(dapm, adau17x1_dsp_dapm_widgets, in adau17x1_add_widgets()
844 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in adau17x1_add_routes() local
[all …]
Drt298.c223 struct snd_soc_dapm_context *dapm; in rt298_jack_detect() local
232 dapm = snd_soc_codec_get_dapm(rt298->codec); in rt298_jack_detect()
245 snd_soc_dapm_force_enable_pin(dapm, "HV"); in rt298_jack_detect()
246 snd_soc_dapm_force_enable_pin(dapm, "VREF"); in rt298_jack_detect()
248 snd_soc_dapm_force_enable_pin(dapm, "LDO1"); in rt298_jack_detect()
249 snd_soc_dapm_sync(dapm); in rt298_jack_detect()
286 snd_soc_dapm_disable_pin(dapm, "HV"); in rt298_jack_detect()
287 snd_soc_dapm_disable_pin(dapm, "VREF"); in rt298_jack_detect()
289 snd_soc_dapm_disable_pin(dapm, "LDO1"); in rt298_jack_detect()
290 snd_soc_dapm_sync(dapm); in rt298_jack_detect()
[all …]
Dnau8825.c569 struct snd_soc_dapm_context *dapm = nau8825->dapm; in nau8825_eject_jack() local
572 snd_soc_dapm_disable_pin(dapm, "SAR"); in nau8825_eject_jack()
573 snd_soc_dapm_disable_pin(dapm, "MICBIAS"); in nau8825_eject_jack()
580 snd_soc_dapm_sync(dapm); in nau8825_eject_jack()
607 struct snd_soc_dapm_context *dapm = nau8825->dapm; in nau8825_jack_insert() local
635 snd_soc_dapm_force_enable_pin(dapm, "MICBIAS"); in nau8825_jack_insert()
636 snd_soc_dapm_force_enable_pin(dapm, "SAR"); in nau8825_jack_insert()
637 snd_soc_dapm_sync(dapm); in nau8825_jack_insert()
656 snd_soc_dapm_force_enable_pin(dapm, "MICBIAS"); in nau8825_jack_insert()
657 snd_soc_dapm_force_enable_pin(dapm, "SAR"); in nau8825_jack_insert()
[all …]
Dwm9090.c254 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in hp_ev()
425 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in wm9090_add_controls() local
428 snd_soc_dapm_new_controls(dapm, wm9090_dapm_widgets, in wm9090_add_controls()
431 snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map)); in wm9090_add_controls()
437 snd_soc_dapm_add_routes(dapm, audio_map_in1_diff, in wm9090_add_controls()
440 snd_soc_dapm_add_routes(dapm, audio_map_in1_se, in wm9090_add_controls()
447 snd_soc_dapm_add_routes(dapm, audio_map_in2_diff, in wm9090_add_controls()
450 snd_soc_dapm_add_routes(dapm, audio_map_in2_se, in wm9090_add_controls()
Drt5645.c667 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in set_dmic_clk()
685 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in is_sys_clk_from_pll()
699 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in is_using_asrc()
1594 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5645_hp_event()
1660 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5645_spk_event()
1693 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5645_lout_event()
1723 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5645_bst2_event()
1746 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5650_hp_event()
2907 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in rt5645_enable_push_button_irq() local
2910 snd_soc_dapm_force_enable_pin(dapm, "ADC L power"); in rt5645_enable_push_button_irq()
[all …]
Dsirf-audio-codec.c123 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in atlas6_codec_enable_and_reset_event()
146 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in prima2_codec_enable_and_reset_event()
398 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in sirf_audio_codec_probe() local
403 snd_soc_dapm_new_controls(dapm, in sirf_audio_codec_probe()
406 snd_soc_dapm_new_controls(dapm, in sirf_audio_codec_probe()
413 snd_soc_dapm_new_controls(dapm, in sirf_audio_codec_probe()
416 snd_soc_dapm_new_controls(dapm, in sirf_audio_codec_probe()
Dad1836.c254 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in ad1836_probe() local
296 ret = snd_soc_dapm_new_controls(dapm, ad183x_dac_dapm_widgets, num_dacs); in ad1836_probe()
300 ret = snd_soc_dapm_new_controls(dapm, ad183x_adc_dapm_widgets, num_adcs); in ad1836_probe()
304 ret = snd_soc_dapm_add_routes(dapm, ad183x_dac_routes, num_dacs); in ad1836_probe()
308 ret = snd_soc_dapm_add_routes(dapm, ad183x_adc_routes, num_adcs); in ad1836_probe()
Dwm_hubs.c502 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in hp_supply_event()
544 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in hp_event()
596 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in earpiece_event()
621 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in lineout_event()
651 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in micbias_event()
1118 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in wm_hubs_add_analogue_controls() local
1152 snd_soc_dapm_new_controls(dapm, analogue_dapm_widgets, in wm_hubs_add_analogue_controls()
1162 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in wm_hubs_add_analogue_routes() local
1169 snd_soc_dapm_add_routes(dapm, analogue_routes, in wm_hubs_add_analogue_routes()
1173 snd_soc_dapm_add_routes(dapm, in wm_hubs_add_analogue_routes()
[all …]
Dda7219-aad.c60 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in da7219_aad_btn_det_work() local
74 snd_soc_dapm_force_enable_pin(dapm, "Mic Bias"); in da7219_aad_btn_det_work()
75 snd_soc_dapm_sync(dapm); in da7219_aad_btn_det_work()
113 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in da7219_aad_hptest_work() local
121 snd_soc_dapm_mutex_lock(dapm); in da7219_aad_hptest_work()
254 snd_soc_dapm_mutex_unlock(dapm); in da7219_aad_hptest_work()
274 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in da7219_aad_irq_thread() local
370 snd_soc_dapm_disable_pin(dapm, "Mic Bias"); in da7219_aad_irq_thread()
371 snd_soc_dapm_sync(dapm); in da7219_aad_irq_thread()
Dssm2602.c525 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in ssm2602_codec_probe() local
539 ret = snd_soc_dapm_new_controls(dapm, ssm2602_dapm_widgets, in ssm2602_codec_probe()
544 return snd_soc_dapm_add_routes(dapm, ssm2602_routes, in ssm2602_codec_probe()
550 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in ssm2604_codec_probe() local
553 ret = snd_soc_dapm_new_controls(dapm, ssm2604_dapm_widgets, in ssm2604_codec_probe()
558 return snd_soc_dapm_add_routes(dapm, ssm2604_routes, in ssm2604_codec_probe()
Dadau1781.c177 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in adau1781_dejitter_fixup()
385 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in adau1781_codec_probe() local
406 ret = snd_soc_dapm_new_controls(dapm, in adau1781_codec_probe()
411 ret = snd_soc_dapm_add_routes(dapm, adau1781_dmic_dapm_routes, in adau1781_codec_probe()
416 ret = snd_soc_dapm_add_routes(dapm, adau1781_adc_dapm_routes, in adau1781_codec_probe()
Darizona.c86 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in arizona_spk_ev()
213 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in arizona_init_spk() local
218 ret = snd_soc_dapm_new_controls(dapm, &arizona_spkl, 1); in arizona_init_spk()
226 ret = snd_soc_dapm_new_controls(dapm, &arizona_spkr, 1); in arizona_init_spk()
263 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in arizona_init_mono() local
270 snd_soc_dapm_add_routes(dapm, in arizona_init_mono()
280 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in arizona_init_gpio() local
288 snd_soc_dapm_disable_pin(dapm, "DRC2 Signal Activity"); in arizona_init_gpio()
294 snd_soc_dapm_disable_pin(dapm, "DRC1 Signal Activity"); in arizona_init_gpio()
299 snd_soc_dapm_enable_pin(dapm, "DRC1 Signal Activity"); in arizona_init_gpio()
[all …]
Dtlv320aic3x.c151 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in snd_soc_dapm_put_volsw_aic3x() local
184 snd_soc_dapm_mixer_update_power(dapm, kcontrol, connect, in snd_soc_dapm_put_volsw_aic3x()
203 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in mic_bias_event()
984 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in aic3x_add_widgets() local
989 snd_soc_dapm_new_controls(dapm, aic3x_extra_dapm_widgets, in aic3x_add_widgets()
991 snd_soc_dapm_add_routes(dapm, intercon_extra, in aic3x_add_widgets()
993 snd_soc_dapm_new_controls(dapm, aic3x_dapm_mono_widgets, in aic3x_add_widgets()
995 snd_soc_dapm_add_routes(dapm, intercon_mono, in aic3x_add_widgets()
999 snd_soc_dapm_new_controls(dapm, aic3x_extra_dapm_widgets, in aic3x_add_widgets()
1001 snd_soc_dapm_add_routes(dapm, intercon_extra, in aic3x_add_widgets()
[all …]
Dwm5110.c162 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm5110_sysclk_ev()
268 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm5110_hp_pre_enable()
305 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm5110_hp_pre_disable()
338 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm5110_hp_ev()
378 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in wm5110_put_dre() local
390 snd_soc_dapm_mutex_lock(dapm); in wm5110_put_dre()
430 snd_soc_dapm_mutex_unlock(dapm); in wm5110_put_dre()
439 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in wm5110_in_pga_get() local
440 struct snd_soc_card *card = dapm->card; in wm5110_in_pga_get()
460 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in wm5110_in_pga_put() local
[all …]
Dwm8962.c1867 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in hp_event()
1961 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in out_pga_event()
1994 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in dsp2_event()
2362 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in wm8962_add_widgets() local
2374 snd_soc_dapm_new_controls(dapm, wm8962_dapm_widgets, in wm8962_add_widgets()
2377 snd_soc_dapm_new_controls(dapm, wm8962_dapm_spk_mono_widgets, in wm8962_add_widgets()
2380 snd_soc_dapm_new_controls(dapm, wm8962_dapm_spk_stereo_widgets, in wm8962_add_widgets()
2383 snd_soc_dapm_add_routes(dapm, wm8962_intercon, in wm8962_add_widgets()
2386 snd_soc_dapm_add_routes(dapm, wm8962_spk_mono_intercon, in wm8962_add_widgets()
2389 snd_soc_dapm_add_routes(dapm, wm8962_spk_stereo_intercon, in wm8962_add_widgets()
[all …]
Drt5670.c418 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in rt5670_headset_detect() local
422 snd_soc_dapm_force_enable_pin(dapm, "Mic Det Power"); in rt5670_headset_detect()
423 snd_soc_dapm_sync(dapm); in rt5670_headset_detect()
449 snd_soc_dapm_disable_pin(dapm, "Mic Det Power"); in rt5670_headset_detect()
450 snd_soc_dapm_sync(dapm); in rt5670_headset_detect()
456 snd_soc_dapm_disable_pin(dapm, "Mic Det Power"); in rt5670_headset_detect()
457 snd_soc_dapm_sync(dapm); in rt5670_headset_detect()
683 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in set_dmic_clk()
701 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in is_sys_clk_from_pll()
713 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in is_using_asrc()
[all …]
Dalc5623.c58 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in amp_mixer_event()
895 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in alc5623_probe() local
929 snd_soc_dapm_new_controls(dapm, alc5623_dapm_widgets, in alc5623_probe()
933 snd_soc_dapm_add_routes(dapm, intercon, ARRAY_SIZE(intercon)); in alc5623_probe()
938 snd_soc_dapm_new_controls(dapm, alc5623_dapm_amp_widgets, in alc5623_probe()
940 snd_soc_dapm_add_routes(dapm, intercon_amp_spk, in alc5623_probe()
944 snd_soc_dapm_add_routes(dapm, intercon_spk, in alc5623_probe()
Dpcm3008.c35 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in pcm3008_dac_ev()
48 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in pcm3008_adc_ev()
Dwm8960.c466 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in wm8960_add_widgets() local
469 snd_soc_dapm_new_controls(dapm, wm8960_dapm_widgets, in wm8960_add_widgets()
472 snd_soc_dapm_add_routes(dapm, audio_paths, ARRAY_SIZE(audio_paths)); in wm8960_add_widgets()
478 snd_soc_dapm_new_controls(dapm, wm8960_dapm_widgets_capless, in wm8960_add_widgets()
481 snd_soc_dapm_add_routes(dapm, audio_paths_capless, in wm8960_add_widgets()
484 snd_soc_dapm_new_controls(dapm, wm8960_dapm_widgets_out3, in wm8960_add_widgets()
487 snd_soc_dapm_add_routes(dapm, audio_paths_out3, in wm8960_add_widgets()
497 if (w->dapm != dapm) in wm8960_add_widgets()
Dwm8904.c676 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in sysclk_event()
714 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in out_pga_event()
1171 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in wm8904_add_widgets() local
1173 snd_soc_dapm_new_controls(dapm, wm8904_core_dapm_widgets, in wm8904_add_widgets()
1175 snd_soc_dapm_add_routes(dapm, core_intercon, in wm8904_add_widgets()
1187 snd_soc_dapm_new_controls(dapm, wm8904_adc_dapm_widgets, in wm8904_add_widgets()
1189 snd_soc_dapm_new_controls(dapm, wm8904_dac_dapm_widgets, in wm8904_add_widgets()
1191 snd_soc_dapm_new_controls(dapm, wm8904_dapm_widgets, in wm8904_add_widgets()
1194 snd_soc_dapm_add_routes(dapm, adc_intercon, in wm8904_add_widgets()
1196 snd_soc_dapm_add_routes(dapm, dac_intercon, in wm8904_add_widgets()
[all …]
Drt5631.c289 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in check_sysclk1_source()
299 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in check_dmic_used()
307 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in check_dacl_to_outmixl()
317 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in check_dacr_to_outmixr()
327 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in check_dacl_to_spkmixl()
337 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in check_dacr_to_spkmixr()
347 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in check_adcl_select()
357 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in check_adcr_select()
566 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in hp_event()
600 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in set_dmic_params()
Dwm8998.c44 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm8998_asrc_ev()
108 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in wm8998_in1mux_put() local
156 return snd_soc_dapm_mux_update_power(dapm, kcontrol, in wm8998_in1mux_put()
165 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in wm8998_in2mux_put() local
192 return snd_soc_dapm_mux_update_power(dapm, kcontrol, in wm8998_in2mux_put()
1309 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in wm8998_codec_probe() local
1311 priv->core.arizona->dapm = dapm; in wm8998_codec_probe()
1316 snd_soc_dapm_disable_pin(dapm, "HAPTICS"); in wm8998_codec_probe()
1325 priv->core.arizona->dapm = NULL; in wm8998_codec_remove()
Dwm9712.c183 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); in wm9712_hp_mixer_put() local
184 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm); in wm9712_hp_mixer_put()
215 snd_soc_dapm_mixer_update_power(dapm, kcontrol, val, in wm9712_hp_mixer_put()
227 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); in wm9712_hp_mixer_get() local
228 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm); in wm9712_hp_mixer_get()
Dad193x.c357 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in ad193x_codec_probe() local
393 ret = snd_soc_dapm_new_controls(dapm, in ad193x_codec_probe()
401 ret = snd_soc_dapm_add_routes(dapm, in ad193x_codec_probe()
Dsn95031.c240 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in sn95031_vhs_event()
259 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in sn95031_vihf_event()
276 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in sn95031_dmic12_event()
294 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in sn95031_dmic34_event()
312 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in sn95031_dmic56_event()
Dtwl6040.c237 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in twl6040_hs_dac_event()
264 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in twl6040_ep_drv_event()
536 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in twl6040_get_dl1_gain() local
538 if (snd_soc_dapm_get_pin_status(dapm, "EP")) in twl6040_get_dl1_gain()
541 if (snd_soc_dapm_get_pin_status(dapm, "HSOR") || in twl6040_get_dl1_gain()
542 snd_soc_dapm_get_pin_status(dapm, "HSOL")) { in twl6040_get_dl1_gain()
Drt5640.c462 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in set_dmic_clk()
480 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in is_sys_clk_from_pll()
973 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5640_hp_event()
997 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5640_lout_event()
1026 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5640_hp_power_event()
1042 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5640_hp_post_event()
1986 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in rt5640_probe() local
2003 snd_soc_dapm_new_controls(dapm, in rt5640_probe()
2006 snd_soc_dapm_add_routes(dapm, in rt5640_probe()
2011 snd_soc_dapm_new_controls(dapm, in rt5640_probe()
[all …]
Dwm8996.c602 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in bg_event()
637 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rmv_short_event()
688 static void wm8996_seq_notifier(struct snd_soc_dapm_context *dapm, in wm8996_seq_notifier() argument
691 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm); in wm8996_seq_notifier()
762 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in dcs_start()
2248 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in wm8996_detect() local
2265 snd_soc_dapm_mutex_lock(dapm); in wm8996_detect()
2267 snd_soc_dapm_force_enable_pin_unlocked(dapm, "LDO2"); in wm8996_detect()
2268 snd_soc_dapm_force_enable_pin_unlocked(dapm, "SYSCLK"); in wm8996_detect()
2270 snd_soc_dapm_mutex_unlock(dapm); in wm8996_detect()
[all …]
Dwm8804.c140 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm8804_aif_event()
165 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in txsrc_put() local
174 snd_soc_dapm_mutex_lock(dapm); in txsrc_put()
190 snd_soc_dapm_mutex_unlock(dapm); in txsrc_put()
Dtlv320aic31xx.c352 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in aic31xx_dapm_power_event()
437 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in mic_bias_event()
649 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in aic31xx_add_widgets() local
655 dapm, aic311x_dapm_widgets, in aic31xx_add_widgets()
660 ret = snd_soc_dapm_add_routes(dapm, aic311x_audio_map, in aic31xx_add_widgets()
666 dapm, aic310x_dapm_widgets, in aic31xx_add_widgets()
671 ret = snd_soc_dapm_add_routes(dapm, aic310x_audio_map, in aic31xx_add_widgets()
Drt5651.c378 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in set_dmic_clk()
397 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in is_sysclk_from_pll()
735 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5651_amp_power_event()
773 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5651_hp_event()
818 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5651_hp_post_event()
838 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5651_bst1_event()
861 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5651_bst2_event()
884 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5651_bst3_event()
Dwm8997.c87 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm8997_sysclk_ev()
1057 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in wm8997_codec_probe() local
1062 snd_soc_dapm_disable_pin(dapm, "HAPTICS"); in wm8997_codec_probe()
1064 priv->core.arizona->dapm = dapm; in wm8997_codec_probe()
1073 priv->core.arizona->dapm = NULL; in wm8997_codec_remove()
Dwm9713.c222 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm9713_voice_shutdown()
257 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); in wm9713_hp_mixer_put() local
258 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm); in wm9713_hp_mixer_put()
289 snd_soc_dapm_mixer_update_power(dapm, kcontrol, val, in wm9713_hp_mixer_put()
301 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); in wm9713_hp_mixer_get() local
302 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm); in wm9713_hp_mixer_get()
Dab8500-codec.c1212 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in anc_status_control_put() local
1238 status = snd_soc_dapm_force_enable_pin(dapm, "ANC Configure Input"); in anc_status_control_put()
1245 snd_soc_dapm_sync(dapm); in anc_status_control_put()
1262 status = snd_soc_dapm_disable_pin(dapm, "ANC Configure Input"); in anc_status_control_put()
1263 snd_soc_dapm_sync(dapm); in anc_status_control_put()
1949 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in ab8500_audio_setup_mics() local
1976 status = snd_soc_dapm_add_routes(dapm, route, 1); in ab8500_audio_setup_mics()
1980 status |= snd_soc_dapm_add_routes(dapm, route, 1); in ab8500_audio_setup_mics()
1984 status |= snd_soc_dapm_add_routes(dapm, route, 1); in ab8500_audio_setup_mics()
2464 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in ab8500_codec_probe() local
[all …]
Dcs42xx8.c383 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in cs42xx8_codec_probe() local
389 snd_soc_dapm_new_controls(dapm, cs42xx8_adc3_dapm_widgets, in cs42xx8_codec_probe()
391 snd_soc_dapm_add_routes(dapm, cs42xx8_adc3_dapm_routes, in cs42xx8_codec_probe()
Dtwl4030.c569 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); \
624 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in handsfreelpga_event()
640 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in handsfreerpga_event()
656 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in vibramux_event()
665 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in apll_event()
681 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in aif_event()
770 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in headsetlpga_event()
795 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in headsetrpga_event()
820 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in digimic_event()
Dwm5100.c735 static void wm5100_seq_notifier(struct snd_soc_dapm_context *dapm, in wm5100_seq_notifier() argument
738 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm); in wm5100_seq_notifier()
778 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm5100_out_ev()
843 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm5100_post_ev()
2104 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in wm5100_detect() local
2122 snd_soc_dapm_mutex_lock(dapm); in wm5100_detect()
2124 snd_soc_dapm_force_enable_pin_unlocked(dapm, "CP2"); in wm5100_detect()
2125 snd_soc_dapm_force_enable_pin_unlocked(dapm, "SYSCLK"); in wm5100_detect()
2127 snd_soc_dapm_sync_unlocked(dapm); in wm5100_detect()
2129 snd_soc_dapm_mutex_unlock(dapm); in wm5100_detect()
[all …]
Dwm5102.c584 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm5102_sysclk_ev()
620 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm5102_adsp_power_ev()
1871 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in wm5102_codec_probe() local
1887 snd_soc_dapm_disable_pin(dapm, "HAPTICS"); in wm5102_codec_probe()
1889 priv->core.arizona->dapm = dapm; in wm5102_codec_probe()
1905 priv->core.arizona->dapm = NULL; in wm5102_codec_remove()
Dmax98090.c736 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in max98090_micinput_event()
783 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in max98090_shdn_event()
1447 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in max98090_add_widgets() local
1457 snd_soc_dapm_new_controls(dapm, max98090_dapm_widgets, in max98090_add_widgets()
1460 snd_soc_dapm_add_routes(dapm, max98090_dapm_routes, in max98090_add_widgets()
1464 snd_soc_dapm_new_controls(dapm, max98091_dapm_widgets, in max98090_add_widgets()
1467 snd_soc_dapm_add_routes(dapm, max98091_dapm_routes, in max98090_add_widgets()
2486 static void max98090_seq_notifier(struct snd_soc_dapm_context *dapm, in max98090_seq_notifier() argument
2489 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm); in max98090_seq_notifier()
Drt5677.c916 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in set_dmic_clk()
934 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in is_sys_clk_from_pll()
949 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in is_using_asrc()
1032 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in can_use_asrc()
1237 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in rt5677_dmic_use_asrc()
2412 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5677_bst1_event()
2436 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5677_bst2_event()
2460 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5677_set_pll1_event()
2482 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5677_set_pll2_event()
2504 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5677_set_micbias1_event()
[all …]
Dwm8731.c217 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in wm8731_check_osc()
385 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in wm8731_set_dai_sysclk() local
420 snd_soc_dapm_sync(dapm); in wm8731_set_dai_sysclk()
Dwm8995.c537 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in check_clk_sys()
564 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in hp_supply_event()
613 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in hp_event()
724 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in configure_clock() local
755 snd_soc_dapm_sync(dapm); in configure_clock()
763 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in clk_sys_event()
Duda134x.c451 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in uda134x_soc_probe() local
486 ret = snd_soc_dapm_new_controls(dapm, widgets, num_widgets); in uda134x_soc_probe()
Dcs42l52.c906 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in cs42l52_beep_work() local
923 snd_soc_dapm_enable_pin(dapm, "Beep"); in cs42l52_beep_work()
926 snd_soc_dapm_disable_pin(dapm, "Beep"); in cs42l52_beep_work()
932 snd_soc_dapm_sync(dapm); in cs42l52_beep_work()
Dwm8993.c812 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in clk_sys_event()
1485 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in wm8993_probe() local
1527 snd_soc_dapm_new_controls(dapm, wm8993_dapm_widgets, in wm8993_probe()
1531 snd_soc_dapm_add_routes(dapm, routes, ARRAY_SIZE(routes)); in wm8993_probe()
1539 dapm->idle_bias_off = 1; in wm8993_probe()
Dcs42l56.c980 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in cs42l56_beep_work() local
997 snd_soc_dapm_enable_pin(dapm, "Beep"); in cs42l56_beep_work()
1000 snd_soc_dapm_disable_pin(dapm, "Beep"); in cs42l56_beep_work()
1006 snd_soc_dapm_sync(dapm); in cs42l56_beep_work()
Dnau8825.h314 struct snd_soc_dapm_context *dapm; member
Dwm8770.c311 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in vout12supply_event()
328 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in vout34supply_event()
Dcs42l73.c493 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in cs42l73_spklo_spk_amp_event()
509 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in cs42l73_ear_amp_event()
527 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in cs42l73_hp_amp_event()
Dadau1977.c851 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in adau1977_codec_probe() local
857 ret = snd_soc_dapm_new_controls(dapm, in adau1977_codec_probe()
Dadau1373.c551 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in adau1373_pll_event()
823 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in adau1373_check_aif_clk()
844 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in adau1373_check_src()
Dwm8961.c197 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm8961_hp_event()
289 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm8961_spk_event()
Dak4671.c166 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in ak4671_out2_event()
Dcs42l51.c156 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in cs42l51_pdn_event()
Dwm8903.c263 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm8903_dcs_event()
282 static void wm8903_seq_notifier(struct snd_soc_dapm_context *dapm, in wm8903_seq_notifier() argument
285 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm); in wm8903_seq_notifier()
Dak4642.c181 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in ak4642_lout_event()
Dmax98095.c601 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in max98095_mic_event()
631 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in max98095_line_pga()
679 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in max98095_lineout_event()
Dsgtl5000.c158 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in mic_bias_event()
185 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in power_vag_event()
D88pm860x-codec.c385 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in pm860x_rsync_event()
402 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in pm860x_dac_event()
Dmax98088.c620 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in max98088_mic_event()
650 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in max98088_line_pga()
Dwm8988.c247 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm8988_lrc_control()
Dda732x.c612 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in da732x_adc_event()
666 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in da732x_out_pga_event()
Dtas2552.c91 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in tas2552_post_event()
Dwm_adsp.c1792 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm_adsp1_event()
1995 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm_adsp2_early_event()
2016 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm_adsp2_event()
Dalc5632.c119 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in amp_mixer_event()
Dwm8955.c336 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm8955_sysclk()
Dwm2000.c686 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm2000_anc_power_event()
Dwm8990.c377 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in outmixer_event()
Dwm8900.c227 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm8900_hp_event()
Dwm8991.c354 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in outmixer_event()
Dwm9081.c736 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in clk_sys_event()
Dwm8400.c327 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in outmixer_event()
Dwm8958-dsp2.c421 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm8958_aif_ev()
Dtlv320dac33.c426 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in dac33_playback_event()
Dda7219.c770 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in da7219_dai_event()
Dwm8350.c259 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in pga_event()
/linux-4.4.14/drivers/regulator/
Darizona-micsupp.c47 struct snd_soc_dapm_context *dapm = micsupp->arizona->dapm; in arizona_micsupp_check_cp() local
59 if (dapm) { in arizona_micsupp_check_cp()
62 snd_soc_dapm_force_enable_pin(dapm, "MICSUPP"); in arizona_micsupp_check_cp()
64 snd_soc_dapm_disable_pin(dapm, "MICSUPP"); in arizona_micsupp_check_cp()
66 snd_soc_dapm_sync(dapm); in arizona_micsupp_check_cp()
/linux-4.4.14/sound/soc/tegra/
Dtegra_wm8903.c131 struct snd_soc_dapm_context *dapm = w->dapm; in tegra_wm8903_event_int_spk() local
132 struct snd_soc_card *card = dapm->card; in tegra_wm8903_event_int_spk()
147 struct snd_soc_dapm_context *dapm = w->dapm; in tegra_wm8903_event_hp() local
148 struct snd_soc_card *card = dapm->card; in tegra_wm8903_event_hp()
195 snd_soc_dapm_force_enable_pin(&card->dapm, "MICBIAS"); in tegra_wm8903_init()
Dtegra_rt5677.c83 struct snd_soc_dapm_context *dapm = w->dapm; in tegra_rt5677_event_hp() local
84 struct snd_soc_card *card = dapm->card; in tegra_rt5677_event_hp()
167 snd_soc_dapm_force_enable_pin(&rtd->card->dapm, "MICBIAS1"); in tegra_rt5677_asoc_init()
Dtegra_wm9712.c49 return snd_soc_dapm_force_enable_pin(&rtd->card->dapm, "Mic Bias"); in tegra_wm9712_init()
Dtegra_alc5632.c118 snd_soc_dapm_force_enable_pin(&rtd->card->dapm, "MICBIAS1"); in tegra_alc5632_asoc_init()
/linux-4.4.14/sound/soc/davinci/
Ddavinci-evm.c124 snd_soc_dapm_new_controls(&card->dapm, aic3x_dapm_widgets, in evm_aic3x_init()
133 snd_soc_dapm_add_routes(&card->dapm, audio_map, in evm_aic3x_init()
138 snd_soc_dapm_nc_pin(&card->dapm, "MONO_LOUT"); in evm_aic3x_init()
139 snd_soc_dapm_nc_pin(&card->dapm, "HPLCOM"); in evm_aic3x_init()
140 snd_soc_dapm_nc_pin(&card->dapm, "HPRCOM"); in evm_aic3x_init()
/linux-4.4.14/sound/soc/fsl/
Dimx-wm8962.c69 struct snd_soc_dapm_context *dapm, in imx_wm8962_set_bias_level() argument
79 if (dapm->dev != codec_dai->dev) in imx_wm8962_set_bias_level()
84 if (dapm->bias_level == SND_SOC_BIAS_STANDBY) { in imx_wm8962_set_bias_level()
109 if (dapm->bias_level == SND_SOC_BIAS_PREPARE) { in imx_wm8962_set_bias_level()
Dfsl-asoc-card.c221 struct snd_soc_dapm_context *dapm, in fsl_asoc_card_set_bias_level() argument
231 if (dapm->dev != codec_dai->dev) in fsl_asoc_card_set_bias_level()
236 if (dapm->bias_level != SND_SOC_BIAS_STANDBY) in fsl_asoc_card_set_bias_level()
261 if (dapm->bias_level != SND_SOC_BIAS_PREPARE) in fsl_asoc_card_set_bias_level()
Dwm1133-ev1.c218 snd_soc_dapm_force_enable_pin(&rtd->card->dapm, "Mic Bias"); in wm1133_ev1_init()
/linux-4.4.14/drivers/extcon/
Dextcon-arizona.c188 mutex_lock(&arizona->dapm->card->dapm_mutex); in arizona_extcon_hp_clamp()
230 mutex_unlock(&arizona->dapm->card->dapm_mutex); in arizona_extcon_hp_clamp()
276 struct snd_soc_dapm_context *dapm = arizona->dapm; in arizona_extcon_pulse_micbias() local
279 ret = snd_soc_dapm_force_enable_pin(dapm, widget); in arizona_extcon_pulse_micbias()
284 snd_soc_dapm_sync(dapm); in arizona_extcon_pulse_micbias()
287 ret = snd_soc_dapm_disable_pin(arizona->dapm, widget); in arizona_extcon_pulse_micbias()
292 snd_soc_dapm_sync(dapm); in arizona_extcon_pulse_micbias()
351 struct snd_soc_dapm_context *dapm = arizona->dapm; in arizona_stop_mic() local
359 ret = snd_soc_dapm_disable_pin(dapm, widget); in arizona_stop_mic()
365 snd_soc_dapm_sync(dapm); in arizona_stop_mic()
[all …]
/linux-4.4.14/sound/soc/intel/skylake/
Dskl-topology.c710 struct snd_soc_dapm_context *dapm = w->dapm; in skl_tplg_vmixer_event() local
711 struct skl *skl = get_skl_ctx(dapm->dev); in skl_tplg_vmixer_event()
733 struct snd_soc_dapm_context *dapm = w->dapm; in skl_tplg_mixer_event() local
734 struct skl *skl = get_skl_ctx(dapm->dev); in skl_tplg_mixer_event()
763 struct snd_soc_dapm_context *dapm = w->dapm; in skl_tplg_pga_event() local
764 struct skl *skl = get_skl_ctx(dapm->dev); in skl_tplg_pga_event()
/linux-4.4.14/sound/soc/atmel/
Dsam9g20_wm8731.c65 struct snd_soc_dapm_context *dapm, in at91sam9g20ek_set_bias_level() argument
127 snd_soc_dapm_nc_pin(&rtd->card->dapm, "Int Mic"); in at91sam9g20ek_wm8731_init()
/linux-4.4.14/sound/soc/intel/atom/
Dsst-atom-controls.c513 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_send_pipe_module_params()
615 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in sst_swm_mixer_event()
960 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_set_be_modules()
979 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_set_media_path()
1016 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_set_media_loop()
1356 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_fill_module_list()
1494 struct snd_soc_dapm_context *dapm = in sst_dsp_init_v2_dpcm() local
1504 snd_soc_dapm_new_controls(dapm, sst_dapm_widgets, in sst_dsp_init_v2_dpcm()
1506 snd_soc_dapm_add_routes(dapm, intercon, in sst_dsp_init_v2_dpcm()
1508 snd_soc_dapm_new_widgets(dapm->card); in sst_dsp_init_v2_dpcm()
/linux-4.4.14/Documentation/sound/alsa/soc/
Ddapm.txt77 (Widgets are defined in include/sound/soc-dapm.h)
80 There are convenience macros defined in soc-dapm.h that can be used to quickly
287 /* corgi machine dapm widgets */
291 Please see soc-dapm.h for all other widgets that support events.
299 /* dapm event types */
Doverview.txt83 dapm.txt: Dynamic Audio Power Management
Dcodec.txt133 Please read dapm.txt for details of building the description.
/linux-4.4.14/sound/soc/jz4740/
Dqi_lb60.c32 struct qi_lb60 *qi_lb60 = snd_soc_card_get_drvdata(widget->dapm->card); in qi_lb60_spk_event()
/linux-4.4.14/include/linux/mfd/arizona/
Dcore.h141 struct snd_soc_dapm_context *dapm; member