| /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 in sof_ipc3_set_get_kcontrol_data() 127 sof_ipc3_refresh_control(struct snd_sof_control * scontrol) sof_ipc3_refresh_control() argument 154 sof_ipc3_volume_get(struct snd_sof_control * scontrol,struct snd_ctl_elem_value * ucontrol) sof_ipc3_volume_get() argument 172 sof_ipc3_volume_put(struct snd_sof_control * scontrol,struct snd_ctl_elem_value * ucontrol) sof_ipc3_volume_put() argument 205 sof_ipc3_switch_get(struct snd_sof_control * scontrol,struct snd_ctl_elem_value * ucontrol) sof_ipc3_switch_get() argument 221 sof_ipc3_switch_put(struct snd_sof_control * scontrol,struct snd_ctl_elem_value * ucontrol) sof_ipc3_switch_put() argument 253 sof_ipc3_enum_get(struct snd_sof_control * scontrol,struct snd_ctl_elem_value * ucontrol) sof_ipc3_enum_get() argument 269 sof_ipc3_enum_put(struct snd_sof_control * scontrol,struct snd_ctl_elem_value * ucontrol) sof_ipc3_enum_put() argument 301 sof_ipc3_bytes_get(struct snd_sof_control * scontrol,struct snd_ctl_elem_value * ucontrol) sof_ipc3_bytes_get() argument 333 sof_ipc3_bytes_put(struct snd_sof_control * scontrol,struct snd_ctl_elem_value * ucontrol) sof_ipc3_bytes_put() argument 366 sof_ipc3_bytes_ext_put(struct snd_sof_control * scontrol,const unsigned int __user * binary_data,unsigned int size) sof_ipc3_bytes_ext_put() argument 453 _sof_ipc3_bytes_ext_get(struct snd_sof_control * scontrol,const unsigned int __user * binary_data,unsigned int size,bool from_dsp) _sof_ipc3_bytes_ext_get() argument 509 sof_ipc3_bytes_ext_get(struct snd_sof_control * scontrol,const unsigned int __user * binary_data,unsigned int size) sof_ipc3_bytes_ext_get() argument 515 sof_ipc3_bytes_ext_volatile_get(struct snd_sof_control * scontrol,const unsigned int __user * binary_data,unsigned int size) sof_ipc3_bytes_ext_volatile_get() argument 522 snd_sof_update_control(struct snd_sof_control * scontrol,struct sof_ipc_ctrl_data * cdata) snd_sof_update_control() argument 554 struct snd_sof_control *scontrol; sof_ipc3_control_update() local 665 struct snd_sof_control *scontrol; sof_ipc3_widget_kcontrol_setup() local 700 sof_ipc3_set_up_volume_table(struct snd_sof_control * scontrol,int tlv[SOF_TLV_ITEMS],int size) sof_ipc3_set_up_volume_table() argument [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 19 struct snd_soc_component *scomp = scontrol->scomp; in sof_ipc4_set_get_kcontrol_data() 28 if (swidget->comp_id == scontrol->comp_id) { in sof_ipc4_set_get_kcontrol_data() 35 dev_err(scomp->dev, "Failed to find widget for kcontrol %s\n", scontrol->name); in sof_ipc4_set_get_kcontrol_data() 61 if (!scontrol->old_ipc_control_data) in sof_ipc4_set_get_kcontrol_data() 67 memcpy(scontrol->ipc_control_data, scontrol->old_ipc_control_data, in sof_ipc4_set_get_kcontrol_data() 68 scontrol->size); in sof_ipc4_set_get_kcontrol_data() 69 kfree(scontrol->old_ipc_control_data); in sof_ipc4_set_get_kcontrol_data() 70 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 | 277 static int set_up_volume_table(struct snd_sof_control *scontrol, in set_up_volume_table() 280 struct snd_soc_component *scomp = scontrol->scomp; in set_up_volume_table() 285 return tplg_ops->control->set_up_volume_table(scontrol, tlv, size); 841 struct snd_sof_control *scontrol, in sof_control_load_volume() 871 scontrol->comp_id = sdev->next_comp_id; in sof_control_load_volume() 872 scontrol->min_volume_step = min; in sof_control_load_volume() 873 scontrol->max_volume_step = max; in sof_control_load_volume() 874 scontrol->num_channels = le32_to_cpu(mc->num_channels); in sof_control_load_volume() 876 scontrol->max = max; in sof_control_load_volume() 887 ret = set_up_volume_table(scontrol, tl in sof_control_load_volume() 270 set_up_volume_table(struct snd_sof_control * scontrol,int tlv[SOF_TLV_ITEMS],int size) set_up_volume_table() argument 831 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) sof_control_load_volume() argument 911 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) sof_control_load_enum() argument 933 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) sof_control_load_bytes() argument 970 struct snd_sof_control *scontrol; sof_control_load() local 1045 struct snd_sof_control *scontrol = dobj->private; sof_control_unload() local 1638 struct snd_sof_control *scontrol; sof_widget_unload() local 2162 struct snd_sof_control *scontrol; sof_set_widget_pipeline() local 2189 struct snd_sof_control *scontrol; sof_complete() local [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 | 762 struct snd_sof_control *scontrol; in sof_ipc3_widget_setup_comp_pga() 793 list_for_each_entry(scontrol, &sdev->kcontrol_list, list) { in sof_ipc3_widget_setup_comp_pga() 794 if (scontrol->comp_id == swidget->comp_id && in sof_ipc3_widget_setup_comp_pga() 795 scontrol->volume_table) { in sof_ipc3_widget_setup_comp_pga() 796 min_step = scontrol->min_volume_step; in sof_ipc3_widget_setup_comp_pga() 797 max_step = scontrol->max_volume_step; in sof_ipc3_widget_setup_comp_pga() 798 volume->min_value = scontrol->volume_table[min_step]; in sof_ipc3_widget_setup_comp_pga() 799 volume->max_value = scontrol->volume_table[max_step]; 800 volume->channels = scontrol->num_channels; in sof_get_control_data() 849 dev_err(scomp->dev, "No scontrol fo in sof_get_control_data() 749 struct snd_sof_control *scontrol; sof_ipc3_widget_setup_comp_pga() local 1758 sof_ipc3_control_load_bytes(struct snd_sof_dev * sdev,struct snd_sof_control * scontrol) sof_ipc3_control_load_bytes() argument 1821 sof_ipc3_control_load_volume(struct snd_sof_dev * sdev,struct snd_sof_control * scontrol) sof_ipc3_control_load_volume() argument 1853 sof_ipc3_control_load_enum(struct snd_sof_dev * sdev,struct snd_sof_control * scontrol) sof_ipc3_control_load_enum() argument 1871 sof_ipc3_control_setup(struct snd_sof_dev * sdev,struct snd_sof_control * scontrol) sof_ipc3_control_setup() argument 1890 sof_ipc3_control_free(struct snd_sof_dev * sdev,struct snd_sof_control * scontrol) sof_ipc3_control_free() argument [all...] |
| H A D | ipc4-topology.c | 615 struct snd_sof_control *scontrol; in sof_ipc4_widget_update_kcontrol_module_id() local 618 list_for_each_entry(scontrol, &sdev->kcontrol_list, list) { in sof_ipc4_widget_update_kcontrol_module_id() 619 if (scontrol->comp_id == swidget->comp_id) { in sof_ipc4_widget_update_kcontrol_module_id() 620 struct sof_ipc4_control_data *cdata = scontrol->ipc_control_data; in sof_ipc4_widget_update_kcontrol_module_id() 3085 static int sof_ipc4_control_load_volume(struct snd_sof_dev *sdev, struct snd_sof_control *scontrol) in sof_ipc4_control_load_volume() argument 3091 scontrol->size = struct_size(control_data, chanv, scontrol->num_channels); in sof_ipc4_control_load_volume() 3094 scontrol->ipc_control_data = kzalloc(scontrol->size, GFP_KERNEL); in sof_ipc4_control_load_volume() 3095 if (!scontrol->ipc_control_data) in sof_ipc4_control_load_volume() 3098 control_data = scontrol->ipc_control_data; in sof_ipc4_control_load_volume() 3099 control_data->index = scontrol->index; in sof_ipc4_control_load_volume() [all …]
|
| /linux/drivers/ata/ |
| H A D | libata-sata.c | 302 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 D | libata-core.c | 3396 u32 sstatus, scontrol, tmp; in sata_print_link_status() local 3400 if (sata_scr_read(link, SCR_CONTROL, &scontrol)) in sata_print_link_status() 3406 sata_spd_string(tmp), sstatus, scontrol); in sata_print_link_status() 3409 sstatus, scontrol); in sata_print_link_status()
|
| /linux/sound/soc/qcom/qdsp6/ |
| H A D | topology.c | 928 struct snd_ar_control *scontrol; in audioreach_widget_ready() 935 scontrol = kzalloc_obj(*scontrol); in audioreach_widget_ready() 936 if (!scontrol) in audioreach_widget_ready() 939 scontrol->scomp = component; in audioreach_widget_ready() 941 dobj->private = scontrol; in audioreach_widget_ready() 947 scontrol->sgid = le32_to_cpu(w_elem->value); in audioreach_widget_unload() 950 scontrol->graph_id = le32_to_cpu(w_elem->value); in audioreach_widget_unload() 959 scontrol->w = w; in audioreach_widget_unload() 960 list_add_tail(&scontrol in audioreach_widget_unload() local 825 struct snd_ar_control *scontrol; audioreach_widget_load_mixer() 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 | 3166 struct snd_pcm_mmap_control scontrol; in snd_pcm_sync_ptr() local 3170 if (snd_pcm_sync_ptr_get_user(sflags, scontrol, _sync_ptr)) in snd_pcm_sync_ptr() 3181 err = pcm_lib_apply_appl_ptr(substream, scontrol.appl_ptr); in snd_pcm_sync_ptr() 3185 scontrol.appl_ptr = control->appl_ptr; in snd_pcm_sync_ptr() 3188 control->avail_min = scontrol.avail_min; in snd_pcm_sync_ptr() 3190 scontrol.avail_min = control->avail_min; in snd_pcm_sync_ptr() 3199 if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, _sync_ptr)) in snd_pcm_sync_ptr() 3260 struct snd_pcm_mmap_control scontrol; in snd_pcm_ioctl_sync_ptr_compat() local 3268 if (snd_pcm_sync_ptr_get_user(sflags, scontrol, src)) in snd_pcm_ioctl_sync_ptr_compat() 3284 scontrol.appl_ptr); in snd_pcm_ioctl_sync_ptr_compat() [all …]
|