Lines Matching refs:w

196 	if (e->w && e->w->power)  in sst_check_and_send_slot_map()
366 if (bc->w && bc->w->power) in sst_algo_control_set()
499 if (mc->w && mc->w->power) in sst_gain_put()
510 static int sst_send_pipe_module_params(struct snd_soc_dapm_widget *w, in sst_send_pipe_module_params() argument
513 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_send_pipe_module_params()
515 struct sst_ids *ids = w->priv; in sst_send_pipe_module_params()
518 sst_find_and_send_pipe_algo(drv, w->name, ids); in sst_send_pipe_module_params()
525 static int sst_generic_modules_event(struct snd_soc_dapm_widget *w, in sst_generic_modules_event() argument
529 return sst_send_pipe_module_params(w, k); in sst_generic_modules_event()
611 static int sst_swm_mixer_event(struct snd_soc_dapm_widget *w, in sst_swm_mixer_event() argument
615 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in sst_swm_mixer_event()
617 struct sst_ids *ids = w->priv; in sst_swm_mixer_event()
623 dev_dbg(cmpnt->dev, "widget = %s\n", w->name); in sst_swm_mixer_event()
628 for (i = 0; i < w->num_kcontrols; i++) { in sst_swm_mixer_event()
629 if (dapm_kcontrol_get_value(w->kcontrols[i])) { in sst_swm_mixer_event()
630 mc = (struct soc_mixer_control *)(w->kcontrols[i])->private_value; in sst_swm_mixer_event()
642 if (w->power) in sst_swm_mixer_event()
956 static int sst_set_be_modules(struct snd_soc_dapm_widget *w, in sst_set_be_modules() argument
960 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_set_be_modules()
963 dev_dbg(c->dev, "Enter: widget=%s\n", w->name); in sst_set_be_modules()
969 ret = sst_send_pipe_module_params(w, k); in sst_set_be_modules()
974 static int sst_set_media_path(struct snd_soc_dapm_widget *w, in sst_set_media_path() argument
979 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_set_media_path()
981 struct sst_ids *ids = w->priv; in sst_set_media_path()
983 dev_dbg(c->dev, "widget=%s\n", w->name); in sst_set_media_path()
1007 ret = sst_send_pipe_module_params(w, k); in sst_set_media_path()
1011 static int sst_set_media_loop(struct snd_soc_dapm_widget *w, in sst_set_media_loop() argument
1016 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_set_media_loop()
1018 struct sst_ids *ids = w->priv; in sst_set_media_loop()
1020 dev_dbg(c->dev, "Enter:widget=%s\n", w->name); in sst_set_media_loop()
1045 ret = sst_send_pipe_module_params(w, k); in sst_set_media_loop()
1267 static bool is_sst_dapm_widget(struct snd_soc_dapm_widget *w) in is_sst_dapm_widget() argument
1269 switch (w->id) { in is_sst_dapm_widget()
1292 struct snd_soc_dapm_widget *w; in sst_send_pipe_gains() local
1300 w = dai->playback_widget; in sst_send_pipe_gains()
1301 snd_soc_dapm_widget_for_each_sink_path(w, p) { in sst_send_pipe_gains()
1302 if (p->connected && !p->connected(w, p->sink)) in sst_send_pipe_gains()
1319 w = dai->capture_widget; in sst_send_pipe_gains()
1320 snd_soc_dapm_widget_for_each_source_path(w, p) { in sst_send_pipe_gains()
1321 if (p->connected && !p->connected(w, p->sink)) in sst_send_pipe_gains()
1353 struct snd_soc_dapm_widget *w, int type) in sst_fill_module_list() argument
1356 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_fill_module_list()
1357 struct sst_ids *ids = w->priv; in sst_fill_module_list()
1367 mc->w = w; in sst_fill_module_list()
1373 bc->w = w; in sst_fill_module_list()
1393 static int sst_fill_widget_module_info(struct snd_soc_dapm_widget *w, in sst_fill_widget_module_info() argument
1408 if (strncmp(kctl->id.name, w->name, index)) in sst_fill_widget_module_info()
1412 ret = sst_fill_module_list(kctl, w, SST_MODULE_GAIN); in sst_fill_widget_module_info()
1415 ret = sst_fill_module_list(kctl, w, SST_MODULE_ALGO); in sst_fill_widget_module_info()
1422 mc->w = w; in sst_fill_widget_module_info()
1427 e->w = w; in sst_fill_widget_module_info()
1432 e->w = w; in sst_fill_widget_module_info()
1451 struct snd_soc_dapm_widget *w; in sst_fill_linked_widgets() local
1454 list_for_each_entry(w, &platform->component.card->widgets, list) { in sst_fill_linked_widgets()
1455 if (!strncmp(ids->parent_wname, w->name, len)) { in sst_fill_linked_widgets()
1456 ids->parent_w = w; in sst_fill_linked_widgets()
1467 struct snd_soc_dapm_widget *w; in sst_map_modules_to_pipe() local
1470 list_for_each_entry(w, &platform->component.card->widgets, list) { in sst_map_modules_to_pipe()
1471 if (is_sst_dapm_widget(w) && (w->priv)) { in sst_map_modules_to_pipe()
1472 struct sst_ids *ids = w->priv; in sst_map_modules_to_pipe()
1475 w->id, w->name); in sst_map_modules_to_pipe()
1478 ret = sst_fill_widget_module_info(w, platform); in sst_map_modules_to_pipe()