Home
last modified time | relevance | path

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

/linux/sound/soc/sof/
H A Dipc3-control.c15 static int sof_ipc3_set_get_kcontrol_data(struct snd_sof_control *scontrol, in sof_ipc3_set_get_kcontrol_data() argument
18 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scontrol->scomp); in sof_ipc3_set_get_kcontrol_data()
19 struct sof_ipc_ctrl_data *cdata = scontrol->ipc_control_data; in sof_ipc3_set_get_kcontrol_data()
28 if (swidget->comp_id == scontrol->comp_id) { in sof_ipc3_set_get_kcontrol_data()
36 scontrol->comp_id); in sof_ipc3_set_get_kcontrol_data()
69 cdata->comp_id = scontrol->comp_id; in sof_ipc3_set_get_kcontrol_data()
76 cdata->num_elems = scontrol->num_channels; in sof_ipc3_set_get_kcontrol_data()
78 msg_bytes = scontrol->num_channels * in sof_ipc3_set_get_kcontrol_data()
104 if (!scontrol->old_ipc_control_data) in sof_ipc3_set_get_kcontrol_data()
110 memcpy(scontrol->ipc_control_data, scontrol->old_ipc_control_data, in sof_ipc3_set_get_kcontrol_data()
[all …]
H A Dipc4-control.c15 static int sof_ipc4_set_get_kcontrol_data(struct snd_sof_control *scontrol, in sof_ipc4_set_get_kcontrol_data() argument
18 struct sof_ipc4_control_data *cdata = scontrol->ipc_control_data; in sof_ipc4_set_get_kcontrol_data()
19 struct snd_soc_component *scomp = scontrol->scomp; in sof_ipc4_set_get_kcontrol_data()
29 if (swidget->comp_id == scontrol->comp_id) { in sof_ipc4_set_get_kcontrol_data()
36 dev_err(scomp->dev, "Failed to find widget for kcontrol %s\n", scontrol->name); in sof_ipc4_set_get_kcontrol_data()
62 if (!scontrol->old_ipc_control_data) in sof_ipc4_set_get_kcontrol_data()
68 memcpy(scontrol->ipc_control_data, scontrol->old_ipc_control_data, in sof_ipc4_set_get_kcontrol_data()
69 scontrol->max_size); in sof_ipc4_set_get_kcontrol_data()
70 kfree(scontrol->old_ipc_control_data); in sof_ipc4_set_get_kcontrol_data()
71 scontrol->old_ipc_control_data = NULL; in sof_ipc4_set_get_kcontrol_data()
[all …]
H A 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 …]
H A Dtopology.c266 static int set_up_volume_table(struct snd_sof_control *scontrol, in set_up_volume_table() argument
269 struct snd_soc_component *scomp = scontrol->scomp; in set_up_volume_table()
274 return tplg_ops->control->set_up_volume_table(scontrol, tlv, size); in set_up_volume_table()
819 struct snd_sof_control *scontrol, in sof_control_load_volume() argument
843 scontrol->comp_id = sdev->next_comp_id; in sof_control_load_volume()
844 scontrol->min_volume_step = le32_to_cpu(mc->min); in sof_control_load_volume()
845 scontrol->max_volume_step = le32_to_cpu(mc->max); in sof_control_load_volume()
846 scontrol->num_channels = le32_to_cpu(mc->num_channels); in sof_control_load_volume()
848 scontrol->max = le32_to_cpu(mc->max); in sof_control_load_volume()
859 ret = set_up_volume_table(scontrol, tlv, le32_to_cpu(mc->max) + 1); in sof_control_load_volume()
[all …]
H A Dsof-audio.h148 bool (*volume_put)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
149 int (*volume_get)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
150 bool (*switch_put)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
151 int (*switch_get)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
152 bool (*enum_put)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
153 int (*enum_get)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
154 int (*bytes_put)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
155 int (*bytes_get)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
156 int (*bytes_ext_get)(struct snd_sof_control *scontrol,
158 int (*bytes_ext_volatile_get)(struct snd_sof_control *scontrol,
[all …]
H A Dipc3-topology.c746 struct snd_sof_control *scontrol; in sof_ipc3_widget_setup_comp_pga() local
777 list_for_each_entry(scontrol, &sdev->kcontrol_list, list) { in sof_ipc3_widget_setup_comp_pga()
778 if (scontrol->comp_id == swidget->comp_id && in sof_ipc3_widget_setup_comp_pga()
779 scontrol->volume_table) { in sof_ipc3_widget_setup_comp_pga()
780 min_step = scontrol->min_volume_step; in sof_ipc3_widget_setup_comp_pga()
781 max_step = scontrol->max_volume_step; in sof_ipc3_widget_setup_comp_pga()
782 volume->min_value = scontrol->volume_table[min_step]; in sof_ipc3_widget_setup_comp_pga()
783 volume->max_value = scontrol->volume_table[max_step]; in sof_ipc3_widget_setup_comp_pga()
784 volume->channels = scontrol->num_channels; in sof_ipc3_widget_setup_comp_pga()
1743 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 …]
H A Dipc4-topology.c406 struct snd_sof_control *scontrol; in sof_ipc4_widget_update_kcontrol_module_id() local
409 list_for_each_entry(scontrol, &sdev->kcontrol_list, list) { in sof_ipc4_widget_update_kcontrol_module_id()
410 if (scontrol->comp_id == swidget->comp_id) { in sof_ipc4_widget_update_kcontrol_module_id()
411 struct sof_ipc4_control_data *cdata = scontrol->ipc_control_data; in sof_ipc4_widget_update_kcontrol_module_id()
2421 static int sof_ipc4_control_load_volume(struct snd_sof_dev *sdev, struct snd_sof_control *scontrol) in sof_ipc4_control_load_volume() argument
2427 scontrol->size = struct_size(control_data, chanv, scontrol->num_channels); in sof_ipc4_control_load_volume()
2430 scontrol->ipc_control_data = kzalloc(scontrol->size, GFP_KERNEL); in sof_ipc4_control_load_volume()
2431 if (!scontrol->ipc_control_data) in sof_ipc4_control_load_volume()
2434 control_data = scontrol->ipc_control_data; in sof_ipc4_control_load_volume()
2435 control_data->index = scontrol->index; in sof_ipc4_control_load_volume()
[all …]
/linux/drivers/ata/
H A Dlibata-sata.c302 u32 scontrol, serror; in sata_link_resume() local
305 if ((rc = sata_scr_read(link, SCR_CONTROL, &scontrol))) in sata_link_resume()
314 scontrol = (scontrol & 0x0f0) | 0x300; in sata_link_resume()
315 if ((rc = sata_scr_write(link, SCR_CONTROL, scontrol))) in sata_link_resume()
326 if ((rc = sata_scr_read(link, SCR_CONTROL, &scontrol))) in sata_link_resume()
328 } while ((scontrol & 0xf0f) != 0x300 && --tries); in sata_link_resume()
330 if ((scontrol & 0xf0f) != 0x300) { in sata_link_resume()
332 scontrol); in sata_link_resume()
374 u32 scontrol; in sata_link_scr_lpm() local
377 rc = sata_scr_read(link, SCR_CONTROL, &scontrol); in sata_link_scr_lpm()
[all …]
H A Data_piix.c1441 u32 scontrol; in piix_init_sidpr() local
1468 piix_sidpr_scr_read(link0, SCR_CONTROL, &scontrol); in piix_init_sidpr()
1474 if ((scontrol & 0xf00) != 0x300) { in piix_init_sidpr()
1475 scontrol |= 0x300; in piix_init_sidpr()
1476 piix_sidpr_scr_write(link0, SCR_CONTROL, scontrol); in piix_init_sidpr()
1477 piix_sidpr_scr_read(link0, SCR_CONTROL, &scontrol); in piix_init_sidpr()
1479 if ((scontrol & 0xf00) != 0x300) { in piix_init_sidpr()
H A 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()
H A Dlibahci.c885 u32 cmd, scontrol; in ahci_power_down() local
891 scontrol = readl(port_mmio + PORT_SCR_CTL); in ahci_power_down()
892 scontrol &= ~0xf; in ahci_power_down()
893 writel(scontrol, port_mmio + PORT_SCR_CTL); in ahci_power_down()
H A Dlibata-core.c3156 u32 sstatus, scontrol, tmp; in sata_print_link_status() local
3160 if (sata_scr_read(link, SCR_CONTROL, &scontrol)) in sata_print_link_status()
3166 sata_spd_string(tmp), sstatus, scontrol); in sata_print_link_status()
3169 sstatus, scontrol); in sata_print_link_status()
/linux/sound/soc/qcom/qdsp6/
H A Dtopology.c803 struct snd_ar_control *scontrol; in audioreach_widget_load_mixer() local
810 scontrol = kzalloc(sizeof(*scontrol), GFP_KERNEL); in audioreach_widget_load_mixer()
811 if (!scontrol) in audioreach_widget_load_mixer()
814 scontrol->scomp = component; in audioreach_widget_load_mixer()
816 dobj->private = scontrol; in audioreach_widget_load_mixer()
822 scontrol->sgid = le32_to_cpu(w_elem->value); in audioreach_widget_load_mixer()
825 scontrol->graph_id = le32_to_cpu(w_elem->value); in audioreach_widget_load_mixer()
834 scontrol->w = w; in audioreach_widget_load_mixer()
835 list_add_tail(&scontrol->node, &data->widget_list); in audioreach_widget_load_mixer()
938 struct snd_ar_control *scontrol = dobj->private; in audioreach_widget_unload() local
[all …]
/linux/sound/core/
H A Dpcm_compat.c413 struct snd_pcm_mmap_control scontrol; in snd_pcm_ioctl_sync_ptr_x32() local
422 get_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_x32()
423 get_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_x32()
438 control->appl_ptr = scontrol.appl_ptr; in snd_pcm_ioctl_sync_ptr_x32()
440 scontrol.appl_ptr = control->appl_ptr % boundary; in snd_pcm_ioctl_sync_ptr_x32()
442 control->avail_min = scontrol.avail_min; in snd_pcm_ioctl_sync_ptr_x32()
444 scontrol.avail_min = control->avail_min; in snd_pcm_ioctl_sync_ptr_x32()
460 put_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_x32()
461 put_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_x32()
H A Dpcm_native.c3138 struct snd_pcm_mmap_control scontrol; in snd_pcm_ioctl_sync_ptr_compat() local
3147 get_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_compat()
3148 get_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_compat()
3164 scontrol.appl_ptr); in snd_pcm_ioctl_sync_ptr_compat()
3168 scontrol.appl_ptr = control->appl_ptr % boundary; in snd_pcm_ioctl_sync_ptr_compat()
3170 control->avail_min = scontrol.avail_min; in snd_pcm_ioctl_sync_ptr_compat()
3172 scontrol.avail_min = control->avail_min; in snd_pcm_ioctl_sync_ptr_compat()
3188 put_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_compat()
3189 put_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_compat()