Home
last modified time | relevance | path

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

/linux-4.1.27/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 …]
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_rt5645.c59 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control() local
60 struct snd_soc_card *card = dapm->card; in platform_clock_control()
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()
Dbyt-max98090.c91 card->dapm.idle_bias_off = true; in byt_max98090_init()
/linux-4.1.27/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 …]
Dbrownstone.c51 struct snd_soc_dapm_context *dapm = &codec->dapm; in brownstone_wm8994_init() local
54 snd_soc_dapm_nc_pin(dapm, "HPOUT2P"); in brownstone_wm8994_init()
55 snd_soc_dapm_nc_pin(dapm, "HPOUT2N"); in brownstone_wm8994_init()
56 snd_soc_dapm_nc_pin(dapm, "LINEOUT1N"); in brownstone_wm8994_init()
57 snd_soc_dapm_nc_pin(dapm, "LINEOUT1P"); in brownstone_wm8994_init()
58 snd_soc_dapm_nc_pin(dapm, "LINEOUT2N"); in brownstone_wm8994_init()
59 snd_soc_dapm_nc_pin(dapm, "LINEOUT2P"); in brownstone_wm8994_init()
60 snd_soc_dapm_nc_pin(dapm, "IN1LN"); in brownstone_wm8994_init()
61 snd_soc_dapm_nc_pin(dapm, "IN1LP"); in brownstone_wm8994_init()
62 snd_soc_dapm_nc_pin(dapm, "IN1RP"); in brownstone_wm8994_init()
[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()
229 struct snd_soc_dapm_context *dapm = &codec->dapm; in poodle_wm8731_init() local
[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 …]
Dz2.c136 struct snd_soc_dapm_context *dapm = &codec->dapm; in z2_wm8750_init() local
140 snd_soc_dapm_disable_pin(dapm, "LINPUT3"); in z2_wm8750_init()
141 snd_soc_dapm_disable_pin(dapm, "RINPUT3"); in z2_wm8750_init()
142 snd_soc_dapm_disable_pin(dapm, "OUT3"); in z2_wm8750_init()
143 snd_soc_dapm_disable_pin(dapm, "MONO1"); in z2_wm8750_init()
Dmioa701_wm9713.c84 struct snd_soc_codec *codec = widget->dapm->card->rtd[0].codec; in rear_amp_event()
/linux-4.1.27/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()
158 struct snd_soc_dapm_context *dapm = &codec->dapm; in omap3pandora_out_init() local
161 snd_soc_dapm_nc_pin(dapm, "EARPIECE"); in omap3pandora_out_init()
162 snd_soc_dapm_nc_pin(dapm, "PREDRIVEL"); in omap3pandora_out_init()
163 snd_soc_dapm_nc_pin(dapm, "PREDRIVER"); in omap3pandora_out_init()
164 snd_soc_dapm_nc_pin(dapm, "HSOL"); in omap3pandora_out_init()
165 snd_soc_dapm_nc_pin(dapm, "HSOR"); in omap3pandora_out_init()
166 snd_soc_dapm_nc_pin(dapm, "CARKITL"); in omap3pandora_out_init()
167 snd_soc_dapm_nc_pin(dapm, "CARKITR"); in omap3pandora_out_init()
168 snd_soc_dapm_nc_pin(dapm, "HFL"); in omap3pandora_out_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-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()
164 struct snd_soc_dapm_context *dapm = &codec->dapm; in omap_twl4030_init() local
195 twl4030_disconnect_pin(dapm, pdata->has_ear, "Earpiece Spk"); in omap_twl4030_init()
196 twl4030_disconnect_pin(dapm, pdata->has_hf, "Handsfree Spk"); in omap_twl4030_init()
197 twl4030_disconnect_pin(dapm, pdata->has_hs, "Headset Stereophone"); in omap_twl4030_init()
198 twl4030_disconnect_pin(dapm, pdata->has_predriv, "Ext Spk"); in omap_twl4030_init()
199 twl4030_disconnect_pin(dapm, pdata->has_carkit, "Carkit Spk"); in omap_twl4030_init()
201 twl4030_disconnect_pin(dapm, pdata->has_mainmic, "Main Mic"); in omap_twl4030_init()
202 twl4030_disconnect_pin(dapm, pdata->has_submic, "Sub Mic"); in omap_twl4030_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-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.1.27/sound/soc/
Dsoc-dapm.c48 #define DAPM_UPDATE_STAT(widget, val) widget->dapm->card->dapm_stats.val++;
50 static int snd_soc_dapm_add_path(struct snd_soc_dapm_context *dapm,
56 snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm,
114 static void dapm_assert_locked(struct snd_soc_dapm_context *dapm) in dapm_assert_locked() argument
116 if (dapm->card && dapm->card->instantiated) in dapm_assert_locked()
117 lockdep_assert_held(&dapm->card->dapm_mutex); in dapm_assert_locked()
153 dapm_assert_locked(w->dapm); in dapm_mark_dirty()
156 dev_vdbg(w->dapm->dev, "Marking %s dirty due to %s\n", in dapm_mark_dirty()
158 list_add_tail(&w->dirty, &w->dapm->card->dapm_dirty); in dapm_mark_dirty()
180 dapm_assert_locked(w->dapm); in dapm_widget_invalidate_input_paths()
[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-core.c661 snd_soc_dapm_sync(&card->dapm); in snd_soc_suspend()
668 switch (codec->dapm.bias_level) { in snd_soc_suspend()
676 if (codec->dapm.idle_bias_off) { in snd_soc_suspend()
758 switch (codec->dapm.bias_level) { in soc_resume_deferred()
822 snd_soc_dapm_sync(&card->dapm); in soc_resume_deferred()
1117 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in soc_probe_component() local
1125 dapm->card = card; in soc_probe_component()
1134 ret = snd_soc_dapm_new_controls(dapm, component->dapm_widgets, in soc_probe_component()
1145 ret = snd_soc_dapm_new_dai_widgets(dapm, dai); in soc_probe_component()
1161 WARN(dapm->idle_bias_off && in soc_probe_component()
[all …]
DMakefile1 snd-soc-core-objs := soc-core.o soc-dapm.o soc-jack.o soc-cache.o soc-utils.o
/linux-4.1.27/sound/soc/samsung/
Dsmdk_wm8994.c90 struct snd_soc_dapm_context *dapm = &codec->dapm; in smdk_wm8994_init_paiftx() local
93 snd_soc_dapm_nc_pin(dapm, "HPOUT2P"); in smdk_wm8994_init_paiftx()
94 snd_soc_dapm_nc_pin(dapm, "HPOUT2N"); in smdk_wm8994_init_paiftx()
95 snd_soc_dapm_nc_pin(dapm, "SPKOUTLN"); in smdk_wm8994_init_paiftx()
96 snd_soc_dapm_nc_pin(dapm, "SPKOUTLP"); in smdk_wm8994_init_paiftx()
97 snd_soc_dapm_nc_pin(dapm, "SPKOUTRP"); in smdk_wm8994_init_paiftx()
98 snd_soc_dapm_nc_pin(dapm, "SPKOUTRN"); in smdk_wm8994_init_paiftx()
99 snd_soc_dapm_nc_pin(dapm, "LINEOUT1N"); in smdk_wm8994_init_paiftx()
100 snd_soc_dapm_nc_pin(dapm, "LINEOUT1P"); in smdk_wm8994_init_paiftx()
101 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()
126 snd_soc_dapm_sync(&codec->dapm); in speyside_set_polarity()
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()
[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.c141 struct snd_soc_dapm_context *dapm = &codec->dapm; in smartq_wm8987_init() local
145 snd_soc_dapm_nc_pin(dapm, "LINPUT1"); in smartq_wm8987_init()
146 snd_soc_dapm_nc_pin(dapm, "RINPUT1"); in smartq_wm8987_init()
147 snd_soc_dapm_nc_pin(dapm, "OUT3"); in smartq_wm8987_init()
148 snd_soc_dapm_nc_pin(dapm, "ROUT1"); in smartq_wm8987_init()
151 snd_soc_dapm_disable_pin(dapm, "Headphone Jack"); 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()
Dsmdk_wm8580.c142 snd_soc_dapm_disable_pin(&rtd->card->dapm, "MicIn"); in smdk_wm8580_init_paiftx()
Dlowland.c75 snd_soc_dapm_nc_pin(&codec->dapm, "LINEOUT"); in lowland_wm9081_init()
/linux-4.1.27/sound/soc/ux500/
Dmop500_ab8500.c365 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in mop500_ab8500_machine_init() local
410 ret = snd_soc_dapm_disable_pin(dapm, "Earpiece"); in mop500_ab8500_machine_init()
411 ret |= snd_soc_dapm_disable_pin(dapm, "Speaker Left"); in mop500_ab8500_machine_init()
412 ret |= snd_soc_dapm_disable_pin(dapm, "Speaker Right"); in mop500_ab8500_machine_init()
413 ret |= snd_soc_dapm_disable_pin(dapm, "LineOut Left"); in mop500_ab8500_machine_init()
414 ret |= snd_soc_dapm_disable_pin(dapm, "LineOut Right"); in mop500_ab8500_machine_init()
415 ret |= snd_soc_dapm_disable_pin(dapm, "Vibra 1"); in mop500_ab8500_machine_init()
416 ret |= snd_soc_dapm_disable_pin(dapm, "Vibra 2"); in mop500_ab8500_machine_init()
417 ret |= snd_soc_dapm_disable_pin(dapm, "Mic 1"); in mop500_ab8500_machine_init()
418 ret |= snd_soc_dapm_disable_pin(dapm, "Mic 2"); in mop500_ab8500_machine_init()
[all …]
/linux-4.1.27/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()
116 if (!arizona->dapm) { in arizona_haptics_play()
147 if (haptics->arizona->dapm) in arizona_haptics_close()
148 snd_soc_dapm_disable_pin(haptics->arizona->dapm, "HAPTICS"); in arizona_haptics_close()
/linux-4.1.27/include/sound/
Dsoc-dapm.h372 int snd_soc_dapm_new_controls(struct snd_soc_dapm_context *dapm,
375 int snd_soc_dapm_new_dai_widgets(struct snd_soc_dapm_context *dapm,
387 void snd_soc_dapm_free(struct snd_soc_dapm_context *dapm);
388 int snd_soc_dapm_add_routes(struct snd_soc_dapm_context *dapm,
390 int snd_soc_dapm_del_routes(struct snd_soc_dapm_context *dapm,
392 int snd_soc_dapm_weak_routes(struct snd_soc_dapm_context *dapm,
401 int snd_soc_dapm_mixer_update_power(struct snd_soc_dapm_context *dapm,
404 int snd_soc_dapm_mux_update_power(struct snd_soc_dapm_context *dapm,
410 void snd_soc_dapm_debugfs_init(struct snd_soc_dapm_context *dapm,
414 int snd_soc_dapm_enable_pin(struct snd_soc_dapm_context *dapm,
[all …]
Dsoc.h783 struct snd_soc_dapm_context dapm; member
825 struct snd_soc_dapm_context dapm; member
1062 struct snd_soc_dapm_context *dapm,
1065 struct snd_soc_dapm_context *dapm,
1117 struct snd_soc_dapm_context dapm; member
1243 struct snd_soc_dapm_context *dapm) in snd_soc_dapm_to_component() argument
1245 return container_of(dapm, struct snd_soc_component, dapm); in snd_soc_dapm_to_component()
1256 struct snd_soc_dapm_context *dapm) in snd_soc_dapm_to_codec() argument
1258 return container_of(dapm, struct snd_soc_codec, dapm); in snd_soc_dapm_to_codec()
1270 struct snd_soc_dapm_context *dapm) in snd_soc_dapm_to_platform() argument
[all …]
/linux-4.1.27/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.1.27/sound/soc/atmel/
Dsam9g20_wm8731.c65 struct snd_soc_dapm_context *dapm, in at91sam9g20ek_set_bias_level() argument
113 struct snd_soc_dapm_context *dapm = &codec->dapm; in at91sam9g20ek_wm8731_init() local
128 snd_soc_dapm_nc_pin(dapm, "RLINEIN"); in at91sam9g20ek_wm8731_init()
129 snd_soc_dapm_nc_pin(dapm, "LLINEIN"); in at91sam9g20ek_wm8731_init()
132 snd_soc_dapm_nc_pin(&rtd->card->dapm, "Int Mic"); in at91sam9g20ek_wm8731_init()
/linux-4.1.27/sound/soc/codecs/
Dwm8994.c242 snd_soc_dapm_sync(&codec->dapm); in configure_clock()
252 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in check_clk_sys()
810 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in clk_sys_event()
985 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in vmid_event()
1041 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in aif1clk_ev()
1139 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in aif2clk_ev()
1224 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in aif1clk_late_ev()
1242 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in aif2clk_late_ev()
1260 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in late_enable_ev()
1293 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in late_disable_ev()
[all …]
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 = &codec->dapm; 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 …]
Dwm9090.c257 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in hp_ev()
428 struct snd_soc_dapm_context *dapm = &codec->dapm; in wm9090_add_controls() local
431 snd_soc_dapm_new_controls(dapm, wm9090_dapm_widgets, in wm9090_add_controls()
434 snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map)); in wm9090_add_controls()
440 snd_soc_dapm_add_routes(dapm, audio_map_in1_diff, in wm9090_add_controls()
443 snd_soc_dapm_add_routes(dapm, audio_map_in1_se, in wm9090_add_controls()
450 snd_soc_dapm_add_routes(dapm, audio_map_in2_diff, in wm9090_add_controls()
453 snd_soc_dapm_add_routes(dapm, audio_map_in2_se, in wm9090_add_controls()
499 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm9090_set_bias_level()
518 codec->dapm.bias_level = level; in wm9090_set_bias_level()
Drt286.c319 snd_soc_dapm_force_enable_pin(&rt286->codec->dapm, in rt286_jack_detect()
321 snd_soc_dapm_force_enable_pin(&rt286->codec->dapm, in rt286_jack_detect()
324 snd_soc_dapm_force_enable_pin(&rt286->codec->dapm, in rt286_jack_detect()
326 snd_soc_dapm_sync(&rt286->codec->dapm); in rt286_jack_detect()
363 snd_soc_dapm_disable_pin(&rt286->codec->dapm, "HV"); in rt286_jack_detect()
364 snd_soc_dapm_disable_pin(&rt286->codec->dapm, "VREF"); in rt286_jack_detect()
366 snd_soc_dapm_disable_pin(&rt286->codec->dapm, "LDO1"); in rt286_jack_detect()
367 snd_soc_dapm_sync(&rt286->codec->dapm); in rt286_jack_detect()
401 snd_soc_dapm_force_enable_pin(&codec->dapm, "LDO1"); in rt286_mic_detect()
409 snd_soc_dapm_disable_pin(&codec->dapm, "LDO1"); in rt286_mic_detect()
[all …]
Dwm8960.c448 struct snd_soc_dapm_context *dapm = &codec->dapm; in wm8960_add_widgets() local
451 snd_soc_dapm_new_controls(dapm, wm8960_dapm_widgets, in wm8960_add_widgets()
454 snd_soc_dapm_add_routes(dapm, audio_paths, ARRAY_SIZE(audio_paths)); in wm8960_add_widgets()
460 snd_soc_dapm_new_controls(dapm, wm8960_dapm_widgets_capless, in wm8960_add_widgets()
463 snd_soc_dapm_add_routes(dapm, audio_paths_capless, in wm8960_add_widgets()
466 snd_soc_dapm_new_controls(dapm, wm8960_dapm_widgets_out3, in wm8960_add_widgets()
469 snd_soc_dapm_add_routes(dapm, audio_paths_out3, in wm8960_add_widgets()
479 if (w->dapm != &codec->dapm) in wm8960_add_widgets()
630 switch (codec->dapm.bias_level) { in wm8960_set_bias_level_out3()
658 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8960_set_bias_level_out3()
[all …]
Dssm2602.c476 codec->dapm.bias_level = level; in ssm2602_set_bias_level()
528 struct snd_soc_dapm_context *dapm = &codec->dapm; in ssm2602_codec_probe() local
541 ret = snd_soc_dapm_new_controls(dapm, ssm2602_dapm_widgets, in ssm2602_codec_probe()
546 return snd_soc_dapm_add_routes(dapm, ssm2602_routes, in ssm2602_codec_probe()
552 struct snd_soc_dapm_context *dapm = &codec->dapm; in ssm2604_codec_probe() local
555 ret = snd_soc_dapm_new_controls(dapm, ssm2604_dapm_widgets, in ssm2604_codec_probe()
560 return snd_soc_dapm_add_routes(dapm, ssm2604_routes, in ssm2604_codec_probe()
Dadau1761.c258 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in adau1761_dejitter_fixup()
469 codec->dapm.bias_level = level; in adau1761_set_bias_level()
518 ret = snd_soc_dapm_add_routes(&codec->dapm, in adau1761_setup_digmic_jackdetect()
525 ret = snd_soc_dapm_new_controls(&codec->dapm, in adau1761_setup_digmic_jackdetect()
531 ret = snd_soc_dapm_add_routes(&codec->dapm, in adau1761_setup_digmic_jackdetect()
580 ret = snd_soc_dapm_new_controls(&codec->dapm, in adau1761_setup_headphone_mode()
585 ret = snd_soc_dapm_add_routes(&codec->dapm, in adau1761_setup_headphone_mode()
593 ret = snd_soc_dapm_new_controls(&codec->dapm, in adau1761_setup_headphone_mode()
598 ret = snd_soc_dapm_add_routes(&codec->dapm, in adau1761_setup_headphone_mode()
695 ret = snd_soc_dapm_new_controls(&codec->dapm, in adau1761_codec_probe()
[all …]
Dad1836.c254 struct snd_soc_dapm_context *dapm = &codec->dapm; 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()
Dadau17x1.c64 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in adau17x1_pll_event()
191 snd_soc_dapm_mux_update_power(&codec->dapm, kcontrol, in adau17x1_dsp_mux_enum_put()
448 struct snd_soc_dapm_context *dapm = &dai->codec->dapm; in adau17x1_set_dai_sysclk() local
462 snd_soc_dapm_add_routes(dapm, in adau17x1_set_dai_sysclk()
465 snd_soc_dapm_del_routes(dapm, in adau17x1_set_dai_sysclk()
814 ret = snd_soc_dapm_new_controls(&codec->dapm, adau17x1_dapm_widgets, in adau17x1_add_widgets()
820 ret = snd_soc_dapm_new_controls(&codec->dapm, in adau17x1_add_widgets()
846 ret = snd_soc_dapm_add_routes(&codec->dapm, adau17x1_dapm_routes, in adau17x1_add_routes()
852 ret = snd_soc_dapm_add_routes(&codec->dapm, in adau17x1_add_routes()
856 ret = snd_soc_dapm_add_routes(&codec->dapm, in adau17x1_add_routes()
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 = &codec->dapm; 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()
Dwm_hubs.c503 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in hp_supply_event()
545 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in hp_event()
597 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in earpiece_event()
622 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in lineout_event()
652 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in micbias_event()
1119 struct snd_soc_dapm_context *dapm = &codec->dapm; in wm_hubs_add_analogue_controls() local
1153 snd_soc_dapm_new_controls(dapm, analogue_dapm_widgets, in wm_hubs_add_analogue_controls()
1163 struct snd_soc_dapm_context *dapm = &codec->dapm; in wm_hubs_add_analogue_routes() local
1170 snd_soc_dapm_add_routes(dapm, analogue_routes, in wm_hubs_add_analogue_routes()
1174 snd_soc_dapm_add_routes(dapm, in wm_hubs_add_analogue_routes()
[all …]
Dwm8962.c1869 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in hp_event()
1963 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in out_pga_event()
1996 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in dsp2_event()
2364 struct snd_soc_dapm_context *dapm = &codec->dapm; in wm8962_add_widgets() local
2376 snd_soc_dapm_new_controls(dapm, wm8962_dapm_widgets, in wm8962_add_widgets()
2379 snd_soc_dapm_new_controls(dapm, wm8962_dapm_spk_mono_widgets, in wm8962_add_widgets()
2382 snd_soc_dapm_new_controls(dapm, wm8962_dapm_spk_stereo_widgets, in wm8962_add_widgets()
2385 snd_soc_dapm_add_routes(dapm, wm8962_intercon, in wm8962_add_widgets()
2388 snd_soc_dapm_add_routes(dapm, wm8962_spk_mono_intercon, in wm8962_add_widgets()
2391 snd_soc_dapm_add_routes(dapm, wm8962_spk_stereo_intercon, in wm8962_add_widgets()
[all …]
Dtlv320aic3x.c182 snd_soc_dapm_mixer_update_power(&codec->dapm, kcontrol, connect, in snd_soc_dapm_put_volsw_aic3x()
201 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in mic_bias_event()
982 struct snd_soc_dapm_context *dapm = &codec->dapm; in aic3x_add_widgets() local
987 snd_soc_dapm_new_controls(dapm, aic3x_extra_dapm_widgets, in aic3x_add_widgets()
989 snd_soc_dapm_add_routes(dapm, intercon_extra, in aic3x_add_widgets()
991 snd_soc_dapm_new_controls(dapm, aic3x_dapm_mono_widgets, in aic3x_add_widgets()
993 snd_soc_dapm_add_routes(dapm, intercon_mono, in aic3x_add_widgets()
997 snd_soc_dapm_new_controls(dapm, aic3x_extra_dapm_widgets, in aic3x_add_widgets()
999 snd_soc_dapm_add_routes(dapm, intercon_extra, in aic3x_add_widgets()
1001 snd_soc_dapm_new_controls(dapm, aic3007_dapm_widgets, in aic3x_add_widgets()
[all …]
Dsn95031.c197 if (codec->dapm.bias_level == SND_SOC_BIAS_STANDBY) { in sn95031_set_vaud_bias()
208 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in sn95031_set_vaud_bias()
214 } else if (codec->dapm.bias_level == SND_SOC_BIAS_PREPARE) { in sn95031_set_vaud_bias()
229 codec->dapm.bias_level = level; in sn95031_set_vaud_bias()
236 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in sn95031_vhs_event()
255 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in sn95031_vihf_event()
272 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in sn95031_dmic12_event()
290 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in sn95031_dmic34_event()
308 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in sn95031_dmic56_event()
Drt5645.c543 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in set_dmic_clk()
560 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in is_sys_clk_from_pll()
574 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in is_using_asrc()
1283 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5645_hp_event()
1353 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5645_spk_event()
1380 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5645_lout_event()
1410 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5645_bst2_event()
2374 if (SND_SOC_BIAS_STANDBY == codec->dapm.bias_level) { in rt5645_set_bias_level()
2413 codec->dapm.bias_level = level; in rt5645_set_bias_level()
2435 snd_soc_dapm_force_enable_pin(&codec->dapm, "micbias1"); in rt5645_jack_detect()
[all …]
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 = &codec->dapm; 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()
1030 codec->dapm.bias_level, level); in aic31xx_set_bias_level()
1036 if (codec->dapm.bias_level == SND_SOC_BIAS_STANDBY) in aic31xx_set_bias_level()
1040 switch (codec->dapm.bias_level) { in aic31xx_set_bias_level()
[all …]
Dadau1781.c177 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in adau1781_dejitter_fixup()
342 codec->dapm.bias_level = level; in adau1781_set_bias_level()
406 ret = snd_soc_dapm_new_controls(&codec->dapm, in adau1781_codec_probe()
411 ret = snd_soc_dapm_add_routes(&codec->dapm, in adau1781_codec_probe()
417 ret = snd_soc_dapm_add_routes(&codec->dapm, in adau1781_codec_probe()
Dalc5623.c58 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in amp_mixer_event()
829 codec->dapm.bias_level = level; in alc5623_set_bias_level()
897 struct snd_soc_dapm_context *dapm = &codec->dapm; in alc5623_probe() local
931 snd_soc_dapm_new_controls(dapm, alc5623_dapm_widgets, in alc5623_probe()
935 snd_soc_dapm_add_routes(dapm, intercon, ARRAY_SIZE(intercon)); in alc5623_probe()
940 snd_soc_dapm_new_controls(dapm, alc5623_dapm_amp_widgets, in alc5623_probe()
942 snd_soc_dapm_add_routes(dapm, intercon_amp_spk, in alc5623_probe()
946 snd_soc_dapm_add_routes(dapm, intercon_spk, in alc5623_probe()
Drt5631.c290 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in check_sysclk1_source()
300 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in check_dmic_used()
308 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in check_dacl_to_outmixl()
318 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in check_dacr_to_outmixr()
328 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in check_dacl_to_spkmixl()
338 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in check_dacr_to_spkmixr()
348 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in check_adcl_select()
358 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in check_adcr_select()
567 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in hp_event()
601 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in set_dmic_params()
[all …]
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 = &codec->dapm; 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 …]
Drt5670.c422 snd_soc_dapm_force_enable_pin(&codec->dapm, in rt5670_headset_detect()
424 snd_soc_dapm_sync(&codec->dapm); in rt5670_headset_detect()
450 snd_soc_dapm_disable_pin(&codec->dapm, "Mic Det Power"); in rt5670_headset_detect()
451 snd_soc_dapm_sync(&codec->dapm); in rt5670_headset_detect()
457 snd_soc_dapm_disable_pin(&codec->dapm, "Mic Det Power"); in rt5670_headset_detect()
458 snd_soc_dapm_sync(&codec->dapm); in rt5670_headset_detect()
685 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in set_dmic_clk()
702 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in is_sys_clk_from_pll()
714 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in is_using_asrc()
766 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in can_use_asrc()
[all …]
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()
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 = &codec->dapm; 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()
856 codec->dapm.bias_level = level; in twl6040_set_bias_level()
Dwm9712.c180 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); in wm9712_hp_mixer_put() local
181 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm); in wm9712_hp_mixer_put()
212 snd_soc_dapm_mixer_update_power(dapm, kcontrol, val, in wm9712_hp_mixer_put()
224 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); in wm9712_hp_mixer_get() local
225 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm); in wm9712_hp_mixer_get()
613 codec->dapm.bias_level = level; in wm9712_set_bias_level()
Darizona.c86 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in arizona_spk_ev()
215 ret = snd_soc_dapm_new_controls(&codec->dapm, &arizona_spkl, 1); in arizona_init_spk()
223 ret = snd_soc_dapm_new_controls(&codec->dapm, in arizona_init_spk()
267 snd_soc_dapm_add_routes(&codec->dapm, in arizona_init_mono()
284 snd_soc_dapm_disable_pin(&codec->dapm, "DRC2 Signal Activity"); in arizona_init_gpio()
290 snd_soc_dapm_disable_pin(&codec->dapm, "DRC1 Signal Activity"); in arizona_init_gpio()
295 snd_soc_dapm_enable_pin(&codec->dapm, in arizona_init_gpio()
299 snd_soc_dapm_enable_pin(&codec->dapm, in arizona_init_gpio()
695 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in arizona_in_ev()
738 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in arizona_out_ev()
[all …]
Dlm4857.c69 if (codec->dapm.bias_level == SND_SOC_BIAS_ON) in lm4857_set_mode()
92 codec->dapm.bias_level = level; in lm4857_set_bias_level()
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 = &codec->dapm; in txsrc_put() local
174 snd_soc_dapm_mutex_lock(dapm); in txsrc_put()
190 snd_soc_dapm_mutex_unlock(dapm); in txsrc_put()
Drt5651.c379 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()
1574 if (SND_SOC_BIAS_STANDBY == codec->dapm.bias_level) { in rt5651_set_bias_level()
1607 codec->dapm.bias_level = level; in rt5651_set_bias_level()
Dcs42xx8.c383 struct snd_soc_dapm_context *dapm = &codec->dapm; 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()
Drt5640.c461 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in set_dmic_clk()
478 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in is_sys_clk_from_pll()
967 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5640_hp_event()
991 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5640_lout_event()
1020 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5640_hp_power_event()
1036 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5640_hp_post_event()
1907 if (SND_SOC_BIAS_OFF == codec->dapm.bias_level) { in rt5640_set_bias_level()
1939 codec->dapm.bias_level = level; in rt5640_set_bias_level()
1988 snd_soc_dapm_new_controls(&codec->dapm, in rt5640_probe()
1991 snd_soc_dapm_add_routes(&codec->dapm, in rt5640_probe()
[all …]
Dmax98090.c809 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in max98090_micinput_event()
1503 struct snd_soc_dapm_context *dapm = &codec->dapm; in max98090_add_widgets() local
1513 snd_soc_dapm_new_controls(dapm, max98090_dapm_widgets, in max98090_add_widgets()
1516 snd_soc_dapm_add_routes(dapm, max98090_dapm_routes, in max98090_add_widgets()
1520 snd_soc_dapm_new_controls(dapm, max98091_dapm_widgets, in max98090_add_widgets()
1523 snd_soc_dapm_add_routes(dapm, max98091_dapm_routes, in max98090_add_widgets()
1802 if (codec->dapm.bias_level == SND_SOC_BIAS_ON) in max98090_set_bias_level()
1810 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in max98090_set_bias_level()
1827 codec->dapm.bias_level = level; in max98090_set_bias_level()
2190 struct snd_soc_dapm_context *dapm = &codec->dapm; in max98090_jack_work() local
[all …]
Dcx20442.c336 if (codec->dapm.bias_level != SND_SOC_BIAS_STANDBY) in cx20442_set_bias_level()
344 if (codec->dapm.bias_level != SND_SOC_BIAS_PREPARE) in cx20442_set_bias_level()
355 codec->dapm.bias_level = level; in cx20442_set_bias_level()
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()
1593 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8996_set_bias_level()
1631 codec->dapm.bias_level = level; in wm8996_set_bias_level()
2250 struct snd_soc_dapm_context *dapm = &codec->dapm; in wm8996_detect() local
2267 snd_soc_dapm_mutex_lock(dapm); in wm8996_detect()
2269 snd_soc_dapm_force_enable_pin_unlocked(dapm, "LDO2"); in wm8996_detect()
[all …]
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()
513 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8770_set_bias_level()
537 codec->dapm.bias_level = level; in wm8770_set_bias_level()
Dcs42l52.c900 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in cs42l52_set_bias_level()
911 codec->dapm.bias_level = level; in cs42l52_set_bias_level()
959 struct snd_soc_dapm_context *dapm = &codec->dapm; in cs42l52_beep_work() local
976 snd_soc_dapm_enable_pin(dapm, "Beep"); in cs42l52_beep_work()
979 snd_soc_dapm_disable_pin(dapm, "Beep"); in cs42l52_beep_work()
985 snd_soc_dapm_sync(dapm); in cs42l52_beep_work()
Dtwl4030.c570 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); \
625 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in handsfreelpga_event()
641 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in handsfreerpga_event()
657 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in vibramux_event()
666 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in apll_event()
682 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in aif_event()
771 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in headsetlpga_event()
796 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in headsetrpga_event()
821 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in digimic_event()
1591 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) in twl4030_set_bias_level()
[all …]
Dcs42l56.c956 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in cs42l56_set_bias_level()
981 codec->dapm.bias_level = level; in cs42l56_set_bias_level()
1029 struct snd_soc_dapm_context *dapm = &codec->dapm; in cs42l56_beep_work() local
1046 snd_soc_dapm_enable_pin(dapm, "Beep"); in cs42l56_beep_work()
1049 snd_soc_dapm_disable_pin(dapm, "Beep"); in cs42l56_beep_work()
1055 snd_soc_dapm_sync(dapm); in cs42l56_beep_work()
Dwm9713.c220 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm9713_voice_shutdown()
255 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); in wm9713_hp_mixer_put() local
256 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm); in wm9713_hp_mixer_put()
287 snd_soc_dapm_mixer_update_power(dapm, kcontrol, val, in wm9713_hp_mixer_put()
299 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); in wm9713_hp_mixer_get() local
300 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm); in wm9713_hp_mixer_get()
1174 codec->dapm.bias_level = level; in wm9713_set_bias_level()
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()
761 if (codec->dapm.bias_level == SND_SOC_BIAS_STANDBY) { in wm8961_set_bias_level()
776 if (codec->dapm.bias_level == SND_SOC_BIAS_PREPARE) { in wm8961_set_bias_level()
798 codec->dapm.bias_level = level; in wm8961_set_bias_level()
Dwm8993.c813 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in clk_sys_event()
995 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8993_set_bias_level()
1068 codec->dapm.bias_level = level; in wm8993_set_bias_level()
1488 struct snd_soc_dapm_context *dapm = &codec->dapm; in wm8993_probe() local
1530 snd_soc_dapm_new_controls(dapm, wm8993_dapm_widgets, in wm8993_probe()
1534 snd_soc_dapm_add_routes(dapm, routes, ARRAY_SIZE(routes)); in wm8993_probe()
1542 codec->dapm.idle_bias_off = 1; in wm8993_probe()
Dwm8728.c173 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8728_set_bias_level()
188 codec->dapm.bias_level = level; in wm8728_set_bias_level()
Dmax9850.c255 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in max9850_set_bias_level()
267 codec->dapm.bias_level = level; in max9850_set_bias_level()
Dsta529.c168 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) in sta529_set_bias_level()
186 codec->dapm.bias_level = level; in sta529_set_bias_level()
Dwm8731.c222 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in wm8731_check_osc()
424 snd_soc_dapm_sync(&codec->dapm); in wm8731_set_dai_sysclk()
504 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8731_set_bias_level()
526 codec->dapm.bias_level = level; in wm8731_set_bias_level()
Djz4740.c261 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) in jz4740_codec_set_bias_level()
284 codec->dapm.bias_level = level; in jz4740_codec_set_bias_level()
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 = &codec->dapm; 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 …]
Drt5677.c823 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) in rt5677_dsp_vad_put()
918 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in set_dmic_clk()
933 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in is_sys_clk_from_pll()
948 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in is_using_asrc()
1031 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in can_use_asrc()
2312 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5677_bst1_event()
2336 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5677_bst2_event()
2360 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5677_set_pll1_event()
2382 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5677_set_pll2_event()
2404 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in rt5677_set_micbias1_event()
[all …]
Dcq93vc.c95 codec->dapm.bias_level = level; in cq93vc_set_bias_level()
Dcs42l73.c587 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in cs42l73_spklo_spk_amp_event()
603 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in cs42l73_ear_amp_event()
621 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in cs42l73_hp_amp_event()
1211 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in cs42l73_set_bias_level()
1231 codec->dapm.bias_level = level; in cs42l73_set_bias_level()
Dwm8997.c87 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm8997_sysclk_ev()
1062 snd_soc_dapm_disable_pin(&codec->dapm, "HAPTICS"); in wm8997_codec_probe()
1064 priv->core.arizona->dapm = &codec->dapm; in wm8997_codec_probe()
1073 priv->core.arizona->dapm = NULL; in wm8997_codec_remove()
Dwm5110.c137 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm5110_sysclk_ev()
1604 priv->core.arizona->dapm = &codec->dapm; in wm5110_codec_probe()
1614 snd_soc_dapm_disable_pin(&codec->dapm, "HAPTICS"); in wm5110_codec_probe()
1616 priv->core.arizona->dapm = &codec->dapm; in wm5110_codec_probe()
1625 priv->core.arizona->dapm = NULL; in wm5110_codec_remove()
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()
754 snd_soc_dapm_sync(&codec->dapm); in configure_clock()
762 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in clk_sys_event()
1968 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8995_set_bias_level()
1993 codec->dapm.bias_level = level; in wm8995_set_bias_level()
Dwm8711.c313 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) in wm8711_set_bias_level()
323 codec->dapm.bias_level = level; in wm8711_set_bias_level()
Dssm4567.c362 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) in ssm4567_set_bias_level()
373 codec->dapm.bias_level = level; in ssm4567_set_bias_level()
Dak4671.c166 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in ak4671_out2_event()
580 codec->dapm.bias_level = level; in ak4671_set_bias_level()
Dwm8988.c247 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm8988_lrc_control()
741 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8988_set_bias_level()
759 codec->dapm.bias_level = level; in wm8988_set_bias_level()
Duda1380.c593 if (codec->dapm.bias_level == level) in uda1380_set_bias_level()
603 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in uda1380_set_bias_level()
626 codec->dapm.bias_level = level; in uda1380_set_bias_level()
Dwm8776.c347 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8776_set_bias_level()
360 codec->dapm.bias_level = level; in wm8776_set_bias_level()
Dwm8523.c311 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8523_set_bias_level()
347 codec->dapm.bias_level = level; in wm8523_set_bias_level()
Dab8500-codec.c1237 status = snd_soc_dapm_force_enable_pin(&codec->dapm, in anc_status_control_put()
1245 snd_soc_dapm_sync(&codec->dapm); in anc_status_control_put()
1262 status = snd_soc_dapm_disable_pin(&codec->dapm, "ANC Configure Input"); in anc_status_control_put()
1263 snd_soc_dapm_sync(&codec->dapm); in anc_status_control_put()
1976 status = snd_soc_dapm_add_routes(&codec->dapm, route, 1); in ab8500_audio_setup_mics()
1980 status |= snd_soc_dapm_add_routes(&codec->dapm, route, 1); in ab8500_audio_setup_mics()
1984 status |= snd_soc_dapm_add_routes(&codec->dapm, route, 1); in ab8500_audio_setup_mics()
2544 (void)snd_soc_dapm_disable_pin(&codec->dapm, "ANC Configure Input"); in ab8500_codec_probe()
Dwm8955.c336 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm8955_sysclk()
788 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8955_set_bias_level()
841 codec->dapm.bias_level = level; in wm8955_set_bias_level()
Dadau1977.c488 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) in adau1977_set_bias_level()
499 codec->dapm.bias_level = level; in adau1977_set_bias_level()
861 ret = snd_soc_dapm_new_controls(&codec->dapm, in adau1977_codec_probe()
Dak4642.c181 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in ak4642_lout_event()
496 codec->dapm.bias_level = level; in ak4642_set_bias_level()
Dml26124.c526 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in ml26124_set_bias_level()
539 codec->dapm.bias_level = level; in ml26124_set_bias_level()
Dwm8971.c580 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8971_set_bias_level()
597 codec->dapm.bias_level = level; in wm8971_set_bias_level()
Duda134x.c353 codec->dapm.bias_level = level; in uda134x_set_bias_level()
529 ret = snd_soc_dapm_new_controls(&codec->dapm, widgets, num_widgets); in uda134x_soc_probe()
Dwm5102.c584 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm5102_sysclk_ev()
1840 snd_soc_dapm_disable_pin(&codec->dapm, "HAPTICS"); in wm5102_codec_probe()
1842 priv->core.arizona->dapm = &codec->dapm; in wm5102_codec_probe()
1851 priv->core.arizona->dapm = NULL; in wm5102_codec_remove()
Dwm8974.c517 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8974_set_bias_level()
536 codec->dapm.bias_level = level; in wm8974_set_bias_level()
Dak4641.c415 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in ak4641_set_bias_level()
442 codec->dapm.bias_level = level; in ak4641_set_bias_level()
Dmax98095.c869 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in max98095_mic_event()
899 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in max98095_line_pga()
947 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in max98095_lineout_event()
1654 if (codec->dapm.bias_level == SND_SOC_BIAS_ON) in max98095_set_bias_level()
1662 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in max98095_set_bias_level()
1681 codec->dapm.bias_level = level; in max98095_set_bias_level()
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()
951 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in sgtl5000_set_bias_level()
982 codec->dapm.bias_level = level; in sgtl5000_set_bias_level()
D88pm860x-codec.c389 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in pm860x_rsync_event()
406 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in pm860x_dac_event()
1143 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in pm860x_set_bias_level()
1159 codec->dapm.bias_level = level; in pm860x_set_bias_level()
Dwm8510.c522 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8510_set_bias_level()
541 codec->dapm.bias_level = level; in wm8510_set_bias_level()
Dwm8737.c472 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8737_set_bias_level()
515 codec->dapm.bias_level = level; in wm8737_set_bias_level()
Dwm8750.c637 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8750_set_bias_level()
654 codec->dapm.bias_level = level; in wm8750_set_bias_level()
Dwm8990.c377 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in outmixer_event()
1127 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8990_set_bias_level()
1230 codec->dapm.bias_level = level; in wm8990_set_bias_level()
Dadau1373.c554 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in adau1373_pll_event()
826 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in adau1373_check_aif_clk()
847 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in adau1373_check_src()
1447 codec->dapm.bias_level = level; in adau1373_set_bias_level()
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()
1108 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8903_set_bias_level()
1203 codec->dapm.bias_level = level; in wm8903_set_bias_level()
Dwm1250-ev1.c64 codec->dapm.bias_level = level; in wm1250_ev1_set_bias_level()
Dwm8940.c495 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8940_set_bias_level()
513 codec->dapm.bias_level = level; in wm8940_set_bias_level()
Des8328.c548 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in es8328_set_bias_level()
578 codec->dapm.bias_level = level; in es8328_set_bias_level()
Dssm2518.c513 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) in ssm2518_set_bias_level()
524 codec->dapm.bias_level = level; in ssm2518_set_bias_level()
Dmax98088.c878 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in max98088_mic_event()
908 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in max98088_line_pga()
1574 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) in max98088_set_bias_level()
1587 codec->dapm.bias_level = level; in max98088_set_bias_level()
Dwm0010.c754 if (codec->dapm.bias_level == SND_SOC_BIAS_PREPARE) in wm0010_set_bias_level()
760 if (codec->dapm.bias_level == SND_SOC_BIAS_PREPARE) { in wm0010_set_bias_level()
770 codec->dapm.bias_level = level; in wm0010_set_bias_level()
Dwm8900.c227 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm8900_hp_event()
1052 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8900_set_bias_level()
1120 codec->dapm.bias_level = level; in wm8900_set_bias_level()
Dwm8991.c385 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in outmixer_event()
1134 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8991_set_bias_level()
1227 codec->dapm.bias_level = level; in wm8991_set_bias_level()
Dtlv320dac33.c426 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in dac33_playback_event()
636 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in dac33_set_bias_level()
647 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) in dac33_set_bias_level()
654 codec->dapm.bias_level = level; in dac33_set_bias_level()
Dpcm512x.c245 switch (codec->dapm.bias_level) { in pcm512x_overclock_pll_put()
273 switch (codec->dapm.bias_level) { in pcm512x_overclock_dsp_put()
301 switch (codec->dapm.bias_level) { in pcm512x_overclock_dac_put()
644 codec->dapm.bias_level = level; in pcm512x_set_bias_level()
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()
1435 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in da732x_set_bias_level()
1505 codec->dapm.bias_level = level; in da732x_set_bias_level()
Dwm9081.c737 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in clk_sys_event()
841 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm9081_set_bias_level()
901 codec->dapm.bias_level = level; in wm9081_set_bias_level()
Dwm8400.c327 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in outmixer_event()
1148 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8400_set_bias_level()
1235 codec->dapm.bias_level = level; in wm8400_set_bias_level()
Dwm8978.c871 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8978_set_bias_level()
891 codec->dapm.bias_level = level; in wm8978_set_bias_level()
Dalc5632.c119 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in amp_mixer_event()
1003 codec->dapm.bias_level = level; in alc5632_set_bias_level()
Dwm8580.c798 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8580_set_bias_level()
815 codec->dapm.bias_level = level; in wm8580_set_bias_level()
Dak4535.c344 codec->dapm.bias_level = level; in ak4535_set_bias_level()
Dstac9766.c239 codec->dapm.bias_level = level; in stac9766_set_bias_level()
Dwm8983.c918 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8983_set_bias_level()
966 codec->dapm.bias_level = level; in wm8983_set_bias_level()
Dlm49453.c1274 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) in lm49453_set_bias_level()
1287 codec->dapm.bias_level = level; in lm49453_set_bias_level()
Dwm8350.c259 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in pga_event()
1105 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8350_set_bias_level()
1238 codec->dapm.bias_level = level; in wm8350_set_bias_level()
Dcs42l51.c156 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in cs42l51_pdn_event()
Dda9055.c1367 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in da9055_set_bias_level()
1380 codec->dapm.bias_level = level; in da9055_set_bias_level()
Dsta32x.c822 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in sta32x_set_bias_level()
857 codec->dapm.bias_level = level; in sta32x_set_bias_level()
Dwm8985.c900 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8985_set_bias_level()
960 codec->dapm.bias_level = level; in wm8985_set_bias_level()
Dcs4265.c506 codec->dapm.bias_level = level; in cs4265_set_bias_level()
Dsta350.c856 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in sta350_set_bias_level()
893 codec->dapm.bias_level = level; in sta350_set_bias_level()
Dwm8753.c1355 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8753_set_bias_level()
1370 codec->dapm.bias_level = level; in wm8753_set_bias_level()
Dtlv320aic23.c509 codec->dapm.bias_level = level; in tlv320aic23_set_bias_level()
Dda7213.c1377 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in da7213_set_bias_level()
1390 codec->dapm.bias_level = level; in da7213_set_bias_level()
Dwm_adsp.c1369 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm_adsp1_event()
1601 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm_adsp2_early_event()
1622 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm_adsp2_event()
Disabelle.c912 codec->dapm.bias_level = level; in isabelle_set_bias_level()
Dadau1701.c568 codec->dapm.bias_level = level; in adau1701_set_bias_level()
Dtlv320aic32x4.c567 codec->dapm.bias_level = level; in aic32x4_set_bias_level()
Dwm2000.c686 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm2000_anc_power_event()
Dwm8958-dsp2.c421 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in wm8958_aif_ev()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/drivers/extcon/
Dextcon-arizona.c162 mutex_lock(&arizona->dapm->card->dapm_mutex); in arizona_extcon_hp_clamp()
202 mutex_unlock(&arizona->dapm->card->dapm_mutex); in arizona_extcon_hp_clamp()
244 struct snd_soc_dapm_context *dapm = arizona->dapm; in arizona_extcon_pulse_micbias() local
247 ret = snd_soc_dapm_force_enable_pin(dapm, widget); in arizona_extcon_pulse_micbias()
252 snd_soc_dapm_sync(dapm); in arizona_extcon_pulse_micbias()
255 ret = snd_soc_dapm_disable_pin(arizona->dapm, widget); in arizona_extcon_pulse_micbias()
260 snd_soc_dapm_sync(dapm); in arizona_extcon_pulse_micbias()
313 struct snd_soc_dapm_context *dapm = arizona->dapm; in arizona_stop_mic() local
321 ret = snd_soc_dapm_disable_pin(dapm, widget); in arizona_stop_mic()
327 snd_soc_dapm_sync(dapm); in arizona_stop_mic()
[all …]
/linux-4.1.27/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.c210 struct snd_soc_dapm_context *dapm, in fsl_asoc_card_set_bias_level() argument
220 if (dapm->dev != codec_dai->dev) in fsl_asoc_card_set_bias_level()
225 if (dapm->bias_level != SND_SOC_BIAS_STANDBY) in fsl_asoc_card_set_bias_level()
250 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.1.27/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()
839 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_set_be_modules()
858 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_set_media_path()
895 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_set_media_loop()
1235 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_fill_module_list()
1377 struct snd_soc_dapm_context *dapm = in sst_dsp_init_v2_dpcm() local
1387 snd_soc_dapm_new_controls(dapm, sst_dapm_widgets, in sst_dsp_init_v2_dpcm()
1389 snd_soc_dapm_add_routes(dapm, intercon, in sst_dsp_init_v2_dpcm()
1391 snd_soc_dapm_new_widgets(dapm->card); in sst_dsp_init_v2_dpcm()
/linux-4.1.27/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.1.27/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.1.27/include/linux/mfd/arizona/
Dcore.h138 struct snd_soc_dapm_context *dapm; member
/linux-4.1.27/Documentation/DocBook/
D.alsa-driver-api.xml.cmd2 …und/soc/soc-devres.c sound/soc/soc-io.c sound/soc/soc-pcm.c sound/soc/soc-dapm.c sound/soc/soc-gen…