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]; in snd_soc_put_volsw()
332 val2 = ucontrol->value.integer.value[1]; in snd_soc_put_volsw()
379 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw_sx() argument
394 ucontrol->value.integer.value[0] = ((val >> shift) - min) & mask; in snd_soc_get_volsw_sx()
399 ucontrol->value.integer.value[1] = val; in snd_soc_get_volsw_sx()
416 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw_sx() argument
433 val = ucontrol->value.integer.value[0]; in snd_soc_put_volsw_sx()
450 unsigned int val2 = ucontrol->value.integer.value[1]; in snd_soc_put_volsw_sx()
514 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw_range() argument
529 tmp = ucontrol->value.integer.value[0]; in snd_soc_put_volsw_range()
538 val = (max - ucontrol->value.integer.value[0]) & mask; in snd_soc_put_volsw_range()
540 val = ((ucontrol->value.integer.value[0] + min) & mask); in snd_soc_put_volsw_range()
550 tmp = ucontrol->value.integer.value[1]; in snd_soc_put_volsw_range()
559 val = (max - ucontrol->value.integer.value[1]) & mask; in snd_soc_put_volsw_range()
561 val = ((ucontrol->value.integer.value[1] + min) & mask); in snd_soc_put_volsw_range()
587 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw_range() argument
602 ucontrol->value.integer.value[0] = (val >> shift) & mask; in snd_soc_get_volsw_range()
604 ucontrol->value.integer.value[0] = in snd_soc_get_volsw_range()
605 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw_range()
607 ucontrol->value.integer.value[0] = in snd_soc_get_volsw_range()
608 ucontrol->value.integer.value[0] - min; in snd_soc_get_volsw_range()
612 ucontrol->value.integer.value[1] = (val >> shift) & mask; in snd_soc_get_volsw_range()
614 ucontrol->value.integer.value[1] = in snd_soc_get_volsw_range()
615 max - ucontrol->value.integer.value[1]; in snd_soc_get_volsw_range()
617 ucontrol->value.integer.value[1] = in snd_soc_get_volsw_range()
618 ucontrol->value.integer.value[1] - min; in snd_soc_get_volsw_range()
670 struct snd_ctl_elem_value *ucontrol) in snd_soc_bytes_get() argument
678 ucontrol->value.bytes.data, in snd_soc_bytes_get()
687 ucontrol->value.bytes.data[0] &= ~params->mask; in snd_soc_bytes_get()
690 ((u16 *)(&ucontrol->value.bytes.data))[0] in snd_soc_bytes_get()
694 ((u32 *)(&ucontrol->value.bytes.data))[0] in snd_soc_bytes_get()
707 struct snd_ctl_elem_value *ucontrol) in snd_soc_bytes_put() argument
720 data = kmemdup(ucontrol->value.bytes.data, len, GFP_KERNEL | GFP_DMA); in snd_soc_bytes_put()
790 struct snd_ctl_elem_info *ucontrol) in snd_soc_bytes_info_ext() argument
794 ucontrol->type = SNDRV_CTL_ELEM_TYPE_BYTES; in snd_soc_bytes_info_ext()
795 ucontrol->count = params->max; in snd_soc_bytes_info_ext()
861 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_xr_sx() argument
886 ucontrol->value.integer.value[0] = val; in snd_soc_get_xr_sx()
906 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_xr_sx() argument
918 long val = ucontrol->value.integer.value[0]; in snd_soc_put_xr_sx()
952 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_strobe() argument
968 ucontrol->value.enumerated.item[0] = val ^ invert; in snd_soc_get_strobe()
985 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_strobe() argument
994 unsigned int strobe = ucontrol->value.enumerated.item[0] != 0; in snd_soc_put_strobe()