Lines Matching refs:nvol

375 	unsigned short ovol, nvol;  in aureon_ac97_vol_put()  local
381 nvol = (0x1F - ucontrol->value.integer.value[0]) & 0x001F; in aureon_ac97_vol_put()
383 nvol |= ((0x1F - ucontrol->value.integer.value[1]) << 8) & 0x1F00; in aureon_ac97_vol_put()
384 nvol |= ovol & ~0x1F1F; in aureon_ac97_vol_put()
386 change = (ovol != nvol); in aureon_ac97_vol_put()
388 aureon_ac97_write(ice, kcontrol->private_value & 0x7F, nvol); in aureon_ac97_vol_put()
416 unsigned short ovol, nvol; in aureon_ac97_mute_put() local
422 nvol = (ucontrol->value.integer.value[0] ? 0x0000 : 0x8000) | (ovol & ~0x8000); in aureon_ac97_mute_put()
424 change = (ovol != nvol); in aureon_ac97_mute_put()
426 aureon_ac97_write(ice, kcontrol->private_value & 0x7F, nvol); in aureon_ac97_mute_put()
453 unsigned short ovol, nvol; in aureon_ac97_micboost_put() local
459 nvol = (ucontrol->value.integer.value[0] ? 0x0000 : 0x0020) | (ovol & ~0x0020); in aureon_ac97_micboost_put()
461 change = (ovol != nvol); in aureon_ac97_micboost_put()
463 aureon_ac97_write(ice, AC97_MIC, nvol); in aureon_ac97_micboost_put()
656 unsigned short ovol, nvol; in aureon_ac97_mmute_put() local
662 nvol = (ovol & ~0x02) | (ucontrol->value.integer.value[0] ? 0x02 : 0x00); in aureon_ac97_mmute_put()
663 change = (ovol != nvol); in aureon_ac97_mmute_put()
665 wm_put(ice, WM_OUT_MUX1, nvol); in aureon_ac97_mmute_put()
684 unsigned char nvol; in wm_set_vol() local
687 nvol = 0; in wm_set_vol()
689 nvol = ((vol % WM_VOL_CNT) * (master % WM_VOL_CNT)) / in wm_set_vol()
691 nvol += 0x1b; in wm_set_vol()
694 wm_put(ice, index, nvol); in wm_set_vol()
695 wm_put_nocache(ice, index, 0x180 | nvol); in wm_set_vol()
958 unsigned short ovol, nvol; in wm_pcm_vol_put() local
961 nvol = ucontrol->value.integer.value[0]; in wm_pcm_vol_put()
962 if (nvol > PCM_RES) in wm_pcm_vol_put()
965 nvol = (nvol ? (nvol + PCM_MIN) : 0) & 0xff; in wm_pcm_vol_put()
967 if (ovol != nvol) { in wm_pcm_vol_put()
968 wm_put(ice, WM_DAC_DIG_MASTER_ATTEN, nvol); /* prelatch */ in wm_pcm_vol_put()
969 wm_put_nocache(ice, WM_DAC_DIG_MASTER_ATTEN, nvol | 0x100); /* update */ in wm_pcm_vol_put()
1048 unsigned short ovol, nvol; in wm_adc_vol_put() local
1054 nvol = ucontrol->value.integer.value[i] & 0x1f; in wm_adc_vol_put()
1056 if ((ovol & 0x1f) != nvol) { in wm_adc_vol_put()
1057 wm_put(ice, idx, nvol | (ovol & ~0x1f)); in wm_adc_vol_put()