Home
last modified time | relevance | path

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

/sound/pci/ice1712/
Dwtm.c232 unsigned char tmp, ovol, nvol; in stac9460_dac_vol_put() local
237 nvol = ucontrol->value.integer.value[0] & 0x7f; in stac9460_dac_vol_put()
240 change = (ovol != nvol); in stac9460_dac_vol_put()
242 stac9460_put(ice, idx, (0x7f - nvol) | (tmp & 0x80)); in stac9460_dac_vol_put()
243 stac9460_2_put(ice, idx, (0x7f - nvol) | (tmp & 0x80)); in stac9460_dac_vol_put()
248 nvol = ucontrol->value.integer.value[0] & 0x7f; in stac9460_dac_vol_put()
254 change = (ovol != nvol); in stac9460_dac_vol_put()
257 stac9460_put(ice, idx, (0x7f - nvol) | in stac9460_dac_vol_put()
260 stac9460_2_put(ice, idx-6, (0x7f - nvol) | in stac9460_dac_vol_put()
369 unsigned char ovol, nvol; in stac9460_adc_vol_put() local
[all …]
Dprodigy_hifi.c348 unsigned char nvol; in wm_set_vol() local
351 nvol = 0; in wm_set_vol()
353 nvol = (((vol & ~WM_VOL_MUTE) * (master & ~WM_VOL_MUTE)) / 128) in wm_set_vol()
355 nvol = (nvol ? (nvol + DAC_MIN) : 0) & 0xff; in wm_set_vol()
358 wm_put(ice, index, nvol); in wm_set_vol()
359 wm_put_nocache(ice, index, 0x100 | nvol); in wm_set_vol()
365 unsigned char nvol; in wm8766_set_vol() local
368 nvol = 0; in wm8766_set_vol()
370 nvol = (((vol & ~WM_VOL_MUTE) * (master & ~WM_VOL_MUTE)) / 128) in wm8766_set_vol()
372 nvol = (nvol ? (nvol + DAC_MIN) : 0) & 0xff; in wm8766_set_vol()
[all …]
Daureon.c389 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()
[all …]
Dphase.c282 unsigned char nvol; in wm_set_vol() local
285 nvol = 0; in wm_set_vol()
287 nvol = 127 - wm_vol[(((vol & ~WM_VOL_MUTE) * in wm_set_vol()
290 wm_put(ice, index, nvol); in wm_set_vol()
291 wm_put_nocache(ice, index, 0x180 | nvol); in wm_set_vol()
667 unsigned short ovol, nvol; in wm_pcm_vol_put() local
670 nvol = ucontrol->value.integer.value[0]; in wm_pcm_vol_put()
671 if (nvol > PCM_RES) in wm_pcm_vol_put()
674 nvol = (nvol ? (nvol + PCM_MIN) : 0) & 0xff; in wm_pcm_vol_put()
676 if (ovol != nvol) { in wm_pcm_vol_put()
[all …]
Dprodigy192.c176 unsigned char tmp, ovol, nvol; in stac9460_dac_vol_put() local
183 nvol = ucontrol->value.integer.value[0]; in stac9460_dac_vol_put()
186 change = (ovol != nvol); in stac9460_dac_vol_put()
188 ovol = (0x7f - nvol) | (tmp & 0x80); in stac9460_dac_vol_put()
193 stac9460_put(ice, idx, (0x7f - nvol) | (tmp & 0x80)); in stac9460_dac_vol_put()
267 unsigned char ovol, nvol; in stac9460_adc_vol_put() local
272 nvol = ucontrol->value.integer.value[i] & 0x0f; in stac9460_adc_vol_put()
274 change = ((ovol & 0x0f) != nvol); in stac9460_adc_vol_put()
276 stac9460_put(ice, reg, (0x0f - nvol) | (ovol & ~0x0f)); in stac9460_adc_vol_put()
Dpontis.c197 unsigned short ovol, nvol; in wm_adc_vol_put() local
202 nvol = ucontrol->value.integer.value[i]; in wm_adc_vol_put()
203 nvol = nvol ? (nvol + ADC_MIN) : 0; in wm_adc_vol_put()
206 if (ovol != nvol) { in wm_adc_vol_put()
207 wm_put(ice, idx, nvol); in wm_adc_vol_put()