Lines Matching refs:val2
866 unsigned short val, val2, val_mask; in snd_soc_put_volsw_twl4030() local
875 val2 = (ucontrol->value.integer.value[1] & mask); in snd_soc_put_volsw_twl4030()
877 if (val2) in snd_soc_put_volsw_twl4030()
878 val2 = max + 1 - val2; in snd_soc_put_volsw_twl4030()
879 val |= val2 << rshift; in snd_soc_put_volsw_twl4030()
923 unsigned short val, val2, val_mask; in snd_soc_put_volsw_r2_twl4030() local
927 val2 = (ucontrol->value.integer.value[1] & mask); in snd_soc_put_volsw_r2_twl4030()
931 if (val2) in snd_soc_put_volsw_r2_twl4030()
932 val2 = max + 1 - val2; in snd_soc_put_volsw_r2_twl4030()
935 val2 = val2 << shift; in snd_soc_put_volsw_r2_twl4030()
941 err = snd_soc_component_update_bits(component, reg2, val_mask, val2); in snd_soc_put_volsw_r2_twl4030()