Lines Matching refs:val2
282 int val[2], val2[2], i; in snd_soc_get_volsw_2r_st() local
286 val2[0] = snd_soc_read(codec, reg2) & 0x3f; in snd_soc_get_volsw_2r_st()
287 val2[1] = (snd_soc_read(codec, PM860X_SIDETONE_SHIFT)) & 0xf; in snd_soc_get_volsw_2r_st()
292 if ((st_table[i].m == val2[0]) && (st_table[i].n == val2[1])) in snd_soc_get_volsw_2r_st()
307 unsigned int val, val2; in snd_soc_put_volsw_2r_st() local
310 val2 = ucontrol->value.integer.value[1]; in snd_soc_put_volsw_2r_st()
312 if (val >= ARRAY_SIZE(st_table) || val2 >= ARRAY_SIZE(st_table)) in snd_soc_put_volsw_2r_st()
323 err = snd_soc_update_bits(codec, reg2, 0x3f, st_table[val2].m); in snd_soc_put_volsw_2r_st()
327 st_table[val2].n); in snd_soc_put_volsw_2r_st()
340 int max = mc->max, val, val2; in snd_soc_get_volsw_2r_out() local
344 val2 = snd_soc_read(codec, reg2) >> shift; in snd_soc_get_volsw_2r_out()
346 ucontrol->value.integer.value[1] = (max - val2) & mask; in snd_soc_get_volsw_2r_out()
363 unsigned int val, val2, val_mask; in snd_soc_put_volsw_2r_out() local
367 val2 = ((max - ucontrol->value.integer.value[1]) & mask); in snd_soc_put_volsw_2r_out()
370 val2 = val2 << shift; in snd_soc_put_volsw_2r_out()
376 err = snd_soc_update_bits(codec, reg2, val_mask, val2); in snd_soc_put_volsw_2r_out()