/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 | 282 unsigned int vol[2]; in tumbler_put_master_volume() local 285 vol[0] = ucontrol->value.integer.value[0]; in tumbler_put_master_volume() 286 vol[1] = ucontrol->value.integer.value[1]; in tumbler_put_master_volume() 287 if (vol[0] >= ARRAY_SIZE(master_volume_table) || in tumbler_put_master_volume() 288 vol[1] >= ARRAY_SIZE(master_volume_table)) in tumbler_put_master_volume() 290 change = mix->master_vol[0] != vol[0] || in tumbler_put_master_volume() 291 mix->master_vol[1] != vol[1]; in tumbler_put_master_volume() 293 mix->master_vol[0] = vol[0]; in tumbler_put_master_volume() 294 mix->master_vol[1] = vol[1]; in tumbler_put_master_volume() 502 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 | 39 } vol[8]; member 471 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_volume_get() 472 uc->value.integer.value[1] = spec->vol[n].ch2; in se200pci_cont_volume_get() 482 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_boolean_get() 492 uc->value.enumerated.item[0] = spec->vol[n].ch1; in se200pci_cont_enum_get() 503 spec->vol[n].ch1, in se200pci_cont_update() 504 spec->vol[n].ch2); in se200pci_cont_update() 509 spec->vol[n].ch1, in se200pci_cont_update() 510 spec->vol[n].ch2); in se200pci_cont_update() 515 spec->vol[n].ch1, in se200pci_cont_update() [all …]
|
D | phase.c | 61 unsigned short vol[8]; member 280 unsigned short vol, unsigned short master) in wm_set_vol() argument 284 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) in wm_set_vol() 287 nvol = 127 - wm_vol[(((vol & ~WM_VOL_MUTE) * in wm_set_vol() 363 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put() local 364 if (vol > WM_VOL_MAX) in wm_master_vol_put() 366 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put() 367 if (vol != spec->master[ch]) { in wm_master_vol_put() 369 spec->master[ch] = vol; in wm_master_vol_put() 372 spec->vol[dac + ch], in wm_master_vol_put() [all …]
|
D | prodigy_hifi.c | 44 unsigned short vol[8]; member 273 ucontrol->value.integer.value[i] = spec->vol[i]; in ak4396_dac_vol_get() 287 if (ucontrol->value.integer.value[i] != spec->vol[i]) { in ak4396_dac_vol_put() 288 spec->vol[i] = ucontrol->value.integer.value[i]; in ak4396_dac_vol_put() 290 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 | maya44.c | 175 struct maya_vol_info *vol = &vol_info[idx]; in maya_vol_info() local 180 uinfo->value.integer.max = vol->maxval; in maya_vol_info() 206 struct maya_vol_info *vol = &vol_info[idx]; in maya_vol_put() local 213 if (val > vol->maxval) in maya_vol_put() 214 val = vol->maxval; in maya_vol_put() 218 data = vol->mute; in maya_vol_put() 220 data = (val - 1) + vol->offset; in maya_vol_put() 221 data |= vol->update; in maya_vol_put() 222 changed |= wm8776_write_bits(chip->ice, wm, vol->regs[ch], in maya_vol_put() 223 vol->mask | vol->update, data); in maya_vol_put() [all …]
|
D | aureon.c | 67 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() 702 static void wm_set_vol(struct snd_ice1712 *ice, unsigned int index, unsigned short vol, unsigned sh… in wm_set_vol() argument 706 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) { in wm_set_vol() 709 nvol = ((vol % WM_VOL_CNT) * (master % WM_VOL_CNT)) / in wm_set_vol() 781 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put() local 782 if (vol > WM_VOL_MAX) in wm_master_vol_put() [all …]
|
D | wtm.c | 151 unsigned char vol; in stac9460_dac_vol_get() local 161 vol = stac9460_get(ice, idx) & 0x7f; in stac9460_dac_vol_get() 163 vol = stac9460_2_get(ice, idx - 6) & 0x7f; in stac9460_dac_vol_get() 164 ucontrol->value.integer.value[0] = 0x7f - vol; in stac9460_dac_vol_get() 286 unsigned char vol; in stac9460_adc_vol_get() local 292 vol = stac9460_get(ice, reg) & 0x0f; in stac9460_adc_vol_get() 293 ucontrol->value.integer.value[i] = 0x0f - vol; in stac9460_adc_vol_get() 298 vol = stac9460_2_get(ice, reg) & 0x0f; in stac9460_adc_vol_get() 299 ucontrol->value.integer.value[i] = 0x0f - vol; in stac9460_adc_vol_get()
|
D | prodigy192.c | 160 unsigned char vol; in stac9460_dac_vol_get() local 166 vol = stac9460_get(ice, idx) & 0x7f; in stac9460_dac_vol_get() 167 ucontrol->value.integer.value[0] = 0x7f - vol; in stac9460_dac_vol_get() 252 unsigned char vol; in stac9460_adc_vol_get() local 256 vol = stac9460_get(ice, reg) & 0x0f; in stac9460_adc_vol_get() 257 ucontrol->value.integer.value[i] = 0x0f - vol; in stac9460_adc_vol_get()
|
/sound/synth/emux/ |
D | emux_synth.c | 758 int vol; in calc_volume() local 769 vol = (vp->velocity * main_vol * expression_vol) / (127*127); in calc_volume() 770 vol = vol * vp->reg.amplitude / 127; in calc_volume() 772 LIMITVALUE(vol, 0, 127); in calc_volume() 775 vol = snd_sf_vol_table[vol]; in calc_volume() 781 vol = voltab1[main_vol] + voltab2[vp->velocity]; in calc_volume() 782 vol = (vol * 8) / 3; in calc_volume() 783 vol += vp->reg.attenuation; in calc_volume() 784 vol += ((0x100 - vol) * expressiontab[expression_vol])/128; in calc_volume() 789 vol += snd_sf_vol_table[master_vol]; in calc_volume() [all …]
|
/sound/isa/gus/ |
D | gus_volume.c | 30 unsigned short snd_gf1_lvol_to_gvol_raw(unsigned int vol) in snd_gf1_lvol_to_gvol_raw() argument 34 if (vol > 65535) in snd_gf1_lvol_to_gvol_raw() 35 vol = 65535; in snd_gf1_lvol_to_gvol_raw() 36 tmp = vol; in snd_gf1_lvol_to_gvol_raw() 47 m = vol - (1 << e); in snd_gf1_lvol_to_gvol_raw()
|
D | gus_pcm.c | 115 unsigned short vol; in snd_gf1_pcm_trigger_up() local 147 vol = !voice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right; in snd_gf1_pcm_trigger_up() 158 snd_gf1_write8(gus, SNDRV_GF1_VB_VOLUME_END, vol >> 8); in snd_gf1_pcm_trigger_up() 274 unsigned short vol; in snd_gf1_pcm_interrupt_volume() local 292 vol = !cvoice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right; in snd_gf1_pcm_interrupt_volume() 295 snd_gf1_write16(gus, SNDRV_GF1_VW_VOLUME, vol); in snd_gf1_pcm_interrupt_volume() 774 unsigned short val1, val2, vol; in snd_gf1_pcm_volume_put() local 801 …vol = pvoice == pcmp->pvoices[0] ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_righ… in snd_gf1_pcm_volume_put() 802 snd_gf1_write16(gus, SNDRV_GF1_VW_VOLUME, vol); in snd_gf1_pcm_volume_put()
|
/sound/core/ |
D | vmaster.c | 154 int err, ch, vol; in slave_put_val() local 169 vol = ucontrol->value.integer.value[ch]; in slave_put_val() 170 vol += slave->master->val - slave->master->info.max_val; in slave_put_val() 171 if (vol < slave->info.min_val) in slave_put_val() 172 vol = slave->info.min_val; in slave_put_val() 173 else if (vol > slave->info.max_val) in slave_put_val() 174 vol = slave->info.max_val; in slave_put_val() 175 ucontrol->value.integer.value[ch] = vol; in slave_put_val()
|
/sound/pci/asihpi/ |
D | hpicmn.c | 364 phr->u.c.an_log_value[0] = pC->u.vol.an_log[0]; in hpi_check_control_cache() 365 phr->u.c.an_log_value[1] = pC->u.vol.an_log[1]; in hpi_check_control_cache() 367 if (pC->u.vol.flags & HPI_VOLUME_FLAG_HAS_MUTE) { in hpi_check_control_cache() 368 if (pC->u.vol.flags & HPI_VOLUME_FLAG_MUTED) in hpi_check_control_cache() 576 pC->u.vol.an_log[0] = phr->u.c.an_log_value[0]; in hpi_cmn_control_cache_sync_to_msg() 577 pC->u.vol.an_log[1] = phr->u.c.an_log_value[1]; in hpi_cmn_control_cache_sync_to_msg() 580 pC->u.vol.flags |= HPI_VOLUME_FLAG_MUTED; in hpi_cmn_control_cache_sync_to_msg() 582 pC->u.vol.flags &= ~HPI_VOLUME_FLAG_MUTED; in hpi_cmn_control_cache_sync_to_msg() 599 pC->u.vol.an_log[0] = phr->u.c.an_log_value[0]; in hpi_cmn_control_cache_sync_to_msg() 600 pC->u.vol.an_log[1] = phr->u.c.an_log_value[1]; in hpi_cmn_control_cache_sync_to_msg()
|
/sound/sh/ |
D | aica.c | 368 channel->vol = dreamcastcard->master_volume; in snd_aicapcm_pcm_open() 519 ucontrol->value.integer.value[0] = dreamcastcard->channel->vol; in aica_pcmvolume_get() 527 unsigned int vol; in aica_pcmvolume_put() local 531 vol = ucontrol->value.integer.value[0]; in aica_pcmvolume_put() 532 if (vol > 0xff) in aica_pcmvolume_put() 534 if (unlikely(dreamcastcard->channel->vol == vol)) in aica_pcmvolume_put() 536 dreamcastcard->channel->vol = ucontrol->value.integer.value[0]; in aica_pcmvolume_put()
|
/sound/pci/au88x0/ |
D | au88x0_synth.c | 334 static void vortex_wt_SetVolume(vortex_t * vortex, int wt, int vol[]) 337 int ecx = vol[1], eax = vol[0]; 341 voice->parm0 |= (vol[0] & 0xff) << 0x10; 343 voice->parm1 |= (vol[1] & 0xff) << 0x10;
|
D | au88x0_pcm.c | 558 ucontrol->value.integer.value[i] = p->vol[i]; in snd_vortex_pcm_vol_get() 568 unsigned char vol; in snd_vortex_pcm_vol_put() local 574 if (p->vol[i] != ucontrol->value.integer.value[i]) { in snd_vortex_pcm_vol_put() 575 p->vol[i] = ucontrol->value.integer.value[i]; in snd_vortex_pcm_vol_put() 589 vol = p->vol[i]; in snd_vortex_pcm_vol_put() 591 vortex->mixplayb[i], mixin, vol); in snd_vortex_pcm_vol_put()
|
D | au88x0.h | 115 int vol[4]; member 272 unsigned char vol); 274 unsigned char vol);
|
/sound/pci/ |
D | rme96.c | 239 u16 vol[2]; /* cached volume of analog output */ member 530 snd_rme96_write_SPI(rme96, (rme96->vol[0] << 2) | 0x0); in snd_rme96_apply_dac_volume() 531 snd_rme96_write_SPI(rme96, (rme96->vol[1] << 2) | 0x2); in snd_rme96_apply_dac_volume() 533 snd_rme96_write_SPI(rme96, (rme96->vol[0] & 0x3FF) | 0x000); in snd_rme96_apply_dac_volume() 534 snd_rme96_write_SPI(rme96, (rme96->vol[1] & 0x3FF) | 0x400); in snd_rme96_apply_dac_volume() 1694 rme96->vol[0] = rme96->vol[1] = 0; in snd_rme96_create() 1838 snd_iprintf(buffer, " volume left: %u\n", rme96->vol[0]); in snd_rme96_proc_read() 1839 snd_iprintf(buffer, " volume right: %u\n", rme96->vol[1]); in snd_rme96_proc_read() 2234 u->value.integer.value[0] = rme96->vol[0]; in snd_rme96_dac_volume_get() 2235 u->value.integer.value[1] = rme96->vol[1]; in snd_rme96_dac_volume_get() [all …]
|
/sound/soc/sh/rcar/ |
D | dvc.c | 40 u32 vol[RSND_DVC_VOLUME_NUM]; in rsnd_dvc_volume_update() local 45 vol[i] = max / RSND_DVC_VOLUME_MAX * dvc->volume[i]; in rsnd_dvc_volume_update() 49 rsnd_mod_write(mod, DVC_VOL0R, vol[0]); in rsnd_dvc_volume_update() 50 rsnd_mod_write(mod, DVC_VOL1R, vol[1]); in rsnd_dvc_volume_update()
|
/sound/oss/ |
D | swarm_cs4297a.c | 294 unsigned short vol[10]; member 1310 return put_user(s->mix.vol[vidx - 1], (int *) arg); in mixer_ioctl() 1373 s->mix.vol[8] = ((unsigned int) r << 8) | l; in mixer_ioctl() 1375 s->mix.vol[8] = val; in mixer_ioctl() 1377 return put_user(s->mix.vol[8], (int *) arg); in mixer_ioctl() 1403 s->mix.vol[6] = l << 8; in mixer_ioctl() 1405 s->mix.vol[6] = val; in mixer_ioctl() 1407 return put_user(s->mix.vol[6], (int *) arg); in mixer_ioctl() 1429 s->mix.vol[7] = ((unsigned int) r << 8) | l; in mixer_ioctl() 1431 s->mix.vol[7] = val; in mixer_ioctl() [all …]
|
D | pss.c | 422 int vol = ((0x8000*volume)/100L); in set_synth_volume() local 424 pss_write(devc, vol); in set_synth_volume() 426 pss_write(devc, vol); in set_synth_volume() 431 int vol = (int)(((0xfd - 0xf0) * level)/100L) + 0xf0; in set_bass() local 433 pss_write(devc, vol | 0x0200); in set_bass() 438 int vol = (((0xfd - 0xf0) * level)/100L) + 0xf0; in set_treble() local 440 pss_write(devc, vol | 0x0300); in set_treble()
|
/sound/soc/sh/ |
D | siu_dai.c | 371 u32 vol; in siu_dai_get_volume() local 378 vol = port_info->playback.volume; in siu_dai_get_volume() 379 ucontrol->value.integer.value[0] = vol & 0xffff; in siu_dai_get_volume() 380 ucontrol->value.integer.value[1] = vol >> 16 & 0xffff; in siu_dai_get_volume() 384 vol = port_info->capture.volume; in siu_dai_get_volume() 385 ucontrol->value.integer.value[0] = vol & 0xffff; in siu_dai_get_volume() 386 ucontrol->value.integer.value[1] = vol >> 16 & 0xffff; in siu_dai_get_volume()
|
/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() 395 int vol = ucontrol->value.integer.value[i]; in pcxhr_pcm_vol_put() local 396 if (vol < PCXHR_DIGITAL_LEVEL_MIN || in pcxhr_pcm_vol_put() 397 vol > PCXHR_DIGITAL_LEVEL_MAX) in pcxhr_pcm_vol_put() 399 if (stored_volume[i] != vol) { in pcxhr_pcm_vol_put() 400 stored_volume[i] = vol; in pcxhr_pcm_vol_put()
|