/sound/isa/gus/ |
H A D | gus_irq.c | 57 unsigned char voice_status, voice; local 62 voice = voice_status & 0x1f; 63 _current_ = 1 << voice; 68 printk(KERN_DEBUG "voice = %i, voice_status = 0x%x, " 70 voice, voice_status, inb(GUSP(gus, GF1PAGE))); 72 pvoice = &gus->gf1.voices[voice]; 74 if (!(voice_status & 0x80)) { /* voice position IRQ */ 131 snd_iprintf(buffer, "voice lost = %u\n", gus->gf1.interrupt_stat_voice_lost); 134 snd_iprintf(buffer, "voice %i: wave = %u, volume = %u\n",
|
H A D | gus_reset.c | 56 static void snd_gf1_default_interrupt_handler_wave_and_volume(struct snd_gus_card * gus, struct snd_gus_voice * voice) argument 83 struct snd_gus_voice *voice; local 85 voice = &gus->gf1.voices[what & 0xffff]; 86 voice->handler_wave = 87 voice->handler_volume = snd_gf1_default_interrupt_handler_wave_and_volume; 88 voice->handler_effect = NULL; 89 voice->volume_change = NULL; 129 void snd_gf1_smart_stop_voice(struct snd_gus_card * gus, unsigned short voice) argument 134 snd_gf1_select_voice(gus, voice); 136 printk(KERN_DEBUG " -%i- smart stop voice 143 snd_gf1_stop_voice(struct snd_gus_card * gus, unsigned short voice) argument 291 snd_gf1_free_voice(struct snd_gus_card * gus, struct snd_gus_voice *voice) argument [all...] |
H A D | gus_io.c | 448 int voice, ctrl; local 450 voice = gus->gf1.active_voice; 451 printk(KERN_INFO " -%i- GF1 voice ctrl, ramp ctrl = 0x%x, 0x%x\n", voice, ctrl = snd_gf1_i_read8(gus, 0), snd_gf1_i_read8(gus, 0x0d)); 452 printk(KERN_INFO " -%i- GF1 frequency = 0x%x\n", voice, snd_gf1_i_read16(gus, 1)); 453 printk(KERN_INFO " -%i- GF1 loop start, end = 0x%x (0x%x), 0x%x (0x%x)\n", voice, snd_gf1_i_read_addr(gus, 2, ctrl & 4), snd_gf1_i_read_addr(gus, 2, (ctrl & 4) ^ 4), snd_gf1_i_read_addr(gus, 4, ctrl & 4), snd_gf1_i_read_addr(gus, 4, (ctrl & 4) ^ 4)); 454 printk(KERN_INFO " -%i- GF1 ramp start, end, rate = 0x%x, 0x%x, 0x%x\n", voice, snd_gf1_i_read8(gus, 7), snd_gf1_i_read8(gus, 8), snd_gf1_i_read8(gus, 6)); 455 printk(KERN_INFO" -%i- GF1 volume = 0x%x\n", voice, snd_gf1_i_read16(gus, 9)); 456 printk(KERN_INFO " -%i- GF1 position = 0x%x (0x%x)\n", voice, snd_gf1_i_read_addr(gus, 0x0a, ctrl & 4), snd_gf1_i_read_addr(gus, 0x0a, (ctrl & 4) ^ 4)); 459 printk(KERN_INFO " -%i- GFA1 mode = 0x%x\n", voice, mod [all...] |
H A D | gus_pcm.c | 117 unsigned int voice; local 136 for (voice = 0; voice < pcmp->voices; voice++) { 137 begin = pcmp->memory + voice * (pcmp->dma_size / runtime->channels); 146 pan = runtime->channels == 2 ? (!voice ? 1 : 14) : 8; 147 vol = !voice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right; 149 snd_gf1_select_voice(gus, pcmp->pvoices[voice]->number); 167 for (voice = 0; voice < pcm 356 snd_gf1_pcm_playback_copy(struct snd_pcm_substream *substream, int voice, snd_pcm_uframes_t pos, void __user *src, snd_pcm_uframes_t count) argument 388 snd_gf1_pcm_playback_silence(struct snd_pcm_substream *substream, int voice, snd_pcm_uframes_t pos, snd_pcm_uframes_t count) argument 506 int voice; local [all...] |
/sound/pci/emu10k1/ |
H A D | irq.c | 60 int voice; local 66 for (voice = 0; voice <= voice_max; voice++) { 67 if (voice == 0x20) 72 snd_emu10k1_voice_intr_ack(emu, voice); 74 snd_emu10k1_voice_intr_disable(emu, voice); 81 for (voice = 0; voice <= voice_max; voice [all...] |
H A D | voice.c | 5 * Routines for control of EMU10K1 chips - voice manager 7 * Rewrote voice allocator for multichannel support - rlrevell 12/2004 35 /* Previously the voice allocator started at 0 every time. The new voice 36 * allocator uses a round robin scheme. The next free voice is tracked in 39 * boundary. For multichannel voice allocation we ensure than the block of 40 * voices does not cross the 32 voice boundary. This simplifies the 50 struct snd_emu10k1_voice *voice; local 70 voice = &emu->voices[(i+k) % NUM_G]; 71 if (voice [all...] |
H A D | emu10k1_callback.c | 24 /* voice status */ 32 int voice; member in struct:best_voice 84 * get more voice for pcm 86 * terminate most inactive voice and give it as a pcm voice. 102 if (best[i].voice >= 0) { 104 vp = &emu->voices[best[i].voice]; 127 * turn off the voice (not terminated) 144 * terminate the voice 164 * release the voice t [all...] |
H A D | emuproc.c | 391 struct snd_emu10k1_voice *voice; local 396 voice = &emu->voices[idx]; 399 voice->use, 400 voice->pcm, 401 voice->efx, 402 voice->synth, 403 voice->midi);
|
H A D | emumixer.c | 1131 static void update_emu10k1_fxrt(struct snd_emu10k1 *emu, int voice, unsigned char *route) argument 1134 snd_emu10k1_ptr_write(emu, A_FXRT1, voice, 1136 snd_emu10k1_ptr_write(emu, A_FXRT2, voice, 1139 snd_emu10k1_ptr_write(emu, FXRT, voice, 1144 static void update_emu10k1_send_volume(struct snd_emu10k1 *emu, int voice, unsigned char *volume) argument 1146 snd_emu10k1_ptr_write(emu, PTRX_FXSENDAMOUNT_A, voice, volume[0]); 1147 snd_emu10k1_ptr_write(emu, PTRX_FXSENDAMOUNT_B, voice, volume[1]); 1148 snd_emu10k1_ptr_write(emu, PSST_FXSENDAMOUNT_C, voice, volume[2]); 1149 snd_emu10k1_ptr_write(emu, DSL_FXSENDAMOUNT_D, voice, volume[3]); 1155 snd_emu10k1_ptr_write(emu, A_SENDAMOUNTS, voice, va 1178 int voice, idx; local 1198 int change = 0, voice, idx, val; local [all...] |
H A D | emupcm.c | 38 struct snd_emu10k1_voice *voice) 42 if ((epcm = voice->epcm) == NULL) 291 int voice, stereo, w_16; local 298 voice = evoice->number; 323 /* mono, left, right (master voice = left) */ 338 snd_emu10k1_ptr_write(emu, CPF, voice, CPF_STEREO_MASK); 339 snd_emu10k1_ptr_write(emu, CPF, (voice + 1), CPF_STEREO_MASK); 341 snd_emu10k1_ptr_write(emu, CPF, voice, 0); 347 snd_emu10k1_ptr_write(emu, A_FXRT1, voice, 349 snd_emu10k1_ptr_write(emu, A_FXRT2, voice, 37 snd_emu10k1_pcm_interrupt(struct snd_emu10k1 *emu, struct snd_emu10k1_voice *voice) argument 639 unsigned int voice, stereo, i, ccis, cra = 64, cs, sample; local 678 unsigned int voice, tmp; local 700 unsigned int voice, pitch, pitch_target; local 723 unsigned int voice; local [all...] |
/sound/pci/au88x0/ |
H A D | au88x0_synth.c | 68 wt_voice_t *voice = &(vortex->wt_voice[wt]); local 106 voice->parm0 = voice->parm1 = 0xcfb23e2f; 107 hwwrite(vortex->mmio, WT_PARM(wt, 0), voice->parm0); 108 hwwrite(vortex->mmio, WT_PARM(wt, 1), voice->parm1); 206 printk(KERN_ERR "vortex: WT SetReg: voice out of range\n"); 345 wt_voice_t *voice = &(vortex->wt_voice[wt]); 349 voice->parm0 &= 0xff00ffff; 350 voice->parm0 |= (vol[0] & 0xff) << 0x10; 351 voice [all...] |
/sound/drivers/opl3/ |
H A D | opl3_drums.c | 49 int voice; member in struct:snd_opl3_drum_voice 60 int voice; member in struct:snd_opl3_drum_note 81 * set drum voice characteristics 86 unsigned char op_offset = snd_opl3_regmap[data->voice][data->op]; 87 unsigned char voice_offset = data->voice; 116 * Set drum voice pitch 121 unsigned char voice_offset = data->voice; 134 * Set drum voice volume and position 140 unsigned char op_offset = snd_opl3_regmap[data->voice][data->op]; 141 unsigned char voice_offset = data->voice; [all...] |
H A D | opl3_synth.c | 36 * with another voice to a 4 OP voice. For example voice 0 37 * can be connected with voice 3. The operators of voice 3 are 38 * used as operators 3 and 4 of the new 4 OP voice. 39 * In this case the 2 OP voice number 0 is the 'first half' and 40 * voice 3 is the second. 72 static int snd_opl3_set_voice(struct snd_opl3 * opl3, struct snd_dm_fm_voice * voice); 135 struct snd_dm_fm_voice voice; local 446 snd_opl3_set_voice(struct snd_opl3 * opl3, struct snd_dm_fm_voice * voice) argument [all...] |
H A D | opl3_midi.c | 126 static void debug_alloc(struct snd_opl3 *opl3, char *s, int voice) { argument 130 printk(KERN_DEBUG "time %.5i: %s [%.2i]: ", opl3->use_time, s, voice); 138 * Get a FM voice (channel) to play a note on. 142 int chan_4op_1; /* first voice for 4op instrument */ 143 int chan_4op_2; /* second voice for 4op instrument */ 161 int voice; member in struct:best 167 best[i].voice = -1; 185 /* allocate 4op voice */ 191 /* kill one voice, CHEAP */ 203 /* allocate 2op voice */ 300 int voice; local 618 snd_opl3_kill_voice(struct snd_opl3 *opl3, int voice) argument 672 int voice; local 743 snd_opl3_update_pitch(struct snd_opl3 *opl3, int voice) argument 793 int voice; local [all...] |
/sound/drivers/opl4/ |
H A D | opl4_synth.c | 313 void (*func)(struct snd_opl4 *opl4, struct opl4_voice *voice)) 317 struct opl4_voice *voice; local 321 voice = &opl4->voices[i]; 322 if (voice->chan == chan && voice->note == note) { 323 func(opl4, voice); 334 void (*func)(struct snd_opl4 *opl4, struct opl4_voice *voice)) 338 struct opl4_voice *voice; local 342 voice = &opl4->voices[i]; 343 if (voice 312 snd_opl4_do_for_note(struct snd_opl4 *opl4, int note, struct snd_midi_channel *chan, void (*func)(struct snd_opl4 *opl4, struct opl4_voice *voice)) argument 332 snd_opl4_do_for_channel(struct snd_opl4 *opl4, struct snd_midi_channel *chan, void (*func)(struct snd_opl4 *opl4, struct opl4_voice *voice)) argument 353 snd_opl4_do_for_all(struct snd_opl4 *opl4, void (*func)(struct snd_opl4 *opl4, struct opl4_voice *voice)) argument 358 struct opl4_voice *voice; local 369 snd_opl4_update_volume(struct snd_opl4 *opl4, struct opl4_voice *voice) argument 388 snd_opl4_update_pan(struct snd_opl4 *opl4, struct opl4_voice *voice) argument 403 snd_opl4_update_vibrato_depth(struct snd_opl4 *opl4, struct opl4_voice *voice) argument 419 snd_opl4_update_pitch(struct snd_opl4 *opl4, struct opl4_voice *voice) argument 450 snd_opl4_update_tone_parameters(struct snd_opl4 *opl4, struct opl4_voice *voice) argument 486 struct opl4_voice *voice[2]; local 556 snd_opl4_voice_off(struct snd_opl4 *opl4, struct opl4_voice *voice) argument 572 snd_opl4_terminate_voice(struct snd_opl4 *opl4, struct opl4_voice *voice) argument [all...] |
/sound/isa/sb/ |
H A D | emu8000_callback.c | 92 * Terminate a voice 147 * Find a channel (voice) within the EMU that is not in use or at least 170 int voice; member in struct:best 178 best[i].voice = -1; 214 bp->voice = i; 219 if (best[i].voice >= 0) { 220 vp = &emu->voices[best[i].voice]; 221 vp->ch = best[i].voice; 262 for triggerg the voice */ 332 * reset voice parameter [all...] |
H A D | emu8000_pcm.c | 99 /* assign voice 31 and 32 to ROM */ 281 * set up the voice 304 for triggerg the voice */ 334 * trigger the voice 370 * stop the voice immediately 446 int voice, 455 if (voice == -1) { 467 return emu8k_transfer_block(emu, pos + rec->loop_start[voice], src, count); 484 int voice, 492 if (voice 445 emu8k_pcm_copy(struct snd_pcm_substream *subs, int voice, snd_pcm_uframes_t pos, void *src, snd_pcm_uframes_t count) argument 483 emu8k_pcm_silence(struct snd_pcm_substream *subs, int voice, snd_pcm_uframes_t pos, snd_pcm_uframes_t count) argument 511 emu8k_pcm_copy(struct snd_pcm_substream *subs, int voice, snd_pcm_uframes_t pos, void __user *src, snd_pcm_uframes_t count) argument 544 emu8k_pcm_silence(struct snd_pcm_substream *subs, int voice, snd_pcm_uframes_t pos, snd_pcm_uframes_t count) argument [all...] |
/sound/synth/emux/ |
H A D | emux_oss.c | 345 int voice; local 351 voice = event[3]; 352 if (voice < 0 || voice >= port->chset.max_channels) 355 chan = &port->chset.channels[voice]; 383 fake_event(emu, port, voice, MIDI_CTL_ALL_NOTES_OFF, 0, atomic, hop); 386 fake_event(emu, port, voice, MIDI_CTL_ALL_SOUNDS_OFF, 0, atomic, hop); 440 int voice; local 450 voice = event[3]; 451 if (voice < [all...] |
H A D | emux_synth.c | 96 /* set up each voice parameter */ 97 /* at this stage, we don't trigger the voice yet. */ 144 /* clear voice position for the next note on this channel */ 376 * terminate note - if free flag is true, free the terminated voice 504 * terminate a voice 523 * Modulate the voice 557 * Sets up the voice structure by calculating some values that 752 * voice and channels parameters. 951 void snd_emux_lock_voice(struct snd_emux *emu, int voice) argument 956 if (emu->voices[voice] 969 snd_emux_unlock_voice(struct snd_emux *emu, int voice) argument [all...] |
/sound/oss/ |
H A D | midi_synth.c | 652 midi_synth_setup_voice(int dev, int voice, int channel) argument
|
H A D | opl3.c | 85 static int opl3_kill_note(int dev, int voice, int note, int velocity); 94 devc->cmask = 0x3f; /* Connect all possible 4 OP voice operators */ 268 static int opl3_kill_note (int devno, int voice, int note, int velocity) argument 272 if (voice < 0 || voice >= devc->nr_voice) 275 devc->v_alloc->map[voice] = 0; 277 map = &pv_map[devc->lv_map[voice]]; 278 DEB(printk("Kill note %d\n", voice)); 283 opl3_command(map->ioaddr, KEYON_BLOCK + map->voice_num, devc->voc[voice].keyon_byte & ~0x20); 284 devc->voc[voice] 311 opl3_set_instr(int dev, int voice, int instr_no) argument 371 set_voice_volume(int voice, int volume, int main_vol) argument 458 opl3_start_note(int dev, int voice, int note, int volume) argument 846 opl3_panning(int dev, int voice, int value) argument 865 opl3_aftertouch(int dev, int voice, int pressure) argument 934 bend_pitch(int dev, int voice, int value) argument 968 opl3_controller(int dev, int voice, int ctrl_num, int value) argument 993 opl3_bender(int dev, int voice, int value) argument 1067 opl3_setup_voice(int dev, int voice, int chn) argument [all...] |
H A D | sequencer.c | 432 int voice; local 436 voice = synth_devs[dev]->alloc_voice(dev, chn, note, 438 synth_devs[dev]->alloc.map[voice] = key; 439 synth_devs[dev]->alloc.alloc_times[voice] = 441 return voice; 452 int voice = -1; local 464 voice = find_voice(dev, chn, note); 479 if (voice == -1 && seq_mode == SEQ_2 && synth_devs[dev]->alloc_voice) 482 voice = alloc_voice(dev, chn, note); 484 if (voice [all...] |
/sound/pci/ |
H A D | sis7019.c | 81 struct voice { struct 95 struct voice *timing; 129 /* voice_lock protects allocation/freeing of the voice descriptions 133 struct voice voices[64]; 134 struct voice capture_voice; 204 static void sis_update_sso(struct voice *voice, u16 period) argument 206 void __iomem *base = voice->ctrl_base; 208 voice->sso += period; 209 if (voice 220 sis_update_voice(struct voice *voice) argument 296 sis_voice_irq(u32 status, struct voice *voice) argument 313 struct voice *voice; local 401 sis_free_voice(struct sis7019 *sis, struct voice *voice) argument 419 struct voice *voice; local 437 struct voice *voice; local 452 struct voice *voice = runtime->private_data; local 487 struct voice *voice; local 508 struct voice *voice = runtime->private_data; local 529 struct voice *voice = runtime->private_data; local 597 struct voice *voice; local 664 struct voice *voice = runtime->private_data; local 676 struct voice *voice = &sis->capture_voice; local 727 sis_prepare_timing_voice(struct voice *voice, struct snd_pcm_substream *substream) argument 833 struct voice *voice = runtime->private_data; local 1326 struct voice *voice; local [all...] |
/sound/pci/trident/ |
H A D | trident_main.c | 49 struct snd_trident_voice * voice, 52 struct snd_trident_voice * voice, 67 static void snd_trident_print_voice_regs(struct snd_trident *trident, int voice) 71 printk(KERN_DEBUG "Trident voice %i:\n", voice); 72 outb(voice, TRID_REG(trident, T4D_LFO_GC_CIR)); 287 void snd_trident_start_voice(struct snd_trident * trident, unsigned int voice) 289 Description: Start a voice, any channel 0 thru 63. 293 Parameters : voice - Voice number 0 thru n. 300 void snd_trident_start_voice(struct snd_trident * trident, unsigned int voice) argument 324 snd_trident_stop_voice(struct snd_trident * trident, unsigned int voice) argument 444 snd_trident_write_voice_regs(struct snd_trident * trident, struct snd_trident_voice * voice) argument 527 snd_trident_write_cso_reg(struct snd_trident * trident, struct snd_trident_voice * voice, unsigned int CSO) argument 553 snd_trident_write_eso_reg(struct snd_trident * trident, struct snd_trident_voice * voice, unsigned int ESO) argument 579 snd_trident_write_vol_reg(struct snd_trident * trident, struct snd_trident_voice * voice, unsigned int Vol) argument 610 snd_trident_write_pan_reg(struct snd_trident * trident, struct snd_trident_voice * voice, unsigned int Pan) argument 632 snd_trident_write_rvol_reg(struct snd_trident * trident, struct snd_trident_voice * voice, unsigned int RVol) argument 656 snd_trident_write_cvol_reg(struct snd_trident * trident, struct snd_trident_voice * voice, unsigned int CVol) argument 823 struct snd_trident_voice *voice = runtime->private_data; local 857 struct snd_trident_voice *voice = runtime->private_data; local 918 struct snd_trident_voice *voice = runtime->private_data; local 950 struct snd_trident_voice *voice = runtime->private_data; local 1053 struct snd_trident_voice *voice = runtime->private_data; local 1167 struct snd_trident_voice *voice = runtime->private_data; local 1193 struct snd_trident_voice *voice = runtime->private_data; local 1264 struct snd_trident_voice *voice = runtime->private_data; local 1407 struct snd_trident_voice *voice = runtime->private_data; local 1549 struct snd_trident_voice *voice, *evoice; local 1645 struct snd_trident_voice *voice = runtime->private_data; local 1684 struct snd_trident_voice *voice = runtime->private_data; local 1714 struct snd_trident_voice *voice = runtime->private_data; local 1846 struct snd_trident_voice *voice = runtime->private_data; local 1859 struct snd_trident_voice *voice; local 1887 struct snd_trident_voice *voice = runtime->private_data; local 1907 struct snd_trident_voice *voice; local 1986 struct snd_trident_voice *voice; local 2030 struct snd_trident_voice *voice; local 2057 struct snd_trident_voice *voice; local 2933 snd_trident_pcm_mixer_build(struct snd_trident *trident, struct snd_trident_voice *voice, struct snd_pcm_substream *substream) argument 2951 snd_trident_pcm_mixer_free(struct snd_trident *trident, struct snd_trident_voice *voice, struct snd_pcm_substream *substream) argument 3550 struct snd_trident_voice *voice; local 3733 struct snd_trident_voice *voice; local 3871 snd_trident_free_voice(struct snd_trident * trident, struct snd_trident_voice *voice) argument [all...] |
/sound/pci/ymfpci/ |
H A D | ymfpci_main.c | 214 * Playback voice management 221 struct snd_ymfpci_voice *voice, *voice2; local 226 voice = &chip->voices[idx]; 228 if (voice->use || (voice2 && voice2->use)) 230 voice->use = 1; 235 voice->pcm = 1; 240 voice->synth = 1; 243 voice->midi = 1; 249 *rvoice = voice; 272 /* TODO: synth/midi voice deallocatio 302 snd_ymfpci_pcm_interrupt(struct snd_ymfpci *chip, struct snd_ymfpci_voice *voice) argument 499 struct snd_ymfpci_voice *voice = ypcm->voices[voiceidx]; local 762 struct snd_ymfpci_voice *voice = ypcm->voices[0]; local 800 struct snd_ymfpci_voice *voice; local 2090 int voice, bank, reg; local [all...] |