Home
last modified time | relevance | path

Searched refs:vol (Results 1 – 25 of 45) sorted by relevance

12

/sound/ppc/
Dawacs.c153 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 …]
Dtumbler.c282 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 …]
Ddaca.c151 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/
Dse.c39 } vol[8]; member
464 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_volume_get()
465 uc->value.integer.value[1] = spec->vol[n].ch2; in se200pci_cont_volume_get()
475 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_boolean_get()
485 uc->value.enumerated.item[0] = spec->vol[n].ch1; in se200pci_cont_enum_get()
496 spec->vol[n].ch1, in se200pci_cont_update()
497 spec->vol[n].ch2); in se200pci_cont_update()
502 spec->vol[n].ch1, in se200pci_cont_update()
503 spec->vol[n].ch2); in se200pci_cont_update()
508 spec->vol[n].ch1, in se200pci_cont_update()
[all …]
Dphase.c61 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 …]
Dprodigy_hifi.c44 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 …]
Dmaya44.c175 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 …]
Daureon.c67 unsigned short vol[8]; member
373 unsigned short vol; in aureon_ac97_vol_get() local
377 vol = aureon_ac97_read(ice, kcontrol->private_value & 0x7F); in aureon_ac97_vol_get()
378 ucontrol->value.integer.value[0] = 0x1F - (vol & 0x1F); in aureon_ac97_vol_get()
380 ucontrol->value.integer.value[1] = 0x1F - ((vol >> 8) & 0x1F); in aureon_ac97_vol_get()
696 static void wm_set_vol(struct snd_ice1712 *ice, unsigned int index, unsigned short vol, unsigned sh… in wm_set_vol() argument
700 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) { in wm_set_vol()
703 nvol = ((vol % WM_VOL_CNT) * (master % WM_VOL_CNT)) / in wm_set_vol()
775 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put() local
776 if (vol > WM_VOL_MAX) in wm_master_vol_put()
[all …]
Dwtm.c210 unsigned char vol; in stac9460_dac_vol_get() local
220 vol = stac9460_get(ice, idx) & 0x7f; in stac9460_dac_vol_get()
222 vol = stac9460_2_get(ice, idx - 6) & 0x7f; in stac9460_dac_vol_get()
223 ucontrol->value.integer.value[0] = 0x7f - vol; in stac9460_dac_vol_get()
345 unsigned char vol; in stac9460_adc_vol_get() local
351 vol = stac9460_get(ice, reg) & 0x0f; in stac9460_adc_vol_get()
352 ucontrol->value.integer.value[i] = 0x0f - vol; in stac9460_adc_vol_get()
357 vol = stac9460_2_get(ice, reg) & 0x0f; in stac9460_adc_vol_get()
358 ucontrol->value.integer.value[i] = 0x0f - vol; in stac9460_adc_vol_get()
Dprodigy192.c160 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/
Demux_synth.c756 int vol; in calc_volume() local
767 vol = (vp->velocity * main_vol * expression_vol) / (127*127); in calc_volume()
768 vol = vol * vp->reg.amplitude / 127; in calc_volume()
770 LIMITVALUE(vol, 0, 127); in calc_volume()
773 vol = snd_sf_vol_table[vol]; in calc_volume()
779 vol = voltab1[main_vol] + voltab2[vp->velocity]; in calc_volume()
780 vol = (vol * 8) / 3; in calc_volume()
781 vol += vp->reg.attenuation; in calc_volume()
782 vol += ((0x100 - vol) * expressiontab[expression_vol])/128; in calc_volume()
787 vol += snd_sf_vol_table[master_vol]; in calc_volume()
[all …]
/sound/isa/gus/
Dgus_volume.c30 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()
Dgus_pcm.c115 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
801vol = 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/
Dvmaster.c154 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/
Dhpicmn.c355 phr->u.c.an_log_value[0] = pC->u.vol.an_log[0]; in hpi_check_control_cache_single()
356 phr->u.c.an_log_value[1] = pC->u.vol.an_log[1]; in hpi_check_control_cache_single()
358 if (pC->u.vol.flags & HPI_VOLUME_FLAG_HAS_MUTE) { in hpi_check_control_cache_single()
359 if (pC->u.vol.flags & HPI_VOLUME_FLAG_MUTED) in hpi_check_control_cache_single()
570 pC->u.vol.an_log[0] = phr->u.c.an_log_value[0]; in hpi_cmn_control_cache_sync_to_msg_single()
571 pC->u.vol.an_log[1] = phr->u.c.an_log_value[1]; in hpi_cmn_control_cache_sync_to_msg_single()
574 pC->u.vol.flags |= HPI_VOLUME_FLAG_MUTED; in hpi_cmn_control_cache_sync_to_msg_single()
576 pC->u.vol.flags &= ~HPI_VOLUME_FLAG_MUTED; in hpi_cmn_control_cache_sync_to_msg_single()
593 pC->u.vol.an_log[0] = phr->u.c.an_log_value[0]; in hpi_cmn_control_cache_sync_to_msg_single()
594 pC->u.vol.an_log[1] = phr->u.c.an_log_value[1]; in hpi_cmn_control_cache_sync_to_msg_single()
/sound/sh/
Daica.c363 channel->vol = dreamcastcard->master_volume; in snd_aicapcm_pcm_open()
514 ucontrol->value.integer.value[0] = dreamcastcard->channel->vol; in aica_pcmvolume_get()
522 unsigned int vol; in aica_pcmvolume_put() local
526 vol = ucontrol->value.integer.value[0]; in aica_pcmvolume_put()
527 if (vol > 0xff) in aica_pcmvolume_put()
529 if (unlikely(dreamcastcard->channel->vol == vol)) in aica_pcmvolume_put()
531 dreamcastcard->channel->vol = ucontrol->value.integer.value[0]; in aica_pcmvolume_put()
/sound/pci/
Drme96.c238 u16 vol[2]; /* cached volume of analog output */ member
529 snd_rme96_write_SPI(rme96, (rme96->vol[0] << 2) | 0x0); in snd_rme96_apply_dac_volume()
530 snd_rme96_write_SPI(rme96, (rme96->vol[1] << 2) | 0x2); in snd_rme96_apply_dac_volume()
532 snd_rme96_write_SPI(rme96, (rme96->vol[0] & 0x3FF) | 0x000); in snd_rme96_apply_dac_volume()
533 snd_rme96_write_SPI(rme96, (rme96->vol[1] & 0x3FF) | 0x400); in snd_rme96_apply_dac_volume()
1702 rme96->vol[0] = rme96->vol[1] = 0; in snd_rme96_create()
1846 snd_iprintf(buffer, " volume left: %u\n", rme96->vol[0]); in snd_rme96_proc_read()
1847 snd_iprintf(buffer, " volume right: %u\n", rme96->vol[1]); in snd_rme96_proc_read()
2222 u->value.integer.value[0] = rme96->vol[0]; in snd_rme96_dac_volume_get()
2223 u->value.integer.value[1] = rme96->vol[1]; in snd_rme96_dac_volume_get()
[all …]
/sound/pci/au88x0/
Dau88x0_synth.c337 static void vortex_wt_SetVolume(vortex_t * vortex, int wt, int vol[])
340 int ecx = vol[1], eax = vol[0];
344 voice->parm0 |= (vol[0] & 0xff) << 0x10;
346 voice->parm1 |= (vol[1] & 0xff) << 0x10;
Dau88x0_pcm.c561 ucontrol->value.integer.value[i] = p->vol[i]; in snd_vortex_pcm_vol_get()
571 unsigned char vol; in snd_vortex_pcm_vol_put() local
577 if (p->vol[i] != ucontrol->value.integer.value[i]) { in snd_vortex_pcm_vol_put()
578 p->vol[i] = ucontrol->value.integer.value[i]; in snd_vortex_pcm_vol_put()
592 vol = p->vol[i]; in snd_vortex_pcm_vol_put()
594 vortex->mixplayb[i], mixin, vol); in snd_vortex_pcm_vol_put()
Dau88x0.h113 int vol[4]; member
270 unsigned char vol);
272 unsigned char vol);
/sound/oss/
Dswarm_cs4297a.c294 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 …]
Dpss.c422 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/
Dsiu_dai.c371 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/
Dpcxhr_mixer.c55 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()
/sound/isa/cs423x/
Dcs4236_lib.c669 static inline int snd_cs4236_mixer_master_digital_invert_volume(int vol) in snd_cs4236_mixer_master_digital_invert_volume() argument
671 return (vol < 64) ? 63 - vol : 64 + (71 - vol); in snd_cs4236_mixer_master_digital_invert_volume()
713 static inline int snd_cs4235_mixer_output_accu_get_volume(int vol) in snd_cs4235_mixer_output_accu_get_volume() argument
715 switch ((vol >> 5) & 3) { in snd_cs4235_mixer_output_accu_get_volume()
724 static inline int snd_cs4235_mixer_output_accu_set_volume(int vol) in snd_cs4235_mixer_output_accu_set_volume() argument
726 switch (vol & 3) { in snd_cs4235_mixer_output_accu_set_volume()

12