/openbmc/linux/sound/soc/ |
H A D | soc-dapm.c | 3 // soc-dapm.c -- ALSA SoC Dynamic Audio Power Management 42 #define DAPM_UPDATE_STAT(widget, val) widget->dapm->card->dapm_stats.val++; 51 static int snd_soc_dapm_add_path(struct snd_soc_dapm_context *dapm, 58 snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm, 62 snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm, 65 static unsigned int soc_dapm_read(struct snd_soc_dapm_context *dapm, int reg); 67 /* dapm power sequences - make this per codec in the future */ 150 static void dapm_assert_locked(struct snd_soc_dapm_context *dapm) in dapm_assert_locked() argument 152 if (snd_soc_card_is_instantiated(dapm->card)) in dapm_assert_locked() 153 snd_soc_dapm_mutex_assert_held(dapm); in dapm_assert_locked() [all …]
|
/openbmc/linux/sound/soc/ti/ |
H A D | ams-delta.c | 43 /* Board specific DAPM widgets */ 104 struct snd_soc_dapm_context *dapm = &card->dapm; in ams_delta_set_audio_mode() local 116 snd_soc_dapm_mutex_lock(dapm); in ams_delta_set_audio_mode() 124 if (pin != snd_soc_dapm_get_pin_status(dapm, "Mouthpiece")) { in ams_delta_set_audio_mode() 127 snd_soc_dapm_enable_pin_unlocked(dapm, "Mouthpiece"); in ams_delta_set_audio_mode() 129 snd_soc_dapm_disable_pin_unlocked(dapm, "Mouthpiece"); in ams_delta_set_audio_mode() 132 if (pin != snd_soc_dapm_get_pin_status(dapm, "Earpiece")) { in ams_delta_set_audio_mode() 135 snd_soc_dapm_enable_pin_unlocked(dapm, "Earpiece"); in ams_delta_set_audio_mode() 137 snd_soc_dapm_disable_pin_unlocked(dapm, "Earpiece"); in ams_delta_set_audio_mode() 140 if (pin != snd_soc_dapm_get_pin_status(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 | 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 …]
|
H A D | rx51.c | 45 static void rx51_ext_control(struct snd_soc_dapm_context *dapm) in rx51_ext_control() argument 47 struct snd_soc_card *card = dapm->card; in rx51_ext_control() 64 snd_soc_dapm_mutex_lock(dapm); in rx51_ext_control() 67 snd_soc_dapm_enable_pin_unlocked(dapm, "Ext Spk"); in rx51_ext_control() 69 snd_soc_dapm_disable_pin_unlocked(dapm, "Ext Spk"); in rx51_ext_control() 71 snd_soc_dapm_enable_pin_unlocked(dapm, "DMic"); in rx51_ext_control() 73 snd_soc_dapm_disable_pin_unlocked(dapm, "DMic"); in rx51_ext_control() 75 snd_soc_dapm_enable_pin_unlocked(dapm, "Headphone Jack"); in rx51_ext_control() 77 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in rx51_ext_control() 79 snd_soc_dapm_enable_pin_unlocked(dapm, "HS Mic"); in rx51_ext_control() [all …]
|
H A D | omap-twl4030.c | 118 /* Headset jack detection DAPM pins */ 139 static inline void twl4030_disconnect_pin(struct snd_soc_dapm_context *dapm, in twl4030_disconnect_pin() argument 143 snd_soc_dapm_disable_pin(dapm, pin); in twl4030_disconnect_pin() 149 struct snd_soc_dapm_context *dapm = &card->dapm; in omap_twl4030_init() local 180 twl4030_disconnect_pin(dapm, pdata->has_ear, "Earpiece Spk"); in omap_twl4030_init() 181 twl4030_disconnect_pin(dapm, pdata->has_hf, "Handsfree Spk"); in omap_twl4030_init() 182 twl4030_disconnect_pin(dapm, pdata->has_hs, "Headset Stereophone"); in omap_twl4030_init() 183 twl4030_disconnect_pin(dapm, pdata->has_predriv, "Ext Spk"); in omap_twl4030_init() 184 twl4030_disconnect_pin(dapm, pdata->has_carkit, "Carkit Spk"); in omap_twl4030_init() 186 twl4030_disconnect_pin(dapm, pdata->has_mainmic, "Main Mic"); in omap_twl4030_init() [all …]
|
/openbmc/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 …]
|
/openbmc/linux/include/sound/ |
H A D | soc-dapm.h | 3 * linux/sound/soc-dapm.h -- ALSA SoC Dynamic Audio Power Management 240 /* events that are pre and post DAPM */ 327 /* dapm kcontrol types */ 385 /* dapm stream operations */ 394 /* dapm event types */ 428 * @PREPARE: Prepare for audio operations. Called before DAPM switching for 446 /* dapm controls */ 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, [all …]
|
H A D | soc-component.h | 242 struct snd_soc_dapm_context dapm; member 265 * snd_soc_dapm_to_component() - Casts a DAPM context to the component it is 267 * @dapm: The DAPM context to cast to the component 269 * This function must only be used on DAPM contexts that are known to be part of 274 struct snd_soc_dapm_context *dapm) in snd_soc_dapm_to_component() argument 276 return container_of(dapm, struct snd_soc_component, dapm); in snd_soc_dapm_to_component() 280 * snd_soc_component_get_dapm() - Returns the DAPM context associated with a 282 * @component: The component for which to get the DAPM context 287 return &component->dapm; in snd_soc_component_get_dapm() 291 * snd_soc_component_init_bias_level() - Initialize COMPONENT DAPM bias level [all …]
|
/openbmc/linux/drivers/staging/greybus/ |
H A D | audio_helper.c | 8 #include <sound/soc-dapm.h> 24 if (w->dapm != dai_w->dapm) in gbaudio_dapm_link_dai_widget() 52 /* Add the DAPM path and set widget's linked status in gbaudio_dapm_link_dai_widget() 53 * snd_soc_dapm_add_path(w->dapm, src, sink, NULL, NULL); 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() [all …]
|
/openbmc/linux/sound/soc/samsung/ |
H A D | smdk_wm8994.c | 82 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in smdk_wm8994_init_paiftx() local 85 snd_soc_dapm_nc_pin(dapm, "HPOUT2P"); in smdk_wm8994_init_paiftx() 86 snd_soc_dapm_nc_pin(dapm, "HPOUT2N"); in smdk_wm8994_init_paiftx() 87 snd_soc_dapm_nc_pin(dapm, "SPKOUTLN"); in smdk_wm8994_init_paiftx() 88 snd_soc_dapm_nc_pin(dapm, "SPKOUTLP"); in smdk_wm8994_init_paiftx() 89 snd_soc_dapm_nc_pin(dapm, "SPKOUTRP"); in smdk_wm8994_init_paiftx() 90 snd_soc_dapm_nc_pin(dapm, "SPKOUTRN"); in smdk_wm8994_init_paiftx() 91 snd_soc_dapm_nc_pin(dapm, "LINEOUT1N"); in smdk_wm8994_init_paiftx() 92 snd_soc_dapm_nc_pin(dapm, "LINEOUT1P"); in smdk_wm8994_init_paiftx() 93 snd_soc_dapm_nc_pin(dapm, "LINEOUT2N"); in smdk_wm8994_init_paiftx() [all …]
|
H A D | speyside.c | 8 #include <sound/soc-dapm.h> 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() 100 /* Headset jack detection DAPM pins */ 128 /* Re-run DAPM to make sure we're using the correct mic bias */ in speyside_set_polarity() 175 snd_soc_dapm_ignore_suspend(&card->dapm, "Headphone"); in speyside_late_probe() [all …]
|
H A D | tobermory.c | 8 #include <sound/soc-dapm.h> 18 struct snd_soc_dapm_context *dapm, in tobermory_set_bias_level() argument 28 if (dapm->dev != codec_dai->dev) in tobermory_set_bias_level() 33 if (dapm->bias_level == SND_SOC_BIAS_STANDBY) { in tobermory_set_bias_level() 61 struct snd_soc_dapm_context *dapm, in tobermory_set_bias_level_post() argument 71 if (dapm->dev != codec_dai->dev) in tobermory_set_bias_level_post() 95 dapm->bias_level = level; in tobermory_set_bias_level_post() 164 /* Headset jack detection DAPM pins */
|
/openbmc/linux/sound/soc/sunxi/ |
H A D | sun8i-codec-analog.c | 18 #include <sound/soc-dapm.h> 234 * Due to this component and the codec belonging to separate DAPM 347 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in sun8i_headphone_amp_event() 394 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(cmpnt); in sun8i_codec_add_headphone() local 406 ret = snd_soc_dapm_new_controls(dapm, sun8i_codec_headphone_widgets, in sun8i_codec_add_headphone() 409 dev_err(dev, "Failed to add Headphone DAPM widgets: %d\n", ret); in sun8i_codec_add_headphone() 413 ret = snd_soc_dapm_add_routes(dapm, sun8i_codec_headphone_routes, in sun8i_codec_add_headphone() 416 dev_err(dev, "Failed to add Headphone DAPM routes: %d\n", ret); in sun8i_codec_add_headphone() 432 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(cmpnt); in sun8i_codec_add_mbias() local 436 ret = snd_soc_dapm_new_controls(dapm, sun8i_codec_mbias_widgets, in sun8i_codec_add_mbias() [all …]
|
/openbmc/linux/sound/soc/intel/boards/ |
H A D | sof_sdw_maxim.c | 12 #include <sound/soc-dapm.h> 51 ret = snd_soc_dapm_new_controls(&card->dapm, maxim_widgets, in spk_init() 58 ret = snd_soc_dapm_add_routes(&card->dapm, max_98373_dapm_routes, 2); in spk_init() 79 struct snd_soc_dapm_context *dapm = in mx8373_enable_spk_pin() local 87 ret = snd_soc_dapm_enable_pin(dapm, pin_name); in mx8373_enable_spk_pin() 89 ret = snd_soc_dapm_disable_pin(dapm, pin_name); in mx8373_enable_spk_pin() 92 snd_soc_dapm_sync(dapm); in mx8373_enable_spk_pin() 133 struct snd_soc_dapm_context *dapm = &card->dapm; in mx8373_sdw_late_probe() local 136 snd_soc_dapm_disable_pin(dapm, "Left Spk"); in mx8373_sdw_late_probe() 137 snd_soc_dapm_disable_pin(dapm, "Right Spk"); in mx8373_sdw_late_probe() [all …]
|
H A D | sof_maxim_common.c | 11 #include <sound/soc-dapm.h> 93 struct snd_soc_dapm_context *dapm = in max_98373_trigger() local 104 ret = snd_soc_dapm_enable_pin(dapm, pin_name); in max_98373_trigger() 106 snd_soc_dapm_sync(dapm); in max_98373_trigger() 111 ret = snd_soc_dapm_disable_pin(dapm, pin_name); in max_98373_trigger() 113 snd_soc_dapm_sync(dapm); in max_98373_trigger() 135 ret = snd_soc_dapm_add_routes(&card->dapm, max_98373_dapm_routes, in max_98373_spk_codec_init() 256 /* add widgets/controls/dapm for tweeter speakers */ in max_98390_init() 257 ret = snd_soc_dapm_new_controls(&card->dapm, max_98390_tt_dapm_widgets, in max_98390_init() 260 dev_err(rtd->dev, "unable to add tweeter dapm widgets, ret %d\n", in max_98390_init() [all …]
|
H A D | sof_realtek_common.c | 12 #include <sound/soc-dapm.h> 123 ret = snd_soc_dapm_add_routes(&card->dapm, speaker_map_lr, in rt1011_init() 153 * device instance and use corresponding DAPM structures for 223 ret = snd_soc_dapm_add_routes(&card->dapm, rt1015p_1dev_dapm_routes, in rt1015p_init() 226 ret = snd_soc_dapm_add_routes(&card->dapm, rt1015p_2dev_dapm_routes, in rt1015p_init() 351 return snd_soc_dapm_add_routes(&rtd->card->dapm, speaker_map_lr, in speaker_codec_init_lr() 400 ret = snd_soc_dapm_new_controls(&card->dapm, rt1308_dapm_widgets, in rt1308_init() 403 dev_err(rtd->dev, "fail to add dapm controls, ret %d\n", ret); in rt1308_init() 414 ret = snd_soc_dapm_add_routes(&card->dapm, rt1308_dapm_routes, in rt1308_init() 418 dev_err(rtd->dev, "fail to add dapm routes, ret %d\n", ret); in rt1308_init() [all …]
|
H A D | bdw-rt5677.c | 30 struct snd_soc_dapm_context *dapm = w->dapm; in bdw_rt5677_event_hp() local 31 struct snd_soc_card *card = dapm->card; in bdw_rt5677_event_hp() 231 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in bdw_rt5677_init() local 282 snd_soc_dapm_force_enable_pin(dapm, "MICBIAS1"); in bdw_rt5677_init() 370 struct snd_soc_dapm_context *dapm; in bdw_rt5677_suspend_pre() local 373 dapm = snd_soc_component_get_dapm(bdw_rt5677->component); in bdw_rt5677_suspend_pre() 374 snd_soc_dapm_disable_pin(dapm, "MICBIAS1"); in bdw_rt5677_suspend_pre() 382 struct snd_soc_dapm_context *dapm; in bdw_rt5677_resume_post() local 385 dapm = snd_soc_component_get_dapm(bdw_rt5677->component); in bdw_rt5677_resume_post() 386 snd_soc_dapm_force_enable_pin(dapm, "MICBIAS1"); in bdw_rt5677_resume_post()
|
/openbmc/linux/Documentation/sound/soc/ |
H A D | dapm.rst | 8 Dynamic Audio Power Management (DAPM) is designed to allow portable 13 DAPM is also completely transparent to all user space applications as 15 recompiling are required for user space applications. DAPM makes power 19 DAPM spans the whole machine. It covers power control within the entire 23 There are 4 power domains within DAPM 50 All DAPM power switching decisions are made automatically by consulting an audio 57 DAPM Widgets 60 Audio DAPM widgets fall into a number of types:- 127 (Widgets are defined in include/sound/soc-dapm.h) 130 There are convenience macros defined in soc-dapm.h that can be used to quickly [all …]
|
/openbmc/linux/sound/soc/ux500/ |
H A D | mop500_ab8500.c | 17 #include <sound/soc-dapm.h> 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() [all …]
|
/openbmc/linux/drivers/input/misc/ |
H A D | arizona-haptics.c | 16 #include <sound/soc-dapm.h> 38 snd_soc_dapm_to_component(arizona->dapm); in arizona_haptics_work() 41 if (!haptics->arizona->dapm) { in arizona_haptics_work() 42 dev_err(arizona->dev, "No DAPM context\n"); in arizona_haptics_work() 75 ret = snd_soc_dapm_sync(arizona->dapm); in arizona_haptics_work() 77 dev_err(arizona->dev, "Failed to sync DAPM: %d\n", in arizona_haptics_work() 90 ret = snd_soc_dapm_sync(arizona->dapm); in arizona_haptics_work() 92 dev_err(arizona->dev, "Failed to sync DAPM: %d\n", in arizona_haptics_work() 114 if (!arizona->dapm) { in arizona_haptics_play() 115 dev_err(arizona->dev, "No DAPM context\n"); in arizona_haptics_play() [all …]
|
/openbmc/linux/sound/soc/atmel/ |
H A D | tse850-pcm5142.c | 63 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kctrl); in tse850_get_mux1() local 64 struct snd_soc_card *card = dapm->card; in tse850_get_mux1() 75 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kctrl); in tse850_put_mux1() local 76 struct snd_soc_card *card = dapm->card; in tse850_put_mux1() 93 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kctrl); in tse850_get_mux2() local 94 struct snd_soc_card *card = dapm->card; in tse850_get_mux2() 105 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kctrl); in tse850_put_mux2() local 106 struct snd_soc_card *card = dapm->card; in tse850_put_mux2() 123 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kctrl); in tse850_get_mix() local 124 struct snd_soc_card *card = dapm->card; in tse850_get_mix() [all …]
|
/openbmc/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()
|
/openbmc/linux/sound/soc/codecs/ |
H A D | wm8994.c | 217 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in configure_clock() local 227 * only be made outside of DAPM so we can safely redo the in configure_clock() 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() [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 …]
|