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

/linux-master/sound/soc/sof/
H A Dipc3-control.c15 static int sof_ipc3_set_get_kcontrol_data(struct snd_sof_control *scontrol, argument
18 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scontrol->scomp);
19 struct sof_ipc_ctrl_data *cdata = scontrol->ipc_control_data;
28 if (swidget->comp_id == scontrol->comp_id) {
36 scontrol->comp_id);
69 cdata->comp_id = scontrol->comp_id;
76 cdata->num_elems = scontrol->num_channels;
78 msg_bytes = scontrol->num_channels *
104 if (!scontrol->old_ipc_control_data)
110 memcpy(scontrol
127 sof_ipc3_refresh_control(struct snd_sof_control *scontrol) argument
154 sof_ipc3_volume_get(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol) argument
172 sof_ipc3_volume_put(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol) argument
205 sof_ipc3_switch_get(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol) argument
221 sof_ipc3_switch_put(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol) argument
253 sof_ipc3_enum_get(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol) argument
269 sof_ipc3_enum_put(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol) argument
301 sof_ipc3_bytes_get(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol) argument
333 sof_ipc3_bytes_put(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol) argument
366 sof_ipc3_bytes_ext_put(struct snd_sof_control *scontrol, const unsigned int __user *binary_data, unsigned int size) argument
453 _sof_ipc3_bytes_ext_get(struct snd_sof_control *scontrol, const unsigned int __user *binary_data, unsigned int size, bool from_dsp) argument
509 sof_ipc3_bytes_ext_get(struct snd_sof_control *scontrol, const unsigned int __user *binary_data, unsigned int size) argument
515 sof_ipc3_bytes_ext_volatile_get(struct snd_sof_control *scontrol, const unsigned int __user *binary_data, unsigned int size) argument
522 snd_sof_update_control(struct snd_sof_control *scontrol, struct sof_ipc_ctrl_data *cdata) argument
554 struct snd_sof_control *scontrol; local
665 struct snd_sof_control *scontrol; local
700 sof_ipc3_set_up_volume_table(struct snd_sof_control *scontrol, int tlv[SOF_TLV_ITEMS], int size) argument
[all...]
H A Dipc4-control.c15 static int sof_ipc4_set_get_kcontrol_data(struct snd_sof_control *scontrol, argument
18 struct sof_ipc4_control_data *cdata = scontrol->ipc_control_data;
19 struct snd_soc_component *scomp = scontrol->scomp;
29 if (swidget->comp_id == scontrol->comp_id) {
36 dev_err(scomp->dev, "Failed to find widget for kcontrol %s\n", scontrol->name);
62 if (!scontrol->old_ipc_control_data)
68 memcpy(scontrol->ipc_control_data, scontrol->old_ipc_control_data,
69 scontrol->max_size);
70 kfree(scontrol
86 sof_ipc4_set_volume_data(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget, struct snd_sof_control *scontrol, bool lock) argument
143 sof_ipc4_volume_put(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol) argument
189 sof_ipc4_volume_get(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol) argument
205 sof_ipc4_set_generic_control_data(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget, struct snd_sof_control *scontrol, bool lock) argument
243 sof_ipc4_refresh_generic_control(struct snd_sof_control *scontrol) argument
287 sof_ipc4_switch_put(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol) argument
331 sof_ipc4_switch_get(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol) argument
346 sof_ipc4_enum_put(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol) argument
390 sof_ipc4_enum_get(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol) argument
405 sof_ipc4_set_get_bytes_data(struct snd_sof_dev *sdev, struct snd_sof_control *scontrol, bool set, bool lock) argument
435 sof_ipc4_bytes_put(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol) argument
469 sof_ipc4_bytes_get(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol) argument
498 sof_ipc4_bytes_ext_put(struct snd_sof_control *scontrol, const unsigned int __user *binary_data, unsigned int size) argument
571 _sof_ipc4_bytes_ext_get(struct snd_sof_control *scontrol, const unsigned int __user *binary_data, unsigned int size, bool from_dsp) argument
628 sof_ipc4_bytes_ext_get(struct snd_sof_control *scontrol, const unsigned int __user *binary_data, unsigned int size) argument
635 sof_ipc4_bytes_ext_volatile_get(struct snd_sof_control *scontrol, const unsigned int __user *binary_data, unsigned int size) argument
643 sof_ipc4_volsw_setup(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget, struct snd_sof_control *scontrol) argument
662 struct snd_sof_control *scontrol; local
785 struct snd_sof_control *scontrol; local
822 sof_ipc4_set_up_volume_table(struct snd_sof_control *scontrol, int tlv[SOF_TLV_ITEMS], int size) argument
[all...]
H A Dcontrol.c22 struct snd_sof_control *scontrol = sm->dobj.private; local
23 struct snd_soc_component *scomp = scontrol->scomp;
28 return tplg_ops->control->volume_get(scontrol, ucontrol);
37 struct snd_sof_control *scontrol = sm->dobj.private; local
38 struct snd_soc_component *scomp = scontrol->scomp;
43 return tplg_ops->control->volume_put(scontrol, ucontrol);
51 struct snd_sof_control *scontrol = sm->dobj.private; local
52 unsigned int channels = scontrol->num_channels;
74 struct snd_sof_control *scontrol = sm->dobj.private; local
75 struct snd_soc_component *scomp = scontrol
89 struct snd_sof_control *scontrol = sm->dobj.private; local
104 struct snd_sof_control *scontrol = se->dobj.private; local
119 struct snd_sof_control *scontrol = se->dobj.private; local
134 struct snd_sof_control *scontrol = be->dobj.private; local
149 struct snd_sof_control *scontrol = be->dobj.private; local
165 struct snd_sof_control *scontrol = be->dobj.private; local
184 struct snd_sof_control *scontrol = be->dobj.private; local
212 struct snd_sof_control *scontrol = be->dobj.private; local
[all...]
H A Dsof-audio.h144 bool (*volume_put)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
145 int (*volume_get)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
146 bool (*switch_put)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
147 int (*switch_get)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
148 bool (*enum_put)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
149 int (*enum_get)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
150 int (*bytes_put)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
151 int (*bytes_get)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol);
152 int (*bytes_ext_get)(struct snd_sof_control *scontrol,
154 int (*bytes_ext_volatile_get)(struct snd_sof_control *scontrol,
[all...]
H A Dtopology.c266 static int set_up_volume_table(struct snd_sof_control *scontrol, argument
269 struct snd_soc_component *scomp = scontrol->scomp;
274 return tplg_ops->control->set_up_volume_table(scontrol, tlv, size);
819 struct snd_sof_control *scontrol,
843 scontrol->comp_id = sdev->next_comp_id;
844 scontrol->min_volume_step = le32_to_cpu(mc->min);
845 scontrol->max_volume_step = le32_to_cpu(mc->max);
846 scontrol->num_channels = le32_to_cpu(mc->num_channels);
848 scontrol->max = le32_to_cpu(mc->max);
859 ret = set_up_volume_table(scontrol, tl
818 sof_control_load_volume(struct snd_soc_component *scomp, struct snd_sof_control *scontrol, struct snd_kcontrol_new *kc, struct snd_soc_tplg_ctl_hdr *hdr) argument
898 sof_control_load_enum(struct snd_soc_component *scomp, struct snd_sof_control *scontrol, struct snd_kcontrol_new *kc, struct snd_soc_tplg_ctl_hdr *hdr) argument
920 sof_control_load_bytes(struct snd_soc_component *scomp, struct snd_sof_control *scontrol, struct snd_kcontrol_new *kc, struct snd_soc_tplg_ctl_hdr *hdr) argument
958 struct snd_sof_control *scontrol; local
1031 struct snd_sof_control *scontrol = dobj->private; local
1615 struct snd_sof_control *scontrol; local
2147 struct snd_sof_control *scontrol; local
2174 struct snd_sof_control *scontrol; local
[all...]
H A Dipc3-topology.c746 struct snd_sof_control *scontrol; local
777 list_for_each_entry(scontrol, &sdev->kcontrol_list, list) {
778 if (scontrol->comp_id == swidget->comp_id &&
779 scontrol->volume_table) {
780 min_step = scontrol->min_volume_step;
781 max_step = scontrol->max_volume_step;
782 volume->min_value = scontrol->volume_table[min_step];
783 volume->max_value = scontrol->volume_table[max_step];
784 volume->channels = scontrol->num_channels;
833 dev_err(scomp->dev, "No scontrol fo
1743 sof_ipc3_control_load_bytes(struct snd_sof_dev *sdev, struct snd_sof_control *scontrol) argument
1806 sof_ipc3_control_load_volume(struct snd_sof_dev *sdev, struct snd_sof_control *scontrol) argument
1838 sof_ipc3_control_load_enum(struct snd_sof_dev *sdev, struct snd_sof_control *scontrol) argument
1856 sof_ipc3_control_setup(struct snd_sof_dev *sdev, struct snd_sof_control *scontrol) argument
1875 sof_ipc3_control_free(struct snd_sof_dev *sdev, struct snd_sof_control *scontrol) argument
[all...]
H A Dipc4-topology.c397 struct snd_sof_control *scontrol; local
400 list_for_each_entry(scontrol, &sdev->kcontrol_list, list) {
401 if (scontrol->comp_id == swidget->comp_id) {
402 struct sof_ipc4_control_data *cdata = scontrol->ipc_control_data;
2159 static int sof_ipc4_control_load_volume(struct snd_sof_dev *sdev, struct snd_sof_control *scontrol) argument
2165 scontrol->size = struct_size(control_data, chanv, scontrol->num_channels);
2167 /* scontrol->ipc_control_data will be freed in sof_control_unload */
2168 scontrol->ipc_control_data = kzalloc(scontrol
2201 sof_ipc4_control_load_enum(struct snd_sof_dev *sdev, struct snd_sof_control *scontrol) argument
2231 sof_ipc4_control_load_bytes(struct snd_sof_dev *sdev, struct snd_sof_control *scontrol) argument
2296 sof_ipc4_control_setup(struct snd_sof_dev *sdev, struct snd_sof_control *scontrol) argument
[all...]
/linux-master/drivers/ata/
H A Dlibata-sata.c302 u32 scontrol, serror; local
305 if ((rc = sata_scr_read(link, SCR_CONTROL, &scontrol)))
314 scontrol = (scontrol & 0x0f0) | 0x300;
315 if ((rc = sata_scr_write(link, SCR_CONTROL, scontrol)))
326 if ((rc = sata_scr_read(link, SCR_CONTROL, &scontrol)))
328 } while ((scontrol & 0xf0f) != 0x300 && --tries);
330 if ((scontrol & 0xf0f) != 0x300) {
332 scontrol);
374 u32 scontrol; local
439 __sata_set_spd_needed(struct ata_link *link, u32 *scontrol) argument
481 u32 scontrol; local
504 u32 scontrol; local
548 u32 scontrol; local
[all...]
H A Dsata_via.c335 u32 sstatus, scontrol; local
344 svia_scr_read(link, SCR_CONTROL, &scontrol); /* flush */
356 svia_scr_read(link, SCR_CONTROL, &scontrol);
362 online ? "up" : "down", sstatus, scontrol);
H A Data_piix.c1441 u32 scontrol; local
1469 piix_sidpr_scr_read(link0, SCR_CONTROL, &scontrol);
1475 if ((scontrol & 0xf00) != 0x300) {
1476 scontrol |= 0x300;
1477 piix_sidpr_scr_write(link0, SCR_CONTROL, scontrol);
1478 piix_sidpr_scr_read(link0, SCR_CONTROL, &scontrol);
1480 if ((scontrol & 0xf00) != 0x300) {
H A Dlibahci.c885 u32 cmd, scontrol; local
891 scontrol = readl(port_mmio + PORT_SCR_CTL);
892 scontrol &= ~0xf;
893 writel(scontrol, port_mmio + PORT_SCR_CTL);
H A Dlibata-core.c3211 u32 sstatus, scontrol, tmp; local
3215 if (sata_scr_read(link, SCR_CONTROL, &scontrol))
3221 sata_spd_string(tmp), sstatus, scontrol);
3224 sstatus, scontrol);
/linux-master/sound/soc/qcom/qdsp6/
H A Dtopology.c776 struct snd_ar_control *scontrol; local
783 scontrol = kzalloc(sizeof(*scontrol), GFP_KERNEL);
784 if (!scontrol)
787 scontrol->scomp = component;
789 dobj->private = scontrol;
795 scontrol->sgid = le32_to_cpu(w_elem->value);
798 scontrol->graph_id = le32_to_cpu(w_elem->value);
807 scontrol->w = w;
808 list_add_tail(&scontrol
911 struct snd_ar_control *scontrol = dobj->private; local
1011 struct snd_ar_control *scontrol; local
1100 struct snd_ar_control *scontrol = mc->dobj.private; local
1121 struct snd_ar_control *scontrol = mc->dobj.private; local
1156 audioreach_control_load_mix(struct snd_soc_component *scomp, struct snd_ar_control *scontrol, struct snd_kcontrol_new *kc, struct snd_soc_tplg_ctl_hdr *hdr) argument
1194 struct snd_ar_control *scontrol; local
1229 struct snd_ar_control *scontrol = dobj->private; local
[all...]
/linux-master/sound/core/
H A Dpcm_compat.c413 struct snd_pcm_mmap_control scontrol; local
422 get_user(scontrol.appl_ptr, &src->c.control.appl_ptr) ||
423 get_user(scontrol.avail_min, &src->c.control.avail_min))
438 control->appl_ptr = scontrol.appl_ptr;
440 scontrol.appl_ptr = control->appl_ptr % boundary;
442 control->avail_min = scontrol.avail_min;
444 scontrol.avail_min = control->avail_min;
460 put_user(scontrol.appl_ptr, &src->c.control.appl_ptr) ||
461 put_user(scontrol.avail_min, &src->c.control.avail_min))
H A Dpcm_native.c3126 struct snd_pcm_mmap_control scontrol; local
3135 get_user(scontrol.appl_ptr, &src->c.control.appl_ptr) ||
3136 get_user(scontrol.avail_min, &src->c.control.avail_min))
3152 scontrol.appl_ptr);
3156 scontrol.appl_ptr = control->appl_ptr % boundary;
3158 control->avail_min = scontrol.avail_min;
3160 scontrol.avail_min = control->avail_min;
3176 put_user(scontrol.appl_ptr, &src->c.control.appl_ptr) ||
3177 put_user(scontrol.avail_min, &src->c.control.avail_min))

Completed in 230 milliseconds