Lines Matching refs:ucontrol
60 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_enum_double() argument
73 ucontrol->value.enumerated.item[0] = item; in snd_soc_get_enum_double()
77 ucontrol->value.enumerated.item[1] = item; in snd_soc_get_enum_double()
94 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_enum_double() argument
98 unsigned int *item = ucontrol->value.enumerated.item; in snd_soc_put_enum_double()
243 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw() argument
267 ucontrol->value.integer.value[0] = val - min; in snd_soc_get_volsw()
269 ucontrol->value.integer.value[0] = in snd_soc_get_volsw()
270 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw()
282 ucontrol->value.integer.value[1] = val - min; in snd_soc_get_volsw()
284 ucontrol->value.integer.value[1] = in snd_soc_get_volsw()
285 max - ucontrol->value.integer.value[1]; in snd_soc_get_volsw()
303 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw() argument
325 val = ((ucontrol->value.integer.value[0] + min) & mask); in snd_soc_put_volsw()
331 val2 = ((ucontrol->value.integer.value[1] + min) & mask); in snd_soc_put_volsw()
365 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw_sx() argument
384 ucontrol->value.integer.value[0] = ((val >> shift) - min) & mask; in snd_soc_get_volsw_sx()
392 ucontrol->value.integer.value[1] = val; in snd_soc_get_volsw_sx()
409 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw_sx() argument
426 val = (ucontrol->value.integer.value[0] + min) & mask; in snd_soc_put_volsw_sx()
435 val2 = (ucontrol->value.integer.value[1] + min) & mask; in snd_soc_put_volsw_sx()
486 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw_range() argument
502 val = (max - ucontrol->value.integer.value[0]) & mask; in snd_soc_put_volsw_range()
504 val = ((ucontrol->value.integer.value[0] + min) & mask); in snd_soc_put_volsw_range()
514 val = (max - ucontrol->value.integer.value[1]) & mask; in snd_soc_put_volsw_range()
516 val = ((ucontrol->value.integer.value[1] + min) & mask); in snd_soc_put_volsw_range()
538 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw_range() argument
557 ucontrol->value.integer.value[0] = (val >> shift) & mask; in snd_soc_get_volsw_range()
559 ucontrol->value.integer.value[0] = in snd_soc_get_volsw_range()
560 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw_range()
562 ucontrol->value.integer.value[0] = in snd_soc_get_volsw_range()
563 ucontrol->value.integer.value[0] - min; in snd_soc_get_volsw_range()
570 ucontrol->value.integer.value[1] = (val >> shift) & mask; in snd_soc_get_volsw_range()
572 ucontrol->value.integer.value[1] = in snd_soc_get_volsw_range()
573 max - ucontrol->value.integer.value[1]; in snd_soc_get_volsw_range()
575 ucontrol->value.integer.value[1] = in snd_soc_get_volsw_range()
576 ucontrol->value.integer.value[1] - min; in snd_soc_get_volsw_range()
636 struct snd_ctl_elem_value *ucontrol) in snd_soc_bytes_get() argument
644 ucontrol->value.bytes.data, in snd_soc_bytes_get()
653 ucontrol->value.bytes.data[0] &= ~params->mask; in snd_soc_bytes_get()
656 ((u16 *)(&ucontrol->value.bytes.data))[0] in snd_soc_bytes_get()
660 ((u32 *)(&ucontrol->value.bytes.data))[0] in snd_soc_bytes_get()
673 struct snd_ctl_elem_value *ucontrol) in snd_soc_bytes_put() argument
686 data = kmemdup(ucontrol->value.bytes.data, len, GFP_KERNEL | GFP_DMA); in snd_soc_bytes_put()
756 struct snd_ctl_elem_info *ucontrol) in snd_soc_bytes_info_ext() argument
760 ucontrol->type = SNDRV_CTL_ELEM_TYPE_BYTES; in snd_soc_bytes_info_ext()
761 ucontrol->count = params->max; in snd_soc_bytes_info_ext()
827 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_xr_sx() argument
856 ucontrol->value.integer.value[0] = val; in snd_soc_get_xr_sx()
876 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_xr_sx() argument
888 long val = ucontrol->value.integer.value[0]; in snd_soc_put_xr_sx()
918 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_strobe() argument
938 ucontrol->value.enumerated.item[0] = val ^ invert; in snd_soc_get_strobe()
955 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_strobe() argument
964 unsigned int strobe = ucontrol->value.enumerated.item[0] != 0; in snd_soc_put_strobe()