| /sound/drivers/opl4/ |
| A D | opl4_synth.c | 322 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 …]
|
| /sound/pci/ |
| A D | sis7019.c | 192 if (voice->sso >= voice->buffer_size) in sis_update_sso() 193 voice->sso -= voice->buffer_size; in sis_update_sso() 214 voice->vperiod -= voice->period_size; in sis_update_voice() 296 struct voice *voice; in sis_interrupt() local 402 struct voice *voice; in __sis_alloc_playback_voice() local 420 struct voice *voice; in sis_alloc_playback_voice() local 470 struct voice *voice; in sis_playback_open() local 568 struct voice *voice; in sis_pcm_trigger() local 602 voice = voice->timing; in sis_pcm_trigger() 698 struct voice *timing = voice->timing; in sis_prepare_timing_voice() [all …]
|
| /sound/pci/trident/ |
| A D | trident_main.c | 579 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 D | trident.h | 316 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);
|
| /sound/drivers/opl3/ |
| A D | opl3_midi.c | 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() 219 best[i].voice); in opl3_get_voice() 291 int voice; in snd_opl3_note_on() local 381 if (voice < 0) { in snd_opl3_note_on() 389 voice_offset = voice; in snd_opl3_note_on() 655 int voice; in snd_opl3_note_off_unsafe() local 670 for (voice = 0; voice < opl3->max_voices; voice++) { in snd_opl3_note_off_unsafe() 764 int voice; in snd_opl3_pitch_ctrl() local [all …]
|
| A D | opl3_synth.c | 445 if (voice->op > 1) in snd_opl3_set_voice() 449 if (voice->voice >= ((opl3->fm_mode == SNDRV_DM_FM_MODE_OPL3) ? in snd_opl3_set_voice() 454 if (voice->voice < MAX_OPL2_VOICES) { in snd_opl3_set_voice() 457 voice_offset = voice->voice; in snd_opl3_set_voice() 461 voice_offset = voice->voice - MAX_OPL2_VOICES; in snd_opl3_set_voice() 470 if (voice->am) in snd_opl3_set_voice() 473 if (voice->vibrato) in snd_opl3_set_voice() 476 if (voice->do_sustain) in snd_opl3_set_voice() 479 if (voice->kbd_scale) in snd_opl3_set_voice() 522 if (voice->left) in snd_opl3_set_voice() [all …]
|
| A D | opl3_drums.c | 33 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()
|
| /sound/pci/au88x0/ |
| A D | au88x0_synth.c | 95 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 D | au88x0_wt.h | 28 #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
|
| /sound/isa/gus/ |
| A D | gus_reset.c | 66 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() 275 if (voice == NULL || !voice->use) in snd_gf1_free_voice() 278 snd_gf1_clear_voices(gus, voice->number, voice->number); in snd_gf1_free_voice() 281 voice->private_free = NULL; in snd_gf1_free_voice() 282 voice->private_data = NULL; in snd_gf1_free_voice() 283 if (voice->pcm) in snd_gf1_free_voice() 285 voice->use = voice->pcm = 0; in snd_gf1_free_voice() 286 voice->sample_ops = NULL; in snd_gf1_free_voice() [all …]
|
| A D | gus_pcm.c | 98 unsigned int voice; in snd_gf1_pcm_trigger_up() local 117 for (voice = 0; voice < pcmp->voices; voice++) { in snd_gf1_pcm_trigger_up() 143 for (voice = 0; voice < pcmp->voices; voice++) { in snd_gf1_pcm_trigger_up() 153 for (voice = 0; voice < pcmp->voices; voice++) { in snd_gf1_pcm_trigger_up() 357 int voice, unsigned long pos, in snd_gf1_pcm_playback_copy() argument 374 int voice, unsigned long pos, in snd_gf1_pcm_playback_silence() argument 477 int voice; in snd_gf1_pcm_playback_trigger() local 485 voice = pcmp->pvoices[0]->number; in snd_gf1_pcm_playback_trigger() 486 snd_gf1_stop_voices(gus, voice, voice); in snd_gf1_pcm_playback_trigger() 488 voice = pcmp->pvoices[1]->number; in snd_gf1_pcm_playback_trigger() [all …]
|
| A D | gus_irq.c | 41 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()
|
| /sound/pci/emu10k1/ |
| A D | irq.c | 45 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()
|
| A D | voice.c | 27 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()
|
| A D | emu10k1x.c | 352 epcm = voice->epcm; in snd_emu10k1x_pcm_interrupt() 409 if (! epcm->voice) { in snd_emu10k1x_pcm_hw_params() 411 epcm->voice->use = 1; in snd_emu10k1x_pcm_hw_params() 429 if (epcm->voice) { in snd_emu10k1x_pcm_hw_free() 430 epcm->voice->use = 0; in snd_emu10k1x_pcm_hw_free() 432 epcm->voice = NULL; in snd_emu10k1x_pcm_hw_free() 444 int voice = epcm->voice->number; in snd_emu10k1x_pcm_prepare() local 590 if (! epcm->voice) { in snd_emu10k1x_pcm_hw_params_capture() 595 epcm->voice->use = 1; in snd_emu10k1x_pcm_hw_params_capture() 612 if (epcm->voice) { in snd_emu10k1x_pcm_hw_free_capture() [all …]
|
| A D | emupcm.c | 21 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() 312 emu->voices[voice].dirty = 1; in snd_emu10k1_pcm_init_voice() 558 unsigned voice, in snd_emu10k1_playback_fill_cache() argument 691 unsigned int voice; in snd_emu10k1_playback_trigger_voice() local 693 voice = evoice->number; in snd_emu10k1_playback_trigger_voice() 700 unsigned int voice; in snd_emu10k1_playback_stop_voice() local 702 voice = evoice->number; in snd_emu10k1_playback_stop_voice() [all …]
|
| A D | emu10k1_callback.c | 20 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()
|
| A D | emumixer.c | 1451 snd_emu10k1_ptr_write_multiple(emu, voice, in update_emu10k1_fxrt() 1456 snd_emu10k1_ptr_write(emu, FXRT, voice, in update_emu10k1_fxrt() 1468 snd_emu10k1_ptr_write(emu, A_SENDAMOUNTS, voice, in update_emu10k1_send_volume() 1491 int voice, idx; in snd_emu10k1_send_routing_get() local 1495 for (voice = 0; voice < 3; voice++) in snd_emu10k1_send_routing_get() 1497 ucontrol->value.integer.value[(voice * num_efx) + idx] = in snd_emu10k1_send_routing_get() 1498 mix->send_routing[voice][idx] & mask; in snd_emu10k1_send_routing_get() 1508 int change = 0, voice, idx, val; in snd_emu10k1_send_routing_put() local 1513 for (voice = 0; voice < 3; voice++) in snd_emu10k1_send_routing_put() 1516 if (mix->send_routing[voice][idx] != val) { in snd_emu10k1_send_routing_put() [all …]
|
| A D | emuproc.c | 432 struct snd_emu10k1_voice *voice; in snd_emu10k1_proc_voices_read() local 441 voice = &emu->voices[idx]; in snd_emu10k1_proc_voices_read() 444 voice->dirty, in snd_emu10k1_proc_voices_read() 445 voice->last, in snd_emu10k1_proc_voices_read() 446 types[voice->use]); in snd_emu10k1_proc_voices_read()
|
| /sound/synth/emux/ |
| A D | emux_oss.c | 325 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()
|
| A D | emux_synth.c | 937 void snd_emux_lock_voice(struct snd_emux *emu, int voice) in snd_emux_lock_voice() argument 942 if (emu->voices[voice].state == SNDRV_EMUX_ST_OFF) in snd_emux_lock_voice() 943 emu->voices[voice].state = SNDRV_EMUX_ST_LOCKED; in snd_emux_lock_voice() 947 voice, emu->voices[voice].state); in snd_emux_lock_voice() 955 void snd_emux_unlock_voice(struct snd_emux *emu, int voice) in snd_emux_unlock_voice() argument 960 if (emu->voices[voice].state == SNDRV_EMUX_ST_LOCKED) in snd_emux_unlock_voice() 961 emu->voices[voice].state = SNDRV_EMUX_ST_OFF; in snd_emux_unlock_voice() 965 voice, emu->voices[voice].state); in snd_emux_unlock_voice()
|
| /sound/soc/codecs/ |
| A D | wm8753.c | 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() 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 …]
|
| /sound/pci/ymfpci/ |
| A D | ymfpci_main.c | 213 voice->use = 1; in voice_alloc() 218 voice->pcm = 1; in voice_alloc() 223 voice->synth = 1; in voice_alloc() 226 voice->midi = 1; in voice_alloc() 232 *rvoice = voice; in voice_alloc() 290 ypcm = voice->ypcm; in snd_ymfpci_pcm_interrupt() 785 voice->interrupt(chip, voice); in snd_ymfpci_interrupt() 2128 for (voice = 0; voice < YDSXG_PLAYBACK_VOICES; voice++) { in snd_ymfpci_memalloc() 2129 chip->voices[voice].number = voice; in snd_ymfpci_memalloc() 2142 for (voice = 0; voice < YDSXG_CAPTURE_VOICES; voice++) in snd_ymfpci_memalloc() [all …]
|
| /sound/isa/sb/ |
| A D | emu8000_callback.c | 158 int voice; in get_voice() member 166 best[i].voice = -1; in get_voice() 202 bp->voice = i; in get_voice() 207 if (best[i].voice >= 0) { in get_voice() 208 vp = &emu->voices[best[i].voice]; in get_voice() 209 vp->ch = best[i].voice; in get_voice()
|
| A D | emu8000_pcm.c | 438 int voice, unsigned long pos, in emu8k_pcm_copy() argument 444 pos = (pos << 1) + rec->loop_start[voice]; in emu8k_pcm_copy() 452 int voice, unsigned long pos, unsigned long count) in emu8k_pcm_silence() argument 457 pos = (pos << 1) + rec->loop_start[voice]; in emu8k_pcm_silence() 492 int voice, unsigned long pos, in emu8k_pcm_copy() argument 505 int voice, unsigned long pos, unsigned long count) in emu8k_pcm_silence() argument
|