Lines Matching refs:w
196 if (e->w && e->w->power) in sst_check_and_send_slot_map()
198 else if (!e->w) in sst_check_and_send_slot_map()
369 if (bc->w && bc->w->power) in sst_algo_control_set()
506 if (mc->w && mc->w->power) in sst_gain_put()
517 static int sst_send_pipe_module_params(struct snd_soc_dapm_widget *w, in sst_send_pipe_module_params() argument
520 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_send_pipe_module_params()
522 struct sst_ids *ids = w->priv; in sst_send_pipe_module_params()
525 sst_find_and_send_pipe_algo(drv, w->name, ids); in sst_send_pipe_module_params()
532 static int sst_generic_modules_event(struct snd_soc_dapm_widget *w, in sst_generic_modules_event() argument
536 return sst_send_pipe_module_params(w, k); in sst_generic_modules_event()
622 static int sst_swm_mixer_event(struct snd_soc_dapm_widget *w, in sst_swm_mixer_event() argument
626 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in sst_swm_mixer_event()
628 struct sst_ids *ids = w->priv; in sst_swm_mixer_event()
634 dev_dbg(cmpnt->dev, "widget = %s\n", w->name); in sst_swm_mixer_event()
639 for (i = 0; i < w->num_kcontrols; i++) { in sst_swm_mixer_event()
640 if (dapm_kcontrol_get_value(w->kcontrols[i])) { in sst_swm_mixer_event()
641 mc = (struct soc_mixer_control *)(w->kcontrols[i])->private_value; in sst_swm_mixer_event()
653 if (w->power) in sst_swm_mixer_event()
977 static int sst_set_be_modules(struct snd_soc_dapm_widget *w, in sst_set_be_modules() argument
981 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_set_be_modules()
984 dev_dbg(c->dev, "Enter: widget=%s\n", w->name); in sst_set_be_modules()
992 ret = sst_send_pipe_module_params(w, k); in sst_set_be_modules()
997 static int sst_set_media_path(struct snd_soc_dapm_widget *w, in sst_set_media_path() argument
1002 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_set_media_path()
1004 struct sst_ids *ids = w->priv; in sst_set_media_path()
1006 dev_dbg(c->dev, "widget=%s\n", w->name); in sst_set_media_path()
1030 ret = sst_send_pipe_module_params(w, k); in sst_set_media_path()
1034 static int sst_set_media_loop(struct snd_soc_dapm_widget *w, in sst_set_media_loop() argument
1039 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_set_media_loop()
1041 struct sst_ids *ids = w->priv; in sst_set_media_loop()
1043 dev_dbg(c->dev, "Enter:widget=%s\n", w->name); in sst_set_media_loop()
1068 ret = sst_send_pipe_module_params(w, k); in sst_set_media_loop()
1302 static bool is_sst_dapm_widget(struct snd_soc_dapm_widget *w) in is_sst_dapm_widget() argument
1304 switch (w->id) { in is_sst_dapm_widget()
1330 struct snd_soc_dapm_widget *w; in sst_send_pipe_gains() local
1338 w = dai->playback_widget; in sst_send_pipe_gains()
1339 snd_soc_dapm_widget_for_each_sink_path(w, p) { in sst_send_pipe_gains()
1340 if (p->connected && !p->connected(w, p->sink)) in sst_send_pipe_gains()
1357 w = dai->capture_widget; in sst_send_pipe_gains()
1358 snd_soc_dapm_widget_for_each_source_path(w, p) { in sst_send_pipe_gains()
1359 if (p->connected && !p->connected(w, p->source)) in sst_send_pipe_gains()
1393 struct snd_soc_dapm_widget *w, int type) in sst_fill_module_list() argument
1396 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_fill_module_list()
1397 struct sst_ids *ids = w->priv; in sst_fill_module_list()
1407 mc->w = w; in sst_fill_module_list()
1413 bc->w = w; in sst_fill_module_list()
1434 static int sst_fill_widget_module_info(struct snd_soc_dapm_widget *w, in sst_fill_widget_module_info() argument
1449 if (strncmp(kctl->id.name, w->name, index)) in sst_fill_widget_module_info()
1453 ret = sst_fill_module_list(kctl, w, SST_MODULE_GAIN); in sst_fill_widget_module_info()
1456 ret = sst_fill_module_list(kctl, w, SST_MODULE_ALGO); in sst_fill_widget_module_info()
1463 mc->w = w; in sst_fill_widget_module_info()
1468 e->w = w; in sst_fill_widget_module_info()
1473 e->w = w; in sst_fill_widget_module_info()
1494 struct snd_soc_dapm_widget *w; in sst_fill_linked_widgets() local
1497 list_for_each_entry(w, &component->card->widgets, list) { in sst_fill_linked_widgets()
1498 if (!strncmp(ids->parent_wname, w->name, len)) { in sst_fill_linked_widgets()
1499 ids->parent_w = w; in sst_fill_linked_widgets()
1511 struct snd_soc_dapm_widget *w; in sst_map_modules_to_pipe() local
1514 list_for_each_entry(w, &component->card->widgets, list) { in sst_map_modules_to_pipe()
1515 if (is_sst_dapm_widget(w) && (w->priv)) { in sst_map_modules_to_pipe()
1516 struct sst_ids *ids = w->priv; in sst_map_modules_to_pipe()
1519 w->id, w->name); in sst_map_modules_to_pipe()
1522 ret = sst_fill_widget_module_info(w, component); in sst_map_modules_to_pipe()