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
432 val = ucontrol->value.integer.value[0]; in snd_soc_put_volsw_sx()
448 val2 = ucontrol->value.integer.value[1]; in snd_soc_put_volsw_sx()
507 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw_range() argument
522 tmp = ucontrol->value.integer.value[0]; in snd_soc_put_volsw_range()
531 val = (max - ucontrol->value.integer.value[0]) & mask; in snd_soc_put_volsw_range()
533 val = ((ucontrol->value.integer.value[0] + min) & mask); in snd_soc_put_volsw_range()
543 tmp = ucontrol->value.integer.value[1]; in snd_soc_put_volsw_range()
552 val = (max - ucontrol->value.integer.value[1]) & mask; in snd_soc_put_volsw_range()
554 val = ((ucontrol->value.integer.value[1] + min) & mask); in snd_soc_put_volsw_range()
580 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw_range() argument
595 ucontrol->value.integer.value[0] = (val >> shift) & mask; in snd_soc_get_volsw_range()
597 ucontrol->value.integer.value[0] = in snd_soc_get_volsw_range()
598 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw_range()
600 ucontrol->value.integer.value[0] = in snd_soc_get_volsw_range()
601 ucontrol->value.integer.value[0] - min; in snd_soc_get_volsw_range()
605 ucontrol->value.integer.value[1] = (val >> shift) & mask; in snd_soc_get_volsw_range()
607 ucontrol->value.integer.value[1] = in snd_soc_get_volsw_range()
608 max - ucontrol->value.integer.value[1]; in snd_soc_get_volsw_range()
610 ucontrol->value.integer.value[1] = in snd_soc_get_volsw_range()
611 ucontrol->value.integer.value[1] - min; in snd_soc_get_volsw_range()
664 struct snd_ctl_elem_value *ucontrol) in snd_soc_bytes_get() argument
672 ucontrol->value.bytes.data, in snd_soc_bytes_get()
681 ucontrol->value.bytes.data[0] &= ~params->mask; in snd_soc_bytes_get()
684 ((u16 *)(&ucontrol->value.bytes.data))[0] in snd_soc_bytes_get()
688 ((u32 *)(&ucontrol->value.bytes.data))[0] in snd_soc_bytes_get()
701 struct snd_ctl_elem_value *ucontrol) in snd_soc_bytes_put() argument
714 data = kmemdup(ucontrol->value.bytes.data, len, GFP_KERNEL | GFP_DMA); in snd_soc_bytes_put()
784 struct snd_ctl_elem_info *ucontrol) in snd_soc_bytes_info_ext() argument
788 ucontrol->type = SNDRV_CTL_ELEM_TYPE_BYTES; in snd_soc_bytes_info_ext()
789 ucontrol->count = params->max; in snd_soc_bytes_info_ext()
855 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_xr_sx() argument
881 ucontrol->value.integer.value[0] = val; in snd_soc_get_xr_sx()
901 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_xr_sx() argument
913 long val = ucontrol->value.integer.value[0]; in snd_soc_put_xr_sx()
945 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_strobe() argument
961 ucontrol->value.enumerated.item[0] = val ^ invert; in snd_soc_get_strobe()
978 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_strobe() argument
987 unsigned int strobe = ucontrol->value.enumerated.item[0] != 0; in snd_soc_put_strobe()