/sound/ppc/ |
D | awacs.c | 153 int vol[2]; in snd_pmac_awacs_get_volume() local 156 vol[0] = (chip->awacs_reg[reg] >> lshift) & 0xf; in snd_pmac_awacs_get_volume() 157 vol[1] = chip->awacs_reg[reg] & 0xf; in snd_pmac_awacs_get_volume() 160 vol[0] = 0x0f - vol[0]; in snd_pmac_awacs_get_volume() 161 vol[1] = 0x0f - vol[1]; in snd_pmac_awacs_get_volume() 163 ucontrol->value.integer.value[0] = vol[0]; in snd_pmac_awacs_get_volume() 164 ucontrol->value.integer.value[1] = vol[1]; in snd_pmac_awacs_get_volume() 177 unsigned int vol[2]; in snd_pmac_awacs_put_volume() local 179 vol[0] = ucontrol->value.integer.value[0]; in snd_pmac_awacs_put_volume() 180 vol[1] = ucontrol->value.integer.value[1]; in snd_pmac_awacs_put_volume() [all …]
|
D | tumbler.c | 277 unsigned int vol[2]; in tumbler_put_master_volume() local 280 vol[0] = ucontrol->value.integer.value[0]; in tumbler_put_master_volume() 281 vol[1] = ucontrol->value.integer.value[1]; in tumbler_put_master_volume() 282 if (vol[0] >= ARRAY_SIZE(master_volume_table) || in tumbler_put_master_volume() 283 vol[1] >= ARRAY_SIZE(master_volume_table)) in tumbler_put_master_volume() 285 change = mix->master_vol[0] != vol[0] || in tumbler_put_master_volume() 286 mix->master_vol[1] != vol[1]; in tumbler_put_master_volume() 288 mix->master_vol[0] = vol[0]; in tumbler_put_master_volume() 289 mix->master_vol[1] = vol[1]; in tumbler_put_master_volume() 495 unsigned int vol; in tumbler_set_mono_volume() local [all …]
|
D | daca.c | 151 unsigned int vol[2]; in daca_put_volume() local 156 vol[0] = ucontrol->value.integer.value[0]; in daca_put_volume() 157 vol[1] = ucontrol->value.integer.value[1]; in daca_put_volume() 158 if (vol[0] > DACA_VOL_MAX || vol[1] > DACA_VOL_MAX) in daca_put_volume() 160 change = mix->left_vol != vol[0] || in daca_put_volume() 161 mix->right_vol != vol[1]; in daca_put_volume() 163 mix->left_vol = vol[0]; in daca_put_volume() 164 mix->right_vol = vol[1]; in daca_put_volume()
|
/sound/pci/ice1712/ |
D | se.c | 40 } vol[8]; member 472 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_volume_get() 473 uc->value.integer.value[1] = spec->vol[n].ch2; in se200pci_cont_volume_get() 483 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_boolean_get() 493 uc->value.enumerated.item[0] = spec->vol[n].ch1; in se200pci_cont_enum_get() 504 spec->vol[n].ch1, in se200pci_cont_update() 505 spec->vol[n].ch2); in se200pci_cont_update() 510 spec->vol[n].ch1, in se200pci_cont_update() 511 spec->vol[n].ch2); in se200pci_cont_update() 516 spec->vol[n].ch1, in se200pci_cont_update() [all …]
|
D | phase.c | 62 unsigned short vol[8]; member 281 unsigned short vol, unsigned short master) in wm_set_vol() argument 285 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) in wm_set_vol() 288 nvol = 127 - wm_vol[(((vol & ~WM_VOL_MUTE) * in wm_set_vol() 364 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put() local 365 if (vol > WM_VOL_MAX) in wm_master_vol_put() 367 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put() 368 if (vol != spec->master[ch]) { in wm_master_vol_put() 370 spec->master[ch] = vol; in wm_master_vol_put() 373 spec->vol[dac + ch], in wm_master_vol_put() [all …]
|
D | prodigy_hifi.c | 45 unsigned short vol[8]; member 274 ucontrol->value.integer.value[i] = spec->vol[i]; in ak4396_dac_vol_get() 288 if (ucontrol->value.integer.value[i] != spec->vol[i]) { in ak4396_dac_vol_put() 289 spec->vol[i] = ucontrol->value.integer.value[i]; in ak4396_dac_vol_put() 291 spec->vol[i] & 0xff); in ak4396_dac_vol_put() 346 unsigned short vol, unsigned short master) in wm_set_vol() argument 350 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) in wm_set_vol() 353 nvol = (((vol & ~WM_VOL_MUTE) * (master & ~WM_VOL_MUTE)) / 128) in wm_set_vol() 363 unsigned short vol, unsigned short master) in wm8766_set_vol() argument 367 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) in wm8766_set_vol() [all …]
|
D | aureon.c | 68 unsigned short vol[8]; member 379 unsigned short vol; in aureon_ac97_vol_get() local 383 vol = aureon_ac97_read(ice, kcontrol->private_value & 0x7F); in aureon_ac97_vol_get() 384 ucontrol->value.integer.value[0] = 0x1F - (vol & 0x1F); in aureon_ac97_vol_get() 386 ucontrol->value.integer.value[1] = 0x1F - ((vol >> 8) & 0x1F); in aureon_ac97_vol_get() 720 static void wm_set_vol(struct snd_ice1712 *ice, unsigned int index, unsigned short vol, unsigned sh… in wm_set_vol() argument 724 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) in wm_set_vol() 727 nvol = 127 - wm_vol[(((vol & ~WM_VOL_MUTE) * (master & ~WM_VOL_MUTE)) / 127) & WM_VOL_MAX]; in wm_set_vol() 796 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put() local 797 if (vol > WM_VOL_MAX) in wm_master_vol_put() [all …]
|
D | wtm.c | 153 unsigned char vol; in stac9460_dac_vol_get() local 163 vol = stac9460_get(ice, idx) & 0x7f; in stac9460_dac_vol_get() 165 vol = stac9460_2_get(ice, idx - 6) & 0x7f; in stac9460_dac_vol_get() 166 ucontrol->value.integer.value[0] = 0x7f - vol; in stac9460_dac_vol_get() 288 unsigned char vol; in stac9460_adc_vol_get() local 294 vol = stac9460_get(ice, reg) & 0x0f; in stac9460_adc_vol_get() 295 ucontrol->value.integer.value[i] = 0x0f - vol; in stac9460_adc_vol_get() 300 vol = stac9460_2_get(ice, reg) & 0x0f; in stac9460_adc_vol_get() 301 ucontrol->value.integer.value[i] = 0x0f - vol; in stac9460_adc_vol_get()
|
D | prodigy192.c | 159 unsigned char vol; in stac9460_dac_vol_get() local 165 vol = stac9460_get(ice, idx) & 0x7f; in stac9460_dac_vol_get() 166 ucontrol->value.integer.value[0] = 0x7f - vol; in stac9460_dac_vol_get() 248 unsigned char vol; in stac9460_adc_vol_get() local 252 vol = stac9460_get(ice, reg) & 0x0f; in stac9460_adc_vol_get() 253 ucontrol->value.integer.value[i] = 0x0f - vol; in stac9460_adc_vol_get()
|
/sound/synth/emux/ |
D | emux_synth.c | 757 int vol; in calc_volume() local 768 vol = (vp->velocity * main_vol * expression_vol) / (127*127); in calc_volume() 769 vol = vol * vp->reg.amplitude / 127; in calc_volume() 771 LIMITVALUE(vol, 0, 127); in calc_volume() 774 vol = snd_sf_vol_table[vol]; in calc_volume() 780 vol = voltab1[main_vol] + voltab2[vp->velocity]; in calc_volume() 781 vol = (vol * 8) / 3; in calc_volume() 782 vol += vp->reg.attenuation; in calc_volume() 783 vol += ((0x100 - vol) * expressiontab[expression_vol])/128; in calc_volume() 788 vol += snd_sf_vol_table[master_vol]; in calc_volume() [all …]
|
/sound/isa/gus/ |
D | gus_volume.c | 29 unsigned short snd_gf1_lvol_to_gvol_raw(unsigned int vol) in snd_gf1_lvol_to_gvol_raw() argument 33 if (vol > 65535) in snd_gf1_lvol_to_gvol_raw() 34 vol = 65535; in snd_gf1_lvol_to_gvol_raw() 35 tmp = vol; in snd_gf1_lvol_to_gvol_raw() 46 m = vol - (1 << e); in snd_gf1_lvol_to_gvol_raw()
|
D | gus_pcm.c | 112 unsigned short vol; in snd_gf1_pcm_trigger_up() local 140 vol = !voice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right; in snd_gf1_pcm_trigger_up() 151 snd_gf1_write8(gus, SNDRV_GF1_VB_VOLUME_END, vol >> 8); in snd_gf1_pcm_trigger_up() 265 unsigned short vol; in snd_gf1_pcm_interrupt_volume() local 283 vol = !cvoice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right; in snd_gf1_pcm_interrupt_volume() 286 snd_gf1_write16(gus, SNDRV_GF1_VW_VOLUME, vol); in snd_gf1_pcm_interrupt_volume() 760 unsigned short val1, val2, vol; in snd_gf1_pcm_volume_put() local 787 …vol = pvoice == pcmp->pvoices[0] ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_righ… in snd_gf1_pcm_volume_put() 788 snd_gf1_write16(gus, SNDRV_GF1_VW_VOLUME, vol); in snd_gf1_pcm_volume_put()
|
/sound/core/ |
D | vmaster.c | 136 int err, ch, vol; in slave_put_val() local 151 vol = ucontrol->value.integer.value[ch]; in slave_put_val() 152 vol += slave->master->val - slave->master->info.max_val; in slave_put_val() 153 if (vol < slave->info.min_val) in slave_put_val() 154 vol = slave->info.min_val; in slave_put_val() 155 else if (vol > slave->info.max_val) in slave_put_val() 156 vol = slave->info.max_val; in slave_put_val() 157 ucontrol->value.integer.value[ch] = vol; in slave_put_val()
|
/sound/sh/ |
D | aica.c | 367 channel->vol = dreamcastcard->master_volume; in snd_aicapcm_pcm_open() 518 ucontrol->value.integer.value[0] = dreamcastcard->channel->vol; in aica_pcmvolume_get() 526 unsigned int vol; in aica_pcmvolume_put() local 530 vol = ucontrol->value.integer.value[0]; in aica_pcmvolume_put() 531 if (vol > 0xff) in aica_pcmvolume_put() 533 if (unlikely(dreamcastcard->channel->vol == vol)) in aica_pcmvolume_put() 535 dreamcastcard->channel->vol = ucontrol->value.integer.value[0]; in aica_pcmvolume_put()
|
D | aica.h | 65 uint32_t vol; /* Volume 0-255 */ member
|
/sound/pci/au88x0/ |
D | au88x0_synth.c | 320 static void vortex_wt_SetVolume(vortex_t * vortex, int wt, int vol[]) 323 int ecx = vol[1], eax = vol[0]; 327 voice->parm0 |= (vol[0] & 0xff) << 0x10; 329 voice->parm1 |= (vol[1] & 0xff) << 0x10;
|
D | au88x0.h | 262 unsigned char vol); 264 unsigned char vol);
|
/sound/pci/ |
D | rme96.c | 214 u16 vol[2]; /* cached volume of analog output */ member 497 snd_rme96_write_SPI(rme96, (rme96->vol[0] << 2) | 0x0); in snd_rme96_apply_dac_volume() 498 snd_rme96_write_SPI(rme96, (rme96->vol[1] << 2) | 0x2); in snd_rme96_apply_dac_volume() 500 snd_rme96_write_SPI(rme96, (rme96->vol[0] & 0x3FF) | 0x000); in snd_rme96_apply_dac_volume() 501 snd_rme96_write_SPI(rme96, (rme96->vol[1] & 0x3FF) | 0x400); in snd_rme96_apply_dac_volume() 1645 rme96->vol[0] = rme96->vol[1] = 0; in snd_rme96_create() 1789 snd_iprintf(buffer, " volume left: %u\n", rme96->vol[0]); in snd_rme96_proc_read() 1790 snd_iprintf(buffer, " volume right: %u\n", rme96->vol[1]); in snd_rme96_proc_read() 2186 u->value.integer.value[0] = rme96->vol[0]; in snd_rme96_dac_volume_get() 2187 u->value.integer.value[1] = rme96->vol[1]; in snd_rme96_dac_volume_get() [all …]
|
/sound/oss/ |
D | swarm_cs4297a.c | 279 unsigned short vol[10]; member 1295 return put_user(s->mix.vol[vidx - 1], (int *) arg); in mixer_ioctl() 1358 s->mix.vol[8] = ((unsigned int) r << 8) | l; in mixer_ioctl() 1360 s->mix.vol[8] = val; in mixer_ioctl() 1362 return put_user(s->mix.vol[8], (int *) arg); in mixer_ioctl() 1388 s->mix.vol[6] = l << 8; in mixer_ioctl() 1390 s->mix.vol[6] = val; in mixer_ioctl() 1392 return put_user(s->mix.vol[6], (int *) arg); in mixer_ioctl() 1414 s->mix.vol[7] = ((unsigned int) r << 8) | l; in mixer_ioctl() 1416 s->mix.vol[7] = val; in mixer_ioctl() [all …]
|
D | pss.c | 421 int vol = ((0x8000*volume)/100L); in set_synth_volume() local 423 pss_write(devc, vol); in set_synth_volume() 425 pss_write(devc, vol); in set_synth_volume() 430 int vol = (int)(((0xfd - 0xf0) * level)/100L) + 0xf0; in set_bass() local 432 pss_write(devc, vol | 0x0200); in set_bass() 437 int vol = (((0xfd - 0xf0) * level)/100L) + 0xf0; in set_treble() local 439 pss_write(devc, vol | 0x0300); in set_treble()
|
D | vidc.h | 63 extern int vidc_synth_set_volume(int vol);
|
/sound/pci/pcxhr/ |
D | pcxhr_mixer.c | 55 int err, vol; in pcxhr_update_analog_audio_level() local 65 vol = chip->analog_playback_volume[channel]; in pcxhr_update_analog_audio_level() 67 vol = PCXHR_LINE_PLAYBACK_LEVEL_MIN; in pcxhr_update_analog_audio_level() 69 rmh.cmd[2] = PCXHR_LINE_PLAYBACK_LEVEL_MAX - vol; in pcxhr_update_analog_audio_level() 393 int vol = ucontrol->value.integer.value[i]; in pcxhr_pcm_vol_put() local 394 if (vol < PCXHR_DIGITAL_LEVEL_MIN || in pcxhr_pcm_vol_put() 395 vol > PCXHR_DIGITAL_LEVEL_MAX) in pcxhr_pcm_vol_put() 397 if (stored_volume[i] != vol) { in pcxhr_pcm_vol_put() 398 stored_volume[i] = vol; in pcxhr_pcm_vol_put()
|
D | pcxhr_mix22.c | 521 int vol; in hr222_update_analog_audio_level() local 523 vol = chip->analog_playback_volume[channel]; in hr222_update_analog_audio_level() 525 vol = HR222_LINE_PLAYBACK_LEVEL_MIN; in hr222_update_analog_audio_level() 526 return hr222_set_hw_playback_level(chip->mgr, channel, vol); in hr222_update_analog_audio_level()
|
/sound/isa/cs423x/ |
D | cs4236_lib.c | 627 static inline int snd_cs4236_mixer_master_digital_invert_volume(int vol) in snd_cs4236_mixer_master_digital_invert_volume() argument 629 return (vol < 64) ? 63 - vol : 64 + (71 - vol); in snd_cs4236_mixer_master_digital_invert_volume() 669 static inline int snd_cs4235_mixer_output_accu_get_volume(int vol) in snd_cs4235_mixer_output_accu_get_volume() argument 671 switch ((vol >> 5) & 3) { in snd_cs4235_mixer_output_accu_get_volume() 680 static inline int snd_cs4235_mixer_output_accu_set_volume(int vol) in snd_cs4235_mixer_output_accu_set_volume() argument 682 switch (vol & 3) { in snd_cs4235_mixer_output_accu_set_volume()
|
/sound/pci/mixart/ |
D | mixart_mixer.c | 873 int vol = ucontrol->value.integer.value[i]; in mixart_pcm_vol_put() local 874 if (vol < MIXART_DIGITAL_LEVEL_MIN || in mixart_pcm_vol_put() 875 vol > MIXART_DIGITAL_LEVEL_MAX) in mixart_pcm_vol_put() 877 if (stored_volume[i] != vol) { in mixart_pcm_vol_put() 878 stored_volume[i] = vol; in mixart_pcm_vol_put()
|