Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/sound/drivers/opl4/
A Dopl4_synth.c322 if (voice->chan == chan && voice->note == note) { in snd_opl4_do_for_note()
323 func(opl4, voice); in snd_opl4_do_for_note()
344 func(opl4, voice); in snd_opl4_do_for_channel()
363 if (voice->chan) in snd_opl4_do_for_all()
364 func(opl4, voice); in snd_opl4_do_for_all()
398 voice->reg_misc = (voice->reg_misc & ~OPL4_PAN_POT_MASK) in snd_opl4_update_pan()
400 snd_opl4_write(opl4, OPL4_REG_MISC + voice->number, voice->reg_misc); in snd_opl4_update_pan()
445 voice->reg_f_number = (voice->reg_f_number & OPL4_TONE_NUMBER_BIT8) in snd_opl4_update_pitch()
541 voice[i]->reg_lfo_vibrato = voice[i]->sound->reg_lfo_vibrato; in snd_opl4_note_on()
560 snd_opl4_write(opl4, OPL4_REG_MISC + voice->number, voice->reg_misc); in snd_opl4_voice_off()
[all …]
/linux-6.3-rc2/include/uapi/linux/
A Dultrasound.h86 #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
97 #define GUS_RAMPMODE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_RAMPMODE, (p1), 0) argument
98 #define GUS_RAMPON(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_RAMPON, (p1), 0) argument
99 #define GUS_RAMPOFF(chn, voice) _GUS_CMD(chn, voice, _GUS_RAMPOFF, 0, 0) argument
[all …]
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-6.3-rc2/sound/pci/
A Dsis7019.c196 if (voice->sso >= voice->buffer_size) in sis_update_sso()
197 voice->sso -= voice->buffer_size; in sis_update_sso()
218 voice->vperiod -= voice->period_size; in sis_update_voice()
300 struct voice *voice; in sis_interrupt() local
406 struct voice *voice; in __sis_alloc_playback_voice() local
424 struct voice *voice; in sis_alloc_playback_voice() local
474 struct voice *voice; in sis_playback_open() local
572 struct voice *voice; in sis_pcm_trigger() local
606 voice = voice->timing; in sis_pcm_trigger()
702 struct voice *timing = voice->timing; in sis_prepare_timing_voice()
[all …]
/linux-6.3-rc2/sound/pci/trident/
A Dtrident_main.c579 outw((voice->CTRL << 12) | voice->Vol, in snd_trident_write_vol_reg()
883 if (voice && voice->memblk) { in snd_trident_hw_free()
922 voice->LBA = voice->memblk->offset; in snd_trident_playback_prepare()
1028 voice->LBA = voice->memblk->offset; in snd_trident_capture_prepare()
1225 voice->LBA = voice->memblk->offset; in snd_trident_foldback_prepare()
1378 voice->LBA = voice->memblk->offset; in snd_trident_spdif_prepare()
1427 voice->LBA = voice->memblk->offset; in snd_trident_spdif_prepare()
2879 tmix->voice = voice; in snd_trident_pcm_mixer_build()
3798 if (voice == NULL || !voice->use) in snd_trident_free_voice()
3809 voice->use = voice->pcm = voice->synth = voice->midi = 0; in snd_trident_free_voice()
[all …]
A Dtrident.h316 void (*private_free)(struct snd_trident_voice *voice);
331 struct snd_trident_voice *voice; /* active voice */ member
412 void snd_trident_free_voice(struct snd_trident * trident, struct snd_trident_voice *voice);
413 void snd_trident_start_voice(struct snd_trident * trident, unsigned int voice);
414 void snd_trident_stop_voice(struct snd_trident * trident, unsigned int voice);
415 void snd_trident_write_voice_regs(struct snd_trident * trident, struct snd_trident_voice *voice);
/linux-6.3-rc2/sound/drivers/opl3/
A Dopl3_midi.c145 int voice; in opl3_get_voice() member
151 best[i].voice = -1; in opl3_get_voice()
199 bp->voice = i; in opl3_get_voice()
210 return best[i].voice; in opl3_get_voice()
280 int voice; in snd_opl3_note_on() local
374 if (voice < 0) { in snd_opl3_note_on()
382 voice_offset = voice; in snd_opl3_note_on()
658 int voice; in snd_opl3_note_off_unsafe() local
675 for (voice = 0; voice < opl3->max_voices; voice++) { in snd_opl3_note_off_unsafe()
773 int voice; in snd_opl3_pitch_ctrl() local
[all …]
A Dopl3_synth.c447 if (voice->op > 1) in snd_opl3_set_voice()
451 if (voice->voice >= ((opl3->fm_mode == SNDRV_DM_FM_MODE_OPL3) ? in snd_opl3_set_voice()
456 if (voice->voice < MAX_OPL2_VOICES) { in snd_opl3_set_voice()
459 voice_offset = voice->voice; in snd_opl3_set_voice()
463 voice_offset = voice->voice - MAX_OPL2_VOICES; in snd_opl3_set_voice()
472 if (voice->am) in snd_opl3_set_voice()
475 if (voice->vibrato) in snd_opl3_set_voice()
478 if (voice->do_sustain) in snd_opl3_set_voice()
481 if (voice->kbd_scale) in snd_opl3_set_voice()
524 if (voice->left) in snd_opl3_set_voice()
[all …]
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-6.3-rc2/sound/pci/au88x0/
A Dau88x0_synth.c95 voice->parm0 = voice->parm1 = 0xcfb23e2f; in vortex_wt_allocroute()
331 voice->parm0 &= 0xff00ffff;
333 voice->parm1 &= 0xff00ffff;
340 if (voice->this_1D0 & 4) {
345 voice->parm3 &= 0xFFFFC07F;
346 voice->parm3 |= (ecx & 0x7f) << 7;
347 voice->parm3 &= 0xFFFFFF80;
348 voice->parm3 |= (eax & 0x7f);
350 voice->parm3 &= 0xFFE03FFF;
389 voice->parm0 &= 0xffff0001;
[all …]
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-6.3-rc2/sound/isa/gus/
A Dgus_reset.c66 struct snd_gus_voice *voice; in snd_gf1_set_default_handlers() local
69 voice->handler_wave = in snd_gf1_set_default_handlers()
72 voice->volume_change = NULL; in snd_gf1_set_default_handlers()
279 if (voice == NULL || !voice->use) in snd_gf1_free_voice()
282 snd_gf1_clear_voices(gus, voice->number, voice->number); in snd_gf1_free_voice()
285 voice->private_free = NULL; in snd_gf1_free_voice()
286 voice->private_data = NULL; in snd_gf1_free_voice()
287 if (voice->pcm) in snd_gf1_free_voice()
289 voice->use = voice->pcm = 0; in snd_gf1_free_voice()
290 voice->sample_ops = NULL; in snd_gf1_free_voice()
[all …]
A Dgus_pcm.c102 unsigned int voice; in snd_gf1_pcm_trigger_up() local
121 for (voice = 0; voice < pcmp->voices; voice++) { in snd_gf1_pcm_trigger_up()
152 for (voice = 0; voice < pcmp->voices; voice++) { in snd_gf1_pcm_trigger_up()
162 for (voice = 0; voice < pcmp->voices; voice++) { in snd_gf1_pcm_trigger_up()
371 int voice, unsigned long pos, in snd_gf1_pcm_playback_copy() argument
404 int voice, unsigned long pos, in snd_gf1_pcm_playback_silence() argument
507 int voice; in snd_gf1_pcm_playback_trigger() local
515 voice = pcmp->pvoices[0]->number; in snd_gf1_pcm_playback_trigger()
516 snd_gf1_stop_voices(gus, voice, voice); in snd_gf1_pcm_playback_trigger()
518 voice = pcmp->pvoices[1]->number; in snd_gf1_pcm_playback_trigger()
[all …]
A Dgus_io.c433 int voice, ctrl; in snd_gf1_print_voice_registers() local
435 voice = gus->gf1.active_voice; in snd_gf1_print_voice_registers()
437 printk(KERN_INFO " -%i- GF1 frequency = 0x%x\n", voice, snd_gf1_i_read16(gus, 1)); in snd_gf1_print_voice_registers()
440 printk(KERN_INFO" -%i- GF1 volume = 0x%x\n", voice, snd_gf1_i_read16(gus, 9)); in snd_gf1_print_voice_registers()
444 printk(KERN_INFO " -%i- GFA1 mode = 0x%x\n", voice, mode); in snd_gf1_print_voice_registers()
446 …printk(KERN_INFO " -%i- GFA1 effect address = 0x%x\n", voice, snd_gf1_i_read_addr(gus, 0x1… in snd_gf1_print_voice_registers()
447 …printk(KERN_INFO " -%i- GFA1 effect volume = 0x%x\n", voice, snd_gf1_i_read16(gus, 0x16)); in snd_gf1_print_voice_registers()
448 …printk(KERN_INFO " -%i- GFA1 effect volume final = 0x%x\n", voice, snd_gf1_i_read16(gus, 0x1d)); in snd_gf1_print_voice_registers()
449 … printk(KERN_INFO " -%i- GFA1 effect accumulator = 0x%x\n", voice, snd_gf1_i_read8(gus, 0x14)); in snd_gf1_print_voice_registers()
457 … printk(KERN_INFO " -%i- GF1 pan = 0x%x\n", voice, snd_gf1_i_read8(gus, 0x0c)); in snd_gf1_print_voice_registers()
[all …]
A Dgus_irq.c42 unsigned char voice_status, voice; in snd_gus_interrupt() local
47 voice = voice_status & 0x1f; in snd_gus_interrupt()
48 _current_ = 1 << voice; in snd_gus_interrupt()
55 voice, voice_status, inb(GUSP(gus, GF1PAGE))); in snd_gus_interrupt()
57 pvoice = &gus->gf1.voices[voice]; in snd_gus_interrupt()
/linux-6.3-rc2/sound/pci/emu10k1/
A Dirq.c47 int voice; in snd_emu10k1_interrupt() local
53 for (voice = 0; voice <= voice_max; voice++) { in snd_emu10k1_interrupt()
54 if (voice == 0x20) in snd_emu10k1_interrupt()
59 snd_emu10k1_voice_intr_ack(emu, voice); in snd_emu10k1_interrupt()
61 snd_emu10k1_voice_intr_disable(emu, voice); in snd_emu10k1_interrupt()
68 for (voice = 0; voice <= voice_max; voice++) { in snd_emu10k1_interrupt()
69 if (voice == 0x20) in snd_emu10k1_interrupt()
74 snd_emu10k1_voice_half_loop_intr_ack(emu, voice); in snd_emu10k1_interrupt()
76 snd_emu10k1_voice_half_loop_intr_disable(emu, voice); in snd_emu10k1_interrupt()
A Dvoice.c37 struct snd_emu10k1_voice *voice; in voice_alloc() local
57 voice = &emu->voices[(i+k) % NUM_G]; in voice_alloc()
58 if (voice->use) { in voice_alloc()
76 voice = &emu->voices[(first_voice + i) % NUM_G]; in voice_alloc()
81 voice->use = 1; in voice_alloc()
84 voice->pcm = 1; in voice_alloc()
87 voice->synth = 1; in voice_alloc()
90 voice->midi = 1; in voice_alloc()
93 voice->efx = 1; in voice_alloc()
A Demupcm.c24 struct snd_emu10k1_voice *voice) in snd_emu10k1_pcm_interrupt() argument
28 epcm = voice->epcm; in snd_emu10k1_pcm_interrupt()
279 int voice, stereo, w_16; in snd_emu10k1_pcm_init_voice() local
286 voice = evoice->number; in snd_emu10k1_pcm_init_voice()
350 snd_emu10k1_ptr_write(emu, PSST, voice, in snd_emu10k1_pcm_init_voice()
629 voice = evoice->number; in snd_emu10k1_playback_invalidate_cache()
663 unsigned int voice, tmp; in snd_emu10k1_playback_prepare_voice() local
669 voice = evoice->number; in snd_emu10k1_playback_prepare_voice()
691 voice = evoice->number; in snd_emu10k1_playback_trigger_voice()
708 unsigned int voice; in snd_emu10k1_playback_stop_voice() local
[all …]
A Demu10k1x.c351 epcm = voice->epcm; in snd_emu10k1x_pcm_interrupt()
408 if (! epcm->voice) { in snd_emu10k1x_pcm_hw_params()
410 epcm->voice->use = 1; in snd_emu10k1x_pcm_hw_params()
428 if (epcm->voice) { in snd_emu10k1x_pcm_hw_free()
429 epcm->voice->use = 0; in snd_emu10k1x_pcm_hw_free()
431 epcm->voice = NULL; in snd_emu10k1x_pcm_hw_free()
443 int voice = epcm->voice->number; in snd_emu10k1x_pcm_prepare() local
589 if (! epcm->voice) { in snd_emu10k1x_pcm_hw_params_capture()
594 epcm->voice->use = 1; in snd_emu10k1x_pcm_hw_params_capture()
611 if (epcm->voice) { in snd_emu10k1x_pcm_hw_free_capture()
[all …]
/linux-6.3-rc2/include/sound/
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()
565 void snd_gf1_smart_stop_voice(struct snd_gus_card * gus, unsigned short voice);
566 void snd_gf1_stop_voice(struct snd_gus_card * gus, unsigned short voice);
[all …]
/linux-6.3-rc2/sound/synth/emux/
A Demux_oss.c323 int voice; in emuspec_control() local
329 voice = event[3]; in emuspec_control()
330 if (voice < 0 || voice >= port->chset.max_channels) in emuspec_control()
333 chan = &port->chset.channels[voice]; in emuspec_control()
361 fake_event(emu, port, voice, MIDI_CTL_ALL_NOTES_OFF, 0, atomic, hop); in emuspec_control()
364 fake_event(emu, port, voice, MIDI_CTL_ALL_SOUNDS_OFF, 0, atomic, hop); in emuspec_control()
418 int voice; in gusspec_control() local
427 voice = event[3]; in gusspec_control()
428 if (voice < 0 || voice >= port->chset.max_channels) in gusspec_control()
431 chan = &port->chset.channels[voice]; in gusspec_control()
/linux-6.3-rc2/sound/soc/codecs/
A Dwm8753.c896 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()
934 voice |= 0x0004; in wm8753_pcm_hw_params()
937 voice |= 0x0008; in wm8753_pcm_hw_params()
940 voice |= 0x000c; in wm8753_pcm_hw_params()
959 u16 voice, ioctl; in wm8753_pcm_set_dai_fmt() local
972 voice |= 0x0040; in wm8753_pcm_set_dai_fmt()
987 voice |= 0x0080; in wm8753_pcm_set_dai_fmt()
[all …]
/linux-6.3-rc2/sound/pci/ymfpci/
A Dymfpci_main.c218 voice->use = 1; in voice_alloc()
223 voice->pcm = 1; in voice_alloc()
228 voice->synth = 1; in voice_alloc()
231 voice->midi = 1; in voice_alloc()
237 *rvoice = voice; in voice_alloc()
295 ypcm = voice->ypcm; in snd_ymfpci_pcm_interrupt()
790 voice->interrupt(chip, voice); in snd_ymfpci_interrupt()
2133 for (voice = 0; voice < YDSXG_PLAYBACK_VOICES; voice++) { in snd_ymfpci_memalloc()
2134 chip->voices[voice].number = voice; in snd_ymfpci_memalloc()
2147 for (voice = 0; voice < YDSXG_CAPTURE_VOICES; voice++) in snd_ymfpci_memalloc()
[all …]
/linux-6.3-rc2/Documentation/devicetree/bindings/soc/qcom/
A Dqcom,apr-services.yaml28 9 = Multimode voice manager.
29 10 = Core voice stream.
30 11 = Core voice processor.
/linux-6.3-rc2/sound/isa/sb/
A Demu8000_pcm.c452 int voice, unsigned long pos, in emu8k_pcm_copy() argument
458 pos = (pos << 1) + rec->loop_start[voice]; in emu8k_pcm_copy()
465 int voice, unsigned long pos, in emu8k_pcm_copy_kernel() argument
471 pos = (pos << 1) + rec->loop_start[voice]; in emu8k_pcm_copy_kernel()
479 int voice, unsigned long pos, unsigned long count) in emu8k_pcm_silence() argument
484 pos = (pos << 1) + rec->loop_start[voice]; in emu8k_pcm_silence()
520 int voice, unsigned long pos, in emu8k_pcm_copy() argument
533 int voice, unsigned long pos, in emu8k_pcm_copy_kernel() argument
546 int voice, unsigned long pos, unsigned long count) in emu8k_pcm_silence() argument

Completed in 58 milliseconds

123