Lines Matching refs:ucontrol

59 	struct snd_ctl_elem_value *ucontrol)  in snd_soc_get_enum_double()  argument
69 ucontrol->value.enumerated.item[0] = item; in snd_soc_get_enum_double()
73 ucontrol->value.enumerated.item[1] = item; in snd_soc_get_enum_double()
90 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_enum_double() argument
94 unsigned int *item = ucontrol->value.enumerated.item; in snd_soc_put_enum_double()
254 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw() argument
278 ucontrol->value.integer.value[0] = val - min; in snd_soc_get_volsw()
280 ucontrol->value.integer.value[0] = in snd_soc_get_volsw()
281 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw()
293 ucontrol->value.integer.value[1] = val - min; in snd_soc_get_volsw()
295 ucontrol->value.integer.value[1] = in snd_soc_get_volsw()
296 max - ucontrol->value.integer.value[1]; in snd_soc_get_volsw()
314 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw() argument
336 if (ucontrol->value.integer.value[0] < 0) in snd_soc_put_volsw()
338 val = ucontrol->value.integer.value[0]; in snd_soc_put_volsw()
349 if (ucontrol->value.integer.value[1] < 0) in snd_soc_put_volsw()
351 val2 = ucontrol->value.integer.value[1]; in snd_soc_put_volsw()
396 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw_sx() argument
411 ucontrol->value.integer.value[0] = ((val >> shift) - min) & mask; in snd_soc_get_volsw_sx()
416 ucontrol->value.integer.value[1] = val; in snd_soc_get_volsw_sx()
433 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw_sx() argument
450 if (ucontrol->value.integer.value[0] < 0) in snd_soc_put_volsw_sx()
452 val = ucontrol->value.integer.value[0]; in snd_soc_put_volsw_sx()
467 unsigned int val2 = ucontrol->value.integer.value[1]; in snd_soc_put_volsw_sx()
531 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw_range() argument
546 tmp = ucontrol->value.integer.value[0]; in snd_soc_put_volsw_range()
555 val = (max - ucontrol->value.integer.value[0]) & mask; in snd_soc_put_volsw_range()
557 val = ((ucontrol->value.integer.value[0] + min) & mask); in snd_soc_put_volsw_range()
567 tmp = ucontrol->value.integer.value[1]; in snd_soc_put_volsw_range()
576 val = (max - ucontrol->value.integer.value[1]) & mask; in snd_soc_put_volsw_range()
578 val = ((ucontrol->value.integer.value[1] + min) & mask); in snd_soc_put_volsw_range()
604 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw_range() argument
619 ucontrol->value.integer.value[0] = (val >> shift) & mask; in snd_soc_get_volsw_range()
621 ucontrol->value.integer.value[0] = in snd_soc_get_volsw_range()
622 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw_range()
624 ucontrol->value.integer.value[0] = in snd_soc_get_volsw_range()
625 ucontrol->value.integer.value[0] - min; in snd_soc_get_volsw_range()
629 ucontrol->value.integer.value[1] = (val >> shift) & mask; in snd_soc_get_volsw_range()
631 ucontrol->value.integer.value[1] = in snd_soc_get_volsw_range()
632 max - ucontrol->value.integer.value[1]; in snd_soc_get_volsw_range()
634 ucontrol->value.integer.value[1] = in snd_soc_get_volsw_range()
635 ucontrol->value.integer.value[1] - min; in snd_soc_get_volsw_range()
687 struct snd_ctl_elem_value *ucontrol) in snd_soc_bytes_get() argument
695 ucontrol->value.bytes.data, in snd_soc_bytes_get()
704 ucontrol->value.bytes.data[0] &= ~params->mask; in snd_soc_bytes_get()
707 ((u16 *)(&ucontrol->value.bytes.data))[0] in snd_soc_bytes_get()
711 ((u32 *)(&ucontrol->value.bytes.data))[0] in snd_soc_bytes_get()
724 struct snd_ctl_elem_value *ucontrol) in snd_soc_bytes_put() argument
737 data = kmemdup(ucontrol->value.bytes.data, len, GFP_KERNEL | GFP_DMA); in snd_soc_bytes_put()
807 struct snd_ctl_elem_info *ucontrol) in snd_soc_bytes_info_ext() argument
811 ucontrol->type = SNDRV_CTL_ELEM_TYPE_BYTES; in snd_soc_bytes_info_ext()
812 ucontrol->count = params->max; in snd_soc_bytes_info_ext()
878 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_xr_sx() argument
903 ucontrol->value.integer.value[0] = val; in snd_soc_get_xr_sx()
923 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_xr_sx() argument
935 long val = ucontrol->value.integer.value[0]; in snd_soc_put_xr_sx()
969 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_strobe() argument
985 ucontrol->value.enumerated.item[0] = val ^ invert; in snd_soc_get_strobe()
1002 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_strobe() argument
1011 unsigned int strobe = ucontrol->value.enumerated.item[0] != 0; in snd_soc_put_strobe()