| /linux/sound/soc/sof/ |
| H A D | ipc3-control.c | 15 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 D | ipc4-control.c | 15 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->size); in sof_ipc4_set_get_kcontrol_data() 70 kfree(scontrol in sof_ipc4_set_get_kcontrol_data() 87 sof_ipc4_set_volume_data(struct snd_sof_dev * sdev,struct snd_sof_widget * swidget,struct snd_sof_control * scontrol,bool lock) sof_ipc4_set_volume_data() argument 143 sof_ipc4_volume_put(struct snd_sof_control * scontrol,struct snd_ctl_elem_value * ucontrol) sof_ipc4_volume_put() argument 189 sof_ipc4_volume_get(struct snd_sof_control * scontrol,struct snd_ctl_elem_value * ucontrol) sof_ipc4_volume_get() argument 207 sof_ipc4_set_generic_control_data(struct snd_sof_dev * sdev,struct snd_sof_widget * swidget,struct snd_sof_control * scontrol,bool lock) sof_ipc4_set_generic_control_data() argument 243 sof_ipc4_refresh_generic_control(struct snd_sof_control * scontrol) sof_ipc4_refresh_generic_control() argument 287 sof_ipc4_switch_put(struct snd_sof_control * scontrol,struct snd_ctl_elem_value * ucontrol) sof_ipc4_switch_put() argument 331 sof_ipc4_switch_get(struct snd_sof_control * scontrol,struct snd_ctl_elem_value * ucontrol) sof_ipc4_switch_get() argument 346 sof_ipc4_enum_put(struct snd_sof_control * scontrol,struct snd_ctl_elem_value * ucontrol) sof_ipc4_enum_put() argument 390 sof_ipc4_enum_get(struct snd_sof_control * scontrol,struct snd_ctl_elem_value * ucontrol) sof_ipc4_enum_get() argument 406 sof_ipc4_set_get_bytes_data(struct snd_sof_dev * sdev,struct snd_sof_control * scontrol,bool set,bool lock) sof_ipc4_set_get_bytes_data() argument 435 sof_ipc4_bytes_put(struct snd_sof_control * scontrol,struct snd_ctl_elem_value * ucontrol) sof_ipc4_bytes_put() argument 469 sof_ipc4_bytes_get(struct snd_sof_control * scontrol,struct snd_ctl_elem_value * ucontrol) sof_ipc4_bytes_get() argument 498 sof_ipc4_bytes_ext_put(struct snd_sof_control * scontrol,const unsigned int __user * binary_data,unsigned int size) sof_ipc4_bytes_ext_put() argument 579 _sof_ipc4_bytes_ext_get(struct snd_sof_control * scontrol,const unsigned int __user * binary_data,unsigned int size,bool from_dsp) _sof_ipc4_bytes_ext_get() argument 637 sof_ipc4_bytes_ext_get(struct snd_sof_control * scontrol,const unsigned int __user * binary_data,unsigned int size) sof_ipc4_bytes_ext_get() argument 644 sof_ipc4_bytes_ext_volatile_get(struct snd_sof_control * scontrol,const unsigned int __user * binary_data,unsigned int size) sof_ipc4_bytes_ext_volatile_get() argument 653 sof_ipc4_volsw_setup(struct snd_sof_dev * sdev,struct snd_sof_widget * swidget,struct snd_sof_control * scontrol) sof_ipc4_volsw_setup() argument 671 struct snd_sof_control *scontrol; sof_ipc4_control_update() local 794 struct snd_sof_control *scontrol; sof_ipc4_widget_kcontrol_setup() local 831 sof_ipc4_set_up_volume_table(struct snd_sof_control * scontrol,int tlv[SOF_TLV_ITEMS],int size) sof_ipc4_set_up_volume_table() argument [all...] |
| H A D | control.c | 22 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 in snd_sof_switch_get() 89 struct snd_sof_control *scontrol = sm->dobj.private; snd_sof_switch_put() local 104 struct snd_sof_control *scontrol = se->dobj.private; snd_sof_enum_get() local 119 struct snd_sof_control *scontrol = se->dobj.private; snd_sof_enum_put() local 134 struct snd_sof_control *scontrol = be->dobj.private; snd_sof_bytes_get() local 149 struct snd_sof_control *scontrol = be->dobj.private; snd_sof_bytes_put() local 165 struct snd_sof_control *scontrol = be->dobj.private; snd_sof_bytes_ext_put() local 184 struct snd_sof_control *scontrol = be->dobj.private; snd_sof_bytes_ext_volatile_get() local 211 struct snd_sof_control *scontrol = be->dobj.private; snd_sof_bytes_ext_get() local [all...] |
| H A D | topology.c | 270 static int set_up_volume_table(struct snd_sof_control *scontrol, in set_up_volume_table() argument 273 struct snd_soc_component *scomp = scontrol->scomp; in set_up_volume_table() 278 return tplg_ops->control->set_up_volume_table(scontrol, tlv, size); in set_up_volume_table() 831 struct snd_sof_control *scontrol, in sof_control_load_volume() argument 855 scontrol->comp_id = sdev->next_comp_id; in sof_control_load_volume() 856 scontrol->min_volume_step = le32_to_cpu(mc->min); in sof_control_load_volume() 857 scontrol->max_volume_step = le32_to_cpu(mc->max); in sof_control_load_volume() 858 scontrol->num_channels = le32_to_cpu(mc->num_channels); in sof_control_load_volume() 860 scontrol->max = le32_to_cpu(mc->max); in sof_control_load_volume() 871 ret = set_up_volume_table(scontrol, tlv, le32_to_cpu(mc->max) + 1); in sof_control_load_volume() [all …]
|
| H A D | sof-audio.h | 148 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 D | ipc3-topology.c | 749 struct snd_sof_control *scontrol; in sof_ipc3_widget_setup_comp_pga() local 780 list_for_each_entry(scontrol, &sdev->kcontrol_list, list) { in sof_ipc3_widget_setup_comp_pga() 781 if (scontrol->comp_id == swidget->comp_id && in sof_ipc3_widget_setup_comp_pga() 782 scontrol->volume_table) { in sof_ipc3_widget_setup_comp_pga() 783 min_step = scontrol->min_volume_step; in sof_ipc3_widget_setup_comp_pga() 784 max_step = scontrol->max_volume_step; in sof_ipc3_widget_setup_comp_pga() 785 volume->min_value = scontrol->volume_table[min_step]; in sof_ipc3_widget_setup_comp_pga() 786 volume->max_value = scontrol->volume_table[max_step]; in sof_ipc3_widget_setup_comp_pga() 787 volume->channels = scontrol->num_channels; in sof_ipc3_widget_setup_comp_pga() 1758 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 D | ipc4-topology.c | 562 struct snd_sof_control *scontrol; in sof_ipc4_widget_update_kcontrol_module_id() local 565 list_for_each_entry(scontrol, &sdev->kcontrol_list, list) { in sof_ipc4_widget_update_kcontrol_module_id() 566 if (scontrol->comp_id == swidget->comp_id) { in sof_ipc4_widget_update_kcontrol_module_id() 567 struct sof_ipc4_control_data *cdata = scontrol->ipc_control_data; in sof_ipc4_widget_update_kcontrol_module_id() 2857 static int sof_ipc4_control_load_volume(struct snd_sof_dev *sdev, struct snd_sof_control *scontrol) in sof_ipc4_control_load_volume() argument 2863 scontrol->size = struct_size(control_data, chanv, scontrol->num_channels); in sof_ipc4_control_load_volume() 2866 scontrol->ipc_control_data = kzalloc(scontrol->size, GFP_KERNEL); in sof_ipc4_control_load_volume() 2867 if (!scontrol->ipc_control_data) in sof_ipc4_control_load_volume() 2870 control_data = scontrol->ipc_control_data; in sof_ipc4_control_load_volume() 2871 control_data->index = scontrol->index; in sof_ipc4_control_load_volume() [all …]
|
| /linux/sound/soc/qcom/qdsp6/ |
| H A D | topology.c | 825 struct snd_ar_control *scontrol; in audioreach_widget_load_mixer() local 832 scontrol = kzalloc_obj(*scontrol); in audioreach_widget_load_mixer() 833 if (!scontrol) in audioreach_widget_load_mixer() 836 scontrol->scomp = component; in audioreach_widget_load_mixer() 838 dobj->private = scontrol; in audioreach_widget_load_mixer() 844 scontrol->sgid = le32_to_cpu(w_elem->value); in audioreach_widget_load_mixer() 847 scontrol->graph_id = le32_to_cpu(w_elem->value); in audioreach_widget_load_mixer() 856 scontrol->w = w; in audioreach_widget_load_mixer() 857 list_add_tail(&scontrol in audioreach_widget_load_mixer() 960 struct snd_ar_control *scontrol = dobj->private; audioreach_widget_unload() local 1061 struct snd_ar_control *scontrol; audioreach_route_load() local 1150 const struct snd_ar_control *scontrol = mc->dobj.private; audioreach_get_audio_mixer() local 1171 const struct snd_ar_control *scontrol = mc->dobj.private; audioreach_put_audio_mixer() local 1207 audioreach_control_load_mix(struct snd_soc_component * scomp,struct snd_ar_control * scontrol,struct snd_kcontrol_new * kc,const struct snd_soc_tplg_ctl_hdr * hdr) audioreach_control_load_mix() argument 1244 struct snd_ar_control *scontrol; audioreach_control_load() local 1279 struct snd_ar_control *scontrol = dobj->private; audioreach_control_unload() local [all...] |
| /linux/sound/core/ |
| H A D | pcm_compat.c | 412 struct snd_pcm_mmap_control scontrol; in snd_pcm_ioctl_sync_ptr_x32() local 420 if (snd_pcm_sync_ptr_get_user(sflags, scontrol, src)) in snd_pcm_ioctl_sync_ptr_x32() 434 err = pcm_lib_apply_appl_ptr(substream, scontrol.appl_ptr); in snd_pcm_ioctl_sync_ptr_x32() 438 scontrol.appl_ptr = control->appl_ptr % boundary; in snd_pcm_ioctl_sync_ptr_x32() 441 control->avail_min = scontrol.avail_min; in snd_pcm_ioctl_sync_ptr_x32() 443 scontrol.avail_min = control->avail_min; in snd_pcm_ioctl_sync_ptr_x32() 452 if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src)) in snd_pcm_ioctl_sync_ptr_x32()
|
| H A D | pcm_native.c | 3148 struct snd_pcm_mmap_control scontrol; in snd_pcm_sync_ptr() local 3152 if (snd_pcm_sync_ptr_get_user(sflags, scontrol, _sync_ptr)) in snd_pcm_sync_ptr() 3163 err = pcm_lib_apply_appl_ptr(substream, scontrol.appl_ptr); in snd_pcm_sync_ptr() 3167 scontrol.appl_ptr = control->appl_ptr; in snd_pcm_sync_ptr() 3170 control->avail_min = scontrol.avail_min; in snd_pcm_sync_ptr() 3172 scontrol.avail_min = control->avail_min; in snd_pcm_sync_ptr() 3181 if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, _sync_ptr)) in snd_pcm_sync_ptr() 3242 struct snd_pcm_mmap_control scontrol; in snd_pcm_ioctl_sync_ptr_compat() local 3250 if (snd_pcm_sync_ptr_get_user(sflags, scontrol, src)) in snd_pcm_ioctl_sync_ptr_compat() 3266 scontrol.appl_ptr); in snd_pcm_ioctl_sync_ptr_compat() [all …]
|
| /linux/drivers/ata/ |
| H A D | ata_piix.c | 1442 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()
|
| H A D | sata_via.c | 336 u32 sstatus, scontrol; in vt6420_prereset() local 345 svia_scr_read(link, SCR_CONTROL, &scontrol); /* flush */ in vt6420_prereset() 357 svia_scr_read(link, SCR_CONTROL, &scontrol); in vt6420_prereset() 363 str_up_down(online), sstatus, scontrol); in vt6420_prereset()
|
| H A D | libahci.c | 887 u32 cmd, scontrol; in ahci_power_down() local 893 scontrol = readl(port_mmio + PORT_SCR_CTL); in ahci_power_down() 894 scontrol &= ~0xf; in ahci_power_down() 895 writel(scontrol, port_mmio + PORT_SCR_CTL); in ahci_power_down()
|
| H A D | libata-core.c | 3294 u32 sstatus, scontrol, tmp; in sata_print_link_status() local 3298 if (sata_scr_read(link, SCR_CONTROL, &scontrol)) in sata_print_link_status() 3304 sata_spd_string(tmp), sstatus, scontrol); in sata_print_link_status() 3307 sstatus, scontrol); in sata_print_link_status()
|