Home
last modified time | relevance | path

Searched refs:volume (Results 1 – 25 of 33) sorted by relevance

12

/sound/ppc/
Dburgundy.c137 long *volume, int shift) in snd_pmac_burgundy_write_volume() argument
141 if (volume[0] < 0 || volume[0] > 100 || in snd_pmac_burgundy_write_volume()
142 volume[1] < 0 || volume[1] > 100) in snd_pmac_burgundy_write_volume()
144 lvolume = volume[0] ? volume[0] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume()
145 rvolume = volume[1] ? volume[1] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume()
156 long *volume, int shift) in snd_pmac_burgundy_read_volume() argument
162 volume[0] = wvolume & 0xff; in snd_pmac_burgundy_read_volume()
163 if (volume[0] >= BURGUNDY_VOLUME_OFFSET) in snd_pmac_burgundy_read_volume()
164 volume[0] -= BURGUNDY_VOLUME_OFFSET; in snd_pmac_burgundy_read_volume()
166 volume[0] = 0; in snd_pmac_burgundy_read_volume()
[all …]
Dbeep.c34 int volume; /* mixer volume: 0-100 */ member
146 if (hz == beep->hz && beep->volume == beep->volume_play) { in snd_pmac_beep_event()
156 p[0] = p[1] = beep_wform[j >> 8] * beep->volume; in snd_pmac_beep_event()
160 beep->volume_play = beep->volume; in snd_pmac_beep_event()
190 ucontrol->value.integer.value[0] = chip->beep->volume; in snd_pmac_get_beep()
201 oval = chip->beep->volume; in snd_pmac_put_beep()
205 chip->beep->volume = nval; in snd_pmac_put_beep()
206 return oval != chip->beep->volume; in snd_pmac_put_beep()
251 beep->volume = BEEP_VOLUME; in snd_pmac_attach_beep()
/sound/soc/intel/
Dsst-haswell-pcm.c96 u32 volume[2]; member
147 u32 volume; in hsw_stream_volume_put() local
152 pcm_data->volume[0] = in hsw_stream_volume_put()
154 pcm_data->volume[1] = in hsw_stream_volume_put()
162 volume = hsw_mixer_to_ipc(ucontrol->value.integer.value[0]); in hsw_stream_volume_put()
163 sst_hsw_stream_set_volume(hsw, pcm_data->stream, 0, 2, volume); in hsw_stream_volume_put()
165 volume = hsw_mixer_to_ipc(ucontrol->value.integer.value[0]); in hsw_stream_volume_put()
166 sst_hsw_stream_set_volume(hsw, pcm_data->stream, 0, 0, volume); in hsw_stream_volume_put()
167 volume = hsw_mixer_to_ipc(ucontrol->value.integer.value[1]); in hsw_stream_volume_put()
168 sst_hsw_stream_set_volume(hsw, pcm_data->stream, 0, 1, volume); in hsw_stream_volume_put()
[all …]
Dsst-haswell-ipc.c1008 u32 stage_id, u32 channel, u32 *volume) in sst_hsw_stream_get_volume() argument
1013 sst_dsp_read(hsw->dsp, volume, in sst_hsw_stream_get_volume()
1015 sizeof(*volume)); in sst_hsw_stream_get_volume()
1033 struct sst_hsw_stream *stream, u32 stage_id, u32 channel, u32 volume) in sst_hsw_stream_set_volume() argument
1045 stream->mute_volume[channel] = volume; in sst_hsw_stream_set_volume()
1057 req->target_volume = volume; in sst_hsw_stream_set_volume()
1105 u32 *volume) in sst_hsw_mixer_get_volume() argument
1110 sst_dsp_read(hsw->dsp, volume, in sst_hsw_mixer_get_volume()
1112 sizeof(*volume)); in sst_hsw_mixer_get_volume()
1129 u32 volume) in sst_hsw_mixer_set_volume() argument
[all …]
Dsst-haswell-ipc.h380 struct sst_hsw_stream *stream, u32 stage_id, u32 channel, u32 volume);
382 struct sst_hsw_stream *stream, u32 stage_id, u32 channel, u32 *volume);
393 u32 volume);
395 u32 *volume);
/sound/oss/
Dopl3.c50 int volume; member
285 devc->voc[voice].volume = 64; in opl3_kill_note()
351 static void calc_vol(unsigned char *regbyte, int volume, int main_vol) in calc_vol() argument
357 volume = (volume * main_vol) / 127; in calc_vol()
360 level += fm_volume_table[volume]; in calc_vol()
370 static void set_voice_volume(int voice, int volume, int main_vol) in set_voice_volume() argument
397 calc_vol(&vol1, volume, main_vol); in set_voice_volume()
398 calc_vol(&vol2, volume, main_vol); in set_voice_volume()
402 calc_vol(&vol2, volume, main_vol); in set_voice_volume()
428 calc_vol(&vol4, volume, main_vol); in set_voice_volume()
[all …]
Dwaveartist.c1535 signed int volume = 255; in vnc_volume_slider() local
1544 while (volume && (inb(0x201) & 0x01)) in vnc_volume_slider()
1545 volume--; in vnc_volume_slider()
1551 volume = 0x00ffffff - *CSR_TIMER1_VALUE; in vnc_volume_slider()
1555 volume = 150 - (volume >> 5); in vnc_volume_slider()
1557 volume = (volume >> 6) - 25; in vnc_volume_slider()
1560 if (volume < 0) in vnc_volume_slider()
1561 volume = 0; in vnc_volume_slider()
1563 if (volume > 100) in vnc_volume_slider()
1564 volume = 100; in vnc_volume_slider()
[all …]
Dpss.c420 static void set_synth_volume(struct pss_confdata *devc, int volume) in set_synth_volume() argument
422 int vol = ((0x8000*volume)/100L); in set_synth_volume()
463 unsigned int left, volume; in set_volume_mono() local
464 if (get_user(volume, p)) in set_volume_mono()
467 left = volume & 0xff; in set_volume_mono()
478 unsigned int left, right, volume; in set_volume_stereo() local
479 if (get_user(volume, p)) in set_volume_stereo()
482 left = volume & 0xff; in set_volume_stereo()
485 right = (volume >> 8) & 0xff; in set_volume_stereo()
Dmidi_synth.h5 int midi_synth_start_note (int dev, int channel, int note, int volume);
/sound/i2c/other/
Dpt2258.c68 pt->volume[i] = 0; in snd_pt2258_reset()
101 ucontrol->value.integer.value[0] = 79 - pt->volume[base]; in pt2258_stereo_volume_get()
102 ucontrol->value.integer.value[1] = 79 - pt->volume[base + 1]; in pt2258_stereo_volume_get()
118 if (val0 == pt->volume[base] && val1 == pt->volume[base + 1]) in pt2258_stereo_volume_put()
121 pt->volume[base] = val0; in pt2258_stereo_volume_put()
129 pt->volume[base + 1] = val1; in pt2258_stereo_volume_put()
/sound/soc/sh/
Dsiu_dai.c147 siu_write32(base + SIU_SBDVCA, port_info->playback.volume); in siu_dai_start()
148 siu_write32(base + SIU_SBDVCB, port_info->capture.volume); in siu_dai_start()
378 vol = port_info->playback.volume; in siu_dai_get_volume()
384 vol = port_info->capture.volume; in siu_dai_get_volume()
422 cur_vol = port_info->playback.volume; in siu_dai_put_volume()
424 port_info->playback.volume = new_vol; in siu_dai_put_volume()
428 cur_vol = port_info->capture.volume; in siu_dai_put_volume()
430 port_info->capture.volume = new_vol; in siu_dai_put_volume()
476 (*port_info)->playback.volume = DFLT_VOLUME_LEVEL; in siu_init_port()
477 (*port_info)->capture.volume = DFLT_VOLUME_LEVEL; in siu_init_port()
Dsiu.h119 u32 volume; member
/sound/firewire/
Dspeakers.c56 s16 volume[6]; member
504 value->value.integer.value[channel_map[i]] = fwspk->volume[i]; in fwspk_volume_get()
515 s16 volume; in fwspk_volume_put() local
530 fwspk->volume[i]) in fwspk_volume_put()
537 volume = value->value.integer.value[channel_map[i ? i - 1 : 0]]; in fwspk_volume_put()
539 err = fwspk_volume_command(fwspk, &volume, i, in fwspk_volume_put()
545 fwspk->volume[i - 1] = volume; in fwspk_volume_put()
587 err = fwspk_volume_command(fwspk, &fwspk->volume[i], in fwspk_create_mixer()
/sound/soc/sh/rcar/
Ddvc.c23 u8 volume[RSND_DVC_VOLUME_NUM]; member
45 vol[i] = max / RSND_DVC_VOLUME_MAX * dvc->volume[i]; in rsnd_dvc_volume_update()
156 if (val == dvc->volume) { in rsnd_dvc_volume_info()
238 dvc->volume); in rsnd_dvc_pcm_new()
/sound/pci/cs46xx/
Ddsp_spos.h227 scb->volume[0] = left; in cs46xx_dsp_scb_set_volume()
228 scb->volume[1] = right; in cs46xx_dsp_scb_set_volume()
Dcs46xx_dsp_spos.h122 u16 volume[2]; member
/sound/core/oss/
Dmixer_oss.c268 left = pslot->volume[0]; in snd_mixer_oss_get_volume()
269 right = pslot->volume[1]; in snd_mixer_oss_get_volume()
279 pslot->volume[0] = left; in snd_mixer_oss_get_volume()
280 pslot->volume[1] = right; in snd_mixer_oss_get_volume()
287 int slot, int volume) in snd_mixer_oss_set_volume() argument
291 int result = 0, left = volume & 0xff, right = (volume >> 8) & 0xff; in snd_mixer_oss_set_volume()
306 pslot->volume[0] = left; in snd_mixer_oss_set_volume()
307 pslot->volume[1] = right; in snd_mixer_oss_set_volume()
543 …tl->value.integer.value[0], uinfo->value.integer.min, uinfo->value.integer.max, &pslot->volume[0]); in snd_mixer_oss_get_volume1_vol()
545 …tl->value.integer.value[1], uinfo->value.integer.min, uinfo->value.integer.max, &pslot->volume[1]); in snd_mixer_oss_get_volume1_vol()
/sound/oss/dmasound/
Ddmasound.h186 static inline int dmasound_set_volume(int volume) in dmasound_set_volume() argument
188 return dmasound.mach.setVolume(volume); in dmasound_set_volume()
Ddmasound_paula.c82 static int AmiSetVolume(int volume);
426 static int AmiSetVolume(int volume) in AmiSetVolume() argument
428 dmasound.volume_left = VOLUME_VOXWARE_TO_AMI(volume & 0xff); in AmiSetVolume()
430 dmasound.volume_right = VOLUME_VOXWARE_TO_AMI((volume & 0xff00) >> 8); in AmiSetVolume()
Ddmasound_atari.c128 static int TTSetVolume(int volume);
133 static int FalconSetVolume(int volume);
989 static int TTSetVolume(int volume) in TTSetVolume() argument
991 dmasound.volume_left = VOLUME_VOXWARE_TO_DB(volume & 0xff); in TTSetVolume()
993 dmasound.volume_right = VOLUME_VOXWARE_TO_DB((volume & 0xff00) >> 8); in TTSetVolume()
1158 static int FalconSetVolume(int volume) in FalconSetVolume() argument
1160 dmasound.volume_left = VOLUME_VOXWARE_TO_ATT(volume & 0xff); in FalconSetVolume()
1161 dmasound.volume_right = VOLUME_VOXWARE_TO_ATT((volume & 0xff00) >> 8); in FalconSetVolume()
Ddmasound_q40.c48 static int Q40SetVolume(int volume);
571 static int Q40SetVolume(int volume) in Q40SetVolume() argument
/sound/drivers/opl3/
Dopl3_midi.c68 int volume; in snd_opl3_calc_volume() local
70 volume = (vel * chan->gm_volume * chan->gm_expression) / (127*127); in snd_opl3_calc_volume()
71 if (volume > 127) in snd_opl3_calc_volume()
72 volume = 127; in snd_opl3_calc_volume()
76 newvol = opl3_volume_table[volume] + oldvol; in snd_opl3_calc_volume()
/sound/pci/mixart/
Dmixart_mixer.c726 int volume[2]; in mixart_update_playback_stream_level() local
751 volume[i] = chip->digital_playback_volume[idx][i]; in mixart_update_playback_stream_level()
753 volume[i] = MIXART_DIGITAL_LEVEL_MIN; in mixart_update_playback_stream_level()
757 set_level.stream_level.out_level.left_to_out1_level = mixart_digital_level[volume[0]]; in mixart_update_playback_stream_level()
758 set_level.stream_level.out_level.right_to_out2_level = mixart_digital_level[volume[1]]; in mixart_update_playback_stream_level()
Dmixart.h51 int volume; member
/sound/pci/emu10k1/
Demumixer.c1144 static void update_emu10k1_send_volume(struct snd_emu10k1 *emu, int voice, unsigned char *volume) in update_emu10k1_send_volume() argument
1146 snd_emu10k1_ptr_write(emu, PTRX_FXSENDAMOUNT_A, voice, volume[0]); in update_emu10k1_send_volume()
1147 snd_emu10k1_ptr_write(emu, PTRX_FXSENDAMOUNT_B, voice, volume[1]); in update_emu10k1_send_volume()
1148 snd_emu10k1_ptr_write(emu, PSST_FXSENDAMOUNT_C, voice, volume[2]); in update_emu10k1_send_volume()
1149 snd_emu10k1_ptr_write(emu, DSL_FXSENDAMOUNT_D, voice, volume[3]); in update_emu10k1_send_volume()
1151 unsigned int val = ((unsigned int)volume[4] << 24) | in update_emu10k1_send_volume()
1152 ((unsigned int)volume[5] << 16) | in update_emu10k1_send_volume()
1153 ((unsigned int)volume[6] << 8) | in update_emu10k1_send_volume()
1154 (unsigned int)volume[7]; in update_emu10k1_send_volume()

12