Lines Matching refs:val2
278 int val[2], val2[2], i; in snd_soc_get_volsw_2r_st() local
282 val2[0] = snd_soc_read(codec, reg2) & 0x3f; in snd_soc_get_volsw_2r_st()
283 val2[1] = (snd_soc_read(codec, PM860X_SIDETONE_SHIFT)) & 0xf; in snd_soc_get_volsw_2r_st()
288 if ((st_table[i].m == val2[0]) && (st_table[i].n == val2[1])) in snd_soc_get_volsw_2r_st()
303 unsigned int val, val2; in snd_soc_put_volsw_2r_st() local
306 val2 = ucontrol->value.integer.value[1]; in snd_soc_put_volsw_2r_st()
308 if (val >= ARRAY_SIZE(st_table) || val2 >= ARRAY_SIZE(st_table)) in snd_soc_put_volsw_2r_st()
319 err = snd_soc_update_bits(codec, reg2, 0x3f, st_table[val2].m); in snd_soc_put_volsw_2r_st()
323 st_table[val2].n); in snd_soc_put_volsw_2r_st()
336 int max = mc->max, val, val2; in snd_soc_get_volsw_2r_out() local
340 val2 = snd_soc_read(codec, reg2) >> shift; in snd_soc_get_volsw_2r_out()
342 ucontrol->value.integer.value[1] = (max - val2) & mask; in snd_soc_get_volsw_2r_out()
359 unsigned int val, val2, val_mask; in snd_soc_put_volsw_2r_out() local
363 val2 = ((max - ucontrol->value.integer.value[1]) & mask); in snd_soc_put_volsw_2r_out()
366 val2 = val2 << shift; in snd_soc_put_volsw_2r_out()
372 err = snd_soc_update_bits(codec, reg2, val_mask, val2); in snd_soc_put_volsw_2r_out()