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()
514 uinfo->value.integer.min = 0; in snd_soc_info_volsw_range()
515 uinfo->value.integer.max = max; 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()
850 uinfo->value.integer.min = mc->min; in snd_soc_info_xr_sx()
851 uinfo->value.integer.max = mc->max; in snd_soc_info_xr_sx()
896 ucontrol->value.integer.value[0] = val; in snd_soc_get_xr_sx()
928 long val = ucontrol->value.integer.value[0]; in snd_soc_put_xr_sx()