Lines Matching full:integer

124  * the given registervalue into a signed integer if sign_bit is non-zero.
182 max = uinfo->value.integer.max = mc->max - mc->min; in snd_soc_info_volsw()
187 /* Even two value controls ending in Volume should always be integer */ in snd_soc_info_volsw()
198 uinfo->value.integer.min = 0; in snd_soc_info_volsw()
199 uinfo->value.integer.max = max; in snd_soc_info_volsw()
236 uinfo->value.integer.min = 0; in snd_soc_info_volsw_sx()
237 uinfo->value.integer.max = max; in snd_soc_info_volsw_sx()
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()
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()
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()
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()
514 uinfo->value.integer.min = 0; in snd_soc_info_volsw_range()
515 uinfo->value.integer.max = platform_max - min; in snd_soc_info_volsw_range()
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()
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()
857 uinfo->value.integer.min = mc->min; in snd_soc_info_xr_sx()
858 uinfo->value.integer.max = mc->max; in snd_soc_info_xr_sx()
903 ucontrol->value.integer.value[0] = val; in snd_soc_get_xr_sx()
935 long val = ucontrol->value.integer.value[0]; in snd_soc_put_xr_sx()