• Home
  • Raw
  • Download

Lines Matching refs:nvol

389 	unsigned short ovol, nvol;  in aureon_ac97_vol_put()  local
395 nvol = (0x1F - ucontrol->value.integer.value[0]) & 0x001F; in aureon_ac97_vol_put()
397 nvol |= ((0x1F - ucontrol->value.integer.value[1]) << 8) & 0x1F00; in aureon_ac97_vol_put()
398 nvol |= ovol & ~0x1F1F; in aureon_ac97_vol_put()
400 change = (ovol != nvol); in aureon_ac97_vol_put()
402 aureon_ac97_write(ice, kcontrol->private_value & 0x7F, nvol); in aureon_ac97_vol_put()
430 unsigned short ovol, nvol; in aureon_ac97_mute_put() local
436 nvol = (ucontrol->value.integer.value[0] ? 0x0000 : 0x8000) | (ovol & ~0x8000); in aureon_ac97_mute_put()
438 change = (ovol != nvol); in aureon_ac97_mute_put()
440 aureon_ac97_write(ice, kcontrol->private_value & 0x7F, nvol); in aureon_ac97_mute_put()
467 unsigned short ovol, nvol; in aureon_ac97_micboost_put() local
473 nvol = (ucontrol->value.integer.value[0] ? 0x0000 : 0x0020) | (ovol & ~0x0020); in aureon_ac97_micboost_put()
475 change = (ovol != nvol); in aureon_ac97_micboost_put()
477 aureon_ac97_write(ice, AC97_MIC, nvol); in aureon_ac97_micboost_put()
670 unsigned short ovol, nvol; in aureon_ac97_mmute_put() local
676 nvol = (ovol & ~0x02) | (ucontrol->value.integer.value[0] ? 0x02 : 0x00); in aureon_ac97_mmute_put()
677 change = (ovol != nvol); in aureon_ac97_mmute_put()
679 wm_put(ice, WM_OUT_MUX1, nvol); in aureon_ac97_mmute_put()
698 unsigned char nvol; in wm_set_vol() local
701 nvol = 0; in wm_set_vol()
703 nvol = ((vol % WM_VOL_CNT) * (master % WM_VOL_CNT)) / in wm_set_vol()
705 nvol += 0x1b; in wm_set_vol()
708 wm_put(ice, index, nvol); in wm_set_vol()
709 wm_put_nocache(ice, index, 0x180 | nvol); in wm_set_vol()
972 unsigned short ovol, nvol; in wm_pcm_vol_put() local
975 nvol = ucontrol->value.integer.value[0]; in wm_pcm_vol_put()
976 if (nvol > PCM_RES) in wm_pcm_vol_put()
979 nvol = (nvol ? (nvol + PCM_MIN) : 0) & 0xff; in wm_pcm_vol_put()
981 if (ovol != nvol) { in wm_pcm_vol_put()
982 wm_put(ice, WM_DAC_DIG_MASTER_ATTEN, nvol); /* prelatch */ in wm_pcm_vol_put()
983 wm_put_nocache(ice, WM_DAC_DIG_MASTER_ATTEN, nvol | 0x100); /* update */ in wm_pcm_vol_put()
1062 unsigned short ovol, nvol; in wm_adc_vol_put() local
1068 nvol = ucontrol->value.integer.value[i] & 0x1f; in wm_adc_vol_put()
1070 if ((ovol & 0x1f) != nvol) { in wm_adc_vol_put()
1071 wm_put(ice, idx, nvol | (ovol & ~0x1f)); in wm_adc_vol_put()