Home
last modified time | relevance | path

Searched refs:nvol (Results 1 – 6 of 6) sorted by relevance

/linux/sound/pci/ice1712/
H A Dwtm.c217 unsigned char tmp, ovol, nvol; in stac9460_dac_vol_put() local
222 nvol = ucontrol->value.integer.value[0] & 0x7f; in stac9460_dac_vol_put()
225 change = (ovol != nvol); in stac9460_dac_vol_put()
227 stac9460_put(ice, idx, (0x7f - nvol) | (tmp & 0x80)); in stac9460_dac_vol_put()
228 stac9460_2_put(ice, idx, (0x7f - nvol) | (tmp & 0x80)); in stac9460_dac_vol_put()
233 nvol = ucontrol->value.integer.value[0] & 0x7f; in stac9460_dac_vol_put()
239 change = (ovol != nvol); in stac9460_dac_vol_put()
242 stac9460_put(ice, idx, (0x7f - nvol) | in stac9460_dac_vol_put()
245 stac9460_2_put(ice, idx-6, (0x7f - nvol) | in stac9460_dac_vol_put()
354 unsigned char ovol, nvol; in stac9460_adc_vol_put() local
[all …]
H A Dprodigy_hifi.c314 unsigned char nvol; in wm_set_vol() local
317 nvol = 0; in wm_set_vol()
319 nvol = (((vol & ~WM_VOL_MUTE) * (master & ~WM_VOL_MUTE)) / 128) in wm_set_vol()
321 nvol = (nvol ? (nvol + DAC_MIN) : 0) & 0xff; in wm_set_vol()
324 wm_put(ice, index, nvol); in wm_set_vol()
325 wm_put_nocache(ice, index, 0x100 | nvol); in wm_set_vol()
331 unsigned char nvol; in wm8766_set_vol() local
334 nvol = 0; in wm8766_set_vol()
336 nvol = (((vol & ~WM_VOL_MUTE) * (master & ~WM_VOL_MUTE)) / 128) in wm8766_set_vol()
338 nvol = (nvol ? (nvol + DAC_MIN) : 0) & 0xff; in wm8766_set_vol()
[all …]
H A Daureon.c374 unsigned short ovol, nvol; in aureon_ac97_vol_put() local
380 nvol = (0x1F - ucontrol->value.integer.value[0]) & 0x001F; in aureon_ac97_vol_put()
382 nvol |= ((0x1F - ucontrol->value.integer.value[1]) << 8) & 0x1F00; in aureon_ac97_vol_put()
383 nvol |= ovol & ~0x1F1F; in aureon_ac97_vol_put()
385 change = (ovol != nvol); in aureon_ac97_vol_put()
387 aureon_ac97_write(ice, kcontrol->private_value & 0x7F, nvol); in aureon_ac97_vol_put()
414 unsigned short ovol, nvol; in aureon_ac97_mute_put() local
420 nvol = (ucontrol->value.integer.value[0] ? 0x0000 : 0x8000) | (ovol & ~0x8000); in aureon_ac97_mute_put()
422 change = (ovol != nvol); in aureon_ac97_mute_put()
424 aureon_ac97_write(ice, kcontrol->private_value & 0x7F, nvol); in aureon_ac97_mute_put()
[all …]
H A Dphase.c268 unsigned char nvol; in wm_set_vol() local
271 nvol = 0; in wm_set_vol()
273 nvol = 127 - wm_vol[(((vol & ~WM_VOL_MUTE) * in wm_set_vol()
276 wm_put(ice, index, nvol); in wm_set_vol()
277 wm_put_nocache(ice, index, 0x180 | nvol); in wm_set_vol()
651 unsigned short ovol, nvol; in wm_pcm_vol_put() local
654 nvol = ucontrol->value.integer.value[0]; in wm_pcm_vol_put()
655 if (nvol > PCM_RES) in wm_pcm_vol_put()
658 nvol = (nvol ? (nvol + PCM_MIN) : 0) & 0xff; in wm_pcm_vol_put()
660 if (ovol != nvol) { in wm_pcm_vol_put()
[all …]
H A Dprodigy192.c160 unsigned char tmp, ovol, nvol; in stac9460_dac_vol_put() local
167 nvol = ucontrol->value.integer.value[0]; in stac9460_dac_vol_put()
170 change = (ovol != nvol); in stac9460_dac_vol_put()
172 stac9460_put(ice, idx, (0x7f - nvol) | (tmp & 0x80)); in stac9460_dac_vol_put()
246 unsigned char ovol, nvol; in stac9460_adc_vol_put() local
251 nvol = ucontrol->value.integer.value[i] & 0x0f; in stac9460_adc_vol_put()
253 change = ((ovol & 0x0f) != nvol); in stac9460_adc_vol_put()
255 stac9460_put(ice, reg, (0x0f - nvol) | (ovol & ~0x0f)); in stac9460_adc_vol_put()
H A Dpontis.c180 unsigned short ovol, nvol; in wm_adc_vol_put() local
185 nvol = ucontrol->value.integer.value[i]; in wm_adc_vol_put()
186 nvol = nvol ? (nvol + ADC_MIN) : 0; in wm_adc_vol_put()
189 if (ovol != nvol) { in wm_adc_vol_put()
190 wm_put(ice, idx, nvol); in wm_adc_vol_put()