/linux/sound/soc/ |
H A D | soc-dapm.c | 43 #define DAPM_UPDATE_STAT(widget, val) widget->dapm->card->dapm_stats.val++; 52 static int snd_soc_dapm_add_path(struct snd_soc_dapm_context *dapm, 59 snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm, 63 snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm, 66 static unsigned int soc_dapm_read(struct snd_soc_dapm_context *dapm, int reg); 151 static void dapm_assert_locked(struct snd_soc_dapm_context *dapm) in dapm_assert_locked() argument 153 if (snd_soc_card_is_instantiated(dapm->card)) in dapm_assert_locked() 154 snd_soc_dapm_mutex_assert_held(dapm); in dapm_assert_locked() 191 dapm_assert_locked(w->dapm); in dapm_mark_dirty() 194 dev_vdbg(w->dapm->dev, "Marking %s dirty due to %s\n", in dapm_mark_dirty() [all …]
|
/linux/sound/soc/pxa/ |
H A D | spitz.c | 41 static void spitz_ext_control(struct snd_soc_dapm_context *dapm) in spitz_ext_control() argument 43 snd_soc_dapm_mutex_lock(dapm); in spitz_ext_control() 46 snd_soc_dapm_enable_pin_unlocked(dapm, "Ext Spk"); in spitz_ext_control() 48 snd_soc_dapm_disable_pin_unlocked(dapm, "Ext Spk"); in spitz_ext_control() 54 snd_soc_dapm_disable_pin_unlocked(dapm, "Headset Jack"); in spitz_ext_control() 55 snd_soc_dapm_disable_pin_unlocked(dapm, "Mic Jack"); in spitz_ext_control() 56 snd_soc_dapm_disable_pin_unlocked(dapm, "Line Jack"); in spitz_ext_control() 57 snd_soc_dapm_enable_pin_unlocked(dapm, "Headphone Jack"); in spitz_ext_control() 63 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in spitz_ext_control() 64 snd_soc_dapm_disable_pin_unlocked(dapm, "Headset Jack"); in spitz_ext_control() [all …]
|
/linux/sound/soc/ti/ |
H A D | ams-delta.c | 102 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 …]
|
H A D | omap3pandora.c | 76 dev_err(w->dapm->dev, "Failed to power DAC: %d\n", ret); in omap3pandora_dac_event() 142 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in omap3pandora_out_init() local 145 snd_soc_dapm_nc_pin(dapm, "EARPIECE"); in omap3pandora_out_init() 146 snd_soc_dapm_nc_pin(dapm, "PREDRIVEL"); in omap3pandora_out_init() 147 snd_soc_dapm_nc_pin(dapm, "PREDRIVER"); in omap3pandora_out_init() 148 snd_soc_dapm_nc_pin(dapm, "HSOL"); in omap3pandora_out_init() 149 snd_soc_dapm_nc_pin(dapm, "HSOR"); in omap3pandora_out_init() 150 snd_soc_dapm_nc_pin(dapm, "CARKITL"); in omap3pandora_out_init() 151 snd_soc_dapm_nc_pin(dapm, "CARKITR"); in omap3pandora_out_init() 152 snd_soc_dapm_nc_pin(dapm, "HFL"); in omap3pandora_out_init() [all …]
|
H A D | omap-twl4030.c | 136 static inline void twl4030_disconnect_pin(struct snd_soc_dapm_context *dapm, in twl4030_disconnect_pin() argument 140 snd_soc_dapm_disable_pin(dapm, pin); in twl4030_disconnect_pin() 146 struct snd_soc_dapm_context *dapm = &card->dapm; in omap_twl4030_init() local 181 twl4030_disconnect_pin(dapm, pdata->has_ear, "Earpiece Spk"); in omap_twl4030_init() 182 twl4030_disconnect_pin(dapm, pdata->has_hf, "Handsfree Spk"); in omap_twl4030_init() 183 twl4030_disconnect_pin(dapm, pdata->has_hs, "Headset Stereophone"); in omap_twl4030_init() 184 twl4030_disconnect_pin(dapm, pdata->has_predriv, "Ext Spk"); in omap_twl4030_init() 185 twl4030_disconnect_pin(dapm, pdata->has_carkit, "Carkit Spk"); in omap_twl4030_init() 187 twl4030_disconnect_pin(dapm, pdata->has_mainmic, "Main Mic"); in omap_twl4030_init() 188 twl4030_disconnect_pin(dapm, pdata->has_submic, "Sub Mic"); in omap_twl4030_init() [all …]
|
H A D | n810.c | 42 static void n810_ext_control(struct snd_soc_dapm_context *dapm) in n810_ext_control() argument 58 snd_soc_dapm_mutex_lock(dapm); in n810_ext_control() 61 snd_soc_dapm_enable_pin_unlocked(dapm, "Ext Spk"); in n810_ext_control() 63 snd_soc_dapm_disable_pin_unlocked(dapm, "Ext Spk"); in n810_ext_control() 66 snd_soc_dapm_enable_pin_unlocked(dapm, "Headphone Jack"); in n810_ext_control() 68 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in n810_ext_control() 70 snd_soc_dapm_enable_pin_unlocked(dapm, "HS Mic"); in n810_ext_control() 72 snd_soc_dapm_disable_pin_unlocked(dapm, "HS Mic"); in n810_ext_control() 75 snd_soc_dapm_enable_pin_unlocked(dapm, "DMic"); in n810_ext_control() 77 snd_soc_dapm_disable_pin_unlocked(dapm, "DMic"); in n810_ext_control() [all …]
|
/linux/sound/soc/samsung/ |
H A D | smdk_wm8994.c | 72 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in smdk_wm8994_init_paiftx() local 75 snd_soc_dapm_nc_pin(dapm, "HPOUT2P"); in smdk_wm8994_init_paiftx() 76 snd_soc_dapm_nc_pin(dapm, "HPOUT2N"); in smdk_wm8994_init_paiftx() 77 snd_soc_dapm_nc_pin(dapm, "SPKOUTLN"); in smdk_wm8994_init_paiftx() 78 snd_soc_dapm_nc_pin(dapm, "SPKOUTLP"); in smdk_wm8994_init_paiftx() 79 snd_soc_dapm_nc_pin(dapm, "SPKOUTRP"); in smdk_wm8994_init_paiftx() 80 snd_soc_dapm_nc_pin(dapm, "SPKOUTRN"); in smdk_wm8994_init_paiftx() 81 snd_soc_dapm_nc_pin(dapm, "LINEOUT1N"); in smdk_wm8994_init_paiftx() 82 snd_soc_dapm_nc_pin(dapm, "LINEOUT1P"); in smdk_wm8994_init_paiftx() 83 snd_soc_dapm_nc_pin(dapm, "LINEOUT2N"); in smdk_wm8994_init_paiftx() [all …]
|
H A D | speyside.c | 20 struct snd_soc_dapm_context *dapm, in speyside_set_bias_level() argument 30 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level() 56 struct snd_soc_dapm_context *dapm, in speyside_set_bias_level_post() argument 66 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level_post() 71 if (card->dapm.bias_level == SND_SOC_BIAS_STANDBY) { in speyside_set_bias_level_post() 93 card->dapm.bias_level = level; in speyside_set_bias_level_post() 175 snd_soc_dapm_ignore_suspend(&card->dapm, "Headphone"); in speyside_late_probe() 176 snd_soc_dapm_ignore_suspend(&card->dapm, "Headset Mic"); in speyside_late_probe() 177 snd_soc_dapm_ignore_suspend(&card->dapm, "Main AMIC"); in speyside_late_probe() 178 snd_soc_dapm_ignore_suspend(&card->dapm, "Main DMIC"); in speyside_late_probe() [all …]
|
/linux/sound/soc/ux500/ |
H A D | mop500_ab8500.c | 360 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in mop500_ab8500_machine_init() local 409 ret = snd_soc_dapm_disable_pin(dapm, "Earpiece"); in mop500_ab8500_machine_init() 410 ret |= snd_soc_dapm_disable_pin(dapm, "Speaker Left"); in mop500_ab8500_machine_init() 411 ret |= snd_soc_dapm_disable_pin(dapm, "Speaker Right"); in mop500_ab8500_machine_init() 412 ret |= snd_soc_dapm_disable_pin(dapm, "LineOut Left"); in mop500_ab8500_machine_init() 413 ret |= snd_soc_dapm_disable_pin(dapm, "LineOut Right"); in mop500_ab8500_machine_init() 414 ret |= snd_soc_dapm_disable_pin(dapm, "Vibra 1"); in mop500_ab8500_machine_init() 415 ret |= snd_soc_dapm_disable_pin(dapm, "Vibra 2"); in mop500_ab8500_machine_init() 416 ret |= snd_soc_dapm_disable_pin(dapm, "Mic 1"); in mop500_ab8500_machine_init() 417 ret |= snd_soc_dapm_disable_pin(dapm, "Mic 2"); in mop500_ab8500_machine_init() [all …]
|
/linux/sound/soc/sdw_utils/ |
H A D | soc_sdw_maxim.c | 40 ret = snd_soc_dapm_add_routes(&card->dapm, max_98373_dapm_routes, 2); in asoc_sdw_maxim_spk_rtd_init() 62 struct snd_soc_dapm_context *dapm = in asoc_sdw_mx8373_enable_spk_pin() local 70 ret = snd_soc_dapm_enable_pin(dapm, pin_name); in asoc_sdw_mx8373_enable_spk_pin() 72 ret = snd_soc_dapm_disable_pin(dapm, pin_name); in asoc_sdw_mx8373_enable_spk_pin() 75 snd_soc_dapm_sync(dapm); in asoc_sdw_mx8373_enable_spk_pin() 116 struct snd_soc_dapm_context *dapm = &card->dapm; in asoc_sdw_mx8373_sdw_late_probe() local 119 snd_soc_dapm_disable_pin(dapm, "Left Spk"); in asoc_sdw_mx8373_sdw_late_probe() 120 snd_soc_dapm_disable_pin(dapm, "Right Spk"); in asoc_sdw_mx8373_sdw_late_probe() 121 return snd_soc_dapm_sync(dapm); in asoc_sdw_mx8373_sdw_late_probe()
|
/linux/drivers/staging/greybus/ |
H A D | audio_helper.c | 24 if (w->dapm != dai_w->dapm) in gbaudio_dapm_link_dai_widget() 60 struct snd_soc_dapm_context *dapm) in gbaudio_dapm_link_component_dai_widgets() argument 66 if (dai_w->dapm != dapm) in gbaudio_dapm_link_component_dai_widgets() 112 int gbaudio_dapm_free_controls(struct snd_soc_dapm_context *dapm, in gbaudio_dapm_free_controls() argument 119 mutex_lock(&dapm->card->dapm_mutex); in gbaudio_dapm_free_controls() 123 list_for_each_entry(tmp_w, &dapm->card->widgets, list) { in gbaudio_dapm_free_controls() 124 if (tmp_w->dapm == dapm && in gbaudio_dapm_free_controls() 131 dev_err(dapm->dev, "%s: widget not found\n", in gbaudio_dapm_free_controls() 139 mutex_unlock(&dapm->card->dapm_mutex); in gbaudio_dapm_free_controls()
|
/linux/sound/soc/atmel/ |
H A D | tse850-pcm5142.c | 61 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kctrl); in tse850_get_mux1() local 62 struct snd_soc_card *card = dapm->card; in tse850_get_mux1() 73 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kctrl); in tse850_put_mux1() local 74 struct snd_soc_card *card = dapm->card; in tse850_put_mux1() 91 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kctrl); in tse850_get_mux2() local 92 struct snd_soc_card *card = dapm->card; in tse850_get_mux2() 103 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kctrl); in tse850_put_mux2() local 104 struct snd_soc_card *card = dapm->card; in tse850_put_mux2() 121 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kctrl); in tse850_get_mix() local 122 struct snd_soc_card *card = dapm->card; in tse850_get_mix() [all …]
|
/linux/sound/soc/sunxi/ |
H A D | sun8i-codec-analog.c | 346 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in sun8i_headphone_amp_event() 393 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(cmpnt); in sun8i_codec_add_headphone() local 405 ret = snd_soc_dapm_new_controls(dapm, sun8i_codec_headphone_widgets, in sun8i_codec_add_headphone() 412 ret = snd_soc_dapm_add_routes(dapm, sun8i_codec_headphone_routes, in sun8i_codec_add_headphone() 431 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(cmpnt); in sun8i_codec_add_mbias() local 435 ret = snd_soc_dapm_new_controls(dapm, sun8i_codec_mbias_widgets, in sun8i_codec_add_mbias() 452 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(cmpnt); in sun8i_codec_add_hmic() local 456 ret = snd_soc_dapm_new_controls(dapm, sun8i_codec_hmic_widgets, in sun8i_codec_add_hmic() 489 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(cmpnt); in sun8i_codec_add_linein() local 501 ret = snd_soc_dapm_new_controls(dapm, sun8i_codec_linein_widgets, in sun8i_codec_add_linein() [all …]
|
/linux/include/sound/ |
H A D | soc-dapm.h | 459 int snd_soc_dapm_new_controls(struct snd_soc_dapm_context *dapm, 461 struct snd_soc_dapm_widget *snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm, 463 struct snd_soc_dapm_widget *snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm, 465 int snd_soc_dapm_new_dai_widgets(struct snd_soc_dapm_context *dapm, struct snd_soc_dai *dai); 476 void snd_soc_dapm_free(struct snd_soc_dapm_context *dapm); 477 void snd_soc_dapm_init(struct snd_soc_dapm_context *dapm, 479 int snd_soc_dapm_add_routes(struct snd_soc_dapm_context *dapm, 481 int snd_soc_dapm_del_routes(struct snd_soc_dapm_context *dapm, 483 int snd_soc_dapm_weak_routes(struct snd_soc_dapm_context *dapm, 493 int snd_soc_dapm_mixer_update_power(struct snd_soc_dapm_context *dapm, [all …]
|
/linux/include/trace/events/ |
H A D | asoc.h | 25 TP_PROTO(struct snd_soc_dapm_context *dapm, int val), 27 TP_ARGS(dapm, val), 30 __string( card_name, dapm->card->name) 31 __string( comp_name, dapm->component ? dapm->component->name : "(none)") 47 TP_PROTO(struct snd_soc_dapm_context *dapm, int val), 49 TP_ARGS(dapm, val) 55 TP_PROTO(struct snd_soc_dapm_context *dapm, int val), 57 TP_ARGS(dapm, val)
|
/linux/sound/soc/intel/boards/ |
H A D | sof_maxim_common.c | 204 struct snd_soc_dapm_context *dapm = in max_98373_trigger() local 215 ret = snd_soc_dapm_enable_pin(dapm, pin_name); in max_98373_trigger() 217 snd_soc_dapm_sync(dapm); in max_98373_trigger() 222 ret = snd_soc_dapm_disable_pin(dapm, pin_name); in max_98373_trigger() 224 snd_soc_dapm_sync(dapm); in max_98373_trigger() 247 ret = snd_soc_dapm_new_controls(&card->dapm, maxim_2spk_widgets, in max_98373_spk_codec_init() 263 ret = snd_soc_dapm_add_routes(&card->dapm, max_98373_dapm_routes, in max_98373_spk_codec_init() 425 ret = snd_soc_dapm_new_controls(&card->dapm, max_98390_tt_dapm_widgets, in max_98390_init() 442 ret = snd_soc_dapm_add_routes(&card->dapm, max_98390_tt_dapm_routes, in max_98390_init() 453 ret = snd_soc_dapm_new_controls(&card->dapm, maxim_2spk_widgets, in max_98390_init() [all …]
|
H A D | cht_bsw_max98090_ti.c | 45 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control() local 46 struct snd_soc_card *card = dapm->card; in platform_clock_control() 133 struct snd_soc_dapm_context *dapm = &jack->card->dapm; in cht_ti_jack_event() local 136 snd_soc_dapm_force_enable_pin(dapm, "SHDN"); in cht_ti_jack_event() 137 snd_soc_dapm_force_enable_pin(dapm, "MICBIAS"); in cht_ti_jack_event() 138 snd_soc_dapm_sync(dapm); in cht_ti_jack_event() 140 snd_soc_dapm_disable_pin(dapm, "MICBIAS"); in cht_ti_jack_event() 141 snd_soc_dapm_disable_pin(dapm, "SHDN"); in cht_ti_jack_event() 142 snd_soc_dapm_sync(dapm); in cht_ti_jack_event()
|
H A D | sof_realtek_common.c | 195 ret = snd_soc_dapm_new_controls(&card->dapm, realtek_2spk_widgets, in rt1011_init() 211 ret = snd_soc_dapm_add_routes(&card->dapm, speaker_map_lr, in rt1011_init() 228 ret = snd_soc_dapm_new_controls(&card->dapm, realtek_4spk_widgets, in rt1011_init() 244 ret = snd_soc_dapm_add_routes(&card->dapm, rt1011_4spk_routes, in rt1011_init() 349 ret = snd_soc_dapm_new_controls(&card->dapm, realtek_2spk_widgets, in rt1015p_init() 363 ret = snd_soc_dapm_add_routes(&card->dapm, rt1015p_dapm_routes, in rt1015p_init() 489 ret = snd_soc_dapm_new_controls(&card->dapm, realtek_2spk_widgets, in speaker_codec_init_lr() 505 ret = snd_soc_dapm_add_routes(&rtd->card->dapm, speaker_map_lr, in speaker_codec_init_lr() 566 ret = snd_soc_dapm_new_controls(&card->dapm, rt1308_dapm_widgets, in rt1308_init() 580 ret = snd_soc_dapm_add_routes(&card->dapm, rt1308_dapm_routes, in rt1308_init() [all …]
|
/linux/sound/soc/codecs/ |
H A D | rt298.c | 221 struct snd_soc_dapm_context *dapm; in rt298_jack_detect() local 230 dapm = snd_soc_component_get_dapm(rt298->component); in rt298_jack_detect() 243 snd_soc_dapm_force_enable_pin(dapm, "HV"); in rt298_jack_detect() 244 snd_soc_dapm_force_enable_pin(dapm, "VREF"); in rt298_jack_detect() 246 snd_soc_dapm_force_enable_pin(dapm, "LDO1"); in rt298_jack_detect() 247 snd_soc_dapm_sync(dapm); in rt298_jack_detect() 296 snd_soc_dapm_disable_pin(dapm, "HV"); in rt298_jack_detect() 297 snd_soc_dapm_disable_pin(dapm, "VREF"); in rt298_jack_detect() 300 snd_soc_dapm_disable_pin(dapm, "LDO1"); in rt298_jack_detect() 301 snd_soc_dapm_sync(dapm); in rt298_jack_detect() [all …]
|
H A D | wm8994.c | 217 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in configure_clock() local 245 snd_soc_dapm_sync(dapm); in configure_clock() 255 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm); in check_clk_sys() 810 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in clk_sys_event() 986 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in vmid_event() 1101 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in aif1clk_ev() 1206 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in aif2clk_ev() 1298 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in aif1clk_late_ev() 1316 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in aif2clk_late_ev() 1334 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in late_enable_ev() [all …]
|
H A D | adav80x.c | 214 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm); in adav80x_dapm_sysclk_check() 238 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm); in adav80x_dapm_pll_check() 542 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); 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 …]
|
H A D | rt5682.c | 929 struct snd_soc_dapm_context *dapm = &component->dapm; in rt5682_headset_detect() local 987 if (!snd_soc_dapm_get_pin_status(dapm, "MICBIAS") && in rt5682_headset_detect() 988 !snd_soc_dapm_get_pin_status(dapm, "PLL1") && in rt5682_headset_detect() 989 !snd_soc_dapm_get_pin_status(dapm, "PLL2B")) in rt5682_headset_detect() 992 if (!snd_soc_dapm_get_pin_status(dapm, "Vref2") && in rt5682_headset_detect() 993 !snd_soc_dapm_get_pin_status(dapm, "PLL1") && in rt5682_headset_detect() 994 !snd_soc_dapm_get_pin_status(dapm, "PLL2B")) in rt5682_headset_detect() 1096 struct snd_soc_dapm_context *dapm; in rt5682_jack_detect_handler() local 1116 dapm = snd_soc_component_get_dapm(rt5682->component); in rt5682_jack_detect_handler() 1118 snd_soc_dapm_mutex_lock(dapm); in rt5682_jack_detect_handler() [all …]
|
H A D | adau17x1.c | 74 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in adau17x1_pll_event() 104 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in adau17x1_adc_fixup() 189 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in adau17x1_dsp_mux_enum_put() local 223 snd_soc_dapm_mux_update_power(dapm, kcontrol, in adau17x1_dsp_mux_enum_put() 386 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(dai->component); in adau17x1_set_dai_sysclk() local 422 snd_soc_dapm_add_routes(dapm, in adau17x1_set_dai_sysclk() 425 snd_soc_dapm_del_routes(dapm, in adau17x1_set_dai_sysclk() 884 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in adau17x1_setup_firmware() local 895 snd_soc_dapm_mutex_lock(dapm); in adau17x1_setup_firmware() 918 snd_soc_dapm_mutex_unlock(dapm); in adau17x1_setup_firmware() [all …]
|
/linux/drivers/regulator/ |
H A D | arizona-micsupp.c | 36 struct snd_soc_dapm_context **dapm; member 50 struct snd_soc_dapm_context *dapm = *micsupp->dapm; in arizona_micsupp_check_cp() local 63 if (dapm) { in arizona_micsupp_check_cp() 64 component = snd_soc_dapm_to_component(dapm); in arizona_micsupp_check_cp() 73 snd_soc_dapm_sync(dapm); in arizona_micsupp_check_cp() 318 micsupp->dapm = &arizona->dapm; in arizona_micsupp_probe() 354 micsupp->dapm = &madera->dapm; in madera_micsupp_probe()
|
/linux/drivers/input/misc/ |
H A D | arizona-haptics.c | 38 snd_soc_dapm_to_component(arizona->dapm); in arizona_haptics_work() 41 if (!haptics->arizona->dapm) { in arizona_haptics_work() 75 ret = snd_soc_dapm_sync(arizona->dapm); in arizona_haptics_work() 90 ret = snd_soc_dapm_sync(arizona->dapm); in arizona_haptics_work() 114 if (!arizona->dapm) { in arizona_haptics_play() 146 if (haptics->arizona->dapm) { in arizona_haptics_close() 147 component = snd_soc_dapm_to_component(haptics->arizona->dapm); in arizona_haptics_close()
|