Lines Matching refs:swidget
23 struct snd_sof_widget *swidget; in sof_ipc4_set_get_kcontrol_data() local
28 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc4_set_get_kcontrol_data()
29 if (swidget->comp_id == scontrol->comp_id) { in sof_ipc4_set_get_kcontrol_data()
41 mutex_lock(&swidget->setup_mutex); in sof_ipc4_set_get_kcontrol_data()
43 lockdep_assert_held(&swidget->setup_mutex); in sof_ipc4_set_get_kcontrol_data()
50 if (!swidget->use_count) in sof_ipc4_set_get_kcontrol_data()
54 msg->primary |= SOF_IPC4_MOD_INSTANCE(swidget->instance_id); in sof_ipc4_set_get_kcontrol_data()
80 mutex_unlock(&swidget->setup_mutex); in sof_ipc4_set_get_kcontrol_data()
86 sof_ipc4_set_volume_data(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget, in sof_ipc4_set_volume_data() argument
90 struct sof_ipc4_gain *gain = swidget->private; in sof_ipc4_set_volume_data()
150 struct snd_sof_widget *swidget; in sof_ipc4_volume_put() local
170 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc4_volume_put()
171 if (swidget->comp_id == scontrol->comp_id) { in sof_ipc4_volume_put()
182 ret = sof_ipc4_set_volume_data(sdev, swidget, scontrol, true); in sof_ipc4_volume_put()
206 struct snd_sof_widget *swidget, in sof_ipc4_set_generic_control_data() argument
293 struct snd_sof_widget *swidget; in sof_ipc4_switch_put() local
312 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc4_switch_put()
313 if (swidget->comp_id == scontrol->comp_id) { in sof_ipc4_switch_put()
324 ret = sof_ipc4_set_generic_control_data(sdev, swidget, scontrol, true); in sof_ipc4_switch_put()
352 struct snd_sof_widget *swidget; in sof_ipc4_enum_put() local
371 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc4_enum_put()
372 if (swidget->comp_id == scontrol->comp_id) { in sof_ipc4_enum_put()
383 ret = sof_ipc4_set_generic_control_data(sdev, swidget, scontrol, true); in sof_ipc4_enum_put()
643 sof_ipc4_volsw_setup(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget, in sof_ipc4_volsw_setup() argument
647 return sof_ipc4_set_generic_control_data(sdev, swidget, scontrol, false); in sof_ipc4_volsw_setup()
649 return sof_ipc4_set_volume_data(sdev, swidget, scontrol, false); in sof_ipc4_volsw_setup()
663 struct snd_sof_widget *swidget; in sof_ipc4_control_update() local
694 swidget = sof_ipc4_find_swidget_by_ids(sdev, ndata->module_id, in sof_ipc4_control_update()
696 if (!swidget) { in sof_ipc4_control_update()
705 if (scontrol->comp_id == swidget->comp_id) { in sof_ipc4_control_update()
725 __func__, swidget->widget->name, ndata->event_id & 0xffff, in sof_ipc4_control_update()
765 widget = swidget->widget; in sof_ipc4_control_update()
778 snd_ctl_notify_one(swidget->scomp->card->snd_card, in sof_ipc4_control_update()
783 static int sof_ipc4_widget_kcontrol_setup(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget) in sof_ipc4_widget_kcontrol_setup() argument
789 if (scontrol->comp_id == swidget->comp_id) { in sof_ipc4_widget_kcontrol_setup()
794 ret = sof_ipc4_volsw_setup(sdev, swidget, scontrol); in sof_ipc4_widget_kcontrol_setup()
802 ret = sof_ipc4_set_generic_control_data(sdev, swidget, in sof_ipc4_widget_kcontrol_setup()
812 scontrol->comp_id, swidget->widget->name); in sof_ipc4_widget_kcontrol_setup()