Lines Matching refs:ucontrol
60 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_enum_double() argument
70 ucontrol->value.enumerated.item[0] = item; in snd_soc_get_enum_double()
74 ucontrol->value.enumerated.item[1] = item; in snd_soc_get_enum_double()
91 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_enum_double() argument
95 unsigned int *item = ucontrol->value.enumerated.item; in snd_soc_put_enum_double()
237 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw() argument
261 ucontrol->value.integer.value[0] = val - min; in snd_soc_get_volsw()
263 ucontrol->value.integer.value[0] = in snd_soc_get_volsw()
264 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw()
276 ucontrol->value.integer.value[1] = val - min; in snd_soc_get_volsw()
278 ucontrol->value.integer.value[1] = in snd_soc_get_volsw()
279 max - ucontrol->value.integer.value[1]; in snd_soc_get_volsw()
297 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw() argument
319 val = ((ucontrol->value.integer.value[0] + min) & mask); in snd_soc_put_volsw()
325 val2 = ((ucontrol->value.integer.value[1] + min) & mask); in snd_soc_put_volsw()
359 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw_sx() argument
374 ucontrol->value.integer.value[0] = ((val >> shift) - min) & mask; in snd_soc_get_volsw_sx()
379 ucontrol->value.integer.value[1] = val; in snd_soc_get_volsw_sx()
396 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw_sx() argument
413 val = (ucontrol->value.integer.value[0] + min) & mask; in snd_soc_put_volsw_sx()
424 val2 = (ucontrol->value.integer.value[1] + min) & mask; in snd_soc_put_volsw_sx()
475 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw_range() argument
491 val = (max - ucontrol->value.integer.value[0]) & mask; in snd_soc_put_volsw_range()
493 val = ((ucontrol->value.integer.value[0] + min) & mask); in snd_soc_put_volsw_range()
503 val = (max - ucontrol->value.integer.value[1]) & mask; in snd_soc_put_volsw_range()
505 val = ((ucontrol->value.integer.value[1] + min) & mask); in snd_soc_put_volsw_range()
527 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw_range() argument
542 ucontrol->value.integer.value[0] = (val >> shift) & mask; in snd_soc_get_volsw_range()
544 ucontrol->value.integer.value[0] = in snd_soc_get_volsw_range()
545 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw_range()
547 ucontrol->value.integer.value[0] = in snd_soc_get_volsw_range()
548 ucontrol->value.integer.value[0] - min; in snd_soc_get_volsw_range()
552 ucontrol->value.integer.value[1] = (val >> shift) & mask; in snd_soc_get_volsw_range()
554 ucontrol->value.integer.value[1] = in snd_soc_get_volsw_range()
555 max - ucontrol->value.integer.value[1]; in snd_soc_get_volsw_range()
557 ucontrol->value.integer.value[1] = in snd_soc_get_volsw_range()
558 ucontrol->value.integer.value[1] - min; in snd_soc_get_volsw_range()
610 struct snd_ctl_elem_value *ucontrol) in snd_soc_bytes_get() argument
618 ucontrol->value.bytes.data, in snd_soc_bytes_get()
627 ucontrol->value.bytes.data[0] &= ~params->mask; in snd_soc_bytes_get()
630 ((u16 *)(&ucontrol->value.bytes.data))[0] in snd_soc_bytes_get()
634 ((u32 *)(&ucontrol->value.bytes.data))[0] in snd_soc_bytes_get()
647 struct snd_ctl_elem_value *ucontrol) in snd_soc_bytes_put() argument
660 data = kmemdup(ucontrol->value.bytes.data, len, GFP_KERNEL | GFP_DMA); in snd_soc_bytes_put()
730 struct snd_ctl_elem_info *ucontrol) in snd_soc_bytes_info_ext() argument
734 ucontrol->type = SNDRV_CTL_ELEM_TYPE_BYTES; in snd_soc_bytes_info_ext()
735 ucontrol->count = params->max; in snd_soc_bytes_info_ext()
801 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_xr_sx() argument
826 ucontrol->value.integer.value[0] = val; in snd_soc_get_xr_sx()
846 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_xr_sx() argument
858 long val = ucontrol->value.integer.value[0]; in snd_soc_put_xr_sx()
887 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_strobe() argument
903 ucontrol->value.enumerated.item[0] = val ^ invert; in snd_soc_get_strobe()
920 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_strobe() argument
929 unsigned int strobe = ucontrol->value.enumerated.item[0] != 0; in snd_soc_put_strobe()