Home
last modified time | relevance | path

Searched refs:voice (Results 1 – 25 of 57) sorted by relevance

123

/linux/sound/drivers/opl4/
H A Dopl4_synth.c310 void (*func)(struct snd_opl4 *opl4, struct opl4_voice *voice)) in snd_opl4_do_for_note() argument
313 struct opl4_voice *voice; in snd_opl4_do_for_note() local
317 voice = &opl4->voices[i]; in snd_opl4_do_for_note()
318 if (voice->chan == chan && voice->note == note) { in snd_opl4_do_for_note()
319 func(opl4, voice); in snd_opl4_do_for_note()
329 void (*func)(struct snd_opl4 *opl4, struct opl4_voice *voice)) in snd_opl4_do_for_channel() argument
332 struct opl4_voice *voice; in snd_opl4_do_for_channel() local
336 voice = &opl4->voices[i]; in snd_opl4_do_for_channel()
337 if (voice->chan == chan) { in snd_opl4_do_for_channel()
338 func(opl4, voice); in snd_opl4_do_for_channel()
[all …]
/linux/include/uapi/linux/
H A Dultrasound.h76 #define _GUS_CMD(chn, voice, cmd, p1, p2) \ argument
79 _seqbuf[_seqbufptr+3] = voice;\
85 #define GUS_VOICESAMPLE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICESAMPLE, (p1), 0) /* OBSOLET… argument
86 #define GUS_VOICEON(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEON, (p1), 0) argument
87 #define GUS_VOICEOFF(chn, voice) _GUS_CMD(chn, voice, _GUS_VOICEOFF, 0, 0) argument
88 #define GUS_VOICEFADE(chn, voice) _GUS_CMD(chn, voice, _GUS_VOICEFADE, 0, 0) argument
89 #define GUS_VOICEMODE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEMODE, (p1), 0) argument
90 #define GUS_VOICEBALA(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEBALA, (p1), 0) argument
91 #define GUS_VOICEFREQ(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICEFREQ, \ argument
93 #define GUS_VOICEVOL(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEVOL, (p1), 0) argument
[all …]
H A Dsoundcard.h1205 #define SEQ_V2_X_CONTROL(dev, voice, controller, value) {_SEQ_NEEDBUF(8);\ argument
1209 _seqbuf[_seqbufptr+3] = (voice);\
1219 #define SEQ_PITCHBEND(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER, value) argument
1220 #define SEQ_BENDER_RANGE(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER_RANGE, v… argument
1221 #define SEQ_EXPRESSION(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_EXPRESSION, value*128) argument
1222 #define SEQ_MAIN_VOLUME(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_MAIN_VOLUME, (value*16383)/1… argument
1223 #define SEQ_PANNING(dev, voice, pos) SEQ_CONTROL(dev, voice, CTL_PAN, (pos+128) / 2) argument
/linux/sound/pci/
H A Dsis7019.c68 struct voice { struct
82 struct voice *timing; argument
116 struct voice voices[64];
117 struct voice capture_voice;
187 static void sis_update_sso(struct voice *voice, u16 period) in sis_update_sso() argument
189 void __iomem *base = voice->ctrl_base; in sis_update_sso()
191 voice->sso += period; in sis_update_sso()
192 if (voice->sso >= voice->buffer_size) in sis_update_sso()
193 voice->sso -= voice->buffer_size; in sis_update_sso()
196 if (voice->sso < 8) in sis_update_sso()
[all …]
/linux/sound/pci/trident/
H A Dtrident_main.c35 struct snd_trident_voice * voice,
38 struct snd_trident_voice * voice,
53 static void snd_trident_print_voice_regs(struct snd_trident *trident, int voice)
57 dev_dbg(trident->card->dev, "Trident voice %i:\n", voice);
58 outb(voice, TRID_REG(trident, T4D_LFO_GC_CIR));
281 void snd_trident_start_voice(struct snd_trident * trident, unsigned int voice) in snd_trident_start_voice() argument
283 unsigned int mask = 1 << (voice & 0x1f); in snd_trident_start_voice()
284 unsigned int reg = (voice & 0x20) ? T4D_START_B : T4D_START_A; in snd_trident_start_voice()
305 void snd_trident_stop_voice(struct snd_trident * trident, unsigned int voice) in snd_trident_stop_voice() argument
307 unsigned int mask = 1 << (voice & 0x1f); in snd_trident_stop_voice()
[all …]
H A Dtrident.h316 void (*private_free)(struct snd_trident_voice *voice);
331 struct snd_trident_voice *voice; /* active voice */ member
411 void snd_trident_free_voice(struct snd_trident * trident, struct snd_trident_voice *voice);
412 void snd_trident_start_voice(struct snd_trident * trident, unsigned int voice);
413 void snd_trident_stop_voice(struct snd_trident * trident, unsigned int voice);
414 void snd_trident_write_voice_regs(struct snd_trident * trident, struct snd_trident_voice *voice);
/linux/sound/drivers/opl3/
H A Dopl3_midi.c117 static void debug_alloc(struct snd_opl3 *opl3, char *s, int voice) in debug_alloc() argument
127 opl3->use_time, s, voice, buf); in debug_alloc()
155 int voice; in opl3_get_voice() member
161 best[i].voice = -1; in opl3_get_voice()
209 bp->voice = i; in opl3_get_voice()
214 if (best[i].voice >= 0) { in opl3_get_voice()
219 best[i].voice); in opl3_get_voice()
221 return best[i].voice; in opl3_get_voice()
287 int voice; in snd_opl3_note_on() local
366 voice = opl3_get_voice(opl3, instr_4op, chan); in snd_opl3_note_on()
[all …]
H A Dopl3_synth.c61 static int snd_opl3_set_voice(struct snd_opl3 * opl3, struct snd_dm_fm_voice * voice);
126 struct snd_dm_fm_voice voice; in snd_opl3_ioctl() local
127 if (copy_from_user(&voice, argp, sizeof(struct snd_dm_fm_voice))) in snd_opl3_ioctl()
129 return snd_opl3_set_voice(opl3, &voice); in snd_opl3_ioctl()
398 if (note->voice >= ((opl3->fm_mode == SNDRV_DM_FM_MODE_OPL3) ? in snd_opl3_play_note()
403 if (note->voice < MAX_OPL2_VOICES) { in snd_opl3_play_note()
406 voice_offset = note->voice; in snd_opl3_play_note()
410 voice_offset = note->voice - MAX_OPL2_VOICES; in snd_opl3_play_note()
435 static int snd_opl3_set_voice(struct snd_opl3 * opl3, struct snd_dm_fm_voice * voice) in snd_opl3_set_voice() argument
445 if (voice->op > 1) in snd_opl3_set_voice()
[all …]
H A Dopl3_drums.c33 int voice; member
44 int voice; member
70 unsigned char op_offset = snd_opl3_regmap[data->voice][data->op]; in snd_opl3_drum_voice_set()
71 unsigned char voice_offset = data->voice; in snd_opl3_drum_voice_set()
105 unsigned char voice_offset = data->voice; in snd_opl3_drum_note_set()
124 unsigned char op_offset = snd_opl3_regmap[data->voice][data->op]; in snd_opl3_drum_vol_set()
125 unsigned char voice_offset = data->voice; in snd_opl3_drum_vol_set()
/linux/sound/pci/au88x0/
H A Dau88x0_synth.c56 wt_voice_t *voice = &(vortex->wt_voice[wt]); in vortex_wt_allocroute() local
95 voice->parm0 = voice->parm1 = 0xcfb23e2f; in vortex_wt_allocroute()
96 hwwrite(vortex->mmio, WT_PARM(wt, 0), voice->parm0); in vortex_wt_allocroute()
97 hwwrite(vortex->mmio, WT_PARM(wt, 1), voice->parm1); in vortex_wt_allocroute()
327 wt_voice_t *voice = &(vortex->wt_voice[wt]);
331 voice->parm0 &= 0xff00ffff;
332 voice->parm0 |= (vol[0] & 0xff) << 0x10;
333 voice->parm1 &= 0xff00ffff;
334 voice->parm1 |= (vol[1] & 0xff) << 0x10;
337 hwwrite(vortex, WT_PARM(wt, 0), voice->parm0);
[all …]
H A Dau88x0_wt.h28 #define WT_STEREO(voice) ((WT_BAR(voice)+ 0x20 +(((voice)&0x1f)>>1))<<2) /* 0x0080 */ argument
29 #define WT_MUTE(voice) ((WT_BAR(voice)+ 0x40 +((voice)&0x1f))<<2) /* 0x0100 */ argument
30 #define WT_RUN(voice) ((WT_BAR(voice)+ 0x60 +((voice)&0x1f))<<2) /* 0x0180 */ argument
/linux/sound/isa/gus/
H A Dgus_reset.c36 …_default_interrupt_handler_wave_and_volume(struct snd_gus_card * gus, struct snd_gus_voice * voice) in snd_gf1_default_interrupt_handler_wave_and_volume() argument
63 struct snd_gus_voice *voice; in snd_gf1_set_default_handlers() local
65 voice = &gus->gf1.voices[what & 0xffff]; in snd_gf1_set_default_handlers()
66 voice->handler_wave = in snd_gf1_set_default_handlers()
67 voice->handler_volume = snd_gf1_default_interrupt_handler_wave_and_volume; in snd_gf1_set_default_handlers()
68 voice->handler_effect = NULL; in snd_gf1_set_default_handlers()
69 voice->volume_change = NULL; in snd_gf1_set_default_handlers()
103 void snd_gf1_smart_stop_voice(struct snd_gus_card * gus, unsigned short voice) in snd_gf1_smart_stop_voice() argument
106 snd_gf1_select_voice(gus, voice); in snd_gf1_smart_stop_voice()
110 voice, snd_gf1_i_read16(gus, SNDRV_GF1_VW_VOLUME)); in snd_gf1_smart_stop_voice()
[all …]
H A Dgus_pcm.c97 unsigned int voice; in snd_gf1_pcm_trigger_up() local
114 for (voice = 0; voice < pcmp->voices; voice++) { in snd_gf1_pcm_trigger_up()
115 begin = pcmp->memory + voice * (pcmp->dma_size / runtime->channels); in snd_gf1_pcm_trigger_up()
119 pan = runtime->channels == 2 ? (!voice ? 1 : 14) : 8; in snd_gf1_pcm_trigger_up()
120 vol = !voice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right; in snd_gf1_pcm_trigger_up()
122 snd_gf1_select_voice(gus, pcmp->pvoices[voice]->number); in snd_gf1_pcm_trigger_up()
140 for (voice = 0; voice < pcmp->voices; voice++) { in snd_gf1_pcm_trigger_up()
141 snd_gf1_select_voice(gus, pcmp->pvoices[voice]->number); in snd_gf1_pcm_trigger_up()
150 for (voice = 0; voice < pcmp->voices; voice++) { in snd_gf1_pcm_trigger_up()
151 snd_gf1_select_voice(gus, pcmp->pvoices[voice]->number); in snd_gf1_pcm_trigger_up()
[all …]
H A Dgus_irq.c41 unsigned char voice_status, voice; in snd_gus_interrupt() local
46 voice = voice_status & 0x1f; in snd_gus_interrupt()
47 _current_ = 1 << voice; in snd_gus_interrupt()
54 voice, voice_status, inb(GUSP(gus, GF1PAGE))); in snd_gus_interrupt()
56 pvoice = &gus->gf1.voices[voice]; in snd_gus_interrupt()
/linux/sound/pci/emu10k1/
H A Dirq.c45 int voice; in snd_emu10k1_interrupt() local
51 for (voice = 0; voice <= voice_max; voice++) { in snd_emu10k1_interrupt()
52 if (voice == 0x20) in snd_emu10k1_interrupt()
57 snd_emu10k1_voice_intr_ack(emu, voice); in snd_emu10k1_interrupt()
59 snd_emu10k1_voice_intr_disable(emu, voice); in snd_emu10k1_interrupt()
67 for (voice = 0; voice <= voice_max; voice++) { in snd_emu10k1_interrupt()
68 if (voice == 0x20) in snd_emu10k1_interrupt()
73 snd_emu10k1_voice_half_loop_intr_ack(emu, voice); in snd_emu10k1_interrupt()
75 snd_emu10k1_voice_half_loop_intr_disable(emu, voice); in snd_emu10k1_interrupt()
H A Dvoice.c27 struct snd_emu10k1_voice *voice; in voice_alloc() local
43 voice = &emu->voices[i + k]; in voice_alloc()
44 if (voice->use) { in voice_alloc()
51 voice = &emu->voices[i + k]; in voice_alloc()
52 voice->use = type; in voice_alloc()
53 voice->epcm = epcm; in voice_alloc()
56 voice->last = 1; in voice_alloc()
H A Demu10k1x.c195 struct emu10k1x_voice *voice; member
336 static void snd_emu10k1x_pcm_interrupt(struct emu10k1x *emu, struct emu10k1x_voice *voice) in snd_emu10k1x_pcm_interrupt() argument
340 epcm = voice->epcm; in snd_emu10k1x_pcm_interrupt()
397 if (! epcm->voice) { in snd_emu10k1x_pcm_hw_params()
398 epcm->voice = &epcm->emu->voices[substream->pcm->device]; in snd_emu10k1x_pcm_hw_params()
399 epcm->voice->use = 1; in snd_emu10k1x_pcm_hw_params()
400 epcm->voice->epcm = epcm; in snd_emu10k1x_pcm_hw_params()
417 if (epcm->voice) { in snd_emu10k1x_pcm_hw_free()
418 epcm->voice->use = 0; in snd_emu10k1x_pcm_hw_free()
419 epcm->voice->epcm = NULL; in snd_emu10k1x_pcm_hw_free()
[all …]
H A Demupcm.c21 struct snd_emu10k1_voice *voice) in snd_emu10k1_pcm_interrupt() argument
25 epcm = voice->epcm; in snd_emu10k1_pcm_interrupt()
269 int voice; in snd_emu10k1_pcm_init_voice() local
271 voice = evoice->number; in snd_emu10k1_pcm_init_voice()
275 snd_emu10k1_ptr_write_multiple(emu, voice, in snd_emu10k1_pcm_init_voice()
297 snd_emu10k1_ptr_write_multiple(emu, voice, in snd_emu10k1_pcm_init_voice()
305 snd_emu10k1_ptr_write(emu, A_CSBA + i, voice, (amh << 16) | aml); in snd_emu10k1_pcm_init_voice()
308 snd_emu10k1_ptr_write(emu, FXRT, voice, in snd_emu10k1_pcm_init_voice()
312 emu->voices[voice].dirty = 1; in snd_emu10k1_pcm_init_voice()
557 unsigned voice, in snd_emu10k1_playback_fill_cache() argument
[all …]
H A Demu10k1_callback.c20 int voice; member
91 if (best[i].voice >= 0) { in snd_emu10k1_synth_get_voice()
93 vp = &emu->voices[best[i].voice]; in snd_emu10k1_synth_get_voice()
219 best[i].voice = -1; in lookup_voices()
265 bp->voice = i; in lookup_voices()
287 if (best[i].voice >= 0) { in get_voice()
288 vp = &emu->voices[best[i].voice]; in get_voice()
/linux/sound/synth/emux/
H A Demux_oss.c325 int voice; in emuspec_control() local
331 voice = event[3]; in emuspec_control()
332 if (voice < 0 || voice >= port->chset.max_channels) in emuspec_control()
335 chan = &port->chset.channels[voice]; in emuspec_control()
363 fake_event(emu, port, voice, MIDI_CTL_ALL_NOTES_OFF, 0, atomic, hop); in emuspec_control()
366 fake_event(emu, port, voice, MIDI_CTL_ALL_SOUNDS_OFF, 0, atomic, hop); in emuspec_control()
420 int voice; in gusspec_control() local
429 voice = event[3]; in gusspec_control()
430 if (voice < 0 || voice >= port->chset.max_channels) in gusspec_control()
433 chan = &port->chset.channels[voice]; in gusspec_control()
H A Demux_synth.c915 void snd_emux_lock_voice(struct snd_emux *emu, int voice) in snd_emux_lock_voice() argument
918 if (emu->voices[voice].state == SNDRV_EMUX_ST_OFF) in snd_emux_lock_voice()
919 emu->voices[voice].state = SNDRV_EMUX_ST_LOCKED; in snd_emux_lock_voice()
923 voice, emu->voices[voice].state); in snd_emux_lock_voice()
930 void snd_emux_unlock_voice(struct snd_emux *emu, int voice) in snd_emux_unlock_voice() argument
933 if (emu->voices[voice].state == SNDRV_EMUX_ST_LOCKED) in snd_emux_unlock_voice()
934 emu->voices[voice].state = SNDRV_EMUX_ST_OFF; in snd_emux_unlock_voice()
938 voice, emu->voices[voice].state); in snd_emux_unlock_voice()
/linux/include/sound/
H A Dgus.h250 void (*handler_wave) (struct snd_gus_card * gus, struct snd_gus_voice * voice);
251 void (*handler_volume) (struct snd_gus_card * gus, struct snd_gus_voice * voice);
252 void (*handler_effect) (struct snd_gus_card * gus, struct snd_gus_voice * voice);
277 void (*private_free)(struct snd_gus_voice *voice);
436 static inline void snd_gf1_select_voice(struct snd_gus_card * gus, int voice) in snd_gf1_select_voice() argument
441 if (voice != gus->gf1.active_voice) { in snd_gf1_select_voice()
442 gus->gf1.active_voice = voice; in snd_gf1_select_voice()
443 outb(voice, GUSP(gus, GF1PAGE)); in snd_gf1_select_voice()
548 void snd_gf1_smart_stop_voice(struct snd_gus_card * gus, unsigned short voice);
549 void snd_gf1_stop_voice(struct snd_gus_card * gus, unsigned short voice);
[all …]
/linux/sound/soc/codecs/
H A Dwm8753.c891 u16 voice = snd_soc_component_read(component, WM8753_PCM) & 0x01ec; in wm8753_vdac_adc_set_dai_fmt() local
896 voice |= 0x0002; in wm8753_vdac_adc_set_dai_fmt()
901 voice |= 0x0001; in wm8753_vdac_adc_set_dai_fmt()
904 voice |= 0x0003; in wm8753_vdac_adc_set_dai_fmt()
907 voice |= 0x0013; in wm8753_vdac_adc_set_dai_fmt()
913 snd_soc_component_write(component, WM8753_PCM, voice); in wm8753_vdac_adc_set_dai_fmt()
926 u16 voice = snd_soc_component_read(component, WM8753_PCM) & 0x01f3; in wm8753_pcm_hw_params() local
934 voice |= 0x0004; in wm8753_pcm_hw_params()
937 voice |= 0x0008; in wm8753_pcm_hw_params()
940 voice |= 0x000c; in wm8753_pcm_hw_params()
[all …]
/linux/sound/pci/ymfpci/
H A Dymfpci_main.c197 struct snd_ymfpci_voice *voice, *voice2; in voice_alloc() local
202 voice = &chip->voices[idx]; in voice_alloc()
204 if (voice->use || (voice2 && voice2->use)) in voice_alloc()
206 voice->use = 1; in voice_alloc()
211 voice->pcm = 1; in voice_alloc()
216 voice->synth = 1; in voice_alloc()
219 voice->midi = 1; in voice_alloc()
225 *rvoice = voice; in voice_alloc()
273 static void snd_ymfpci_pcm_interrupt(struct snd_ymfpci *chip, struct snd_ymfpci_voice *voice) in snd_ymfpci_pcm_interrupt() argument
278 ypcm = voice->ypcm; in snd_ymfpci_pcm_interrupt()
[all …]
/linux/include/uapi/sound/
H A Dasound_fm.h29 unsigned char voice; /* FM voice (0 to 17) */ member
57 unsigned char voice; /* 0-17 voice channel */ member

123