Lines Matching refs:value
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()
103 unsigned int *item = ucontrol->value.enumerated.item; in snd_soc_put_enum_double()
203 uinfo->value.integer.min = 0; in snd_soc_info_volsw()
204 uinfo->value.integer.max = platform_max - mc->min; in snd_soc_info_volsw()
231 uinfo->value.integer.max += mc->min; in snd_soc_info_volsw_sx()
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()
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()
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()
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()
474 uinfo->value.integer.min = 0; in snd_soc_info_volsw_range()
475 uinfo->value.integer.max = platform_max - min; in snd_soc_info_volsw_range()
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()
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()
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()
691 data = kmemdup(ucontrol->value.bytes.data, len, GFP_KERNEL | GFP_DMA); in snd_soc_bytes_put()
811 uinfo->value.integer.min = mc->min; in snd_soc_info_xr_sx()
812 uinfo->value.integer.max = mc->max; in snd_soc_info_xr_sx()
861 ucontrol->value.integer.value[0] = val; in snd_soc_get_xr_sx()
893 long val = ucontrol->value.integer.value[0]; in snd_soc_put_xr_sx()
943 ucontrol->value.enumerated.item[0] = val ^ invert; in snd_soc_get_strobe()
969 unsigned int strobe = ucontrol->value.enumerated.item[0] != 0; in snd_soc_put_strobe()