/kernel/linux/linux-5.10/sound/drivers/opl3/ |
H A D | opl3_seq.c | 54 opl3->voices[idx].state = SNDRV_OPL3_ST_OFF; in snd_opl3_synth_setup() 55 opl3->voices[idx].time = 0; in snd_opl3_synth_setup() 56 opl3->voices[idx].keyon_reg = 0x00; in snd_opl3_synth_setup() 100 opl3->voices[6].state = opl3->voices[7].state = in snd_opl3_synth_use() 101 opl3->voices[8].state = SNDRV_OPL3_ST_NOT_AVAIL; in snd_opl3_synth_use() 163 int voices, opl_ver; in snd_opl3_synth_create_port() local 165 voices = (opl3->hardware < OPL3_HW_OPL3) ? in snd_opl3_synth_create_port() 192 16, voices, in snd_opl3_synth_create_port()
|
H A D | opl3_midi.c | 116 printk(KERN_CONT "%c", *(str + opl3->voices[i].state + 1)); in debug_alloc() 156 vp = &opl3->voices[i]; in opl3_get_voice() 160 drum voices or by bounded 4op voices) */ in opl3_get_voice() 179 vp2 = &opl3->voices[i + 3]; in opl3_get_voice() 181 /* kill two voices, EXPENSIVE */ in opl3_get_voice() 233 struct snd_opl3_voice *vp = &opl3->voices[i]; in snd_opl3_timer_func() 311 /* in SYNTH mode, application takes care of voices */ in snd_opl3_note_on() 366 /* in SYNTH mode, application takes care of voices */ in snd_opl3_note_on() 381 /* Left register block for voices in snd_opl3_note_on() [all...] |
H A D | opl3_oss.c | 51 int voices, opl_ver; in snd_opl3_oss_create_port() local 53 voices = (opl3->hardware < OPL3_HW_OPL3) ? in snd_opl3_oss_create_port() 55 opl3->oss_chset = snd_midi_channel_alloc_set(voices); in snd_opl3_oss_create_port() 76 voices, voices, in snd_opl3_oss_create_port()
|
/kernel/linux/linux-6.6/sound/drivers/opl3/ |
H A D | opl3_seq.c | 54 opl3->voices[idx].state = SNDRV_OPL3_ST_OFF; in snd_opl3_synth_setup() 55 opl3->voices[idx].time = 0; in snd_opl3_synth_setup() 56 opl3->voices[idx].keyon_reg = 0x00; in snd_opl3_synth_setup() 101 opl3->voices[6].state = opl3->voices[7].state = in snd_opl3_synth_use() 102 opl3->voices[8].state = SNDRV_OPL3_ST_NOT_AVAIL; in snd_opl3_synth_use() 165 int voices, opl_ver; in snd_opl3_synth_create_port() local 167 voices = (opl3->hardware < OPL3_HW_OPL3) ? in snd_opl3_synth_create_port() 194 16, voices, in snd_opl3_synth_create_port()
|
H A D | opl3_midi.c | 116 printk(KERN_CONT "%c", *(str + opl3->voices[i].state + 1)); in debug_alloc() 156 vp = &opl3->voices[i]; in opl3_get_voice() 160 drum voices or by bounded 4op voices) */ in opl3_get_voice() 179 vp2 = &opl3->voices[i + 3]; in opl3_get_voice() 181 /* kill two voices, EXPENSIVE */ in opl3_get_voice() 232 struct snd_opl3_voice *vp = &opl3->voices[i]; in snd_opl3_timer_func() 310 /* in SYNTH mode, application takes care of voices */ in snd_opl3_note_on() 365 /* in SYNTH mode, application takes care of voices */ in snd_opl3_note_on() 380 /* Left register block for voices in snd_opl3_note_on() [all...] |
H A D | opl3_oss.c | 51 int voices, opl_ver; in snd_opl3_oss_create_port() local 53 voices = (opl3->hardware < OPL3_HW_OPL3) ? in snd_opl3_oss_create_port() 55 opl3->oss_chset = snd_midi_channel_alloc_set(voices); in snd_opl3_oss_create_port() 76 voices, voices, in snd_opl3_oss_create_port()
|
/kernel/linux/linux-5.10/sound/pci/emu10k1/ |
H A D | emupcm.c | 87 ptr = snd_emu10k1_ptr_read(emu, CCCA, epcm->voices[0]->number) & 0x00ffffff; in snd_emu10k1_efx_playback_pointer() 95 static int snd_emu10k1_pcm_channel_alloc(struct snd_emu10k1_pcm * epcm, int voices) in snd_emu10k1_pcm_channel_alloc() argument 99 if (epcm->voices[1] != NULL && voices < 2) { in snd_emu10k1_pcm_channel_alloc() 100 snd_emu10k1_voice_free(epcm->emu, epcm->voices[1]); in snd_emu10k1_pcm_channel_alloc() 101 epcm->voices[1] = NULL; in snd_emu10k1_pcm_channel_alloc() 103 for (i = 0; i < voices; i++) { in snd_emu10k1_pcm_channel_alloc() 104 if (epcm->voices[i] == NULL) in snd_emu10k1_pcm_channel_alloc() 107 if (i == voices) in snd_emu10k1_pcm_channel_alloc() 110 for (i = 0; i < ARRAY_SIZE(epcm->voices); in snd_emu10k1_pcm_channel_alloc() [all...] |
H A D | voice.c | 25 * hardware requires stereo interleaved voices be aligned to an even/odd 27 * voices does not cross the 32 voice boundary. This simplifies the 29 * (set|clear)_loop_stop registers. Otherwise (for example) the voices would 49 /* stereo voices must be even/odd */ in voice_alloc() 57 voice = &emu->voices[(i+k) % NUM_G]; in voice_alloc() 76 voice = &emu->voices[(first_voice + i) % NUM_G]; in voice_alloc() 97 *rvoice = &emu->voices[first_voice]; in voice_alloc() 122 struct snd_emu10k1_voice *pvoice = &emu->voices[result]; in snd_emu10k1_voice_alloc()
|
H A D | emumixer.c | 1268 if (mix->epcm->voices[0] && mix->epcm->voices[1]) { in snd_emu10k1_send_routing_put() 1269 update_emu10k1_fxrt(emu, mix->epcm->voices[0]->number, in snd_emu10k1_send_routing_put() 1271 update_emu10k1_fxrt(emu, mix->epcm->voices[1]->number, in snd_emu10k1_send_routing_put() 1273 } else if (mix->epcm->voices[0]) { in snd_emu10k1_send_routing_put() 1274 update_emu10k1_fxrt(emu, mix->epcm->voices[0]->number, in snd_emu10k1_send_routing_put() 1339 if (mix->epcm->voices[0] && mix->epcm->voices[1]) { in snd_emu10k1_send_volume_put() 1340 update_emu10k1_send_volume(emu, mix->epcm->voices[0]->number, in snd_emu10k1_send_volume_put() 1342 update_emu10k1_send_volume(emu, mix->epcm->voices[ in snd_emu10k1_send_volume_put() [all...] |
/kernel/linux/linux-5.10/sound/pci/ymfpci/ |
H A D | ymfpci_main.c | 214 voice = &chip->voices[idx]; in voice_alloc() 215 voice2 = pair ? &chip->voices[idx+1] : NULL; in voice_alloc() 333 if (ypcm->voices[1]) in snd_ymfpci_pcm_interrupt() 334 bank = &ypcm->voices[1]->bank[next_bank]; in snd_ymfpci_pcm_interrupt() 386 if (ypcm->voices[0] == NULL) { in snd_ymfpci_playback_trigger() 394 chip->ctrl_playback[ypcm->voices[0]->number + 1] = cpu_to_le32(ypcm->voices[0]->bank_addr); in snd_ymfpci_playback_trigger() 395 if (ypcm->voices[1] != NULL && !ypcm->use_441_slot) in snd_ymfpci_playback_trigger() 396 chip->ctrl_playback[ypcm->voices[1]->number + 1] = cpu_to_le32(ypcm->voices[ in snd_ymfpci_playback_trigger() 454 snd_ymfpci_pcm_voice_alloc(struct snd_ymfpci_pcm *ypcm, int voices) snd_ymfpci_pcm_voice_alloc() argument [all...] |
/kernel/linux/linux-6.6/sound/pci/ymfpci/ |
H A D | ymfpci_main.c | 209 voice = &chip->voices[idx]; in voice_alloc() 210 voice2 = pair ? &chip->voices[idx+1] : NULL; in voice_alloc() 328 if (ypcm->voices[1]) in snd_ymfpci_pcm_interrupt() 329 bank = &ypcm->voices[1]->bank[next_bank]; in snd_ymfpci_pcm_interrupt() 381 if (ypcm->voices[0] == NULL) { in snd_ymfpci_playback_trigger() 389 chip->ctrl_playback[ypcm->voices[0]->number + 1] = cpu_to_le32(ypcm->voices[0]->bank_addr); in snd_ymfpci_playback_trigger() 390 if (ypcm->voices[1] != NULL && !ypcm->use_441_slot) in snd_ymfpci_playback_trigger() 391 chip->ctrl_playback[ypcm->voices[1]->number + 1] = cpu_to_le32(ypcm->voices[ in snd_ymfpci_playback_trigger() 449 snd_ymfpci_pcm_voice_alloc(struct snd_ymfpci_pcm *ypcm, int voices) snd_ymfpci_pcm_voice_alloc() argument [all...] |
/kernel/linux/linux-6.6/sound/pci/emu10k1/ |
H A D | voice.c | 19 * hardware requires stereo interleaved voices be aligned to an even/odd 36 /* stereo voices must be even/odd */ in voice_alloc() 43 voice = &emu->voices[i + k]; in voice_alloc() 51 voice = &emu->voices[i + k]; in voice_alloc() 58 *rvoice = &emu->voices[i]; in voice_alloc() 105 voice_free(emu, &emu->voices[result]); in snd_emu10k1_voice_alloc()
|
/kernel/linux/linux-5.10/sound/isa/sb/ |
H A D | emu8000_pcm.c | 53 int voices; member 72 /* reserve up to 2 voices for playback */ in emu8k_open_dram_for_pcm() 77 /* reserve 28 voices for loading */ in emu8k_open_dram_for_pcm() 380 for (ch = 0; ch < rec->voices; ch++) in emu8k_pcm_trigger() 386 for (ch = 0; ch < rec->voices; ch++) in emu8k_pcm_trigger() 498 if (rec->voices > 1) \ 505 if (rec->voices > 1) { \ 593 for (ch = 0; ch < rec->voices; ch++) in emu8k_pcm_hw_free() 615 rec->voices = subs->runtime->channels; in emu8k_pcm_prepare() 617 if (rec->voices > in emu8k_pcm_prepare() [all...] |
/kernel/linux/linux-6.6/sound/isa/sb/ |
H A D | emu8000_pcm.c | 53 int voices; member 72 /* reserve up to 2 voices for playback */ in emu8k_open_dram_for_pcm() 77 /* reserve 28 voices for loading */ in emu8k_open_dram_for_pcm() 380 for (ch = 0; ch < rec->voices; ch++) in emu8k_pcm_trigger() 386 for (ch = 0; ch < rec->voices; ch++) in emu8k_pcm_trigger() 470 if (rec->voices > 1) \ 477 if (rec->voices > 1) { \ 552 for (ch = 0; ch < rec->voices; ch++) in emu8k_pcm_hw_free() 574 rec->voices = subs->runtime->channels; in emu8k_pcm_prepare() 576 if (rec->voices > in emu8k_pcm_prepare() [all...] |
/kernel/linux/linux-5.10/sound/pci/ice1712/ |
H A D | phase.c | 467 int voices = kcontrol->private_value >> 8; in wm_vol_info() local 469 uinfo->count = voices; in wm_vol_info() 480 int i, ofs, voices; in wm_vol_get() local 482 voices = kcontrol->private_value >> 8; in wm_vol_get() 484 for (i = 0; i < voices; i++) in wm_vol_get() 495 int i, idx, ofs, voices; in wm_vol_put() local 498 voices = kcontrol->private_value >> 8; in wm_vol_put() 501 for (i = 0; i < voices; i++) { in wm_vol_put() 536 int voices, ofs, i; in wm_mute_get() local 538 voices in wm_mute_get() 552 int change = 0, voices, ofs, i; wm_mute_put() local [all...] |
/kernel/linux/linux-6.6/sound/pci/ice1712/ |
H A D | phase.c | 467 int voices = kcontrol->private_value >> 8; in wm_vol_info() local 469 uinfo->count = voices; in wm_vol_info() 480 int i, ofs, voices; in wm_vol_get() local 482 voices = kcontrol->private_value >> 8; in wm_vol_get() 484 for (i = 0; i < voices; i++) in wm_vol_get() 495 int i, idx, ofs, voices; in wm_vol_put() local 498 voices = kcontrol->private_value >> 8; in wm_vol_put() 501 for (i = 0; i < voices; i++) { in wm_vol_put() 536 int voices, ofs, i; in wm_mute_get() local 538 voices in wm_mute_get() 552 int change = 0, voices, ofs, i; wm_mute_put() local [all...] |
/kernel/linux/linux-5.10/sound/isa/gus/ |
H A D | gus_io.c | 404 unsigned short voices; in snd_gf1_select_active_voices() local 412 voices = gus->gf1.active_voices; in snd_gf1_select_active_voices() 413 if (voices > 32) in snd_gf1_select_active_voices() 414 voices = 32; in snd_gf1_select_active_voices() 415 if (voices < 14) in snd_gf1_select_active_voices() 416 voices = 14; in snd_gf1_select_active_voices() 418 voices = 32; in snd_gf1_select_active_voices() 419 gus->gf1.active_voices = voices; in snd_gf1_select_active_voices() 421 gus->gf1.enh_mode ? 44100 : voices_tbl[voices - 14]; in snd_gf1_select_active_voices() 423 snd_gf1_i_write8(gus, SNDRV_GF1_GB_ACTIVE_VOICES, 0xc0 | (voices in snd_gf1_select_active_voices() [all...] |
/kernel/linux/linux-6.6/sound/isa/gus/ |
H A D | gus_io.c | 404 unsigned short voices; in snd_gf1_select_active_voices() local 412 voices = gus->gf1.active_voices; in snd_gf1_select_active_voices() 413 if (voices > 32) in snd_gf1_select_active_voices() 414 voices = 32; in snd_gf1_select_active_voices() 415 if (voices < 14) in snd_gf1_select_active_voices() 416 voices = 14; in snd_gf1_select_active_voices() 418 voices = 32; in snd_gf1_select_active_voices() 419 gus->gf1.active_voices = voices; in snd_gf1_select_active_voices() 421 gus->gf1.enh_mode ? 44100 : voices_tbl[voices - 14]; in snd_gf1_select_active_voices() 423 snd_gf1_i_write8(gus, SNDRV_GF1_GB_ACTIVE_VOICES, 0xc0 | (voices in snd_gf1_select_active_voices() [all...] |
/kernel/linux/linux-5.10/sound/synth/emux/ |
H A D | emux_synth.c | 119 vp = &emu->voices[i]; in snd_emux_note_on() 163 vp = &emu->voices[ch]; in snd_emux_note_off() 200 vp = &emu->voices[ch]; in snd_emux_timer_callback() 240 vp = &emu->voices[ch]; in snd_emux_key_press() 252 * Modulate the voices which belong to the channel 271 vp = &emu->voices[i]; in snd_emux_update_channel() 279 * Modulate all the voices which belong to the port. 298 vp = &emu->voices[i]; in snd_emux_update_port() 372 vp = &emu->voices[i]; in terminate_note1() 414 vp = &emu->voices[ in snd_emux_terminate_all() [all...] |
H A D | emux.c | 89 emu->voices = kcalloc(emu->max_voices, sizeof(struct snd_emux_voice), in snd_emux_register() 91 if (emu->name == NULL || emu->voices == NULL) in snd_emux_register() 141 kfree(emu->voices); in snd_emux_free()
|
H A D | emux_proc.c | 50 if (emu->voices[0].state != SNDRV_EMUX_ST_OFF && emu->voices[0].ch >= 0) { in snd_emux_proc_info_read() 51 struct snd_emux_voice *vp = &emu->voices[0]; in snd_emux_proc_info_read()
|
/kernel/linux/linux-6.6/sound/synth/emux/ |
H A D | emux_synth.c | 119 vp = &emu->voices[i]; in snd_emux_note_on() 163 vp = &emu->voices[ch]; in snd_emux_note_off() 200 vp = &emu->voices[ch]; in snd_emux_timer_callback() 240 vp = &emu->voices[ch]; in snd_emux_key_press() 252 * Modulate the voices which belong to the channel 271 vp = &emu->voices[i]; in snd_emux_update_channel() 279 * Modulate all the voices which belong to the port. 298 vp = &emu->voices[i]; in snd_emux_update_port() 372 vp = &emu->voices[i]; in terminate_note1() 414 vp = &emu->voices[ in snd_emux_terminate_all() [all...] |
H A D | emux.c | 89 emu->voices = kcalloc(emu->max_voices, sizeof(struct snd_emux_voice), in snd_emux_register() 91 if (emu->name == NULL || emu->voices == NULL) in snd_emux_register() 142 kfree(emu->voices); in snd_emux_free()
|
/kernel/linux/linux-5.10/sound/drivers/opl4/ |
H A D | opl4_synth.c | 271 * Initializes all voices. 285 memset(opl4->voices, 0, sizeof(opl4->voices)); in snd_opl4_synth_reset() 287 opl4->voices[i].number = i; in snd_opl4_synth_reset() 288 list_add_tail(&opl4->voices[i].list, &opl4->off_voices); in snd_opl4_synth_reset() 295 * Shuts down all voices. 305 opl4->voices[i].reg_misc & ~OPL4_KEY_ON_BIT); in snd_opl4_synth_shutdown() 310 * Executes the callback for all voices playing the specified note. 321 voice = &opl4->voices[i]; in snd_opl4_do_for_note() 330 * Executes the callback for all voices o 488 int voices = 0, i; snd_opl4_note_on() local [all...] |
/kernel/linux/linux-6.6/sound/drivers/opl4/ |
H A D | opl4_synth.c | 271 * Initializes all voices. 285 memset(opl4->voices, 0, sizeof(opl4->voices)); in snd_opl4_synth_reset() 287 opl4->voices[i].number = i; in snd_opl4_synth_reset() 288 list_add_tail(&opl4->voices[i].list, &opl4->off_voices); in snd_opl4_synth_reset() 295 * Shuts down all voices. 305 opl4->voices[i].reg_misc & ~OPL4_KEY_ON_BIT); in snd_opl4_synth_shutdown() 310 * Executes the callback for all voices playing the specified note. 321 voice = &opl4->voices[i]; in snd_opl4_do_for_note() 330 * Executes the callback for all voices o 488 int voices = 0, i; snd_opl4_note_on() local [all...] |