Lines Matching refs:nval
376 unsigned char nval) in put_ak_reg() argument
382 if (snd_akm4xxx_get_vol(ak, chip, addr) == nval) in put_ak_reg()
385 snd_akm4xxx_set_vol(ak, chip, addr, nval); in put_ak_reg()
386 if (AK_GET_VOL_CVT(kcontrol->private_value) && nval < 128) in put_ak_reg()
387 nval = vol_cvt_datt[nval]; in put_ak_reg()
388 if (AK_GET_IPGA(kcontrol->private_value) && nval >= 128) in put_ak_reg()
389 nval++; /* need to correct + 1 since both 127 and 128 are 0dB */ in put_ak_reg()
391 nval = mask - nval; in put_ak_reg()
393 nval |= 0x80; in put_ak_reg()
396 snd_akm4xxx_write(ak, chip, addr, nval); in put_ak_reg()
479 unsigned char nval = ucontrol->value.enumerated.item[0] & 3; in snd_akm4xxx_deemphasis_put() local
482 nval = (nval << shift) | in snd_akm4xxx_deemphasis_put()
484 change = snd_akm4xxx_get(ak, chip, addr) != nval; in snd_akm4xxx_deemphasis_put()
486 snd_akm4xxx_write(ak, chip, addr, nval); in snd_akm4xxx_deemphasis_put()