• Home
  • Raw
  • Download

Lines Matching refs:w

92 static int is_skl_dsp_widget_type(struct snd_soc_dapm_widget *w,  in is_skl_dsp_widget_type()  argument
95 if (w->dapm->dev != dev) in is_skl_dsp_widget_type()
98 switch (w->id) { in is_skl_dsp_widget_type()
283 static int skl_tplg_update_be_blob(struct snd_soc_dapm_widget *w, in skl_tplg_update_be_blob() argument
286 struct skl_module_cfg *m_cfg = w->priv; in skl_tplg_update_be_blob()
344 static void skl_tplg_update_module_params(struct snd_soc_dapm_widget *w, in skl_tplg_update_module_params() argument
347 struct skl_module_cfg *m_cfg = w->priv; in skl_tplg_update_module_params()
356 w->name); in skl_tplg_update_module_params()
369 w->name); in skl_tplg_update_module_params()
379 static int skl_tplg_set_module_params(struct snd_soc_dapm_widget *w, in skl_tplg_set_module_params() argument
383 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_set_module_params()
399 for (i = 0; i < w->num_kcontrols; i++) { in skl_tplg_set_module_params()
400 k = &w->kcontrol_news[i]; in skl_tplg_set_module_params()
424 static int skl_tplg_set_module_init_data(struct snd_soc_dapm_widget *w) in skl_tplg_set_module_init_data() argument
429 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_set_module_init_data()
432 for (i = 0; i < w->num_kcontrols; i++) { in skl_tplg_set_module_init_data()
433 k = &w->kcontrol_news[i]; in skl_tplg_set_module_init_data()
454 struct snd_soc_dapm_widget *w, struct skl_module_cfg *mcfg) in skl_tplg_module_prepare() argument
476 struct snd_soc_dapm_widget *w; in skl_tplg_init_pipe_modules() local
483 w = w_module->w; in skl_tplg_init_pipe_modules()
484 mconfig = w->priv; in skl_tplg_init_pipe_modules()
506 ret = skl_tplg_module_prepare(skl, pipe, w, mconfig); in skl_tplg_init_pipe_modules()
511 skl_tplg_update_be_blob(w, skl); in skl_tplg_init_pipe_modules()
517 skl_tplg_update_module_params(w, skl); in skl_tplg_init_pipe_modules()
523 skl_tplg_set_module_init_data(w); in skl_tplg_init_pipe_modules()
538 ret = skl_tplg_set_module_params(w, skl); in skl_tplg_init_pipe_modules()
558 mconfig = w_module->w->priv; in skl_tplg_unload_pipe_modules()
687 static int skl_tplg_mixer_dapm_pre_pmu_event(struct snd_soc_dapm_widget *w, in skl_tplg_mixer_dapm_pre_pmu_event() argument
691 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_mixer_dapm_pre_pmu_event()
716 dst_module = w_module->w->priv; in skl_tplg_mixer_dapm_pre_pmu_event()
739 module = w_module->w->priv; in skl_tplg_mixer_dapm_pre_pmu_event()
779 static int skl_tplg_set_module_bind_params(struct snd_soc_dapm_widget *w, in skl_tplg_set_module_bind_params() argument
783 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_set_module_bind_params()
815 for (i = 0; i < w->num_kcontrols; i++) { in skl_tplg_set_module_bind_params()
816 k = &w->kcontrol_news[i]; in skl_tplg_set_module_bind_params()
899 struct snd_soc_dapm_widget *w) in skl_tplg_add_moduleid_in_bind_params() argument
901 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_add_moduleid_in_bind_params()
912 for (i = 0; i < w->num_kcontrols; i++) in skl_tplg_add_moduleid_in_bind_params()
913 if ((w->kcontrol_news[i].access & in skl_tplg_add_moduleid_in_bind_params()
916 &w->kcontrol_news[i]) < 0)) in skl_tplg_add_moduleid_in_bind_params()
959 static int skl_tplg_bind_sinks(struct snd_soc_dapm_widget *w, in skl_tplg_bind_sinks() argument
969 snd_soc_dapm_widget_for_each_sink_path(w, p) { in skl_tplg_bind_sinks()
974 "%s: src widget=%s\n", __func__, w->name); in skl_tplg_bind_sinks()
1059 static int skl_tplg_pga_dapm_pre_pmu_event(struct snd_soc_dapm_widget *w, in skl_tplg_pga_dapm_pre_pmu_event() argument
1065 src_mconfig = w->priv; in skl_tplg_pga_dapm_pre_pmu_event()
1072 ret = skl_tplg_bind_sinks(w, skl, w, src_mconfig); in skl_tplg_pga_dapm_pre_pmu_event()
1084 struct snd_soc_dapm_widget *w, struct skl_dev *skl) in skl_get_src_dsp_widget() argument
1089 snd_soc_dapm_widget_for_each_source_path(w, p) { in skl_get_src_dsp_widget()
1094 dev_dbg(skl->dev, "sink widget=%s\n", w->name); in skl_get_src_dsp_widget()
1123 static int skl_tplg_mixer_dapm_post_pmu_event(struct snd_soc_dapm_widget *w, in skl_tplg_mixer_dapm_post_pmu_event() argument
1131 sink = w; in skl_tplg_mixer_dapm_post_pmu_event()
1139 source = skl_get_src_dsp_widget(w, skl); in skl_tplg_mixer_dapm_post_pmu_event()
1175 static int skl_tplg_mixer_dapm_pre_pmd_event(struct snd_soc_dapm_widget *w, in skl_tplg_mixer_dapm_pre_pmd_event() argument
1181 sink_mconfig = w->priv; in skl_tplg_mixer_dapm_pre_pmd_event()
1208 static int skl_tplg_mixer_dapm_post_pmd_event(struct snd_soc_dapm_widget *w, in skl_tplg_mixer_dapm_post_pmd_event() argument
1211 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_mixer_dapm_post_pmd_event()
1224 src_module = w_module->w->priv; in skl_tplg_mixer_dapm_post_pmd_event()
1250 dst_module = w_module->w->priv; in skl_tplg_mixer_dapm_post_pmd_event()
1264 src_module = w_module->w->priv; in skl_tplg_mixer_dapm_post_pmd_event()
1276 static int skl_tplg_pga_dapm_post_pmd_event(struct snd_soc_dapm_widget *w, in skl_tplg_pga_dapm_post_pmd_event() argument
1282 src_mconfig = w->priv; in skl_tplg_pga_dapm_post_pmd_event()
1312 static int skl_tplg_mixer_event(struct snd_soc_dapm_widget *w, in skl_tplg_mixer_event() argument
1315 struct snd_soc_dapm_context *dapm = w->dapm; in skl_tplg_mixer_event()
1320 return skl_tplg_mixer_dapm_pre_pmu_event(w, skl); in skl_tplg_mixer_event()
1323 return skl_tplg_mixer_dapm_post_pmu_event(w, skl); in skl_tplg_mixer_event()
1326 return skl_tplg_mixer_dapm_pre_pmd_event(w, skl); in skl_tplg_mixer_event()
1329 return skl_tplg_mixer_dapm_post_pmd_event(w, skl); in skl_tplg_mixer_event()
1341 static int skl_tplg_pga_event(struct snd_soc_dapm_widget *w, in skl_tplg_pga_event() argument
1345 struct snd_soc_dapm_context *dapm = w->dapm; in skl_tplg_pga_event()
1350 return skl_tplg_pga_dapm_pre_pmu_event(w, skl); in skl_tplg_pga_event()
1353 return skl_tplg_pga_dapm_post_pmd_event(w, skl); in skl_tplg_pga_event()
1427 struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_widget(kcontrol); in skl_tplg_tlv_control_get() local
1428 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_tlv_control_get()
1429 struct skl_dev *skl = get_skl_ctx(w->dapm->dev); in skl_tplg_tlv_control_get()
1431 if (w->power) in skl_tplg_tlv_control_get()
1459 struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_widget(kcontrol); in skl_tplg_tlv_control_set() local
1460 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_tlv_control_set()
1464 struct skl_dev *skl = get_skl_ctx(w->dapm->dev); in skl_tplg_tlv_control_set()
1474 if (w->power) in skl_tplg_tlv_control_set()
1486 struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_widget(kcontrol); in skl_tplg_mic_control_get() local
1487 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_mic_control_get()
1525 struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_widget(kcontrol); in skl_tplg_mic_control_set() local
1526 struct skl_module_cfg *mconfig = w->priv; in skl_tplg_mic_control_set()
1573 dev_err(w->dapm->dev, in skl_tplg_mic_control_set()
1586 return skl_fill_mic_sel_params(mconfig, &mic_cfg, w->dapm->dev); in skl_tplg_mic_control_set()
1700 struct snd_soc_dapm_widget *w; in skl_tplg_fe_get_cpr_module() local
1704 w = dai->playback_widget; in skl_tplg_fe_get_cpr_module()
1705 snd_soc_dapm_widget_for_each_sink_path(w, p) { in skl_tplg_fe_get_cpr_module()
1717 w = dai->capture_widget; in skl_tplg_fe_get_cpr_module()
1718 snd_soc_dapm_widget_for_each_source_path(w, p) { in skl_tplg_fe_get_cpr_module()
1735 struct snd_soc_dai *dai, struct snd_soc_dapm_widget *w) in skl_get_mconfig_pb_cpr() argument
1740 snd_soc_dapm_widget_for_each_source_path(w, p) { in skl_get_mconfig_pb_cpr()
1741 if (w->endpoints[SND_SOC_DAPM_DIR_OUT] > 0) { in skl_get_mconfig_pb_cpr()
1757 struct snd_soc_dai *dai, struct snd_soc_dapm_widget *w) in skl_get_mconfig_cap_cpr() argument
1762 snd_soc_dapm_widget_for_each_sink_path(w, p) { in skl_get_mconfig_cap_cpr()
1763 if (w->endpoints[SND_SOC_DAPM_DIR_IN] > 0) { in skl_get_mconfig_cap_cpr()
1781 struct snd_soc_dapm_widget *w; in skl_tplg_be_get_cpr_module() local
1785 w = dai->playback_widget; in skl_tplg_be_get_cpr_module()
1786 mconfig = skl_get_mconfig_pb_cpr(dai, w); in skl_tplg_be_get_cpr_module()
1788 w = dai->capture_widget; in skl_tplg_be_get_cpr_module()
1789 mconfig = skl_get_mconfig_cap_cpr(dai, w); in skl_tplg_be_get_cpr_module()
1870 struct snd_soc_dapm_widget *w, in skl_tplg_be_set_src_pipe_params() argument
1876 snd_soc_dapm_widget_for_each_source_path(w, p) { in skl_tplg_be_set_src_pipe_params()
1896 struct snd_soc_dapm_widget *w, struct skl_pipe_params *params) in skl_tplg_be_set_sink_pipe_params() argument
1901 snd_soc_dapm_widget_for_each_sink_path(w, p) { in skl_tplg_be_set_sink_pipe_params()
1928 struct snd_soc_dapm_widget *w; in skl_tplg_be_update_params() local
1931 w = dai->playback_widget; in skl_tplg_be_update_params()
1933 return skl_tplg_be_set_src_pipe_params(dai, w, params); in skl_tplg_be_update_params()
1936 w = dai->capture_widget; in skl_tplg_be_update_params()
1938 return skl_tplg_be_set_sink_pipe_params(dai, w, params); in skl_tplg_be_update_params()
2971 struct snd_soc_dapm_widget *w) in skl_clear_pin_config() argument
2977 if (!strncmp(w->dapm->component->name, component->name, in skl_clear_pin_config()
2979 mconfig = w->priv; in skl_clear_pin_config()
2997 struct snd_soc_dapm_widget *w; in skl_cleanup_resources() local
3007 list_for_each_entry(w, &card->widgets, list) { in skl_cleanup_resources()
3008 if (is_skl_dsp_widget_type(w, skl->dev) && w->priv != NULL) in skl_cleanup_resources()
3009 skl_clear_pin_config(soc_component, w); in skl_cleanup_resources()
3023 struct snd_soc_dapm_widget *w, in skl_tplg_widget_load() argument
3046 w->priv = mconfig; in skl_tplg_widget_load()
3062 skl_debug_init_module(skl->debugfs, w, mconfig); in skl_tplg_widget_load()
3070 ret = snd_soc_tplg_widget_bind_event(w, skl_tplg_widget_ops, in skl_tplg_widget_load()
3697 struct snd_soc_dapm_widget *w; in skl_tplg_create_pipe_widget_list() local
3702 list_for_each_entry(w, &component->card->widgets, list) { in skl_tplg_create_pipe_widget_list()
3703 if (is_skl_dsp_widget_type(w, component->dev) && w->priv) { in skl_tplg_create_pipe_widget_list()
3704 mcfg = w->priv; in skl_tplg_create_pipe_widget_list()
3712 p_module->w = w; in skl_tplg_create_pipe_widget_list()
3723 struct snd_soc_dapm_widget *w; in skl_tplg_set_pipe_type() local
3728 w = w_module->w; in skl_tplg_set_pipe_type()
3729 mconfig = w->priv; in skl_tplg_set_pipe_type()