tag | line | file | source code |
voice | 151 | drivers/sound/dev_table.h | int (*kill_note) (int dev, int voice, int note, int velocity); |
voice | 152 | drivers/sound/dev_table.h | int (*start_note) (int dev, int voice, int note, int velocity); |
voice | 153 | drivers/sound/dev_table.h | int (*set_instr) (int dev, int voice, int instr); |
voice | 158 | drivers/sound/dev_table.h | void (*aftertouch) (int dev, int voice, int pressure); |
voice | 159 | drivers/sound/dev_table.h | void (*controller) (int dev, int voice, int ctrl_num, int value); |
voice | 160 | drivers/sound/dev_table.h | void (*panning) (int dev, int voice, int value); |
voice | 165 | drivers/sound/gus_wave.c | static void compute_and_set_volume (int voice, int volume, int ramp_time); |
voice | 168 | drivers/sound/gus_wave.c | static void compute_volume (int voice, int volume); |
voice | 169 | drivers/sound/gus_wave.c | static void do_volume_irq (int voice); |
voice | 344 | drivers/sound/gus_wave.c | gus_select_voice (int voice) |
voice | 346 | drivers/sound/gus_wave.c | if (voice < 0 || voice > 31) |
voice | 349 | drivers/sound/gus_wave.c | OUTB (voice, u_Voice); |
voice | 456 | drivers/sound/gus_wave.c | gus_set_voice_pos (int voice, long position) |
voice | 460 | drivers/sound/gus_wave.c | if ((sample_no = sample_map[voice]) != -1) |
voice | 462 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode == VMODE_START_NOTE) |
voice | 463 | drivers/sound/gus_wave.c | voices[voice].offset_pending = position; |
voice | 470 | drivers/sound/gus_wave.c | gus_voice_init (int voice) |
voice | 475 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 480 | drivers/sound/gus_wave.c | voice_alloc->map[voice] = 0; |
voice | 486 | drivers/sound/gus_wave.c | gus_voice_init2 (int voice) |
voice | 488 | drivers/sound/gus_wave.c | voices[voice].panning = 0; |
voice | 489 | drivers/sound/gus_wave.c | voices[voice].mode = 0; |
voice | 490 | drivers/sound/gus_wave.c | voices[voice].orig_freq = 20000; |
voice | 491 | drivers/sound/gus_wave.c | voices[voice].current_freq = 20000; |
voice | 492 | drivers/sound/gus_wave.c | voices[voice].bender = 0; |
voice | 493 | drivers/sound/gus_wave.c | voices[voice].bender_range = 200; |
voice | 494 | drivers/sound/gus_wave.c | voices[voice].initial_volume = 0; |
voice | 495 | drivers/sound/gus_wave.c | voices[voice].current_volume = 0; |
voice | 496 | drivers/sound/gus_wave.c | voices[voice].loop_irq_mode = 0; |
voice | 497 | drivers/sound/gus_wave.c | voices[voice].loop_irq_parm = 0; |
voice | 498 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = 0; |
voice | 499 | drivers/sound/gus_wave.c | voices[voice].volume_irq_parm = 0; |
voice | 500 | drivers/sound/gus_wave.c | voices[voice].env_phase = 0; |
voice | 501 | drivers/sound/gus_wave.c | voices[voice].main_vol = 127; |
voice | 502 | drivers/sound/gus_wave.c | voices[voice].patch_vol = 127; |
voice | 503 | drivers/sound/gus_wave.c | voices[voice].expression_vol = 127; |
voice | 504 | drivers/sound/gus_wave.c | voices[voice].sample_pending = -1; |
voice | 508 | drivers/sound/gus_wave.c | step_envelope (int voice) |
voice | 514 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_SUSTAIN_ON && voices[voice].env_phase == 2) |
voice | 517 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 526 | drivers/sound/gus_wave.c | if (voices[voice].env_phase >= 5) |
voice | 528 | drivers/sound/gus_wave.c | gus_voice_init (voice); |
voice | 532 | drivers/sound/gus_wave.c | prev_vol = voices[voice].current_volume; |
voice | 533 | drivers/sound/gus_wave.c | phase = ++voices[voice].env_phase; |
voice | 534 | drivers/sound/gus_wave.c | compute_volume (voice, voices[voice].midi_volume); |
voice | 535 | drivers/sound/gus_wave.c | vol = voices[voice].initial_volume * voices[voice].env_offset[phase] / 255; |
voice | 536 | drivers/sound/gus_wave.c | rate = voices[voice].env_rate[phase]; |
voice | 539 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 546 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = VMODE_ENVELOPE; |
voice | 551 | drivers/sound/gus_wave.c | step_envelope (voice); /* Continue the envelope on the next step */ |
voice | 569 | drivers/sound/gus_wave.c | voices[voice].current_volume = vol; |
voice | 574 | drivers/sound/gus_wave.c | init_envelope (int voice) |
voice | 576 | drivers/sound/gus_wave.c | voices[voice].env_phase = -1; |
voice | 577 | drivers/sound/gus_wave.c | voices[voice].current_volume = 64; |
voice | 579 | drivers/sound/gus_wave.c | step_envelope (voice); |
voice | 583 | drivers/sound/gus_wave.c | start_release (int voice, long int flags) |
voice | 588 | drivers/sound/gus_wave.c | voices[voice].env_phase = 2; /* Will be incremented by step_envelope */ |
voice | 590 | drivers/sound/gus_wave.c | voices[voice].current_volume = |
voice | 591 | drivers/sound/gus_wave.c | voices[voice].initial_volume = |
voice | 594 | drivers/sound/gus_wave.c | voices[voice].mode &= ~WAVE_SUSTAIN_ON; |
voice | 597 | drivers/sound/gus_wave.c | step_envelope (voice); |
voice | 601 | drivers/sound/gus_wave.c | gus_voice_fade (int voice) |
voice | 603 | drivers/sound/gus_wave.c | int instr_no = sample_map[voice], is16bits; |
voice | 607 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 612 | drivers/sound/gus_wave.c | voice_alloc->map[voice] = 0; |
voice | 619 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voice | 621 | drivers/sound/gus_wave.c | start_release (voice, flags); |
voice | 632 | drivers/sound/gus_wave.c | gus_voice_init (voice); |
voice | 639 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = VMODE_HALT; |
voice | 869 | drivers/sound/gus_wave.c | guswave_set_instr (int dev, int voice, int instr_no) |
voice | 876 | drivers/sound/gus_wave.c | if (voice < 0 || voice > 31) |
voice | 879 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode == VMODE_START_NOTE) |
voice | 881 | drivers/sound/gus_wave.c | voices[voice].sample_pending = instr_no; |
voice | 886 | drivers/sound/gus_wave.c | patch_map[voice] = -1; |
voice | 890 | drivers/sound/gus_wave.c | printk ("GUS: Undefined patch %d for voice %d\n", instr_no, voice); |
voice | 897 | drivers/sound/gus_wave.c | sample_no, instr_no, voice); |
voice | 901 | drivers/sound/gus_wave.c | sample_map[voice] = sample_no; |
voice | 902 | drivers/sound/gus_wave.c | patch_map[voice] = instr_no; |
voice | 907 | drivers/sound/gus_wave.c | guswave_kill_note (int dev, int voice, int note, int velocity) |
voice | 912 | drivers/sound/gus_wave.c | voice_alloc->map[voice] = 0xffff; |
voice | 913 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode == VMODE_START_NOTE) |
voice | 915 | drivers/sound/gus_wave.c | voices[voice].kill_pending = 1; |
voice | 921 | drivers/sound/gus_wave.c | gus_voice_fade (voice); |
voice | 928 | drivers/sound/gus_wave.c | guswave_aftertouch (int dev, int voice, int pressure) |
voice | 935 | drivers/sound/gus_wave.c | if (voice < 0 || voice > 31) |
voice | 938 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES && voices[voice].env_phase != 2) |
voice | 944 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 946 | drivers/sound/gus_wave.c | compute_and_set_volume (voice, 255, 0); /* Back to original volume */ |
voice | 951 | drivers/sound/gus_wave.c | hi_limit = voices[voice].current_volume; |
voice | 957 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 970 | drivers/sound/gus_wave.c | guswave_panning (int dev, int voice, int value) |
voice | 972 | drivers/sound/gus_wave.c | if (voice >= 0 || voice < 32) |
voice | 973 | drivers/sound/gus_wave.c | voices[voice].panning = value; |
voice | 984 | drivers/sound/gus_wave.c | compute_volume (int voice, int volume) |
voice | 987 | drivers/sound/gus_wave.c | voices[voice].midi_volume = volume; |
voice | 992 | drivers/sound/gus_wave.c | voices[voice].initial_volume = |
voice | 993 | drivers/sound/gus_wave.c | gus_adagio_vol (voices[voice].midi_volume, voices[voice].main_vol, |
voice | 994 | drivers/sound/gus_wave.c | voices[voice].expression_vol, |
voice | 995 | drivers/sound/gus_wave.c | voices[voice].patch_vol); |
voice | 999 | drivers/sound/gus_wave.c | voices[voice].initial_volume = |
voice | 1000 | drivers/sound/gus_wave.c | gus_linear_vol (volume, voices[voice].main_vol); |
voice | 1004 | drivers/sound/gus_wave.c | voices[voice].initial_volume = volume_base + |
voice | 1005 | drivers/sound/gus_wave.c | (voices[voice].midi_volume * volume_scale); |
voice | 1008 | drivers/sound/gus_wave.c | if (voices[voice].initial_volume > 4030) |
voice | 1009 | drivers/sound/gus_wave.c | voices[voice].initial_volume = 4030; |
voice | 1013 | drivers/sound/gus_wave.c | compute_and_set_volume (int voice, int volume, int ramp_time) |
voice | 1018 | drivers/sound/gus_wave.c | compute_volume (voice, volume); |
voice | 1019 | drivers/sound/gus_wave.c | voices[voice].current_volume = voices[voice].initial_volume; |
voice | 1026 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1029 | drivers/sound/gus_wave.c | target = voices[voice].initial_volume; |
voice | 1072 | drivers/sound/gus_wave.c | dynamic_volume_change (int voice) |
voice | 1078 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1085 | drivers/sound/gus_wave.c | if (!(voices[voice].mode & WAVE_ENVELOPES)) |
voice | 1087 | drivers/sound/gus_wave.c | compute_and_set_volume (voice, voices[voice].midi_volume, 1); |
voice | 1096 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1102 | drivers/sound/gus_wave.c | compute_and_set_volume (voice, voices[voice].midi_volume, 1); |
voice | 1106 | drivers/sound/gus_wave.c | if (voices[voice].env_phase < 0) |
voice | 1109 | drivers/sound/gus_wave.c | compute_volume (voice, voices[voice].midi_volume); |
voice | 1114 | drivers/sound/gus_wave.c | guswave_controller (int dev, int voice, int ctrl_num, int value) |
voice | 1119 | drivers/sound/gus_wave.c | if (voice < 0 || voice > 31) |
voice | 1125 | drivers/sound/gus_wave.c | voices[voice].bender = value; |
voice | 1127 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode != VMODE_START_NOTE) |
voice | 1129 | drivers/sound/gus_wave.c | freq = compute_finetune (voices[voice].orig_freq, value, |
voice | 1130 | drivers/sound/gus_wave.c | voices[voice].bender_range); |
voice | 1131 | drivers/sound/gus_wave.c | voices[voice].current_freq = freq; |
voice | 1134 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1141 | drivers/sound/gus_wave.c | voices[voice].bender_range = value; |
voice | 1148 | drivers/sound/gus_wave.c | voices[voice].expression_vol = value; |
voice | 1149 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode != VMODE_START_NOTE) |
voice | 1150 | drivers/sound/gus_wave.c | dynamic_volume_change (voice); |
voice | 1155 | drivers/sound/gus_wave.c | voices[voice].panning = (value * 2) - 128; |
voice | 1162 | drivers/sound/gus_wave.c | voices[voice].main_vol = value; |
voice | 1163 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode != VMODE_START_NOTE) |
voice | 1164 | drivers/sound/gus_wave.c | dynamic_volume_change (voice); |
voice | 1173 | drivers/sound/gus_wave.c | guswave_start_note2 (int dev, int voice, int note_num, int volume) |
voice | 1180 | drivers/sound/gus_wave.c | if (voice < 0 || voice > 31) |
voice | 1188 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voice | 1190 | drivers/sound/gus_wave.c | voices[voice].midi_volume = volume; |
voice | 1191 | drivers/sound/gus_wave.c | dynamic_volume_change (voice); |
voice | 1195 | drivers/sound/gus_wave.c | compute_and_set_volume (voice, volume, 1); |
voice | 1199 | drivers/sound/gus_wave.c | if ((patch = patch_map[voice]) == -1) |
voice | 1247 | drivers/sound/gus_wave.c | voices[voice].mode = samples[sample].mode; |
voice | 1248 | drivers/sound/gus_wave.c | voices[voice].patch_vol = samples[sample].volume; |
voice | 1250 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voice | 1256 | drivers/sound/gus_wave.c | voices[voice].env_rate[i] = samples[sample].env_rate[i]; |
voice | 1257 | drivers/sound/gus_wave.c | voices[voice].env_offset[i] = samples[sample].env_offset[i]; |
voice | 1261 | drivers/sound/gus_wave.c | sample_map[voice] = sample; |
voice | 1268 | drivers/sound/gus_wave.c | voices[voice].orig_freq = freq; |
voice | 1275 | drivers/sound/gus_wave.c | freq = compute_finetune (voices[voice].orig_freq, voices[voice].bender, |
voice | 1276 | drivers/sound/gus_wave.c | voices[voice].bender_range); |
voice | 1277 | drivers/sound/gus_wave.c | voices[voice].current_freq = freq; |
voice | 1279 | drivers/sound/gus_wave.c | pan = (samples[sample].panning + voices[voice].panning) / 32; |
voice | 1299 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1305 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voice | 1307 | drivers/sound/gus_wave.c | compute_volume (voice, volume); |
voice | 1308 | drivers/sound/gus_wave.c | init_envelope (voice); |
voice | 1311 | drivers/sound/gus_wave.c | compute_and_set_volume (voice, volume, 0); |
voice | 1314 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1318 | drivers/sound/gus_wave.c | voices[voice].offset_pending, is16bits); /* start=end */ |
voice | 1320 | drivers/sound/gus_wave.c | gus_write_addr (0x0a, sample_ptrs[sample] + voices[voice].offset_pending, |
voice | 1334 | drivers/sound/gus_wave.c | voices[voice].offset_pending, is16bits); |
voice | 1346 | drivers/sound/gus_wave.c | voices[voice].loop_irq_mode = LMODE_FINISH; /* Ramp down at the end */ |
voice | 1347 | drivers/sound/gus_wave.c | voices[voice].loop_irq_parm = 1; |
voice | 1368 | drivers/sound/gus_wave.c | guswave_start_note (int dev, int voice, int note_num, int volume) |
voice | 1377 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode == VMODE_START_NOTE) |
voice | 1378 | drivers/sound/gus_wave.c | voices[voice].volume_pending = volume; |
voice | 1382 | drivers/sound/gus_wave.c | ret_val = guswave_start_note2 (dev, voice, note_num, volume); |
voice | 1387 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1392 | drivers/sound/gus_wave.c | voices[voice].offset_pending = 0; |
voice | 1393 | drivers/sound/gus_wave.c | voices[voice].kill_pending = 0; |
voice | 1394 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = 0; |
voice | 1395 | drivers/sound/gus_wave.c | voices[voice].loop_irq_mode = 0; |
voice | 1397 | drivers/sound/gus_wave.c | if (voices[voice].sample_pending >= 0) |
voice | 1400 | drivers/sound/gus_wave.c | guswave_set_instr (voices[voice].dev_pending, voice, |
voice | 1401 | drivers/sound/gus_wave.c | voices[voice].sample_pending); |
voice | 1402 | drivers/sound/gus_wave.c | voices[voice].sample_pending = -1; |
voice | 1408 | drivers/sound/gus_wave.c | ret_val = guswave_start_note2 (dev, voice, note_num, volume); |
voice | 1412 | drivers/sound/gus_wave.c | voices[voice].dev_pending = dev; |
voice | 1413 | drivers/sound/gus_wave.c | voices[voice].note_pending = note_num; |
voice | 1414 | drivers/sound/gus_wave.c | voices[voice].volume_pending = volume; |
voice | 1415 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = VMODE_START_NOTE; |
voice | 1723 | drivers/sound/gus_wave.c | int voice, cmd; |
voice | 1728 | drivers/sound/gus_wave.c | voice = event[3]; |
voice | 1733 | drivers/sound/gus_wave.c | if ((voices[voice].volume_irq_mode == VMODE_START_NOTE) && |
voice | 1735 | drivers/sound/gus_wave.c | do_volume_irq (voice); |
voice | 1742 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1748 | drivers/sound/gus_wave.c | guswave_set_instr (dev, voice, p1); |
voice | 1753 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1761 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1767 | drivers/sound/gus_wave.c | gus_voice_fade (voice); |
voice | 1772 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1780 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1787 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1794 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1800 | drivers/sound/gus_wave.c | voices[voice].initial_volume = |
voice | 1801 | drivers/sound/gus_wave.c | voices[voice].current_volume = p1; |
voice | 1805 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voice | 1808 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1814 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voice | 1817 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1823 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voice | 1826 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1833 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voice | 1836 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1843 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voice | 1846 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1858 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1859 | drivers/sound/gus_wave.c | gus_set_voice_pos (voice, plong); |
voice | 2021 | drivers/sound/gus_wave.c | int voice; |
voice | 2025 | drivers/sound/gus_wave.c | for (voice = 0; voice < gus_sampling_channels; voice++) |
voice | 2027 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 2404 | drivers/sound/gus_wave.c | guswave_bender (int dev, int voice, int value) |
voice | 2409 | drivers/sound/gus_wave.c | voices[voice].bender = value - 8192; |
voice | 2410 | drivers/sound/gus_wave.c | freq = compute_finetune (voices[voice].orig_freq, value, |
voice | 2411 | drivers/sound/gus_wave.c | voices[voice].bender_range); |
voice | 2412 | drivers/sound/gus_wave.c | voices[voice].current_freq = freq; |
voice | 2415 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 2760 | drivers/sound/gus_wave.c | int voice; |
voice | 2770 | drivers/sound/gus_wave.c | for (voice = 0; voice < nr_voices; voice++) |
voice | 2771 | drivers/sound/gus_wave.c | dynamic_volume_change (voice); /* Apply the new vol */ |
voice | 3006 | drivers/sound/gus_wave.c | do_loop_irq (int voice) |
voice | 3013 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 3021 | drivers/sound/gus_wave.c | mode = voices[voice].loop_irq_mode; |
voice | 3022 | drivers/sound/gus_wave.c | voices[voice].loop_irq_mode = 0; |
voice | 3023 | drivers/sound/gus_wave.c | parm = voices[voice].loop_irq_parm; |
voice | 3038 | drivers/sound/gus_wave.c | gus_voice_init (voice); |
voice | 3048 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = VMODE_HALT; |
voice | 3095 | drivers/sound/gus_wave.c | do_volume_irq (int voice) |
voice | 3103 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 3111 | drivers/sound/gus_wave.c | mode = voices[voice].volume_irq_mode; |
voice | 3112 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = 0; |
voice | 3113 | drivers/sound/gus_wave.c | parm = voices[voice].volume_irq_parm; |
voice | 3121 | drivers/sound/gus_wave.c | gus_voice_init (voice); |
voice | 3127 | drivers/sound/gus_wave.c | step_envelope (voice); |
voice | 3132 | drivers/sound/gus_wave.c | guswave_start_note2 (voices[voice].dev_pending, voice, |
voice | 3133 | drivers/sound/gus_wave.c | voices[voice].note_pending, voices[voice].volume_pending); |
voice | 3134 | drivers/sound/gus_wave.c | if (voices[voice].kill_pending) |
voice | 3135 | drivers/sound/gus_wave.c | guswave_kill_note (voices[voice].dev_pending, voice, |
voice | 3136 | drivers/sound/gus_wave.c | voices[voice].note_pending, 0); |
voice | 3138 | drivers/sound/gus_wave.c | if (voices[voice].sample_pending >= 0) |
voice | 3140 | drivers/sound/gus_wave.c | guswave_set_instr (voices[voice].dev_pending, voice, |
voice | 3141 | drivers/sound/gus_wave.c | voices[voice].sample_pending); |
voice | 3142 | drivers/sound/gus_wave.c | voices[voice].sample_pending = -1; |
voice | 3156 | drivers/sound/gus_wave.c | unsigned char src, voice; |
voice | 3163 | drivers/sound/gus_wave.c | voice = src & 0x1f; |
voice | 3171 | drivers/sound/gus_wave.c | voice_bit = 1 << voice; |
voice | 3176 | drivers/sound/gus_wave.c | if (!(wave_ignore & voice_bit) && (int) voice < nr_voices) /* |
voice | 3182 | drivers/sound/gus_wave.c | do_loop_irq (voice); |
voice | 3188 | drivers/sound/gus_wave.c | if (!(volume_ignore & voice_bit) && (int) voice < nr_voices) /* |
voice | 3194 | drivers/sound/gus_wave.c | do_volume_irq (voice); |
voice | 89 | drivers/sound/opl3.c | static int opl3_kill_note (int dev, int voice, int note, int velocity); |
voice | 293 | drivers/sound/opl3.c | opl3_kill_note (int dev, int voice, int note, int velocity) |
voice | 297 | drivers/sound/opl3.c | if (voice < 0 || voice >= nr_voices) |
voice | 300 | drivers/sound/opl3.c | voice_alloc->map[voice] = 0; |
voice | 302 | drivers/sound/opl3.c | map = &physical_voices[logical_voices[voice]]; |
voice | 304 | drivers/sound/opl3.c | DEB (printk ("Kill note %d\n", voice)); |
voice | 309 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, voices[voice].keyon_byte & ~0x20); |
voice | 311 | drivers/sound/opl3.c | voices[voice].keyon_byte = 0; |
voice | 312 | drivers/sound/opl3.c | voices[voice].bender = 0; |
voice | 313 | drivers/sound/opl3.c | voices[voice].bender_range = 200; /* |
voice | 316 | drivers/sound/opl3.c | voices[voice].orig_freq = 0; |
voice | 317 | drivers/sound/opl3.c | voices[voice].current_freq = 0; |
voice | 318 | drivers/sound/opl3.c | voices[voice].mode = 0; |
voice | 343 | drivers/sound/opl3.c | opl3_set_instr (int dev, int voice, int instr_no) |
voice | 345 | drivers/sound/opl3.c | if (voice < 0 || voice >= nr_voices) |
voice | 351 | drivers/sound/opl3.c | active_instrument[voice] = &instrmap[instr_no]; |
voice | 432 | drivers/sound/opl3.c | set_voice_volume (int voice, int volume) |
voice | 438 | drivers/sound/opl3.c | if (voice < 0 || voice >= nr_voices) |
voice | 441 | drivers/sound/opl3.c | map = &physical_voices[logical_voices[voice]]; |
voice | 443 | drivers/sound/opl3.c | instr = active_instrument[voice]; |
voice | 451 | drivers/sound/opl3.c | if (voices[voice].mode == 0) |
voice | 454 | drivers/sound/opl3.c | if (voices[voice].mode == 2) |
voice | 540 | drivers/sound/opl3.c | opl3_start_note (int dev, int voice, int note, int volume) |
voice | 547 | drivers/sound/opl3.c | if (voice < 0 || voice >= nr_voices) |
voice | 550 | drivers/sound/opl3.c | map = &physical_voices[logical_voices[voice]]; |
voice | 559 | drivers/sound/opl3.c | set_voice_volume (voice, volume); |
voice | 587 | drivers/sound/opl3.c | instr = active_instrument[voice]; |
voice | 596 | drivers/sound/opl3.c | voice); |
voice | 706 | drivers/sound/opl3.c | voices[voice].mode = voice_mode; |
voice | 708 | drivers/sound/opl3.c | set_voice_volume (voice, volume); |
voice | 710 | drivers/sound/opl3.c | freq = voices[voice].orig_freq = note_to_freq (note) / 1000; |
voice | 717 | drivers/sound/opl3.c | freq = compute_finetune (voices[voice].orig_freq, voices[voice].bender, voices[voice].bender_range); |
voice | 718 | drivers/sound/opl3.c | voices[voice].current_freq = freq; |
voice | 732 | drivers/sound/opl3.c | voices[voice].keyon_byte = data; |
voice | 916 | drivers/sound/opl3.c | opl3_panning (int dev, int voice, int pressure) |
voice | 932 | drivers/sound/opl3.c | opl3_aftertouch (int dev, int voice, int pressure) |
voice | 938 | drivers/sound/opl3.c | if (voice < 0 || voice >= nr_voices) |
voice | 941 | drivers/sound/opl3.c | map = &physical_voices[logical_voices[voice]]; |
voice | 943 | drivers/sound/opl3.c | DEB (printk ("Aftertouch %d\n", voice)); |
voice | 952 | drivers/sound/opl3.c | instr = active_instrument[voice]; |
voice | 957 | drivers/sound/opl3.c | if (voices[voice].mode == 4) |
voice | 1002 | drivers/sound/opl3.c | bend_pitch (int dev, int voice, int value) |
voice | 1008 | drivers/sound/opl3.c | map = &physical_voices[logical_voices[voice]]; |
voice | 1013 | drivers/sound/opl3.c | voices[voice].bender = value; |
voice | 1016 | drivers/sound/opl3.c | if (!(voices[voice].keyon_byte & 0x20)) |
voice | 1021 | drivers/sound/opl3.c | freq = compute_finetune (voices[voice].orig_freq, voices[voice].bender, voices[voice].bender_range); |
voice | 1022 | drivers/sound/opl3.c | voices[voice].current_freq = freq; |
voice | 1039 | drivers/sound/opl3.c | voices[voice].keyon_byte = data; |
voice | 1044 | drivers/sound/opl3.c | opl3_controller (int dev, int voice, int ctrl_num, int value) |
voice | 1046 | drivers/sound/opl3.c | if (voice < 0 || voice >= nr_voices) |
voice | 1052 | drivers/sound/opl3.c | bend_pitch (dev, voice, value); |
voice | 1056 | drivers/sound/opl3.c | voices[voice].bender_range = value; |
voice | 1068 | drivers/sound/opl3.c | opl3_bender (int dev, int voice, int value) |
voice | 1070 | drivers/sound/opl3.c | if (voice < 0 || voice >= nr_voices) |
voice | 1073 | drivers/sound/opl3.c | bend_pitch (dev, voice, value); |
voice | 458 | drivers/sound/sequencer.c | int voice; |
voice | 462 | drivers/sound/sequencer.c | voice = synth_devs[dev]->alloc_voice (dev, chn, note, |
voice | 464 | drivers/sound/sequencer.c | synth_devs[dev]->alloc.map[voice] = key; |
voice | 465 | drivers/sound/sequencer.c | return voice; |
voice | 476 | drivers/sound/sequencer.c | int voice = -1; |
voice | 488 | drivers/sound/sequencer.c | voice = find_voice (dev, chn, note); |
voice | 503 | drivers/sound/sequencer.c | if (voice == -1 && seq_mode == SEQ_2 && synth_devs[dev]->alloc_voice) |
voice | 505 | drivers/sound/sequencer.c | voice = alloc_voice (dev, chn, note); |
voice | 508 | drivers/sound/sequencer.c | if (voice == -1) |
voice | 509 | drivers/sound/sequencer.c | voice = chn; |
voice | 513 | drivers/sound/sequencer.c | synth_devs[dev]->set_instr (dev, voice, |
voice | 517 | drivers/sound/sequencer.c | synth_devs[dev]->start_note (dev, voice, note, parm); |
voice | 521 | drivers/sound/sequencer.c | if (voice == -1) |
voice | 522 | drivers/sound/sequencer.c | voice = chn; |
voice | 523 | drivers/sound/sequencer.c | synth_devs[dev]->kill_note (dev, voice, note, parm); |
voice | 893 | include/linux/soundcard.h | #define SEQ_V2_X_CONTROL(dev, voice, controller, value) {_SEQ_NEEDBUF(8);\ |
voice | 897 | include/linux/soundcard.h | _seqbuf[_seqbufptr+3] = (voice);\ |
voice | 906 | include/linux/soundcard.h | #define SEQ_PITCHBEND(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER, value) |
voice | 907 | include/linux/soundcard.h | #define SEQ_BENDER_RANGE(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER_RANGE, value) |
voice | 908 | include/linux/soundcard.h | #define SEQ_EXPRESSION(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_EXPRESSION, value*128) |
voice | 909 | include/linux/soundcard.h | #define SEQ_MAIN_VOLUME(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_MAIN_VOLUME, (value*16383)/100) |
voice | 910 | include/linux/soundcard.h | #define SEQ_PANNING(dev, voice, pos) SEQ_CONTROL(dev, voice, CTL_PAN, (pos+128) / 2) |
voice | 912 | include/linux/soundcard.h | #define SEQ_PANNING(dev, voice, pos) {_SEQ_NEEDBUF(8);\ |
voice | 916 | include/linux/soundcard.h | _seqbuf[_seqbufptr+3] = (voice);\ |
voice | 93 | include/linux/ultrasound.h | #define _GUS_CMD(chn, voice, cmd, p1, p2) \ |
voice | 96 | include/linux/ultrasound.h | _seqbuf[_seqbufptr+3] = voice;\ |
voice | 102 | include/linux/ultrasound.h | #define GUS_VOICESAMPLE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICESAMPLE, (p1), 0) /* OBSOLETE */ |
voice | 103 | include/linux/ultrasound.h | #define GUS_VOICEON(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEON, (p1), 0) |
voice | 104 | include/linux/ultrasound.h | #define GUS_VOICEOFF(chn, voice) _GUS_CMD(chn, voice, _GUS_VOICEOFF, 0, 0) |
voice | 105 | include/linux/ultrasound.h | #define GUS_VOICEFADE(chn, voice) _GUS_CMD(chn, voice, _GUS_VOICEFADE, 0, 0) |
voice | 106 | include/linux/ultrasound.h | #define GUS_VOICEMODE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEMODE, (p1), 0) |
voice | 107 | include/linux/ultrasound.h | #define GUS_VOICEBALA(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEBALA, (p1), 0) |
voice | 108 | include/linux/ultrasound.h | #define GUS_VOICEFREQ(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICEFREQ, \ |
voice | 110 | include/linux/ultrasound.h | #define GUS_VOICEVOL(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEVOL, (p1), 0) |
voice | 111 | include/linux/ultrasound.h | #define GUS_VOICEVOL2(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEVOL2, (p1), 0) |
voice | 112 | include/linux/ultrasound.h | #define GUS_RAMPRANGE(chn, voice, low, high) _GUS_CMD(chn, voice, _GUS_RAMPRANGE, (low), (high)) |
voice | 113 | include/linux/ultrasound.h | #define GUS_RAMPRATE(chn, voice, p1, p2) _GUS_CMD(chn, voice, _GUS_RAMPRATE, (p1), (p2)) |
voice | 114 | include/linux/ultrasound.h | #define GUS_RAMPMODE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_RAMPMODE, (p1), 0) |
voice | 115 | include/linux/ultrasound.h | #define GUS_RAMPON(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_RAMPON, (p1), 0) |
voice | 116 | include/linux/ultrasound.h | #define GUS_RAMPOFF(chn, voice) _GUS_CMD(chn, voice, _GUS_RAMPOFF, 0, 0) |
voice | 117 | include/linux/ultrasound.h | #define GUS_VOLUME_SCALE(chn, voice, p1, p2) _GUS_CMD(chn, voice, _GUS_VOLUME_SCALE, (p1), (p2)) |
voice | 118 | include/linux/ultrasound.h | #define GUS_VOICE_POS(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICE_POS, \ |