Lines Matching refs:ucontrol

65 	struct snd_ctl_elem_value *ucontrol)  in snd_soc_get_enum_double()  argument
78 ucontrol->value.enumerated.item[0] = item; in snd_soc_get_enum_double()
82 ucontrol->value.enumerated.item[1] = item; in snd_soc_get_enum_double()
99 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_enum_double() argument
103 unsigned int *item = ucontrol->value.enumerated.item; in snd_soc_put_enum_double()
248 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw() argument
272 ucontrol->value.integer.value[0] = val - min; in snd_soc_get_volsw()
274 ucontrol->value.integer.value[0] = in snd_soc_get_volsw()
275 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw()
287 ucontrol->value.integer.value[1] = val - min; in snd_soc_get_volsw()
289 ucontrol->value.integer.value[1] = in snd_soc_get_volsw()
290 max - ucontrol->value.integer.value[1]; in snd_soc_get_volsw()
308 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw() argument
330 val = ((ucontrol->value.integer.value[0] + min) & mask); in snd_soc_put_volsw()
336 val2 = ((ucontrol->value.integer.value[1] + min) & mask); in snd_soc_put_volsw()
370 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw_sx() argument
389 ucontrol->value.integer.value[0] = ((val >> shift) - min) & mask; in snd_soc_get_volsw_sx()
397 ucontrol->value.integer.value[1] = val; in snd_soc_get_volsw_sx()
414 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw_sx() argument
431 val = (ucontrol->value.integer.value[0] + min) & mask; in snd_soc_put_volsw_sx()
440 val2 = (ucontrol->value.integer.value[1] + min) & mask; in snd_soc_put_volsw_sx()
491 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw_range() argument
507 val = (max - ucontrol->value.integer.value[0]) & mask; in snd_soc_put_volsw_range()
509 val = ((ucontrol->value.integer.value[0] + min) & mask); in snd_soc_put_volsw_range()
519 val = (max - ucontrol->value.integer.value[1]) & mask; in snd_soc_put_volsw_range()
521 val = ((ucontrol->value.integer.value[1] + min) & mask); in snd_soc_put_volsw_range()
543 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw_range() argument
562 ucontrol->value.integer.value[0] = (val >> shift) & mask; in snd_soc_get_volsw_range()
564 ucontrol->value.integer.value[0] = in snd_soc_get_volsw_range()
565 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw_range()
567 ucontrol->value.integer.value[0] = in snd_soc_get_volsw_range()
568 ucontrol->value.integer.value[0] - min; in snd_soc_get_volsw_range()
575 ucontrol->value.integer.value[1] = (val >> shift) & mask; in snd_soc_get_volsw_range()
577 ucontrol->value.integer.value[1] = in snd_soc_get_volsw_range()
578 max - ucontrol->value.integer.value[1]; in snd_soc_get_volsw_range()
580 ucontrol->value.integer.value[1] = in snd_soc_get_volsw_range()
581 ucontrol->value.integer.value[1] - min; in snd_soc_get_volsw_range()
641 struct snd_ctl_elem_value *ucontrol) in snd_soc_bytes_get() argument
649 ucontrol->value.bytes.data, in snd_soc_bytes_get()
658 ucontrol->value.bytes.data[0] &= ~params->mask; in snd_soc_bytes_get()
661 ((u16 *)(&ucontrol->value.bytes.data))[0] in snd_soc_bytes_get()
665 ((u32 *)(&ucontrol->value.bytes.data))[0] in snd_soc_bytes_get()
678 struct snd_ctl_elem_value *ucontrol) in snd_soc_bytes_put() argument
691 data = kmemdup(ucontrol->value.bytes.data, len, GFP_KERNEL | GFP_DMA); in snd_soc_bytes_put()
761 struct snd_ctl_elem_info *ucontrol) in snd_soc_bytes_info_ext() argument
765 ucontrol->type = SNDRV_CTL_ELEM_TYPE_BYTES; in snd_soc_bytes_info_ext()
766 ucontrol->count = params->max; in snd_soc_bytes_info_ext()
832 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_xr_sx() argument
861 ucontrol->value.integer.value[0] = val; in snd_soc_get_xr_sx()
881 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_xr_sx() argument
893 long val = ucontrol->value.integer.value[0]; in snd_soc_put_xr_sx()
923 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_strobe() argument
943 ucontrol->value.enumerated.item[0] = val ^ invert; in snd_soc_get_strobe()
960 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_strobe() argument
969 unsigned int strobe = ucontrol->value.enumerated.item[0] != 0; in snd_soc_put_strobe()