Home
last modified time | relevance | path

Searched refs:scontrol (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/sound/soc/sof/
Dipc3-control.c15 static int sof_ipc3_set_get_kcontrol_data(struct snd_sof_control *scontrol, bool set) in sof_ipc3_set_get_kcontrol_data() argument
17 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scontrol->scomp); in sof_ipc3_set_get_kcontrol_data()
18 struct sof_ipc_ctrl_data *cdata = scontrol->ipc_control_data; in sof_ipc3_set_get_kcontrol_data()
26 if (swidget->comp_id == scontrol->comp_id) { in sof_ipc3_set_get_kcontrol_data()
34 scontrol->comp_id); in sof_ipc3_set_get_kcontrol_data()
62 cdata->comp_id = scontrol->comp_id; in sof_ipc3_set_get_kcontrol_data()
69 cdata->num_elems = scontrol->num_channels; in sof_ipc3_set_get_kcontrol_data()
71 msg_bytes = scontrol->num_channels * in sof_ipc3_set_get_kcontrol_data()
93 static void snd_sof_refresh_control(struct snd_sof_control *scontrol) in snd_sof_refresh_control() argument
95 struct sof_ipc_ctrl_data *cdata = scontrol->ipc_control_data; in snd_sof_refresh_control()
[all …]
Dipc4-control.c15 static int sof_ipc4_set_get_kcontrol_data(struct snd_sof_control *scontrol, bool set) in sof_ipc4_set_get_kcontrol_data() argument
17 struct sof_ipc4_control_data *cdata = scontrol->ipc_control_data; in sof_ipc4_set_get_kcontrol_data()
18 struct snd_soc_component *scomp = scontrol->scomp; in sof_ipc4_set_get_kcontrol_data()
27 if (swidget->comp_id == scontrol->comp_id) { in sof_ipc4_set_get_kcontrol_data()
34 dev_err(scomp->dev, "Failed to find widget for kcontrol %s\n", scontrol->name); in sof_ipc4_set_get_kcontrol_data()
54 struct snd_sof_control *scontrol) in sof_ipc4_set_volume_data() argument
56 struct sof_ipc4_control_data *cdata = scontrol->ipc_control_data; in sof_ipc4_set_volume_data()
66 for (i = 1; i < scontrol->num_channels; i++) { in sof_ipc4_set_volume_data()
77 for (i = 0; i < scontrol->num_channels; i++) { in sof_ipc4_set_volume_data()
93 ret = sof_ipc4_set_get_kcontrol_data(scontrol, true); in sof_ipc4_set_volume_data()
[all …]
Dcontrol.c22 struct snd_sof_control *scontrol = sm->dobj.private; in snd_sof_volume_get() local
23 struct snd_soc_component *scomp = scontrol->scomp; in snd_sof_volume_get()
28 return tplg_ops->control->volume_get(scontrol, ucontrol); in snd_sof_volume_get()
37 struct snd_sof_control *scontrol = sm->dobj.private; in snd_sof_volume_put() local
38 struct snd_soc_component *scomp = scontrol->scomp; in snd_sof_volume_put()
43 return tplg_ops->control->volume_put(scontrol, ucontrol); in snd_sof_volume_put()
51 struct snd_sof_control *scontrol = sm->dobj.private; in snd_sof_volume_info() local
52 unsigned int channels = scontrol->num_channels; in snd_sof_volume_info()
74 struct snd_sof_control *scontrol = sm->dobj.private; in snd_sof_switch_get() local
75 struct snd_soc_component *scomp = scontrol->scomp; in snd_sof_switch_get()
[all …]
Dtopology.c261 static int set_up_volume_table(struct snd_sof_control *scontrol, in set_up_volume_table() argument
264 struct snd_soc_component *scomp = scontrol->scomp; in set_up_volume_table()
269 return tplg_ops->control->set_up_volume_table(scontrol, tlv, size); in set_up_volume_table()
762 struct snd_sof_control *scontrol, in sof_control_load_volume() argument
786 scontrol->comp_id = sdev->next_comp_id; in sof_control_load_volume()
787 scontrol->min_volume_step = le32_to_cpu(mc->min); in sof_control_load_volume()
788 scontrol->max_volume_step = le32_to_cpu(mc->max); in sof_control_load_volume()
789 scontrol->num_channels = le32_to_cpu(mc->num_channels); in sof_control_load_volume()
791 scontrol->max = le32_to_cpu(mc->max); in sof_control_load_volume()
802 ret = set_up_volume_table(scontrol, tlv, le32_to_cpu(mc->max) + 1); in sof_control_load_volume()
[all …]
Dsof-audio.h104 bool (*volume_put)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
105 int (*volume_get)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
106 bool (*switch_put)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
107 int (*switch_get)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
108 bool (*enum_put)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
109 int (*enum_get)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
110 int (*bytes_put)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
111 int (*bytes_get)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
112 int (*bytes_ext_get)(struct snd_sof_control *scontrol,
114 int (*bytes_ext_volatile_get)(struct snd_sof_control *scontrol,
[all …]
Dipc3-topology.c710 struct snd_sof_control *scontrol; in sof_ipc3_widget_setup_comp_pga() local
741 list_for_each_entry(scontrol, &sdev->kcontrol_list, list) { in sof_ipc3_widget_setup_comp_pga()
742 if (scontrol->comp_id == swidget->comp_id && in sof_ipc3_widget_setup_comp_pga()
743 scontrol->volume_table) { in sof_ipc3_widget_setup_comp_pga()
744 min_step = scontrol->min_volume_step; in sof_ipc3_widget_setup_comp_pga()
745 max_step = scontrol->max_volume_step; in sof_ipc3_widget_setup_comp_pga()
746 volume->min_value = scontrol->volume_table[min_step]; in sof_ipc3_widget_setup_comp_pga()
747 volume->max_value = scontrol->volume_table[max_step]; in sof_ipc3_widget_setup_comp_pga()
748 volume->channels = scontrol->num_channels; in sof_ipc3_widget_setup_comp_pga()
1631 static int sof_ipc3_control_load_bytes(struct snd_sof_dev *sdev, struct snd_sof_control *scontrol) in sof_ipc3_control_load_bytes() argument
[all …]
Dipc4-topology.c658 struct snd_sof_control *scontrol; in sof_ipc4_widget_setup_comp_pga() local
695 list_for_each_entry(scontrol, &sdev->kcontrol_list, list) in sof_ipc4_widget_setup_comp_pga()
696 if (scontrol->comp_id == swidget->comp_id) { in sof_ipc4_widget_setup_comp_pga()
697 struct sof_ipc4_control_data *cdata = scontrol->ipc_control_data; in sof_ipc4_widget_setup_comp_pga()
1402 static int sof_ipc4_control_load_volume(struct snd_sof_dev *sdev, struct snd_sof_control *scontrol) in sof_ipc4_control_load_volume() argument
1408 scontrol->size = struct_size(control_data, chanv, scontrol->num_channels); in sof_ipc4_control_load_volume()
1411 scontrol->ipc_control_data = kzalloc(scontrol->size, GFP_KERNEL); in sof_ipc4_control_load_volume()
1412 if (!scontrol->ipc_control_data) in sof_ipc4_control_load_volume()
1415 control_data = scontrol->ipc_control_data; in sof_ipc4_control_load_volume()
1416 control_data->index = scontrol->index; in sof_ipc4_control_load_volume()
[all …]
/linux-6.1.9/drivers/ata/
Dlibata-sata.c300 u32 scontrol, serror; in sata_link_resume() local
303 if ((rc = sata_scr_read(link, SCR_CONTROL, &scontrol))) in sata_link_resume()
312 scontrol = (scontrol & 0x0f0) | 0x300; in sata_link_resume()
313 if ((rc = sata_scr_write(link, SCR_CONTROL, scontrol))) in sata_link_resume()
324 if ((rc = sata_scr_read(link, SCR_CONTROL, &scontrol))) in sata_link_resume()
326 } while ((scontrol & 0xf0f) != 0x300 && --tries); in sata_link_resume()
328 if ((scontrol & 0xf0f) != 0x300) { in sata_link_resume()
330 scontrol); in sata_link_resume()
372 u32 scontrol; in sata_link_scr_lpm() local
375 rc = sata_scr_read(link, SCR_CONTROL, &scontrol); in sata_link_scr_lpm()
[all …]
Data_piix.c1441 u32 scontrol; in piix_init_sidpr() local
1469 piix_sidpr_scr_read(link0, SCR_CONTROL, &scontrol); in piix_init_sidpr()
1475 if ((scontrol & 0xf00) != 0x300) { in piix_init_sidpr()
1476 scontrol |= 0x300; in piix_init_sidpr()
1477 piix_sidpr_scr_write(link0, SCR_CONTROL, scontrol); in piix_init_sidpr()
1478 piix_sidpr_scr_read(link0, SCR_CONTROL, &scontrol); in piix_init_sidpr()
1480 if ((scontrol & 0xf00) != 0x300) { in piix_init_sidpr()
Dsata_via.c335 u32 sstatus, scontrol; in vt6420_prereset() local
344 svia_scr_read(link, SCR_CONTROL, &scontrol); /* flush */ in vt6420_prereset()
356 svia_scr_read(link, SCR_CONTROL, &scontrol); in vt6420_prereset()
362 online ? "up" : "down", sstatus, scontrol); in vt6420_prereset()
Dlibahci.c883 u32 cmd, scontrol; in ahci_power_down() local
889 scontrol = readl(port_mmio + PORT_SCR_CTL); in ahci_power_down()
890 scontrol &= ~0xf; in ahci_power_down()
891 writel(scontrol, port_mmio + PORT_SCR_CTL); in ahci_power_down()
Dlibata-core.c3020 u32 sstatus, scontrol, tmp; in sata_print_link_status() local
3024 if (sata_scr_read(link, SCR_CONTROL, &scontrol)) in sata_print_link_status()
3030 sata_spd_string(tmp), sstatus, scontrol); in sata_print_link_status()
3033 sstatus, scontrol); in sata_print_link_status()
/linux-6.1.9/sound/soc/qcom/qdsp6/
Dtopology.c694 struct snd_ar_control *scontrol; in audioreach_widget_load_mixer() local
700 scontrol = kzalloc(sizeof(*scontrol), GFP_KERNEL); in audioreach_widget_load_mixer()
701 if (!scontrol) in audioreach_widget_load_mixer()
704 scontrol->scomp = component; in audioreach_widget_load_mixer()
706 dobj->private = scontrol; in audioreach_widget_load_mixer()
712 scontrol->sgid = le32_to_cpu(w_elem->value); in audioreach_widget_load_mixer()
925 struct snd_ar_control *scontrol = mc->dobj.private; in audioreach_get_audio_mixer() local
929 connected = q6apm_is_sub_graphs_connected(data, scontrol->sgid, dapm_scontrol->sgid); in audioreach_get_audio_mixer()
946 struct snd_ar_control *scontrol = mc->dobj.private; in audioreach_put_audio_mixer() local
950 q6apm_connect_sub_graphs(data, scontrol->sgid, dapm_scontrol->sgid, true); in audioreach_put_audio_mixer()
[all …]
/linux-6.1.9/sound/core/
Dpcm_compat.c418 struct snd_pcm_mmap_control scontrol; in snd_pcm_ioctl_sync_ptr_x32() local
427 get_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_x32()
428 get_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_x32()
443 control->appl_ptr = scontrol.appl_ptr; in snd_pcm_ioctl_sync_ptr_x32()
445 scontrol.appl_ptr = control->appl_ptr % boundary; in snd_pcm_ioctl_sync_ptr_x32()
447 control->avail_min = scontrol.avail_min; in snd_pcm_ioctl_sync_ptr_x32()
449 scontrol.avail_min = control->avail_min; in snd_pcm_ioctl_sync_ptr_x32()
465 put_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_x32()
466 put_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_x32()
Dpcm_native.c3129 struct snd_pcm_mmap_control scontrol; in snd_pcm_ioctl_sync_ptr_compat() local
3138 get_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_compat()
3139 get_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_compat()
3155 scontrol.appl_ptr); in snd_pcm_ioctl_sync_ptr_compat()
3161 scontrol.appl_ptr = control->appl_ptr % boundary; in snd_pcm_ioctl_sync_ptr_compat()
3163 control->avail_min = scontrol.avail_min; in snd_pcm_ioctl_sync_ptr_compat()
3165 scontrol.avail_min = control->avail_min; in snd_pcm_ioctl_sync_ptr_compat()
3181 put_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_compat()
3182 put_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_compat()