/sound/ppc/ |
D | awacs.c | 140 int vol[2]; in snd_pmac_awacs_get_volume() local 143 vol[0] = (chip->awacs_reg[reg] >> lshift) & 0xf; in snd_pmac_awacs_get_volume() 144 vol[1] = chip->awacs_reg[reg] & 0xf; in snd_pmac_awacs_get_volume() 147 vol[0] = 0x0f - vol[0]; in snd_pmac_awacs_get_volume() 148 vol[1] = 0x0f - vol[1]; in snd_pmac_awacs_get_volume() 150 ucontrol->value.integer.value[0] = vol[0]; in snd_pmac_awacs_get_volume() 151 ucontrol->value.integer.value[1] = vol[1]; in snd_pmac_awacs_get_volume() 164 unsigned int vol[2]; in snd_pmac_awacs_put_volume() local 166 vol[0] = ucontrol->value.integer.value[0]; in snd_pmac_awacs_put_volume() 167 vol[1] = ucontrol->value.integer.value[1]; in snd_pmac_awacs_put_volume() [all …]
|
D | tumbler.c | 268 unsigned int vol[2]; in tumbler_put_master_volume() local 271 vol[0] = ucontrol->value.integer.value[0]; in tumbler_put_master_volume() 272 vol[1] = ucontrol->value.integer.value[1]; in tumbler_put_master_volume() 273 if (vol[0] >= ARRAY_SIZE(master_volume_table) || in tumbler_put_master_volume() 274 vol[1] >= ARRAY_SIZE(master_volume_table)) in tumbler_put_master_volume() 276 change = mix->master_vol[0] != vol[0] || in tumbler_put_master_volume() 277 mix->master_vol[1] != vol[1]; in tumbler_put_master_volume() 279 mix->master_vol[0] = vol[0]; in tumbler_put_master_volume() 280 mix->master_vol[1] = vol[1]; in tumbler_put_master_volume() 492 unsigned int vol; in tumbler_set_mono_volume() local [all …]
|
D | daca.c | 141 unsigned int vol[2]; in daca_put_volume() local 147 vol[0] = ucontrol->value.integer.value[0]; in daca_put_volume() 148 vol[1] = ucontrol->value.integer.value[1]; in daca_put_volume() 149 if (vol[0] > DACA_VOL_MAX || vol[1] > DACA_VOL_MAX) in daca_put_volume() 151 change = mix->left_vol != vol[0] || in daca_put_volume() 152 mix->right_vol != vol[1]; in daca_put_volume() 154 mix->left_vol = vol[0]; in daca_put_volume() 155 mix->right_vol = vol[1]; in daca_put_volume()
|
/sound/pci/ice1712/ |
D | se.c | 25 } vol[8]; member 450 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_volume_get() 451 uc->value.integer.value[1] = spec->vol[n].ch2; in se200pci_cont_volume_get() 461 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_boolean_get() 471 uc->value.enumerated.item[0] = spec->vol[n].ch1; in se200pci_cont_enum_get() 482 spec->vol[n].ch1, in se200pci_cont_update() 483 spec->vol[n].ch2); in se200pci_cont_update() 488 spec->vol[n].ch1, in se200pci_cont_update() 489 spec->vol[n].ch2); in se200pci_cont_update() 494 spec->vol[n].ch1, in se200pci_cont_update() [all …]
|
D | phase.c | 47 unsigned short vol[8]; member 266 unsigned short vol, unsigned short master) in wm_set_vol() argument 270 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) in wm_set_vol() 273 nvol = 127 - wm_vol[(((vol & ~WM_VOL_MUTE) * in wm_set_vol() 349 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put() local 350 if (vol > WM_VOL_MAX) in wm_master_vol_put() 352 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put() 353 if (vol != spec->master[ch]) { in wm_master_vol_put() 355 spec->master[ch] = vol; in wm_master_vol_put() 358 spec->vol[dac + ch], in wm_master_vol_put() [all …]
|
D | prodigy_hifi.c | 30 unsigned short vol[8]; member 259 ucontrol->value.integer.value[i] = spec->vol[i]; in ak4396_dac_vol_get() 273 if (ucontrol->value.integer.value[i] != spec->vol[i]) { in ak4396_dac_vol_put() 274 spec->vol[i] = ucontrol->value.integer.value[i]; in ak4396_dac_vol_put() 276 spec->vol[i] & 0xff); in ak4396_dac_vol_put() 313 unsigned short vol, unsigned short master) in wm_set_vol() argument 317 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) in wm_set_vol() 320 nvol = (((vol & ~WM_VOL_MUTE) * (master & ~WM_VOL_MUTE)) / 128) in wm_set_vol() 330 unsigned short vol, unsigned short master) in wm8766_set_vol() argument 334 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) in wm8766_set_vol() [all …]
|
D | maya44.c | 161 const struct maya_vol_info *vol = &vol_info[idx]; in maya_vol_info() local 166 uinfo->value.integer.max = vol->maxval; in maya_vol_info() 192 const struct maya_vol_info *vol = &vol_info[idx]; in maya_vol_put() local 199 if (val > vol->maxval) in maya_vol_put() 200 val = vol->maxval; in maya_vol_put() 204 data = vol->mute; in maya_vol_put() 206 data = (val - 1) + vol->offset; in maya_vol_put() 207 data |= vol->update; in maya_vol_put() 208 changed |= wm8776_write_bits(chip->ice, wm, vol->regs[ch], in maya_vol_put() 209 vol->mask | vol->update, data); in maya_vol_put() [all …]
|
D | aureon.c | 53 unsigned short vol[8]; member 359 unsigned short vol; in aureon_ac97_vol_get() local 363 vol = aureon_ac97_read(ice, kcontrol->private_value & 0x7F); in aureon_ac97_vol_get() 364 ucontrol->value.integer.value[0] = 0x1F - (vol & 0x1F); in aureon_ac97_vol_get() 366 ucontrol->value.integer.value[1] = 0x1F - ((vol >> 8) & 0x1F); in aureon_ac97_vol_get() 682 static void wm_set_vol(struct snd_ice1712 *ice, unsigned int index, unsigned short vol, unsigned sh… in wm_set_vol() argument 686 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) { in wm_set_vol() 689 nvol = ((vol % WM_VOL_CNT) * (master % WM_VOL_CNT)) / in wm_set_vol() 761 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put() local 762 if (vol > WM_VOL_MAX) in wm_master_vol_put() [all …]
|
D | wtm.c | 196 unsigned char vol; in stac9460_dac_vol_get() local 206 vol = stac9460_get(ice, idx) & 0x7f; in stac9460_dac_vol_get() 208 vol = stac9460_2_get(ice, idx - 6) & 0x7f; in stac9460_dac_vol_get() 209 ucontrol->value.integer.value[0] = 0x7f - vol; in stac9460_dac_vol_get() 331 unsigned char vol; in stac9460_adc_vol_get() local 337 vol = stac9460_get(ice, reg) & 0x0f; in stac9460_adc_vol_get() 338 ucontrol->value.integer.value[i] = 0x0f - vol; in stac9460_adc_vol_get() 343 vol = stac9460_2_get(ice, reg) & 0x0f; in stac9460_adc_vol_get() 344 ucontrol->value.integer.value[i] = 0x0f - vol; in stac9460_adc_vol_get()
|
D | prodigy192.c | 146 unsigned char vol; in stac9460_dac_vol_get() local 152 vol = stac9460_get(ice, idx) & 0x7f; in stac9460_dac_vol_get() 153 ucontrol->value.integer.value[0] = 0x7f - vol; in stac9460_dac_vol_get() 238 unsigned char vol; in stac9460_adc_vol_get() local 242 vol = stac9460_get(ice, reg) & 0x0f; in stac9460_adc_vol_get() 243 ucontrol->value.integer.value[i] = 0x0f - vol; in stac9460_adc_vol_get()
|
/sound/soc/codecs/ |
D | tas5805m.c | 166 int vol[2]; member 174 static void set_dsp_scale(struct regmap *rm, int offset, int vol) in set_dsp_scale() argument 177 uint32_t x = tas5805m_volume[vol]; in set_dsp_scale() 193 tas5805m->is_muted, tas5805m->vol[0], tas5805m->vol[1]); in tas5805m_refresh() 203 set_dsp_scale(rm, 0x24, tas5805m->vol[0]); in tas5805m_refresh() 204 set_dsp_scale(rm, 0x28, tas5805m->vol[1]); in tas5805m_refresh() 235 ucontrol->value.integer.value[0] = tas5805m->vol[0]; in tas5805m_vol_get() 236 ucontrol->value.integer.value[1] = tas5805m->vol[1]; in tas5805m_vol_get() 261 if (tas5805m->vol[0] != ucontrol->value.integer.value[0] || in tas5805m_vol_put() 262 tas5805m->vol[1] != ucontrol->value.integer.value[1]) { in tas5805m_vol_put() [all …]
|
/sound/synth/emux/ |
D | emux_synth.c | 742 int vol; in calc_volume() local 753 vol = (vp->velocity * main_vol * expression_vol) / (127*127); in calc_volume() 754 vol = vol * vp->reg.amplitude / 127; in calc_volume() 756 LIMITVALUE(vol, 0, 127); in calc_volume() 759 vol = snd_sf_vol_table[vol]; in calc_volume() 765 vol = voltab1[main_vol] + voltab2[vp->velocity]; in calc_volume() 766 vol = (vol * 8) / 3; in calc_volume() 767 vol += vp->reg.attenuation; in calc_volume() 768 vol += ((0x100 - vol) * expressiontab[expression_vol])/128; in calc_volume() 773 vol += snd_sf_vol_table[master_vol]; in calc_volume() [all …]
|
/sound/isa/gus/ |
D | gus_volume.c | 15 unsigned short snd_gf1_lvol_to_gvol_raw(unsigned int vol) in snd_gf1_lvol_to_gvol_raw() argument 19 if (vol > 65535) in snd_gf1_lvol_to_gvol_raw() 20 vol = 65535; in snd_gf1_lvol_to_gvol_raw() 21 tmp = vol; in snd_gf1_lvol_to_gvol_raw() 32 m = vol - (1 << e); in snd_gf1_lvol_to_gvol_raw()
|
D | gus_pcm.c | 100 unsigned short vol; in snd_gf1_pcm_trigger_up() local 132 vol = !voice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right; in snd_gf1_pcm_trigger_up() 143 snd_gf1_write8(gus, SNDRV_GF1_VB_VOLUME_END, vol >> 8); in snd_gf1_pcm_trigger_up() 259 unsigned short vol; in snd_gf1_pcm_interrupt_volume() local 277 vol = !cvoice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right; in snd_gf1_pcm_interrupt_volume() 280 snd_gf1_write16(gus, SNDRV_GF1_VW_VOLUME, vol); in snd_gf1_pcm_interrupt_volume() 771 unsigned short val1, val2, vol; in snd_gf1_pcm_volume_put() local 798 …vol = pvoice == pcmp->pvoices[0] ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_righ… in snd_gf1_pcm_volume_put() 799 snd_gf1_write16(gus, SNDRV_GF1_VW_VOLUME, vol); in snd_gf1_pcm_volume_put()
|
/sound/core/ |
D | vmaster.c | 153 int err, ch, vol; in follower_put_val() local 168 vol = ucontrol->value.integer.value[ch]; in follower_put_val() 169 vol += follower->master->val - follower->master->info.max_val; in follower_put_val() 170 if (vol < follower->info.min_val) in follower_put_val() 171 vol = follower->info.min_val; in follower_put_val() 172 else if (vol > follower->info.max_val) in follower_put_val() 173 vol = follower->info.max_val; in follower_put_val() 174 ucontrol->value.integer.value[ch] = vol; in follower_put_val()
|
/sound/sh/ |
D | aica.c | 339 channel->vol = dreamcastcard->master_volume; in snd_aicapcm_pcm_open() 468 ucontrol->value.integer.value[0] = dreamcastcard->channel->vol; in aica_pcmvolume_get() 476 unsigned int vol; in aica_pcmvolume_put() local 480 vol = ucontrol->value.integer.value[0]; in aica_pcmvolume_put() 481 if (vol > 0xff) in aica_pcmvolume_put() 483 if (unlikely(dreamcastcard->channel->vol == vol)) in aica_pcmvolume_put() 485 dreamcastcard->channel->vol = ucontrol->value.integer.value[0]; in aica_pcmvolume_put()
|
/sound/pci/asihpi/ |
D | hpicmn.c | 346 phr->u.c.an_log_value[0] = pC->u.vol.an_log[0]; in hpi_check_control_cache_single() 347 phr->u.c.an_log_value[1] = pC->u.vol.an_log[1]; in hpi_check_control_cache_single() 349 if (pC->u.vol.flags & HPI_VOLUME_FLAG_HAS_MUTE) { in hpi_check_control_cache_single() 350 if (pC->u.vol.flags & HPI_VOLUME_FLAG_MUTED) in hpi_check_control_cache_single() 561 pC->u.vol.an_log[0] = phr->u.c.an_log_value[0]; in hpi_cmn_control_cache_sync_to_msg_single() 562 pC->u.vol.an_log[1] = phr->u.c.an_log_value[1]; in hpi_cmn_control_cache_sync_to_msg_single() 565 pC->u.vol.flags |= HPI_VOLUME_FLAG_MUTED; in hpi_cmn_control_cache_sync_to_msg_single() 567 pC->u.vol.flags &= ~HPI_VOLUME_FLAG_MUTED; in hpi_cmn_control_cache_sync_to_msg_single() 584 pC->u.vol.an_log[0] = phr->u.c.an_log_value[0]; in hpi_cmn_control_cache_sync_to_msg_single() 585 pC->u.vol.an_log[1] = phr->u.c.an_log_value[1]; in hpi_cmn_control_cache_sync_to_msg_single()
|
/sound/pci/ |
D | rme96.c | 219 u16 vol[2]; /* cached volume of analog output */ member 524 snd_rme96_write_SPI(rme96, (rme96->vol[0] << 2) | 0x0); in snd_rme96_apply_dac_volume() 525 snd_rme96_write_SPI(rme96, (rme96->vol[1] << 2) | 0x2); in snd_rme96_apply_dac_volume() 527 snd_rme96_write_SPI(rme96, (rme96->vol[0] & 0x3FF) | 0x000); in snd_rme96_apply_dac_volume() 528 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() 2211 u->value.integer.value[0] = rme96->vol[0]; in snd_rme96_dac_volume_get() 2212 u->value.integer.value[1] = rme96->vol[1]; in snd_rme96_dac_volume_get() [all …]
|
/sound/pci/hda/ |
D | hda_cs_dsp_ctl.c | 79 unsigned int out, rd, wr, vol; in wmfw_convert_flags() local 83 vol = SNDRV_CTL_ELEM_ACCESS_VOLATILE; in wmfw_convert_flags() 92 out |= vol; in wmfw_convert_flags() 94 out |= rd | wr | vol; in wmfw_convert_flags()
|
/sound/pci/au88x0/ |
D | au88x0_synth.c | 325 static void vortex_wt_SetVolume(vortex_t * vortex, int wt, int vol[]) 328 int ecx = vol[1], eax = vol[0]; 332 voice->parm0 |= (vol[0] & 0xff) << 0x10; 334 voice->parm1 |= (vol[1] & 0xff) << 0x10;
|
D | au88x0_pcm.c | 539 ucontrol->value.integer.value[i] = p->vol[i]; in snd_vortex_pcm_vol_get() 549 unsigned char vol; in snd_vortex_pcm_vol_put() local 555 if (p->vol[i] != ucontrol->value.integer.value[i]) { in snd_vortex_pcm_vol_put() 556 p->vol[i] = ucontrol->value.integer.value[i]; in snd_vortex_pcm_vol_put() 570 vol = p->vol[i]; in snd_vortex_pcm_vol_put() 572 vortex->mixplayb[i], mixin, vol); in snd_vortex_pcm_vol_put()
|
D | au88x0.h | 101 int vol[4]; member 258 unsigned char vol); 260 unsigned char vol);
|
/sound/soc/sh/ |
D | siu_dai.c | 357 u32 vol; in siu_dai_get_volume() local 364 vol = port_info->playback.volume; in siu_dai_get_volume() 365 ucontrol->value.integer.value[0] = vol & 0xffff; in siu_dai_get_volume() 366 ucontrol->value.integer.value[1] = vol >> 16 & 0xffff; in siu_dai_get_volume() 370 vol = port_info->capture.volume; in siu_dai_get_volume() 371 ucontrol->value.integer.value[0] = vol & 0xffff; in siu_dai_get_volume() 372 ucontrol->value.integer.value[1] = vol >> 16 & 0xffff; in siu_dai_get_volume()
|
/sound/soc/uniphier/ |
D | aio-cpu.c | 309 aio_port_set_volume(sub, sub->vol); in uniphier_aio_hw_params() 397 sub->vol = AUD_VOL_INIT; in uniphier_aio_dai_probe() 528 ucontrol->value.integer.value[0] = sub->vol; in uniphier_aio_vol_get() 545 if (sub->vol == ucontrol->value.integer.value[0]) in uniphier_aio_vol_put() 547 sub->vol = ucontrol->value.integer.value[0]; in uniphier_aio_vol_put() 549 aio_port_set_volume(sub, sub->vol); in uniphier_aio_vol_put()
|
/sound/pci/pcxhr/ |
D | pcxhr_mixer.c | 42 int err, vol; in pcxhr_update_analog_audio_level() local 52 vol = chip->analog_playback_volume[channel]; in pcxhr_update_analog_audio_level() 54 vol = PCXHR_LINE_PLAYBACK_LEVEL_MIN; in pcxhr_update_analog_audio_level() 56 rmh.cmd[2] = PCXHR_LINE_PLAYBACK_LEVEL_MAX - vol; in pcxhr_update_analog_audio_level() 382 int vol = ucontrol->value.integer.value[i]; in pcxhr_pcm_vol_put() local 383 if (vol < PCXHR_DIGITAL_LEVEL_MIN || in pcxhr_pcm_vol_put() 384 vol > PCXHR_DIGITAL_LEVEL_MAX) in pcxhr_pcm_vol_put() 386 if (stored_volume[i] != vol) { in pcxhr_pcm_vol_put() 387 stored_volume[i] = vol; in pcxhr_pcm_vol_put()
|