Lines Matching refs:w

38 static int is_skl_dsp_widget_type(struct snd_soc_dapm_widget *w)  in is_skl_dsp_widget_type()  argument
40 switch (w->id) { in is_skl_dsp_widget_type()
227 static void skl_tplg_update_module_params(struct snd_soc_dapm_widget *w, in skl_tplg_update_module_params() argument
230 struct skl_module_cfg *m_cfg = w->priv; in skl_tplg_update_module_params()
239 w->name); in skl_tplg_update_module_params()
252 w->name); in skl_tplg_update_module_params()
264 struct snd_soc_dapm_widget *w, struct skl_pipe *pipe) in skl_tplg_alloc_pipe_widget() argument
274 p_module->w = w; in skl_tplg_alloc_pipe_widget()
277 snd_soc_dapm_widget_for_each_sink_path(w, p) { in skl_tplg_alloc_pipe_widget()
279 && (!is_skl_dsp_widget_type(w))) in skl_tplg_alloc_pipe_widget()
303 struct snd_soc_dapm_widget *w; in skl_tplg_init_pipe_modules() local
309 w = w_module->w; in skl_tplg_init_pipe_modules()
310 mconfig = w->priv; in skl_tplg_init_pipe_modules()
320 skl_tplg_update_module_params(w, ctx); in skl_tplg_init_pipe_modules()
337 static int skl_tplg_mixer_dapm_pre_pmu_event(struct snd_soc_dapm_widget *w, in skl_tplg_mixer_dapm_pre_pmu_event() argument
341 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_mixer_dapm_pre_pmu_event()
371 ret = skl_tplg_alloc_pipe_widget(ctx->dev, w, s_pipe); in skl_tplg_mixer_dapm_pre_pmu_event()
383 dst_module = w_module->w->priv; in skl_tplg_mixer_dapm_pre_pmu_event()
410 static int skl_tplg_pga_dapm_pre_pmu_event(struct snd_soc_dapm_widget *w, in skl_tplg_pga_dapm_pre_pmu_event() argument
420 source = w; in skl_tplg_pga_dapm_pre_pmu_event()
428 snd_soc_dapm_widget_for_each_source_path(w, p) { in skl_tplg_pga_dapm_pre_pmu_event()
432 dev_dbg(ctx->dev, "%s: src widget=%s\n", __func__, w->name); in skl_tplg_pga_dapm_pre_pmu_event()
489 static int skl_tplg_mixer_dapm_post_pmu_event(struct snd_soc_dapm_widget *w, in skl_tplg_mixer_dapm_post_pmu_event() argument
499 sink = w; in skl_tplg_mixer_dapm_post_pmu_event()
507 snd_soc_dapm_widget_for_each_sink_path(w, p) { in skl_tplg_mixer_dapm_post_pmu_event()
511 dev_dbg(ctx->dev, "sink widget=%s\n", w->name); in skl_tplg_mixer_dapm_post_pmu_event()
552 static int skl_tplg_mixer_dapm_pre_pmd_event(struct snd_soc_dapm_widget *w, in skl_tplg_mixer_dapm_pre_pmd_event() argument
561 sink = w; in skl_tplg_mixer_dapm_pre_pmd_event()
614 static int skl_tplg_mixer_dapm_post_pmd_event(struct snd_soc_dapm_widget *w, in skl_tplg_mixer_dapm_post_pmd_event() argument
617 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_mixer_dapm_post_pmd_event()
627 dst_module = w_module->w->priv; in skl_tplg_mixer_dapm_post_pmd_event()
653 static int skl_tplg_pga_dapm_post_pmd_event(struct snd_soc_dapm_widget *w, in skl_tplg_pga_dapm_post_pmd_event() argument
662 source = w; in skl_tplg_pga_dapm_post_pmd_event()
707 static int skl_tplg_vmixer_event(struct snd_soc_dapm_widget *w, in skl_tplg_vmixer_event() argument
710 struct snd_soc_dapm_context *dapm = w->dapm; in skl_tplg_vmixer_event()
715 return skl_tplg_mixer_dapm_pre_pmu_event(w, skl); in skl_tplg_vmixer_event()
718 return skl_tplg_mixer_dapm_post_pmd_event(w, skl); in skl_tplg_vmixer_event()
730 static int skl_tplg_mixer_event(struct snd_soc_dapm_widget *w, in skl_tplg_mixer_event() argument
733 struct snd_soc_dapm_context *dapm = w->dapm; in skl_tplg_mixer_event()
738 return skl_tplg_mixer_dapm_pre_pmu_event(w, skl); in skl_tplg_mixer_event()
741 return skl_tplg_mixer_dapm_post_pmu_event(w, skl); in skl_tplg_mixer_event()
744 return skl_tplg_mixer_dapm_pre_pmd_event(w, skl); in skl_tplg_mixer_event()
747 return skl_tplg_mixer_dapm_post_pmd_event(w, skl); in skl_tplg_mixer_event()
759 static int skl_tplg_pga_event(struct snd_soc_dapm_widget *w, in skl_tplg_pga_event() argument
763 struct snd_soc_dapm_context *dapm = w->dapm; in skl_tplg_pga_event()
768 return skl_tplg_pga_dapm_pre_pmu_event(w, skl); in skl_tplg_pga_event()
771 return skl_tplg_pga_dapm_post_pmd_event(w, skl); in skl_tplg_pga_event()
842 struct snd_soc_dapm_widget *w; in skl_tplg_fe_get_cpr_module() local
846 w = dai->playback_widget; in skl_tplg_fe_get_cpr_module()
847 snd_soc_dapm_widget_for_each_sink_path(w, p) { in skl_tplg_fe_get_cpr_module()
859 w = dai->capture_widget; in skl_tplg_fe_get_cpr_module()
860 snd_soc_dapm_widget_for_each_source_path(w, p) { in skl_tplg_fe_get_cpr_module()
943 struct snd_soc_dapm_widget *w, in skl_tplg_be_set_src_pipe_params() argument
949 snd_soc_dapm_widget_for_each_source_path(w, p) { in skl_tplg_be_set_src_pipe_params()
974 struct snd_soc_dapm_widget *w, struct skl_pipe_params *params) in skl_tplg_be_set_sink_pipe_params() argument
979 snd_soc_dapm_widget_for_each_sink_path(w, p) { in skl_tplg_be_set_sink_pipe_params()
1011 struct snd_soc_dapm_widget *w; in skl_tplg_be_update_params() local
1014 w = dai->playback_widget; in skl_tplg_be_update_params()
1016 return skl_tplg_be_set_src_pipe_params(dai, w, params); in skl_tplg_be_update_params()
1019 w = dai->capture_widget; in skl_tplg_be_update_params()
1021 return skl_tplg_be_set_sink_pipe_params(dai, w, params); in skl_tplg_be_update_params()
1103 struct snd_soc_dapm_widget *w, in skl_tplg_widget_load() argument
1123 w->priv = mconfig; in skl_tplg_widget_load()
1199 ret = snd_soc_tplg_widget_bind_event(w, skl_tplg_widget_ops, in skl_tplg_widget_load()