Searched refs:voices (Results 1 - 60 of 60) sorted by relevance

/linux-4.4.14/sound/pci/emu10k1/
H A Dvoice.c39 * hardware requires stereo interleaved voices be aligned to an even/odd
41 * voices does not cross the 32 voice boundary. This simplifies the
43 * (set|clear)_loop_stop registers. Otherwise (for example) the voices would
63 /* stereo voices must be even/odd */ voice_alloc()
71 voice = &emu->voices[(i+k) % NUM_G]; voice_alloc()
90 voice = &emu->voices[(first_voice + i) % NUM_G]; voice_alloc()
111 *rvoice = &emu->voices[first_voice]; voice_alloc()
136 struct snd_emu10k1_voice *pvoice = &emu->voices[result]; snd_emu10k1_voice_alloc()
H A Demupcm.c101 ptr = snd_emu10k1_ptr_read(emu, CCCA, epcm->voices[0]->number) & 0x00ffffff; snd_emu10k1_efx_playback_pointer()
109 static int snd_emu10k1_pcm_channel_alloc(struct snd_emu10k1_pcm * epcm, int voices) snd_emu10k1_pcm_channel_alloc() argument
113 if (epcm->voices[1] != NULL && voices < 2) { snd_emu10k1_pcm_channel_alloc()
114 snd_emu10k1_voice_free(epcm->emu, epcm->voices[1]); snd_emu10k1_pcm_channel_alloc()
115 epcm->voices[1] = NULL; snd_emu10k1_pcm_channel_alloc()
117 for (i = 0; i < voices; i++) { snd_emu10k1_pcm_channel_alloc()
118 if (epcm->voices[i] == NULL) snd_emu10k1_pcm_channel_alloc()
121 if (i == voices) snd_emu10k1_pcm_channel_alloc()
124 for (i = 0; i < ARRAY_SIZE(epcm->voices); i++) { snd_emu10k1_pcm_channel_alloc()
125 if (epcm->voices[i]) { snd_emu10k1_pcm_channel_alloc()
126 snd_emu10k1_voice_free(epcm->emu, epcm->voices[i]); snd_emu10k1_pcm_channel_alloc()
127 epcm->voices[i] = NULL; snd_emu10k1_pcm_channel_alloc()
132 voices, snd_emu10k1_pcm_channel_alloc()
133 &epcm->voices[0]); snd_emu10k1_pcm_channel_alloc()
137 epcm->voices[0]->epcm = epcm; snd_emu10k1_pcm_channel_alloc()
138 if (voices > 1) { snd_emu10k1_pcm_channel_alloc()
139 for (i = 1; i < voices; i++) { snd_emu10k1_pcm_channel_alloc()
140 epcm->voices[i] = &epcm->emu->voices[epcm->voices[0]->number + i]; snd_emu10k1_pcm_channel_alloc()
141 epcm->voices[i]->epcm = epcm; snd_emu10k1_pcm_channel_alloc()
152 "failed extra: voices=%d, frame=%d\n", snd_emu10k1_pcm_channel_alloc()
153 voices, frame); snd_emu10k1_pcm_channel_alloc()
155 for (i = 0; i < voices; i++) { snd_emu10k1_pcm_channel_alloc()
156 snd_emu10k1_voice_free(epcm->emu, epcm->voices[i]); snd_emu10k1_pcm_channel_alloc()
157 epcm->voices[i] = NULL; snd_emu10k1_pcm_channel_alloc()
449 if (epcm->voices[1]) { snd_emu10k1_playback_hw_free()
450 snd_emu10k1_voice_free(epcm->emu, epcm->voices[1]); snd_emu10k1_playback_hw_free()
451 epcm->voices[1] = NULL; snd_emu10k1_playback_hw_free()
453 if (epcm->voices[0]) { snd_emu10k1_playback_hw_free()
454 snd_emu10k1_voice_free(epcm->emu, epcm->voices[0]); snd_emu10k1_playback_hw_free()
455 epcm->voices[0] = NULL; snd_emu10k1_playback_hw_free()
481 if (epcm->voices[i]) { snd_emu10k1_efx_playback_hw_free()
482 snd_emu10k1_voice_free(epcm->emu, epcm->voices[i]); snd_emu10k1_efx_playback_hw_free()
483 epcm->voices[i] = NULL; snd_emu10k1_efx_playback_hw_free()
513 snd_emu10k1_pcm_init_voice(emu, 1, 0, epcm->voices[0], snd_emu10k1_playback_prepare()
516 if (epcm->voices[1]) snd_emu10k1_playback_prepare()
517 snd_emu10k1_pcm_init_voice(emu, 0, 0, epcm->voices[1], snd_emu10k1_playback_prepare()
536 * the kX driver leaves some space between voices snd_emu10k1_efx_playback_prepare()
544 snd_emu10k1_pcm_init_voice(emu, 1, 0, epcm->voices[0], snd_emu10k1_efx_playback_prepare()
550 snd_emu10k1_pcm_init_voice(emu, 0, 0, epcm->voices[i], snd_emu10k1_efx_playback_prepare()
773 snd_emu10k1_playback_invalidate_cache(emu, 0, epcm->voices[0]); snd_emu10k1_playback_trigger()
780 snd_emu10k1_playback_prepare_voice(emu, epcm->voices[0], 1, 0, mix); snd_emu10k1_playback_trigger()
781 snd_emu10k1_playback_prepare_voice(emu, epcm->voices[1], 0, 0, mix); snd_emu10k1_playback_trigger()
783 snd_emu10k1_playback_trigger_voice(emu, epcm->voices[0], 1, 0); snd_emu10k1_playback_trigger()
784 snd_emu10k1_playback_trigger_voice(emu, epcm->voices[1], 0, 0); snd_emu10k1_playback_trigger()
792 snd_emu10k1_playback_stop_voice(emu, epcm->voices[0]); snd_emu10k1_playback_trigger()
793 snd_emu10k1_playback_stop_voice(emu, epcm->voices[1]); snd_emu10k1_playback_trigger()
882 ptr = snd_emu10k1_ptr_read(emu, CCCA, epcm->voices[0]->number) & 0x00ffffff; snd_emu10k1_playback_pointer()
918 /* prepare voices */ snd_emu10k1_efx_playback_trigger()
920 snd_emu10k1_playback_invalidate_cache(emu, 0, epcm->voices[i]); snd_emu10k1_efx_playback_trigger()
928 snd_emu10k1_playback_prepare_voice(emu, epcm->voices[0], 0, 0, snd_emu10k1_efx_playback_trigger()
931 snd_emu10k1_playback_prepare_voice(emu, epcm->voices[i], 0, 0, snd_emu10k1_efx_playback_trigger()
933 snd_emu10k1_playback_trigger_voice(emu, epcm->voices[0], 0, 0); snd_emu10k1_efx_playback_trigger()
936 snd_emu10k1_playback_trigger_voice(emu, epcm->voices[i], 0, 0); snd_emu10k1_efx_playback_trigger()
944 snd_emu10k1_playback_stop_voice(emu, epcm->voices[i]); snd_emu10k1_efx_playback_trigger()
1832 /* Pavel Hofman - 32 voices will be used for snd_emu10k1_pcm_efx()
1843 /* For emu1010, the control has to set 32 upper bits (voices) snd_emu10k1_pcm_efx()
1844 * out of the 64 bits (voices) to true for the 16-channels capture snd_emu10k1_pcm_efx()
H A Demumixer.c1282 if (mix->epcm->voices[0] && mix->epcm->voices[1]) { snd_emu10k1_send_routing_put()
1283 update_emu10k1_fxrt(emu, mix->epcm->voices[0]->number, snd_emu10k1_send_routing_put()
1285 update_emu10k1_fxrt(emu, mix->epcm->voices[1]->number, snd_emu10k1_send_routing_put()
1287 } else if (mix->epcm->voices[0]) { snd_emu10k1_send_routing_put()
1288 update_emu10k1_fxrt(emu, mix->epcm->voices[0]->number, snd_emu10k1_send_routing_put()
1353 if (mix->epcm->voices[0] && mix->epcm->voices[1]) { snd_emu10k1_send_volume_put()
1354 update_emu10k1_send_volume(emu, mix->epcm->voices[0]->number, snd_emu10k1_send_volume_put()
1356 update_emu10k1_send_volume(emu, mix->epcm->voices[1]->number, snd_emu10k1_send_volume_put()
1358 } else if (mix->epcm->voices[0]) { snd_emu10k1_send_volume_put()
1359 update_emu10k1_send_volume(emu, mix->epcm->voices[0]->number, snd_emu10k1_send_volume_put()
1421 if (mix->epcm->voices[0] && mix->epcm->voices[1]) { snd_emu10k1_attn_put()
1422 snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[0]->number, mix->attn[1]); snd_emu10k1_attn_put()
1423 snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[1]->number, mix->attn[2]); snd_emu10k1_attn_put()
1424 } else if (mix->epcm->voices[0]) { snd_emu10k1_attn_put()
1425 snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[0]->number, mix->attn[0]); snd_emu10k1_attn_put()
1495 if (mix->epcm->voices[ch]) { snd_emu10k1_efx_send_routing_put()
1496 update_emu10k1_fxrt(emu, mix->epcm->voices[ch]->number, snd_emu10k1_efx_send_routing_put()
1561 if (mix->epcm->voices[ch]) { snd_emu10k1_efx_send_volume_put()
1562 update_emu10k1_send_volume(emu, mix->epcm->voices[ch]->number, snd_emu10k1_efx_send_volume_put()
1621 if (mix->epcm->voices[ch]) { snd_emu10k1_efx_attn_put()
1622 snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[ch]->number, mix->attn[0]); snd_emu10k1_efx_attn_put()
H A Demu10k1_callback.c101 lookup_voices(emu, hw, best, 1); /* no OFF voices */ snd_emu10k1_synth_get_voice()
105 vp = &emu->voices[best[i].voice]; snd_emu10k1_synth_get_voice()
181 snd_emu10k1_voice_free(hw, &hw->voices[vp->ch]); free_voice()
240 vp = &emu->voices[i]; lookup_voices()
299 vp = &emu->voices[best[i].voice]; get_voice()
H A Demuproc.c386 voice = &emu->voices[idx]; snd_emu10k1_proc_voices_read()
482 struct snd_info_buffer *buffer, int iobase, int offset, int length, int voices) snd_emu_proc_ptr_reg_read()
494 for (j = 0; j < voices; j++) { snd_emu_proc_ptr_reg_read()
619 if (! snd_card_proc_new(emu->card, "voices", &entry)) snd_emu10k1_proc_init()
481 snd_emu_proc_ptr_reg_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer, int iobase, int offset, int length, int voices) snd_emu_proc_ptr_reg_read() argument
H A Dirq.c64 struct snd_emu10k1_voice *pvoice = emu->voices; snd_emu10k1_interrupt()
H A Demu10k1.c70 MODULE_PARM_DESC(max_synth_voices, "Maximum number of voices for WaveTable.");
H A Demu10k1x.c247 struct emu10k1x_voice voices[3]; member in struct:emu10k1x
423 epcm->voice = &epcm->emu->voices[substream->pcm->device]; snd_emu10k1x_pcm_hw_params()
792 struct emu10k1x_voice *pvoice = chip->voices; snd_emu10k1x_interrupt()
970 chip->voices[ch].emu = chip; snd_emu10k1x_create()
971 chip->voices[ch].number = ch; snd_emu10k1x_create()
H A Demu10k1_main.c2043 emu->voices[idx].emu = emu; snd_emu10k1_create()
2044 emu->voices[idx].number = idx; snd_emu10k1_create()
H A Demufx.c1175 const int capture = playback + (SND_EMU10K1_PLAYBACK_CHANNELS * 2); /* we reserve 10 voices */ _snd_emu10k1_audigy_init_efx()
1650 /* Pavel Hofman - we still have voices, A_FXBUS2s, and _snd_emu10k1_audigy_init_efx()
/linux-4.4.14/sound/drivers/opl3/
H A Dopl3_midi.c134 printk("%c", *(str + opl3->voices[i].state + 1)); debug_alloc()
174 vp = &opl3->voices[i]; opl3_get_voice()
178 drum voices or by bounded 4op voices) */ opl3_get_voice()
197 vp2 = &opl3->voices[i + 3]; opl3_get_voice()
199 /* kill two voices, EXPENSIVE */ opl3_get_voice()
251 struct snd_opl3_voice *vp = &opl3->voices[i]; snd_opl3_timer_func()
329 /* in SYNTH mode, application takes care of voices */ snd_opl3_note_on()
383 /* in SYNTH mode, application takes care of voices */ snd_opl3_note_on()
398 /* Left register block for voices 0 .. 8 */ snd_opl3_note_on()
403 /* Right register block for voices 9 .. 17 */ snd_opl3_note_on()
410 vp = &opl3->voices[voice]; snd_opl3_note_on()
417 vp2 = &opl3->voices[voice + 3]; snd_opl3_note_on()
553 opl3->voices[voice].keyon_reg = blocknum; snd_opl3_note_on()
567 opl3->voices[voice].note_off = jiffies + snd_opl3_note_on()
570 opl3->voices[voice].note_off_check = 1; snd_opl3_note_on()
572 opl3->voices[voice].note_off_check = 0; snd_opl3_note_on()
585 vp2 = &opl3->voices[voice + 3]; snd_opl3_note_on()
593 vp2 = &opl3->voices[voice + 3]; snd_opl3_note_on()
633 vp = &opl3->voices[voice]; snd_opl3_kill_voice()
635 /* Left register block for voices 0 .. 8 */ snd_opl3_kill_voice()
639 /* Right register block for voices 9 .. 17 */ snd_opl3_kill_voice()
656 vp2 = &opl3->voices[voice + 3]; snd_opl3_kill_voice()
691 /* this loop will hopefully kill all extra voices, because snd_opl3_note_off_unsafe()
694 vp = &opl3->voices[voice]; snd_opl3_note_off_unsafe()
700 /* remap OSS voices */ snd_opl3_note_off_unsafe()
760 vp = &opl3->voices[voice]; snd_opl3_update_pitch()
765 /* Left register block for voices 0 .. 8 */ snd_opl3_update_pitch()
769 /* Right register block for voices 9 .. 17 */ snd_opl3_update_pitch()
806 vp = &opl3->voices[voice]; snd_opl3_pitch_ctrl()
812 /* remap OSS voices */ snd_opl3_pitch_ctrl()
H A Dopl3_seq.c68 opl3->voices[idx].state = SNDRV_OPL3_ST_OFF; snd_opl3_synth_setup()
69 opl3->voices[idx].time = 0; snd_opl3_synth_setup()
70 opl3->voices[idx].keyon_reg = 0x00; snd_opl3_synth_setup()
114 opl3->voices[6].state = opl3->voices[7].state = snd_opl3_synth_use()
115 opl3->voices[8].state = SNDRV_OPL3_ST_NOT_AVAIL; snd_opl3_synth_use()
177 int voices, opl_ver; snd_opl3_synth_create_port() local
179 voices = (opl3->hardware < OPL3_HW_OPL3) ? snd_opl3_synth_create_port()
206 16, voices, snd_opl3_synth_create_port()
H A Dopl3_synth.c32 * There is 18 possible 2 OP voices
36 * The first three voices in the both sides may be connected
46 * Register offset table for OPL2/3 voices,
62 { 0x10, 0x13, 0x00, 0x00 }, /* used by percussive voices */
373 /* Left register block for voices 0 .. 8 */ snd_opl3_reset()
377 /* Right register block for voices 9 .. 17 */ snd_opl3_reset()
416 /* Left register block for voices 0 .. 8 */ snd_opl3_play_note()
420 /* Right register block for voices 9 .. 17 */ snd_opl3_play_note()
467 /* Left register block for voices 0 .. 8 */ snd_opl3_set_voice()
471 /* Right register block for voices 9 .. 17 */ snd_opl3_set_voice()
H A Dopl3_oss.c80 int voices, opl_ver; snd_opl3_oss_create_port() local
82 voices = (opl3->hardware < OPL3_HW_OPL3) ? snd_opl3_oss_create_port()
84 opl3->oss_chset = snd_midi_channel_alloc_set(voices); snd_opl3_oss_create_port()
105 voices, voices, snd_opl3_oss_create_port()
H A Dopl3_drums.c163 * Loads drum voices at init time
/linux-4.4.14/sound/oss/
H A Dopl3_hw.h16 * a bit mask defining which voices are used as 4 OP voices.
32 * even be left unconnected. This works with 4 OP voices also.
35 * register of the voice (0xC0-0xC8). In 4 OP voices these bits are
121 * Offsets to the register banks for voices. Just add to the
141 * to the stereo channels. For 4 OP voices this bit is
145 * For 4 OP voices the connection bit is used in the
190 * Definition table for the physical voices
201 * There is 18 possible 2 OP voices
205 * The first three voices in the both sides may be connected
228 { 6, 2, USE_LEFT, {0x10, 0x13, 0x00, 0x00}}, /* Used by percussive voices */
/linux-4.4.14/sound/isa/sb/
H A Demu8000_pcm.c64 int voices; member in struct:snd_emu8k_pcm
83 /* reserve up to 2 voices for playback */ emu8k_open_dram_for_pcm()
88 /* reserve 28 voices for loading */ emu8k_open_dram_for_pcm()
391 for (ch = 0; ch < rec->voices; ch++) emu8k_pcm_trigger()
397 for (ch = 0; ch < rec->voices; ch++) emu8k_pcm_trigger()
454 count /= rec->voices; emu8k_pcm_copy()
455 for (i = 0; i < rec->voices; i++) { emu8k_pcm_copy()
488 if (voice == -1 && rec->voices == 1) emu8k_pcm_silence()
519 if (rec->voices > 1) emu8k_pcm_copy()
529 if (rec->voices > 1) { emu8k_pcm_copy()
550 if (rec->voices > 1) emu8k_pcm_silence()
555 if (rec->voices > 1) { emu8k_pcm_silence()
599 for (ch = 0; ch < rec->voices; ch++) emu8k_pcm_hw_free()
621 rec->voices = subs->runtime->channels; emu8k_pcm_prepare()
623 if (rec->voices > 1) emu8k_pcm_prepare()
625 if (rec->voices > 1) { emu8k_pcm_prepare()
635 if ((err = emu8k_open_dram_for_pcm(rec->emu, rec->voices)) != 0) emu8k_pcm_prepare()
644 for (ch = 0; ch < rec->voices; ch++) { emu8k_pcm_prepare()
652 if (rec->voices > 1) emu8k_pcm_prepare()
H A Demu8000_patch.c39 /* reserve all 30 voices for loading */ snd_emu8000_open_dma()
299 * sample_reset callback - terminate voices
H A Demu8000_callback.c150 * no matter what. If there is a real shortage of voices then one
188 vp = &emu->voices[i]; get_voice()
221 vp = &emu->voices[best[i].voice]; get_voice()
H A Demu8000.c466 * and therefore lose 2 voices.
543 /* terminate all voices */ snd_emu8000_init_hw()
/linux-4.4.14/include/sound/
H A Dopl3.h15 * a bit mask defining which voices are used as 4 OP voices.
31 * even be left unconnected. This works with 4 OP voices also.
34 * register of the voice (0xC0-0xC8). In 4 OP voices these bits are
148 * Offsets to the register banks for voices. Just add to the
168 * to the stereo channels. For 4 OP voices this bit is
172 * For 4 OP voices the connection bit is used in the
323 unsigned char max_voices; /* max number of voices */
325 #define SNDRV_OPL3_MODE_SYNTH 0 /* OSS - voices allocated by application */
341 struct snd_opl3_voice voices[MAX_OPL3_VOICES]; /* Voices (OPL3 'channel') */ member in struct:snd_opl3
H A Demux_synth.h79 #define SNDRV_EMUX_MAX_VOICES 64 /* max # of voices */
80 #define SNDRV_EMUX_MAX_MULTI_VOICES 16 /* max # of playable voices
97 int max_voices; /* Number of voices */
111 int num_voices; /* current number of voices */
113 struct snd_emux_voice *voices; /* Voices (EMU 'channel') */ member in struct:snd_emux
H A Demu10k1_synth.h34 int max_voices; /* maximum number of voices for wavetable */
H A Demu8000.h33 #define EMU8000_DRAM_VOICES 30 /* number of normal voices */
57 * the number in use for wave voices.
H A Dgus.h300 effect:1; /* use effect voices */
327 unsigned char active_voices; /* active voices */
330 struct snd_gus_voice voices[32]; /* GF1 voices */ member in struct:snd_gf1
608 int voices,
H A Demu10k1.h1527 struct snd_emu10k1_voice *voices[NUM_EFX_PLAYBACK]; member in struct:snd_emu10k1_pcm
1755 struct snd_emu10k1_voice voices[NUM_G]; member in struct:snd_emu10k1
/linux-4.4.14/sound/pci/ymfpci/
H A Dymfpci_main.c228 voice = &chip->voices[idx]; voice_alloc()
229 voice2 = pair ? &chip->voices[idx+1] : NULL; voice_alloc()
346 if (ypcm->voices[1]) snd_ymfpci_pcm_interrupt()
347 bank = &ypcm->voices[1]->bank[next_bank]; snd_ymfpci_pcm_interrupt()
399 if (ypcm->voices[0] == NULL) { snd_ymfpci_playback_trigger()
407 chip->ctrl_playback[ypcm->voices[0]->number + 1] = cpu_to_le32(ypcm->voices[0]->bank_addr); snd_ymfpci_playback_trigger()
408 if (ypcm->voices[1] != NULL && !ypcm->use_441_slot) snd_ymfpci_playback_trigger()
409 chip->ctrl_playback[ypcm->voices[1]->number + 1] = cpu_to_le32(ypcm->voices[1]->bank_addr); snd_ymfpci_playback_trigger()
420 chip->ctrl_playback[ypcm->voices[0]->number + 1] = 0; snd_ymfpci_playback_trigger()
421 if (ypcm->voices[1] != NULL && !ypcm->use_441_slot) snd_ymfpci_playback_trigger()
422 chip->ctrl_playback[ypcm->voices[1]->number + 1] = 0; snd_ymfpci_playback_trigger()
467 static int snd_ymfpci_pcm_voice_alloc(struct snd_ymfpci_pcm *ypcm, int voices) snd_ymfpci_pcm_voice_alloc() argument
471 if (ypcm->voices[1] != NULL && voices < 2) { snd_ymfpci_pcm_voice_alloc()
472 snd_ymfpci_voice_free(ypcm->chip, ypcm->voices[1]); snd_ymfpci_pcm_voice_alloc()
473 ypcm->voices[1] = NULL; snd_ymfpci_pcm_voice_alloc()
475 if (voices == 1 && ypcm->voices[0] != NULL) snd_ymfpci_pcm_voice_alloc()
477 if (voices == 2 && ypcm->voices[0] != NULL && ypcm->voices[1] != NULL) snd_ymfpci_pcm_voice_alloc()
479 if (voices > 1) { snd_ymfpci_pcm_voice_alloc()
480 if (ypcm->voices[0] != NULL && ypcm->voices[1] == NULL) { snd_ymfpci_pcm_voice_alloc()
481 snd_ymfpci_voice_free(ypcm->chip, ypcm->voices[0]); snd_ymfpci_pcm_voice_alloc()
482 ypcm->voices[0] = NULL; snd_ymfpci_pcm_voice_alloc()
485 err = snd_ymfpci_voice_alloc(ypcm->chip, YMFPCI_PCM, voices > 1, &ypcm->voices[0]); snd_ymfpci_pcm_voice_alloc()
488 ypcm->voices[0]->ypcm = ypcm; snd_ymfpci_pcm_voice_alloc()
489 ypcm->voices[0]->interrupt = snd_ymfpci_pcm_interrupt; snd_ymfpci_pcm_voice_alloc()
490 if (voices > 1) { snd_ymfpci_pcm_voice_alloc()
491 ypcm->voices[1] = &ypcm->chip->voices[ypcm->voices[0]->number + 1]; snd_ymfpci_pcm_voice_alloc()
492 ypcm->voices[1]->ypcm = ypcm; snd_ymfpci_pcm_voice_alloc()
501 struct snd_ymfpci_voice *voice = ypcm->voices[voiceidx]; snd_ymfpci_pcm_init_voice()
665 if (ypcm->voices[1]) { snd_ymfpci_playback_hw_free()
666 snd_ymfpci_voice_free(chip, ypcm->voices[1]); snd_ymfpci_playback_hw_free()
667 ypcm->voices[1] = NULL; snd_ymfpci_playback_hw_free()
669 if (ypcm->voices[0]) { snd_ymfpci_playback_hw_free()
670 snd_ymfpci_voice_free(chip, ypcm->voices[0]); snd_ymfpci_playback_hw_free()
671 ypcm->voices[0] = NULL; snd_ymfpci_playback_hw_free()
764 struct snd_ymfpci_voice *voice = ypcm->voices[0]; snd_ymfpci_playback_pointer()
809 voice = &chip->voices[nvoice]; snd_ymfpci_interrupt()
2143 chip->voices[voice].number = voice; snd_ymfpci_memalloc()
2144 chip->voices[voice].bank = (struct snd_ymfpci_playback_bank *)ptr; snd_ymfpci_memalloc()
2145 chip->voices[voice].bank_addr = ptr_addr; snd_ymfpci_memalloc()
H A Dymfpci.h271 struct snd_ymfpci_voice *voices[2]; /* playback only */ member in struct:snd_ymfpci_pcm
327 struct snd_ymfpci_voice voices[64]; member in struct:snd_ymfpci
/linux-4.4.14/sound/isa/gus/
H A Dgus_io.c419 unsigned short voices; snd_gf1_select_active_voices() local
427 voices = gus->gf1.active_voices; snd_gf1_select_active_voices()
428 if (voices > 32) snd_gf1_select_active_voices()
429 voices = 32; snd_gf1_select_active_voices()
430 if (voices < 14) snd_gf1_select_active_voices()
431 voices = 14; snd_gf1_select_active_voices()
433 voices = 32; snd_gf1_select_active_voices()
434 gus->gf1.active_voices = voices; snd_gf1_select_active_voices()
436 gus->gf1.enh_mode ? 44100 : voices_tbl[voices - 14]; snd_gf1_select_active_voices()
438 snd_gf1_i_write8(gus, SNDRV_GF1_GB_ACTIVE_VOICES, 0xc0 | (voices - 1)); snd_gf1_select_active_voices()
483 printk(KERN_INFO " -G- GF1 active voices = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_ACTIVE_VOICES));
490 printk(KERN_INFO " -G- GF1 voices IRQ read = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_VOICES_IRQ_READ));
H A Dgus_reset.c85 voice = &gus->gf1.voices[what & 0xffff]; snd_gf1_set_default_handlers()
126 * put selected GF1 voices to initial stage...
271 pvoice = &gus->gf1.voices[idx]; snd_gf1_alloc_voice()
279 pvoice = &gus->gf1.voices[idx]; snd_gf1_alloc_voice()
332 gus->gf1.voices[i].number = i; snd_gf1_start()
405 snd_gf1_stop_voices(gus, 0, 31); /* stop all voices */ snd_gf1_stop()
H A Dgus_main.c136 int voices, snd_gus_create()
208 if (voices < 14) snd_gus_create()
209 voices = 14; snd_gus_create()
210 if (voices > 32) snd_gus_create()
211 voices = 32; snd_gus_create()
219 gus->gf1.active_voices = voices; snd_gus_create()
132 snd_gus_create(struct snd_card *card, unsigned long port, int irq, int dma1, int dma2, int timer_dev, int voices, int pcm_channels, int effect, struct snd_gus_card **rgus) snd_gus_create() argument
H A Dgus_irq.c72 pvoice = &gus->gf1.voices[voice]; snd_gus_interrupt()
133 pvoice = &gus->gf1.voices[idx]; snd_gus_irq_info_read()
H A Dgus_pcm.c48 unsigned int voices; member in struct:gus_pcm_private
136 for (voice = 0; voice < pcmp->voices; voice++) { snd_gf1_pcm_trigger_up()
167 for (voice = 0; voice < pcmp->voices; voice++) { snd_gf1_pcm_trigger_up()
177 for (voice = 0; voice < pcmp->voices; voice++) { snd_gf1_pcm_trigger_up()
237 for (idx = 0; idx < pcmp->voices; idx++, end += step) { snd_gf1_pcm_interrupt_wave()
247 for (idx = 0; idx < pcmp->voices; idx++) { snd_gf1_pcm_interrupt_wave()
442 pcmp->voices = params_channels(hw_params); snd_gf1_pcm_playback_hw_params()
451 if (pcmp->voices > 1 && pcmp->pvoices[1] == NULL) { snd_gf1_pcm_playback_hw_params()
458 } else if (pcmp->voices == 1) { snd_gf1_pcm_playback_hw_params()
791 pvoice = &gus->gf1.voices[idx]; snd_gf1_pcm_volume_put()
/linux-4.4.14/sound/drivers/opl4/
H A Dopl4_synth.c271 * Initializes all voices.
285 memset(opl4->voices, 0, sizeof(opl4->voices)); snd_opl4_synth_reset()
287 opl4->voices[i].number = i; snd_opl4_synth_reset()
288 list_add_tail(&opl4->voices[i].list, &opl4->off_voices); snd_opl4_synth_reset()
295 * Shuts down all voices.
305 opl4->voices[i].reg_misc & ~OPL4_KEY_ON_BIT); snd_opl4_synth_shutdown()
310 * Executes the callback for all voices playing the specified note.
321 voice = &opl4->voices[i]; snd_opl4_do_for_note()
330 * Executes the callback for all voices of to the specified channel.
342 voice = &opl4->voices[i]; snd_opl4_do_for_channel()
351 * Executes the callback for all active voices.
362 voice = &opl4->voices[i]; snd_opl4_do_for_all()
488 int voices = 0, i; snd_opl4_note_on() local
491 /* determine the number of voices and voice parameters */ snd_opl4_note_on()
497 sound[voices] = &regions->regions[i].sound; snd_opl4_note_on()
498 if (++voices >= 2) snd_opl4_note_on()
503 /* allocate and initialize the needed voices */ snd_opl4_note_on()
505 for (i = 0; i < voices; i++) { snd_opl4_note_on()
515 for (i = 0; i < voices; i++) { snd_opl4_note_on()
525 for (i = 0; i < voices; i++) { snd_opl4_note_on()
539 for (i = 0; i < voices; i++) { snd_opl4_note_on()
545 /* finally, switch on all voices */ snd_opl4_note_on()
546 for (i = 0; i < voices; i++) { snd_opl4_note_on()
H A Dopl4_local.h58 * Offsets to the register banks for voices. To get the
195 struct opl4_voice voices[OPL4_MAX_VOICES]; member in struct:snd_opl4
/linux-4.4.14/sound/pci/ice1712/
H A Dphase.c481 int voices = kcontrol->private_value >> 8; wm_vol_info() local
483 uinfo->count = voices; wm_vol_info()
494 int i, ofs, voices; wm_vol_get() local
496 voices = kcontrol->private_value >> 8; wm_vol_get()
498 for (i = 0; i < voices; i++) wm_vol_get()
509 int i, idx, ofs, voices; wm_vol_put() local
512 voices = kcontrol->private_value >> 8; wm_vol_put()
515 for (i = 0; i < voices; i++) { wm_vol_put()
550 int voices, ofs, i; wm_mute_get() local
552 voices = kcontrol->private_value >> 8; wm_mute_get()
555 for (i = 0; i < voices; i++) wm_mute_get()
566 int change = 0, voices, ofs, i; wm_mute_put() local
568 voices = kcontrol->private_value >> 8; wm_mute_put()
572 for (i = 0; i < voices; i++) { wm_mute_put()
H A Dprodigy_hifi.c433 int voices = kcontrol->private_value >> 8; wm8766_vol_info() local
435 uinfo->count = voices; wm8766_vol_info()
446 int i, ofs, voices; wm8766_vol_get() local
448 voices = kcontrol->private_value >> 8; wm8766_vol_get()
450 for (i = 0; i < voices; i++) wm8766_vol_get()
459 int i, idx, ofs, voices; wm8766_vol_put() local
462 voices = kcontrol->private_value >> 8; wm8766_vol_put()
465 for (i = 0; i < voices; i++) { wm8766_vol_put()
H A Daureon.c798 int voices = kcontrol->private_value >> 8; wm_vol_info() local
800 uinfo->count = voices; wm_vol_info()
810 int i, ofs, voices; wm_vol_get() local
812 voices = kcontrol->private_value >> 8; wm_vol_get()
814 for (i = 0; i < voices; i++) wm_vol_get()
824 int i, idx, ofs, voices; wm_vol_put() local
827 voices = kcontrol->private_value >> 8; wm_vol_put()
830 for (i = 0; i < voices; i++) { wm_vol_put()
863 int voices, ofs, i; wm_mute_get() local
865 voices = kcontrol->private_value >> 8; wm_mute_get()
868 for (i = 0; i < voices; i++) wm_mute_get()
878 int change = 0, voices, ofs, i; wm_mute_put() local
880 voices = kcontrol->private_value >> 8; wm_mute_put()
884 for (i = 0; i < voices; i++) { wm_mute_put()
/linux-4.4.14/sound/synth/emux/
H A Demux_synth.c133 vp = &emu->voices[i]; snd_emux_note_on()
177 vp = &emu->voices[ch]; snd_emux_note_off()
214 vp = &emu->voices[ch]; snd_emux_timer_callback()
254 vp = &emu->voices[ch]; snd_emux_key_press()
266 * Modulate the voices which belong to the channel
285 vp = &emu->voices[i]; snd_emux_update_channel()
293 * Modulate all the voices which belong to the port.
312 vp = &emu->voices[i]; snd_emux_update_port()
386 vp = &emu->voices[i]; terminate_note1()
428 vp = &emu->voices[i]; snd_emux_terminate_all()
447 * Terminate all voices associated with the given port
465 vp = &emu->voices[i]; snd_emux_sounds_off_all()
481 * Terminate all voices that have the same exclusive class. This
493 vp = &emu->voices[i]; exclusive_note_off()
936 vp = &emu->voices[i]; snd_emux_init_voices()
955 if (emu->voices[voice].state == SNDRV_EMUX_ST_OFF) snd_emux_lock_voice()
956 emu->voices[voice].state = SNDRV_EMUX_ST_LOCKED; snd_emux_lock_voice()
960 voice, emu->voices[voice].state); snd_emux_lock_voice()
973 if (emu->voices[voice].state == SNDRV_EMUX_ST_LOCKED) snd_emux_unlock_voice()
974 emu->voices[voice].state = SNDRV_EMUX_ST_OFF; snd_emux_unlock_voice()
978 voice, emu->voices[voice].state); snd_emux_unlock_voice()
H A Demux.c102 emu->voices = kcalloc(emu->max_voices, sizeof(struct snd_emux_voice), snd_emux_register()
104 if (emu->voices == NULL) snd_emux_register()
159 kfree(emu->voices); snd_emux_free()
H A Demux_proc.c63 if (emu->voices[0].state != SNDRV_EMUX_ST_OFF && emu->voices[0].ch >= 0) { snd_emux_proc_info_read()
64 struct snd_emux_voice *vp = &emu->voices[0]; snd_emux_proc_info_read()
H A Demux_effect.c211 struct snd_emux_voice *vp = &emu->voices[i]; snd_emux_send_effect()
H A Demux_seq.c124 if (emu->voices) snd_emux_detach_seq()
/linux-4.4.14/sound/core/seq/
H A Dseq_compat.c33 s32 midi_voices; /* voices per MIDI port */
34 s32 synth_voices; /* voices per SYNTH port */
H A Dseq_ports.c353 /* information about supported channels/voices */ snd_seq_set_port_info()
382 /* information about supported channels/voices */ snd_seq_get_port_info()
/linux-4.4.14/include/uapi/linux/
H A Dultrasound.h31 * _GUS_NUMVOICES - Sets max. number of concurrent voices (P1=14-31, default 16)
50 * for all voices.
/linux-4.4.14/sound/mips/
H A Dhal2.c78 int voices; /* mono/stereo */ member in struct:hal2_codec
374 sample_size = 2 * hal2->dac.voices; hal2_setup_dac()
394 | (hal2->dac.voices << H2I_C1_DATAT_SHIFT)); hal2_setup_dac()
402 sample_size = 2 * hal2->adc.voices; hal2_setup_adc()
419 | (hal2->adc.voices << H2I_C1_DATAT_SHIFT)); hal2_setup_adc()
558 dac->voices = runtime->channels; hal2_playback_prepare()
650 adc->voices = runtime->channels; hal2_capture_prepare()
/linux-4.4.14/include/uapi/sound/
H A Dasequencer.h455 int midi_voices; /* voices per MIDI port */
456 int synth_voices; /* voices per SYNTH port */
546 unsigned int voices; /* number of voices to be allocated (0 = don't care) */ member in struct:snd_seq_port_subscribe
H A Dasound_fm.h78 * FM parameters that apply globally to all voices, and thus are not "notes"
H A Dsfnt_info.h147 char nvoices; /* number of voices */
/linux-4.4.14/sound/pci/
H A Dsis7019.c62 /* There are three timing modes for the voices.
133 struct voice voices[64]; member in struct:sis7019
331 sis_voice_irq(status, sis->voices); sis_interrupt()
337 sis_voice_irq(status, &sis->voices[32]); sis_interrupt()
423 voice = &sis->voices[i]; __sis_alloc_playback_voice()
604 * substreams, and the HW will only start/stop the indicated voices sis_pcm_trigger()
902 /* We have 64 voices, and the driver currently records from sis_pcm_create()
1376 voice = &sis->voices[i]; sis_chip_create()
/linux-4.4.14/sound/usb/
H A Dmidi.c1536 short int voices; member in struct:port_info
1542 .port = num, .voices = voices_, \
1553 #define GM_SYNTH_PORT(vendor, product, num, name, voices) \
1554 PORT_INFO(vendor, product, num, name, voices, \
1559 #define ROLAND_SYNTH_PORT(vendor, product, num, name, voices) \
1560 PORT_INFO(vendor, product, num, name, voices, \
1568 #define SOUNDCANVAS_PORT(vendor, product, num, name, voices) \
1569 PORT_INFO(vendor, product, num, name, voices, \
1730 seq_port_info->midi_voices = port_info->voices; snd_usbmidi_get_port_info()
/linux-4.4.14/sound/pci/cs46xx/
H A Dcs46xx_dsp_scb_types.h157 On wavetable/3D voices: the strmBufPtr will use all 32 bits to allow for
163 On wavetable/3D voices: this 32-bit word specifies the integer.fractional
180 These two 32-bit words are redefined for wavetable & 3-D voices.
/linux-4.4.14/sound/isa/wavefront/
H A Dwavefront_synth.c156 { 0x04, "Error in number of voices" },
170 { WFC_SET_NVOICES, "set number of voices", 0, 1, NEEDS_ACK },
171 { WFC_GET_NVOICES, "get number of voices", 1, 0, 0 },
2021 char voices[1]; wavefront_do_reset()
2088 voices[0] = 32; wavefront_do_reset()
2090 if (snd_wavefront_cmd (dev, WFC_SET_NVOICES, NULL, voices)) { wavefront_do_reset()
2091 snd_printk ("cannot set number of voices to 32.\n"); wavefront_do_reset()
2017 char voices[1]; wavefront_do_reset() local
/linux-4.4.14/sound/pci/ali5451/
H A Dali5451.c211 struct snd_ali_voice voices[ALI_CHANNELS]; member in struct:snd_alidev
862 pvoice = &codec->synth.voices[channel]; snd_ali_update_ptr()
881 } else if (codec->synth.voices[channel].synth) { snd_ali_update_ptr()
883 } else if (codec->synth.voices[channel].midi) { snd_ali_update_ptr()
940 pvoice = &(codec->synth.voices[idx]); snd_ali_alloc_voice()
2194 /* initialise synth voices*/ snd_ali_create()
2196 codec->synth.voices[i].number = i; snd_ali_create()
/linux-4.4.14/sound/pci/au88x0/
H A Dau88x0_synth.c56 /* There is one DSREG register for each bank (32 voices each). */ vortex_wt_setdsout()
/linux-4.4.14/sound/pci/trident/
H A Dtrident.h339 struct snd_trident_voice voices[64]; member in struct:snd_4dwave
H A Dtrident_main.c3641 /* initialise synth voices */ snd_trident_create()
3643 voice = &trident->synth.voices[i]; snd_trident_create()
3745 voice = &trident->synth.voices[channel]; snd_trident_interrupt()
3829 pvoice = &trident->synth.voices[idx]; snd_trident_alloc_voice()
3845 pvoice = &trident->synth.voices[idx]; snd_trident_alloc_voice()
/linux-4.4.14/sound/core/seq/oss/
H A Dseq_oss_synth.c652 snd_iprintf(buf, " type 0x%x : subtype 0x%x : voices %d\n", snd_seq_oss_synth_info_read()
/linux-4.4.14/net/netfilter/
H A Dnf_conntrack_core.c1490 * Mishearing the voices in his head, our hero wonders how he's

Completed in 1487 milliseconds