Home
last modified time | relevance | path

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

12

/sound/ppc/
Dawacs.c140 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 …]
Dtumbler.c268 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()
488 unsigned int vol; in tumbler_set_mono_volume() local
[all …]
Ddaca.c138 unsigned int vol[2]; in daca_put_volume() local
143 vol[0] = ucontrol->value.integer.value[0]; in daca_put_volume()
144 vol[1] = ucontrol->value.integer.value[1]; in daca_put_volume()
145 if (vol[0] > DACA_VOL_MAX || vol[1] > DACA_VOL_MAX) in daca_put_volume()
147 change = mix->left_vol != vol[0] || in daca_put_volume()
148 mix->right_vol != vol[1]; in daca_put_volume()
150 mix->left_vol = vol[0]; in daca_put_volume()
151 mix->right_vol = vol[1]; in daca_put_volume()
/sound/pci/ice1712/
Dse.c25 } 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 …]
Dphase.c47 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 …]
Dprodigy_hifi.c30 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 …]
Dmaya44.c161 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 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 …]
Daureon.c53 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 …]
Dwtm.c196 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()
Dprodigy192.c146 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/synth/emux/
Demux_synth.c742 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/
Dgus_volume.c15 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()
Dgus_pcm.c100 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()
776 unsigned short val1, val2, vol; in snd_gf1_pcm_volume_put() local
803vol = pvoice == pcmp->pvoices[0] ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_righ… in snd_gf1_pcm_volume_put()
804 snd_gf1_write16(gus, SNDRV_GF1_VW_VOLUME, vol); in snd_gf1_pcm_volume_put()
/sound/core/
Dvmaster.c153 int err, ch, vol; in slave_put_val() local
168 vol = ucontrol->value.integer.value[ch]; in slave_put_val()
169 vol += slave->master->val - slave->master->info.max_val; in slave_put_val()
170 if (vol < slave->info.min_val) in slave_put_val()
171 vol = slave->info.min_val; in slave_put_val()
172 else if (vol > slave->info.max_val) in slave_put_val()
173 vol = slave->info.max_val; in slave_put_val()
174 ucontrol->value.integer.value[ch] = vol; in slave_put_val()
/sound/pci/asihpi/
Dhpicmn.c344 phr->u.c.an_log_value[0] = pC->u.vol.an_log[0]; in hpi_check_control_cache_single()
345 phr->u.c.an_log_value[1] = pC->u.vol.an_log[1]; in hpi_check_control_cache_single()
347 if (pC->u.vol.flags & HPI_VOLUME_FLAG_HAS_MUTE) { in hpi_check_control_cache_single()
348 if (pC->u.vol.flags & HPI_VOLUME_FLAG_MUTED) in hpi_check_control_cache_single()
559 pC->u.vol.an_log[0] = phr->u.c.an_log_value[0]; in hpi_cmn_control_cache_sync_to_msg_single()
560 pC->u.vol.an_log[1] = phr->u.c.an_log_value[1]; in hpi_cmn_control_cache_sync_to_msg_single()
563 pC->u.vol.flags |= HPI_VOLUME_FLAG_MUTED; 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()
582 pC->u.vol.an_log[0] = phr->u.c.an_log_value[0]; in hpi_cmn_control_cache_sync_to_msg_single()
583 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.c340 channel->vol = dreamcastcard->master_volume; in snd_aicapcm_pcm_open()
489 ucontrol->value.integer.value[0] = dreamcastcard->channel->vol; in aica_pcmvolume_get()
497 unsigned int vol; in aica_pcmvolume_put() local
501 vol = ucontrol->value.integer.value[0]; in aica_pcmvolume_put()
502 if (vol > 0xff) in aica_pcmvolume_put()
504 if (unlikely(dreamcastcard->channel->vol == vol)) in aica_pcmvolume_put()
506 dreamcastcard->channel->vol = ucontrol->value.integer.value[0]; in aica_pcmvolume_put()
/sound/pci/
Drme96.c224 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()
1706 rme96->vol[0] = rme96->vol[1] = 0; in snd_rme96_create()
1850 snd_iprintf(buffer, " volume left: %u\n", rme96->vol[0]); in snd_rme96_proc_read()
1851 snd_iprintf(buffer, " volume right: %u\n", rme96->vol[1]); in snd_rme96_proc_read()
2223 u->value.integer.value[0] = rme96->vol[0]; in snd_rme96_dac_volume_get()
2224 u->value.integer.value[1] = rme96->vol[1]; in snd_rme96_dac_volume_get()
[all …]
/sound/pci/au88x0/
Dau88x0_synth.c325 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;
Dau88x0_pcm.c549 ucontrol->value.integer.value[i] = p->vol[i]; in snd_vortex_pcm_vol_get()
559 unsigned char vol; in snd_vortex_pcm_vol_put() local
565 if (p->vol[i] != ucontrol->value.integer.value[i]) { in snd_vortex_pcm_vol_put()
566 p->vol[i] = ucontrol->value.integer.value[i]; in snd_vortex_pcm_vol_put()
580 vol = p->vol[i]; in snd_vortex_pcm_vol_put()
582 vortex->mixplayb[i], mixin, vol); in snd_vortex_pcm_vol_put()
Dau88x0.h101 int vol[4]; member
258 unsigned char vol);
260 unsigned char vol);
/sound/soc/sh/
Dsiu_dai.c357 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/
Daio-cpu.c314 aio_port_set_volume(sub, sub->vol); in uniphier_aio_hw_params()
402 sub->vol = AUD_VOL_INIT; in uniphier_aio_dai_probe()
512 ucontrol->value.integer.value[0] = sub->vol; in uniphier_aio_vol_get()
529 if (sub->vol == ucontrol->value.integer.value[0]) in uniphier_aio_vol_put()
531 sub->vol = ucontrol->value.integer.value[0]; in uniphier_aio_vol_put()
533 aio_port_set_volume(sub, sub->vol); in uniphier_aio_vol_put()
/sound/pci/pcxhr/
Dpcxhr_mixer.c42 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()
/sound/isa/cs423x/
Dcs4236_lib.c655 static inline int snd_cs4236_mixer_master_digital_invert_volume(int vol) in snd_cs4236_mixer_master_digital_invert_volume() argument
657 return (vol < 64) ? 63 - vol : 64 + (71 - vol); in snd_cs4236_mixer_master_digital_invert_volume()
699 static inline int snd_cs4235_mixer_output_accu_get_volume(int vol) in snd_cs4235_mixer_output_accu_get_volume() argument
701 switch ((vol >> 5) & 3) { in snd_cs4235_mixer_output_accu_get_volume()
710 static inline int snd_cs4235_mixer_output_accu_set_volume(int vol) in snd_cs4235_mixer_output_accu_set_volume() argument
712 switch (vol & 3) { in snd_cs4235_mixer_output_accu_set_volume()
/sound/pci/mixart/
Dmixart_mixer.c866 int vol = ucontrol->value.integer.value[i]; in mixart_pcm_vol_put() local
867 if (vol < MIXART_DIGITAL_LEVEL_MIN || in mixart_pcm_vol_put()
868 vol > MIXART_DIGITAL_LEVEL_MAX) in mixart_pcm_vol_put()
870 if (stored_volume[i] != vol) { in mixart_pcm_vol_put()
871 stored_volume[i] = vol; in mixart_pcm_vol_put()

12