Lines Matching full:integer
125 * the given registervalue into a signed integer if sign_bit is non-zero.
183 max = uinfo->value.integer.max = mc->max - mc->min; in snd_soc_info_volsw()
188 /* Even two value controls ending in Volume should always be integer */ in snd_soc_info_volsw()
199 uinfo->value.integer.min = 0; in snd_soc_info_volsw()
200 uinfo->value.integer.max = max; in snd_soc_info_volsw()
237 uinfo->value.integer.min = 0; in snd_soc_info_volsw_sx()
238 uinfo->value.integer.max = max; in snd_soc_info_volsw_sx()
279 ucontrol->value.integer.value[0] = val - min; in snd_soc_get_volsw()
281 ucontrol->value.integer.value[0] = in snd_soc_get_volsw()
282 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw()
294 ucontrol->value.integer.value[1] = val - min; in snd_soc_get_volsw()
296 ucontrol->value.integer.value[1] = in snd_soc_get_volsw()
297 max - ucontrol->value.integer.value[1]; in snd_soc_get_volsw()
337 if (ucontrol->value.integer.value[0] < 0) in snd_soc_put_volsw()
339 val = ucontrol->value.integer.value[0]; in snd_soc_put_volsw()
350 if (ucontrol->value.integer.value[1] < 0) in snd_soc_put_volsw()
352 val2 = ucontrol->value.integer.value[1]; in snd_soc_put_volsw()
412 ucontrol->value.integer.value[0] = ((val >> shift) - min) & mask; in snd_soc_get_volsw_sx()
417 ucontrol->value.integer.value[1] = val; in snd_soc_get_volsw_sx()
451 if (ucontrol->value.integer.value[0] < 0) in snd_soc_put_volsw_sx()
453 val = ucontrol->value.integer.value[0]; in snd_soc_put_volsw_sx()
468 unsigned int val2 = ucontrol->value.integer.value[1]; in snd_soc_put_volsw_sx()
515 uinfo->value.integer.min = 0; in snd_soc_info_volsw_range()
516 uinfo->value.integer.max = platform_max - min; in snd_soc_info_volsw_range()
547 tmp = ucontrol->value.integer.value[0]; in snd_soc_put_volsw_range()
556 val = (max - ucontrol->value.integer.value[0]) & mask; in snd_soc_put_volsw_range()
558 val = ((ucontrol->value.integer.value[0] + min) & mask); in snd_soc_put_volsw_range()
568 tmp = ucontrol->value.integer.value[1]; in snd_soc_put_volsw_range()
577 val = (max - ucontrol->value.integer.value[1]) & mask; in snd_soc_put_volsw_range()
579 val = ((ucontrol->value.integer.value[1] + min) & mask); in snd_soc_put_volsw_range()
620 ucontrol->value.integer.value[0] = (val >> shift) & mask; in snd_soc_get_volsw_range()
622 ucontrol->value.integer.value[0] = in snd_soc_get_volsw_range()
623 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw_range()
625 ucontrol->value.integer.value[0] = in snd_soc_get_volsw_range()
626 ucontrol->value.integer.value[0] - min; in snd_soc_get_volsw_range()
630 ucontrol->value.integer.value[1] = (val >> shift) & mask; in snd_soc_get_volsw_range()
632 ucontrol->value.integer.value[1] = in snd_soc_get_volsw_range()
633 max - ucontrol->value.integer.value[1]; in snd_soc_get_volsw_range()
635 ucontrol->value.integer.value[1] = in snd_soc_get_volsw_range()
636 ucontrol->value.integer.value[1] - min; in snd_soc_get_volsw_range()
851 uinfo->value.integer.min = mc->min; in snd_soc_info_xr_sx()
852 uinfo->value.integer.max = mc->max; in snd_soc_info_xr_sx()
897 ucontrol->value.integer.value[0] = val; in snd_soc_get_xr_sx()
929 long val = ucontrol->value.integer.value[0]; in snd_soc_put_xr_sx()