• Home
  • Raw
  • Download

Lines Matching refs:w

91 static int is_skl_dsp_widget_type(struct snd_soc_dapm_widget *w,  in is_skl_dsp_widget_type()  argument
94 if (w->dapm->dev != dev) in is_skl_dsp_widget_type()
97 switch (w->id) { in is_skl_dsp_widget_type()
282 static int skl_tplg_update_be_blob(struct snd_soc_dapm_widget *w, in skl_tplg_update_be_blob() argument
285 struct skl_module_cfg *m_cfg = w->priv; in skl_tplg_update_be_blob()
343 static void skl_tplg_update_module_params(struct snd_soc_dapm_widget *w, in skl_tplg_update_module_params() argument
346 struct skl_module_cfg *m_cfg = w->priv; in skl_tplg_update_module_params()
355 w->name); in skl_tplg_update_module_params()
368 w->name); in skl_tplg_update_module_params()
378 static int skl_tplg_set_module_params(struct snd_soc_dapm_widget *w, in skl_tplg_set_module_params() argument
382 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_set_module_params()
398 for (i = 0; i < w->num_kcontrols; i++) { in skl_tplg_set_module_params()
399 k = &w->kcontrol_news[i]; in skl_tplg_set_module_params()
423 static int skl_tplg_set_module_init_data(struct snd_soc_dapm_widget *w) in skl_tplg_set_module_init_data() argument
428 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_set_module_init_data()
431 for (i = 0; i < w->num_kcontrols; i++) { in skl_tplg_set_module_init_data()
432 k = &w->kcontrol_news[i]; in skl_tplg_set_module_init_data()
451 struct snd_soc_dapm_widget *w, struct skl_module_cfg *mcfg) in skl_tplg_module_prepare() argument
473 struct snd_soc_dapm_widget *w; in skl_tplg_init_pipe_modules() local
480 w = w_module->w; in skl_tplg_init_pipe_modules()
481 mconfig = w->priv; in skl_tplg_init_pipe_modules()
505 ret = skl_tplg_module_prepare(skl, pipe, w, mconfig); in skl_tplg_init_pipe_modules()
510 skl_tplg_update_be_blob(w, skl); in skl_tplg_init_pipe_modules()
516 skl_tplg_update_module_params(w, skl); in skl_tplg_init_pipe_modules()
522 skl_tplg_set_module_init_data(w); in skl_tplg_init_pipe_modules()
537 ret = skl_tplg_set_module_params(w, skl); in skl_tplg_init_pipe_modules()
557 mconfig = w_module->w->priv; in skl_tplg_unload_pipe_modules()
646 static int skl_tplg_mixer_dapm_pre_pmu_event(struct snd_soc_dapm_widget *w, in skl_tplg_mixer_dapm_pre_pmu_event() argument
650 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_mixer_dapm_pre_pmu_event()
675 dst_module = w_module->w->priv; in skl_tplg_mixer_dapm_pre_pmu_event()
698 module = w_module->w->priv; in skl_tplg_mixer_dapm_pre_pmu_event()
738 static int skl_tplg_set_module_bind_params(struct snd_soc_dapm_widget *w, in skl_tplg_set_module_bind_params() argument
742 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_set_module_bind_params()
773 for (i = 0; i < w->num_kcontrols; i++) { in skl_tplg_set_module_bind_params()
774 k = &w->kcontrol_news[i]; in skl_tplg_set_module_bind_params()
857 struct snd_soc_dapm_widget *w) in skl_tplg_add_moduleid_in_bind_params() argument
859 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_add_moduleid_in_bind_params()
870 for (i = 0; i < w->num_kcontrols; i++) in skl_tplg_add_moduleid_in_bind_params()
871 if ((w->kcontrol_news[i].access & in skl_tplg_add_moduleid_in_bind_params()
874 &w->kcontrol_news[i]) < 0)) in skl_tplg_add_moduleid_in_bind_params()
917 static int skl_tplg_bind_sinks(struct snd_soc_dapm_widget *w, in skl_tplg_bind_sinks() argument
927 snd_soc_dapm_widget_for_each_sink_path(w, p) { in skl_tplg_bind_sinks()
932 "%s: src widget=%s\n", __func__, w->name); in skl_tplg_bind_sinks()
1017 static int skl_tplg_pga_dapm_pre_pmu_event(struct snd_soc_dapm_widget *w, in skl_tplg_pga_dapm_pre_pmu_event() argument
1023 src_mconfig = w->priv; in skl_tplg_pga_dapm_pre_pmu_event()
1030 ret = skl_tplg_bind_sinks(w, skl, w, src_mconfig); in skl_tplg_pga_dapm_pre_pmu_event()
1042 struct snd_soc_dapm_widget *w, struct skl_dev *skl) in skl_get_src_dsp_widget() argument
1047 snd_soc_dapm_widget_for_each_source_path(w, p) { in skl_get_src_dsp_widget()
1052 dev_dbg(skl->dev, "sink widget=%s\n", w->name); in skl_get_src_dsp_widget()
1081 static int skl_tplg_mixer_dapm_post_pmu_event(struct snd_soc_dapm_widget *w, in skl_tplg_mixer_dapm_post_pmu_event() argument
1089 sink = w; in skl_tplg_mixer_dapm_post_pmu_event()
1097 source = skl_get_src_dsp_widget(w, skl); in skl_tplg_mixer_dapm_post_pmu_event()
1133 static int skl_tplg_mixer_dapm_pre_pmd_event(struct snd_soc_dapm_widget *w, in skl_tplg_mixer_dapm_pre_pmd_event() argument
1139 sink_mconfig = w->priv; in skl_tplg_mixer_dapm_pre_pmd_event()
1166 static int skl_tplg_mixer_dapm_post_pmd_event(struct snd_soc_dapm_widget *w, in skl_tplg_mixer_dapm_post_pmd_event() argument
1169 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_mixer_dapm_post_pmd_event()
1182 src_module = w_module->w->priv; in skl_tplg_mixer_dapm_post_pmd_event()
1208 dst_module = w_module->w->priv; in skl_tplg_mixer_dapm_post_pmd_event()
1222 src_module = w_module->w->priv; in skl_tplg_mixer_dapm_post_pmd_event()
1234 static int skl_tplg_pga_dapm_post_pmd_event(struct snd_soc_dapm_widget *w, in skl_tplg_pga_dapm_post_pmd_event() argument
1240 src_mconfig = w->priv; in skl_tplg_pga_dapm_post_pmd_event()
1270 static int skl_tplg_mixer_event(struct snd_soc_dapm_widget *w, in skl_tplg_mixer_event() argument
1273 struct snd_soc_dapm_context *dapm = w->dapm; in skl_tplg_mixer_event()
1278 return skl_tplg_mixer_dapm_pre_pmu_event(w, skl); in skl_tplg_mixer_event()
1281 return skl_tplg_mixer_dapm_post_pmu_event(w, skl); in skl_tplg_mixer_event()
1284 return skl_tplg_mixer_dapm_pre_pmd_event(w, skl); in skl_tplg_mixer_event()
1287 return skl_tplg_mixer_dapm_post_pmd_event(w, skl); in skl_tplg_mixer_event()
1299 static int skl_tplg_pga_event(struct snd_soc_dapm_widget *w, in skl_tplg_pga_event() argument
1303 struct snd_soc_dapm_context *dapm = w->dapm; in skl_tplg_pga_event()
1308 return skl_tplg_pga_dapm_pre_pmu_event(w, skl); in skl_tplg_pga_event()
1311 return skl_tplg_pga_dapm_post_pmd_event(w, skl); in skl_tplg_pga_event()
1323 struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_widget(kcontrol); in skl_tplg_tlv_control_get() local
1324 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_tlv_control_get()
1325 struct skl_dev *skl = get_skl_ctx(w->dapm->dev); in skl_tplg_tlv_control_get()
1327 if (w->power) in skl_tplg_tlv_control_get()
1355 struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_widget(kcontrol); in skl_tplg_tlv_control_set() local
1356 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_tlv_control_set()
1360 struct skl_dev *skl = get_skl_ctx(w->dapm->dev); in skl_tplg_tlv_control_set()
1376 if (w->power) in skl_tplg_tlv_control_set()
1388 struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_widget(kcontrol); in skl_tplg_mic_control_get() local
1389 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_mic_control_get()
1426 struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_widget(kcontrol); in skl_tplg_mic_control_set() local
1427 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_mic_control_set()
1474 dev_err(w->dapm->dev, in skl_tplg_mic_control_set()
1487 return skl_fill_mic_sel_params(mconfig, &mic_cfg, w->dapm->dev); in skl_tplg_mic_control_set()
1600 struct snd_soc_dapm_widget *w; in skl_tplg_fe_get_cpr_module() local
1604 w = dai->playback_widget; in skl_tplg_fe_get_cpr_module()
1605 snd_soc_dapm_widget_for_each_sink_path(w, p) { in skl_tplg_fe_get_cpr_module()
1617 w = dai->capture_widget; in skl_tplg_fe_get_cpr_module()
1618 snd_soc_dapm_widget_for_each_source_path(w, p) { in skl_tplg_fe_get_cpr_module()
1635 struct snd_soc_dai *dai, struct snd_soc_dapm_widget *w) in skl_get_mconfig_pb_cpr() argument
1640 snd_soc_dapm_widget_for_each_source_path(w, p) { in skl_get_mconfig_pb_cpr()
1641 if (w->endpoints[SND_SOC_DAPM_DIR_OUT] > 0) { in skl_get_mconfig_pb_cpr()
1657 struct snd_soc_dai *dai, struct snd_soc_dapm_widget *w) in skl_get_mconfig_cap_cpr() argument
1662 snd_soc_dapm_widget_for_each_sink_path(w, p) { in skl_get_mconfig_cap_cpr()
1663 if (w->endpoints[SND_SOC_DAPM_DIR_IN] > 0) { in skl_get_mconfig_cap_cpr()
1681 struct snd_soc_dapm_widget *w; in skl_tplg_be_get_cpr_module() local
1685 w = dai->playback_widget; in skl_tplg_be_get_cpr_module()
1686 mconfig = skl_get_mconfig_pb_cpr(dai, w); in skl_tplg_be_get_cpr_module()
1688 w = dai->capture_widget; in skl_tplg_be_get_cpr_module()
1689 mconfig = skl_get_mconfig_cap_cpr(dai, w); in skl_tplg_be_get_cpr_module()
1765 struct snd_soc_dapm_widget *w, in skl_tplg_be_set_src_pipe_params() argument
1771 snd_soc_dapm_widget_for_each_source_path(w, p) { in skl_tplg_be_set_src_pipe_params()
1791 struct snd_soc_dapm_widget *w, struct skl_pipe_params *params) in skl_tplg_be_set_sink_pipe_params() argument
1796 snd_soc_dapm_widget_for_each_sink_path(w, p) { in skl_tplg_be_set_sink_pipe_params()
1823 struct snd_soc_dapm_widget *w; in skl_tplg_be_update_params() local
1826 w = dai->playback_widget; in skl_tplg_be_update_params()
1828 return skl_tplg_be_set_src_pipe_params(dai, w, params); in skl_tplg_be_update_params()
1831 w = dai->capture_widget; in skl_tplg_be_update_params()
1833 return skl_tplg_be_set_sink_pipe_params(dai, w, params); in skl_tplg_be_update_params()
2834 struct snd_soc_dapm_widget *w) in skl_clear_pin_config() argument
2840 if (!strncmp(w->dapm->component->name, component->name, in skl_clear_pin_config()
2842 mconfig = w->priv; in skl_clear_pin_config()
2860 struct snd_soc_dapm_widget *w; in skl_cleanup_resources() local
2870 list_for_each_entry(w, &card->widgets, list) { in skl_cleanup_resources()
2871 if (is_skl_dsp_widget_type(w, skl->dev) && w->priv != NULL) in skl_cleanup_resources()
2872 skl_clear_pin_config(soc_component, w); in skl_cleanup_resources()
2886 struct snd_soc_dapm_widget *w, in skl_tplg_widget_load() argument
2909 w->priv = mconfig; in skl_tplg_widget_load()
2922 skl_debug_init_module(skl->debugfs, w, mconfig); in skl_tplg_widget_load()
2930 ret = snd_soc_tplg_widget_bind_event(w, skl_tplg_widget_ops, in skl_tplg_widget_load()
3510 struct snd_soc_dapm_widget *w; in skl_tplg_create_pipe_widget_list() local
3515 list_for_each_entry(w, &component->card->widgets, list) { in skl_tplg_create_pipe_widget_list()
3516 if (is_skl_dsp_widget_type(w, component->dev) && w->priv) { in skl_tplg_create_pipe_widget_list()
3517 mcfg = w->priv; in skl_tplg_create_pipe_widget_list()
3525 p_module->w = w; in skl_tplg_create_pipe_widget_list()
3536 struct snd_soc_dapm_widget *w; in skl_tplg_set_pipe_type() local
3541 w = w_module->w; in skl_tplg_set_pipe_type()
3542 mconfig = w->priv; in skl_tplg_set_pipe_type()