Lines Matching refs:cdata
74 struct sof_ipc_ctrl_data *cdata = scontrol->control_data; in snd_sof_volume_get() local
80 ipc_to_mixer(cdata->chanv[i].value, in snd_sof_volume_get()
93 struct sof_ipc_ctrl_data *cdata = scontrol->control_data; in snd_sof_volume_put() local
102 change = change || (value != cdata->chanv[i].value); in snd_sof_volume_put()
103 cdata->chanv[i].channel = i; in snd_sof_volume_put()
104 cdata->chanv[i].value = value; in snd_sof_volume_put()
145 struct sof_ipc_ctrl_data *cdata = scontrol->control_data; in snd_sof_switch_get() local
150 ucontrol->value.integer.value[i] = cdata->chanv[i].value; in snd_sof_switch_get()
162 struct sof_ipc_ctrl_data *cdata = scontrol->control_data; in snd_sof_switch_put() local
170 change = change || (value != cdata->chanv[i].value); in snd_sof_switch_put()
171 cdata->chanv[i].channel = i; in snd_sof_switch_put()
172 cdata->chanv[i].value = value; in snd_sof_switch_put()
195 struct sof_ipc_ctrl_data *cdata = scontrol->control_data; in snd_sof_enum_get() local
200 ucontrol->value.enumerated.item[i] = cdata->chanv[i].value; in snd_sof_enum_get()
212 struct sof_ipc_ctrl_data *cdata = scontrol->control_data; in snd_sof_enum_put() local
220 change = change || (value != cdata->chanv[i].value); in snd_sof_enum_put()
221 cdata->chanv[i].channel = i; in snd_sof_enum_put()
222 cdata->chanv[i].value = value; in snd_sof_enum_put()
243 struct sof_ipc_ctrl_data *cdata = scontrol->control_data; in snd_sof_bytes_get() local
244 struct sof_abi_hdr *data = cdata->data; in snd_sof_bytes_get()
277 struct sof_ipc_ctrl_data *cdata = scontrol->control_data; in snd_sof_bytes_put() local
278 struct sof_abi_hdr *data = cdata->data; in snd_sof_bytes_put()
320 struct sof_ipc_ctrl_data *cdata = scontrol->control_data; in snd_sof_bytes_ext_put() local
359 if (copy_from_user(cdata->data, tlvd->tlv, header.length)) in snd_sof_bytes_ext_put()
362 if (cdata->data->magic != SOF_ABI_MAGIC) { in snd_sof_bytes_ext_put()
365 cdata->data->magic); in snd_sof_bytes_ext_put()
369 if (SOF_ABI_VERSION_INCOMPATIBLE(SOF_ABI_VERSION, cdata->data->abi)) { in snd_sof_bytes_ext_put()
371 cdata->data->abi); in snd_sof_bytes_ext_put()
376 if (cdata->data->size > be->max - sizeof(struct sof_abi_hdr)) { in snd_sof_bytes_ext_put()
398 struct sof_ipc_ctrl_data *cdata = scontrol->control_data; in snd_sof_bytes_ext_volatile_get() local
421 cdata->data->magic = SOF_ABI_MAGIC; in snd_sof_bytes_ext_volatile_get()
422 cdata->data->abi = SOF_ABI_VERSION; in snd_sof_bytes_ext_volatile_get()
430 if (cdata->data->size > be->max - sizeof(struct sof_abi_hdr)) { in snd_sof_bytes_ext_volatile_get()
432 cdata->data->size, in snd_sof_bytes_ext_volatile_get()
438 data_size = cdata->data->size + sizeof(struct sof_abi_hdr); in snd_sof_bytes_ext_volatile_get()
453 if (copy_to_user(tlvd->tlv, cdata->data, data_size)) in snd_sof_bytes_ext_volatile_get()
472 struct sof_ipc_ctrl_data *cdata = scontrol->control_data; in snd_sof_bytes_ext_get() local
487 cdata->data->magic = SOF_ABI_MAGIC; in snd_sof_bytes_ext_get()
488 cdata->data->abi = SOF_ABI_VERSION; in snd_sof_bytes_ext_get()
491 if (cdata->data->size > be->max - sizeof(struct sof_abi_hdr)) { in snd_sof_bytes_ext_get()
493 cdata->data->size, in snd_sof_bytes_ext_get()
498 data_size = cdata->data->size + sizeof(struct sof_abi_hdr); in snd_sof_bytes_ext_get()
509 if (copy_to_user(tlvd->tlv, cdata->data, data_size)) in snd_sof_bytes_ext_get()