Lines Matching refs:nvol
329 unsigned char nvol; in wm_set_vol() local
332 nvol = 0; in wm_set_vol()
334 nvol = (((vol & ~WM_VOL_MUTE) * (master & ~WM_VOL_MUTE)) / 128) in wm_set_vol()
336 nvol = (nvol ? (nvol + DAC_MIN) : 0) & 0xff; in wm_set_vol()
339 wm_put(ice, index, nvol); in wm_set_vol()
340 wm_put_nocache(ice, index, 0x100 | nvol); in wm_set_vol()
346 unsigned char nvol; in wm8766_set_vol() local
349 nvol = 0; in wm8766_set_vol()
351 nvol = (((vol & ~WM_VOL_MUTE) * (master & ~WM_VOL_MUTE)) / 128) in wm8766_set_vol()
353 nvol = (nvol ? (nvol + DAC_MIN) : 0) & 0xff; in wm8766_set_vol()
356 wm8766_spi_write(ice, index, (0x0100 | nvol)); in wm8766_set_vol()
617 unsigned short ovol, nvol; in wm_adc_vol_put() local
622 nvol = ucontrol->value.integer.value[i]; in wm_adc_vol_put()
623 nvol = nvol ? (nvol + ADC_MIN) : 0; in wm_adc_vol_put()
626 if (ovol != nvol) { in wm_adc_vol_put()
627 wm_put(ice, idx, nvol); in wm_adc_vol_put()