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] + min) & mask); in snd_soc_put_volsw()
325 val2 = ((ucontrol->value.integer.value[1] + min) & mask); in snd_soc_put_volsw()
359 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw_sx() argument
374 ucontrol->value.integer.value[0] = ((val >> shift) - min) & mask; in snd_soc_get_volsw_sx()
379 ucontrol->value.integer.value[1] = val; in snd_soc_get_volsw_sx()
396 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw_sx() argument
413 val = (ucontrol->value.integer.value[0] + min) & mask; in snd_soc_put_volsw_sx()
422 val2 = (ucontrol->value.integer.value[1] + min) & mask; in snd_soc_put_volsw_sx()
473 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw_range() argument
489 val = (max - ucontrol->value.integer.value[0]) & mask; in snd_soc_put_volsw_range()
491 val = ((ucontrol->value.integer.value[0] + min) & mask); in snd_soc_put_volsw_range()
501 val = (max - ucontrol->value.integer.value[1]) & mask; in snd_soc_put_volsw_range()
503 val = ((ucontrol->value.integer.value[1] + min) & mask); in snd_soc_put_volsw_range()
525 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw_range() argument
540 ucontrol->value.integer.value[0] = (val >> shift) & mask; in snd_soc_get_volsw_range()
542 ucontrol->value.integer.value[0] = in snd_soc_get_volsw_range()
543 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw_range()
545 ucontrol->value.integer.value[0] = in snd_soc_get_volsw_range()
546 ucontrol->value.integer.value[0] - min; in snd_soc_get_volsw_range()
550 ucontrol->value.integer.value[1] = (val >> shift) & mask; in snd_soc_get_volsw_range()
552 ucontrol->value.integer.value[1] = in snd_soc_get_volsw_range()
553 max - ucontrol->value.integer.value[1]; in snd_soc_get_volsw_range()
555 ucontrol->value.integer.value[1] = in snd_soc_get_volsw_range()
556 ucontrol->value.integer.value[1] - min; in snd_soc_get_volsw_range()
609 struct snd_ctl_elem_value *ucontrol) in snd_soc_bytes_get() argument
617 ucontrol->value.bytes.data, in snd_soc_bytes_get()
626 ucontrol->value.bytes.data[0] &= ~params->mask; in snd_soc_bytes_get()
629 ((u16 *)(&ucontrol->value.bytes.data))[0] in snd_soc_bytes_get()
633 ((u32 *)(&ucontrol->value.bytes.data))[0] in snd_soc_bytes_get()
646 struct snd_ctl_elem_value *ucontrol) in snd_soc_bytes_put() argument
659 data = kmemdup(ucontrol->value.bytes.data, len, GFP_KERNEL | GFP_DMA); in snd_soc_bytes_put()
729 struct snd_ctl_elem_info *ucontrol) in snd_soc_bytes_info_ext() argument
733 ucontrol->type = SNDRV_CTL_ELEM_TYPE_BYTES; in snd_soc_bytes_info_ext()
734 ucontrol->count = params->max; in snd_soc_bytes_info_ext()
800 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_xr_sx() argument
826 ucontrol->value.integer.value[0] = val; in snd_soc_get_xr_sx()
846 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_xr_sx() argument
858 long val = ucontrol->value.integer.value[0]; in snd_soc_put_xr_sx()
888 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_strobe() argument
904 ucontrol->value.enumerated.item[0] = val ^ invert; in snd_soc_get_strobe()
921 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_strobe() argument
930 unsigned int strobe = ucontrol->value.enumerated.item[0] != 0; in snd_soc_put_strobe()