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()
835 static int sst_set_be_modules(struct snd_soc_dapm_widget *w, in sst_set_be_modules() argument
839 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_set_be_modules()
842 dev_dbg(c->dev, "Enter: widget=%s\n", w->name); in sst_set_be_modules()
848 ret = sst_send_pipe_module_params(w, k); in sst_set_be_modules()
853 static int sst_set_media_path(struct snd_soc_dapm_widget *w, in sst_set_media_path() argument
858 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_set_media_path()
860 struct sst_ids *ids = w->priv; in sst_set_media_path()
862 dev_dbg(c->dev, "widget=%s\n", w->name); in sst_set_media_path()
886 ret = sst_send_pipe_module_params(w, k); in sst_set_media_path()
890 static int sst_set_media_loop(struct snd_soc_dapm_widget *w, in sst_set_media_loop() argument
895 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_set_media_loop()
897 struct sst_ids *ids = w->priv; in sst_set_media_loop()
899 dev_dbg(c->dev, "Enter:widget=%s\n", w->name); in sst_set_media_loop()
924 ret = sst_send_pipe_module_params(w, k); in sst_set_media_loop()
1146 static bool is_sst_dapm_widget(struct snd_soc_dapm_widget *w) in is_sst_dapm_widget() argument
1148 switch (w->id) { in is_sst_dapm_widget()
1171 struct snd_soc_dapm_widget *w; in sst_send_pipe_gains() local
1179 w = dai->playback_widget; in sst_send_pipe_gains()
1180 list_for_each_entry(p, &w->sinks, list_source) { in sst_send_pipe_gains()
1181 if (p->connected && !p->connected(w, p->sink)) in sst_send_pipe_gains()
1198 w = dai->capture_widget; in sst_send_pipe_gains()
1199 list_for_each_entry(p, &w->sources, list_sink) { in sst_send_pipe_gains()
1200 if (p->connected && !p->connected(w, p->sink)) in sst_send_pipe_gains()
1232 struct snd_soc_dapm_widget *w, int type) in sst_fill_module_list() argument
1235 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_fill_module_list()
1236 struct sst_ids *ids = w->priv; in sst_fill_module_list()
1246 mc->w = w; in sst_fill_module_list()
1252 bc->w = w; in sst_fill_module_list()
1272 static int sst_fill_widget_module_info(struct snd_soc_dapm_widget *w, in sst_fill_widget_module_info() argument
1289 !strncmp(kctl->id.name, w->name, index)) in sst_fill_widget_module_info()
1290 ret = sst_fill_module_list(kctl, w, SST_MODULE_GAIN); in sst_fill_widget_module_info()
1293 !strncmp(kctl->id.name, w->name, index)) in sst_fill_widget_module_info()
1294 ret = sst_fill_module_list(kctl, w, SST_MODULE_ALGO); in sst_fill_widget_module_info()
1297 !strncmp(kctl->id.name, w->name, index) && in sst_fill_widget_module_info()
1302 mc->w = w; in sst_fill_widget_module_info()
1305 !strncmp(kctl->id.name, w->name, index)) { in sst_fill_widget_module_info()
1308 e->w = w; in sst_fill_widget_module_info()
1311 !strncmp(kctl->id.name, w->name, index)) { in sst_fill_widget_module_info()
1315 e->w = w; in sst_fill_widget_module_info()
1334 struct snd_soc_dapm_widget *w; in sst_fill_linked_widgets() local
1337 list_for_each_entry(w, &platform->component.card->widgets, list) { in sst_fill_linked_widgets()
1338 if (!strncmp(ids->parent_wname, w->name, len)) { in sst_fill_linked_widgets()
1339 ids->parent_w = w; in sst_fill_linked_widgets()
1350 struct snd_soc_dapm_widget *w; in sst_map_modules_to_pipe() local
1353 list_for_each_entry(w, &platform->component.card->widgets, list) { in sst_map_modules_to_pipe()
1354 if (is_sst_dapm_widget(w) && (w->priv)) { in sst_map_modules_to_pipe()
1355 struct sst_ids *ids = w->priv; in sst_map_modules_to_pipe()
1358 w->id, w->name); in sst_map_modules_to_pipe()
1361 ret = sst_fill_widget_module_info(w, platform); in sst_map_modules_to_pipe()