tag | line | file | source code |
voice | 189 | drivers/sound/dev_table.h | int (*kill_note) (int dev, int voice, int note, int velocity); |
voice | 190 | drivers/sound/dev_table.h | int (*start_note) (int dev, int voice, int note, int velocity); |
voice | 191 | drivers/sound/dev_table.h | int (*set_instr) (int dev, int voice, int instr); |
voice | 196 | drivers/sound/dev_table.h | void (*aftertouch) (int dev, int voice, int pressure); |
voice | 197 | drivers/sound/dev_table.h | void (*controller) (int dev, int voice, int ctrl_num, int value); |
voice | 198 | drivers/sound/dev_table.h | void (*panning) (int dev, int voice, int value); |
voice | 203 | drivers/sound/dev_table.h | void (*setup_voice) (int dev, int voice, int chn); |
voice | 177 | drivers/sound/gus_wave.c | static void compute_and_set_volume (int voice, int volume, int ramp_time); |
voice | 180 | drivers/sound/gus_wave.c | static void compute_volume (int voice, int volume); |
voice | 181 | drivers/sound/gus_wave.c | static void do_volume_irq (int voice); |
voice | 365 | drivers/sound/gus_wave.c | gus_select_voice (int voice) |
voice | 367 | drivers/sound/gus_wave.c | if (voice < 0 || voice > 31) |
voice | 370 | drivers/sound/gus_wave.c | outb (voice, u_Voice); |
voice | 477 | drivers/sound/gus_wave.c | gus_set_voice_pos (int voice, long position) |
voice | 481 | drivers/sound/gus_wave.c | if ((sample_no = sample_map[voice]) != -1) |
voice | 483 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode == VMODE_START_NOTE) |
voice | 484 | drivers/sound/gus_wave.c | voices[voice].offset_pending = position; |
voice | 491 | drivers/sound/gus_wave.c | gus_voice_init (int voice) |
voice | 497 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 503 | drivers/sound/gus_wave.c | voice_alloc->map[voice] = 0; |
voice | 504 | drivers/sound/gus_wave.c | voice_alloc->alloc_times[voice] = 0; |
voice | 510 | drivers/sound/gus_wave.c | gus_voice_init2 (int voice) |
voice | 512 | drivers/sound/gus_wave.c | voices[voice].panning = 0; |
voice | 513 | drivers/sound/gus_wave.c | voices[voice].mode = 0; |
voice | 514 | drivers/sound/gus_wave.c | voices[voice].orig_freq = 20000; |
voice | 515 | drivers/sound/gus_wave.c | voices[voice].current_freq = 20000; |
voice | 516 | drivers/sound/gus_wave.c | voices[voice].bender = 0; |
voice | 517 | drivers/sound/gus_wave.c | voices[voice].bender_range = 200; |
voice | 518 | drivers/sound/gus_wave.c | voices[voice].initial_volume = 0; |
voice | 519 | drivers/sound/gus_wave.c | voices[voice].current_volume = 0; |
voice | 520 | drivers/sound/gus_wave.c | voices[voice].loop_irq_mode = 0; |
voice | 521 | drivers/sound/gus_wave.c | voices[voice].loop_irq_parm = 0; |
voice | 522 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = 0; |
voice | 523 | drivers/sound/gus_wave.c | voices[voice].volume_irq_parm = 0; |
voice | 524 | drivers/sound/gus_wave.c | voices[voice].env_phase = 0; |
voice | 525 | drivers/sound/gus_wave.c | voices[voice].main_vol = 127; |
voice | 526 | drivers/sound/gus_wave.c | voices[voice].patch_vol = 127; |
voice | 527 | drivers/sound/gus_wave.c | voices[voice].expression_vol = 127; |
voice | 528 | drivers/sound/gus_wave.c | voices[voice].sample_pending = -1; |
voice | 532 | drivers/sound/gus_wave.c | step_envelope (int voice) |
voice | 538 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_SUSTAIN_ON && voices[voice].env_phase == 2) |
voice | 542 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 551 | drivers/sound/gus_wave.c | if (voices[voice].env_phase >= 5) |
voice | 553 | drivers/sound/gus_wave.c | gus_voice_init (voice); |
voice | 557 | drivers/sound/gus_wave.c | prev_vol = voices[voice].current_volume; |
voice | 558 | drivers/sound/gus_wave.c | phase = ++voices[voice].env_phase; |
voice | 559 | drivers/sound/gus_wave.c | compute_volume (voice, voices[voice].midi_volume); |
voice | 560 | drivers/sound/gus_wave.c | vol = voices[voice].initial_volume * voices[voice].env_offset[phase] / 255; |
voice | 561 | drivers/sound/gus_wave.c | rate = voices[voice].env_rate[phase]; |
voice | 565 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 572 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = VMODE_ENVELOPE; |
voice | 577 | drivers/sound/gus_wave.c | step_envelope (voice); /* Continue the envelope on the next step */ |
voice | 595 | drivers/sound/gus_wave.c | voices[voice].current_volume = vol; |
voice | 600 | drivers/sound/gus_wave.c | init_envelope (int voice) |
voice | 602 | drivers/sound/gus_wave.c | voices[voice].env_phase = -1; |
voice | 603 | drivers/sound/gus_wave.c | voices[voice].current_volume = 64; |
voice | 605 | drivers/sound/gus_wave.c | step_envelope (voice); |
voice | 609 | drivers/sound/gus_wave.c | start_release (int voice, long int flags) |
voice | 614 | drivers/sound/gus_wave.c | voices[voice].env_phase = 2; /* Will be incremented by step_envelope */ |
voice | 616 | drivers/sound/gus_wave.c | voices[voice].current_volume = |
voice | 617 | drivers/sound/gus_wave.c | voices[voice].initial_volume = |
voice | 620 | drivers/sound/gus_wave.c | voices[voice].mode &= ~WAVE_SUSTAIN_ON; |
voice | 623 | drivers/sound/gus_wave.c | step_envelope (voice); |
voice | 627 | drivers/sound/gus_wave.c | gus_voice_fade (int voice) |
voice | 629 | drivers/sound/gus_wave.c | int instr_no = sample_map[voice], is16bits; |
voice | 634 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 639 | drivers/sound/gus_wave.c | voice_alloc->map[voice] = 0; |
voice | 646 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voice | 648 | drivers/sound/gus_wave.c | start_release (voice, flags); |
voice | 659 | drivers/sound/gus_wave.c | gus_voice_init (voice); |
voice | 666 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = VMODE_HALT; |
voice | 921 | drivers/sound/gus_wave.c | guswave_set_instr (int dev, int voice, int instr_no) |
voice | 928 | drivers/sound/gus_wave.c | if (voice < 0 || voice > 31) |
voice | 931 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode == VMODE_START_NOTE) |
voice | 933 | drivers/sound/gus_wave.c | voices[voice].sample_pending = instr_no; |
voice | 938 | drivers/sound/gus_wave.c | patch_map[voice] = -1; |
voice | 942 | drivers/sound/gus_wave.c | printk ("GUS: Undefined patch %d for voice %d\n", instr_no, voice); |
voice | 949 | drivers/sound/gus_wave.c | sample_no, instr_no, voice); |
voice | 953 | drivers/sound/gus_wave.c | sample_map[voice] = sample_no; |
voice | 954 | drivers/sound/gus_wave.c | patch_map[voice] = instr_no; |
voice | 959 | drivers/sound/gus_wave.c | guswave_kill_note (int dev, int voice, int note, int velocity) |
voice | 966 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode == VMODE_START_NOTE) |
voice | 968 | drivers/sound/gus_wave.c | voices[voice].kill_pending = 1; |
voice | 974 | drivers/sound/gus_wave.c | gus_voice_fade (voice); |
voice | 982 | drivers/sound/gus_wave.c | guswave_aftertouch (int dev, int voice, int pressure) |
voice | 987 | drivers/sound/gus_wave.c | guswave_panning (int dev, int voice, int value) |
voice | 989 | drivers/sound/gus_wave.c | if (voice >= 0 || voice < 32) |
voice | 990 | drivers/sound/gus_wave.c | voices[voice].panning = value; |
voice | 1001 | drivers/sound/gus_wave.c | compute_volume (int voice, int volume) |
voice | 1004 | drivers/sound/gus_wave.c | voices[voice].midi_volume = volume; |
voice | 1009 | drivers/sound/gus_wave.c | voices[voice].initial_volume = |
voice | 1010 | drivers/sound/gus_wave.c | gus_adagio_vol (voices[voice].midi_volume, voices[voice].main_vol, |
voice | 1011 | drivers/sound/gus_wave.c | voices[voice].expression_vol, |
voice | 1012 | drivers/sound/gus_wave.c | voices[voice].patch_vol); |
voice | 1016 | drivers/sound/gus_wave.c | voices[voice].initial_volume = |
voice | 1017 | drivers/sound/gus_wave.c | gus_linear_vol (volume, voices[voice].main_vol); |
voice | 1021 | drivers/sound/gus_wave.c | voices[voice].initial_volume = volume_base + |
voice | 1022 | drivers/sound/gus_wave.c | (voices[voice].midi_volume * volume_scale); |
voice | 1025 | drivers/sound/gus_wave.c | if (voices[voice].initial_volume > 4030) |
voice | 1026 | drivers/sound/gus_wave.c | voices[voice].initial_volume = 4030; |
voice | 1030 | drivers/sound/gus_wave.c | compute_and_set_volume (int voice, int volume, int ramp_time) |
voice | 1035 | drivers/sound/gus_wave.c | compute_volume (voice, volume); |
voice | 1036 | drivers/sound/gus_wave.c | voices[voice].current_volume = voices[voice].initial_volume; |
voice | 1044 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1047 | drivers/sound/gus_wave.c | target = voices[voice].initial_volume; |
voice | 1090 | drivers/sound/gus_wave.c | dynamic_volume_change (int voice) |
voice | 1097 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1104 | drivers/sound/gus_wave.c | if (!(voices[voice].mode & WAVE_ENVELOPES)) |
voice | 1106 | drivers/sound/gus_wave.c | compute_and_set_volume (voice, voices[voice].midi_volume, 1); |
voice | 1116 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1122 | drivers/sound/gus_wave.c | compute_and_set_volume (voice, voices[voice].midi_volume, 1); |
voice | 1126 | drivers/sound/gus_wave.c | if (voices[voice].env_phase < 0) |
voice | 1129 | drivers/sound/gus_wave.c | compute_volume (voice, voices[voice].midi_volume); |
voice | 1134 | drivers/sound/gus_wave.c | guswave_controller (int dev, int voice, int ctrl_num, int value) |
voice | 1139 | drivers/sound/gus_wave.c | if (voice < 0 || voice > 31) |
voice | 1145 | drivers/sound/gus_wave.c | voices[voice].bender = value; |
voice | 1147 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode != VMODE_START_NOTE) |
voice | 1149 | drivers/sound/gus_wave.c | freq = compute_finetune (voices[voice].orig_freq, value, |
voice | 1150 | drivers/sound/gus_wave.c | voices[voice].bender_range); |
voice | 1151 | drivers/sound/gus_wave.c | voices[voice].current_freq = freq; |
voice | 1155 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1162 | drivers/sound/gus_wave.c | voices[voice].bender_range = value; |
voice | 1169 | drivers/sound/gus_wave.c | voices[voice].expression_vol = value; |
voice | 1170 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode != VMODE_START_NOTE) |
voice | 1171 | drivers/sound/gus_wave.c | dynamic_volume_change (voice); |
voice | 1176 | drivers/sound/gus_wave.c | voices[voice].panning = (value * 2) - 128; |
voice | 1183 | drivers/sound/gus_wave.c | voices[voice].main_vol = value; |
voice | 1184 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode != VMODE_START_NOTE) |
voice | 1185 | drivers/sound/gus_wave.c | dynamic_volume_change (voice); |
voice | 1194 | drivers/sound/gus_wave.c | guswave_start_note2 (int dev, int voice, int note_num, int volume) |
voice | 1201 | drivers/sound/gus_wave.c | if (voice < 0 || voice > 31) |
voice | 1209 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voice | 1211 | drivers/sound/gus_wave.c | voices[voice].midi_volume = volume; |
voice | 1212 | drivers/sound/gus_wave.c | dynamic_volume_change (voice); |
voice | 1216 | drivers/sound/gus_wave.c | compute_and_set_volume (voice, volume, 1); |
voice | 1220 | drivers/sound/gus_wave.c | if ((patch = patch_map[voice]) == -1) |
voice | 1268 | drivers/sound/gus_wave.c | voices[voice].mode = samples[sample].mode; |
voice | 1269 | drivers/sound/gus_wave.c | voices[voice].patch_vol = samples[sample].volume; |
voice | 1271 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voice | 1277 | drivers/sound/gus_wave.c | voices[voice].env_rate[i] = samples[sample].env_rate[i]; |
voice | 1278 | drivers/sound/gus_wave.c | voices[voice].env_offset[i] = samples[sample].env_offset[i]; |
voice | 1282 | drivers/sound/gus_wave.c | sample_map[voice] = sample; |
voice | 1289 | drivers/sound/gus_wave.c | voices[voice].orig_freq = freq; |
voice | 1296 | drivers/sound/gus_wave.c | freq = compute_finetune (voices[voice].orig_freq, voices[voice].bender, |
voice | 1297 | drivers/sound/gus_wave.c | voices[voice].bender_range); |
voice | 1298 | drivers/sound/gus_wave.c | voices[voice].current_freq = freq; |
voice | 1300 | drivers/sound/gus_wave.c | pan = (samples[sample].panning + voices[voice].panning) / 32; |
voice | 1321 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1327 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voice | 1329 | drivers/sound/gus_wave.c | compute_volume (voice, volume); |
voice | 1330 | drivers/sound/gus_wave.c | init_envelope (voice); |
voice | 1334 | drivers/sound/gus_wave.c | compute_and_set_volume (voice, volume, 0); |
voice | 1339 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1343 | drivers/sound/gus_wave.c | voices[voice].offset_pending, is16bits); /* start=end */ |
voice | 1345 | drivers/sound/gus_wave.c | gus_write_addr (0x0a, sample_ptrs[sample] + voices[voice].offset_pending, |
voice | 1359 | drivers/sound/gus_wave.c | voices[voice].offset_pending, is16bits); |
voice | 1371 | drivers/sound/gus_wave.c | voices[voice].loop_irq_mode = LMODE_FINISH; /* Ramp down at the end */ |
voice | 1372 | drivers/sound/gus_wave.c | voices[voice].loop_irq_parm = 1; |
voice | 1393 | drivers/sound/gus_wave.c | guswave_start_note (int dev, int voice, int note_num, int volume) |
voice | 1403 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode == VMODE_START_NOTE) |
voice | 1405 | drivers/sound/gus_wave.c | voices[voice].volume_pending = volume; |
voice | 1409 | drivers/sound/gus_wave.c | ret_val = guswave_start_note2 (dev, voice, note_num, volume); |
voice | 1414 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1419 | drivers/sound/gus_wave.c | voices[voice].offset_pending = 0; |
voice | 1420 | drivers/sound/gus_wave.c | voices[voice].kill_pending = 0; |
voice | 1421 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = 0; |
voice | 1422 | drivers/sound/gus_wave.c | voices[voice].loop_irq_mode = 0; |
voice | 1424 | drivers/sound/gus_wave.c | if (voices[voice].sample_pending >= 0) |
voice | 1427 | drivers/sound/gus_wave.c | guswave_set_instr (voices[voice].dev_pending, voice, |
voice | 1428 | drivers/sound/gus_wave.c | voices[voice].sample_pending); |
voice | 1429 | drivers/sound/gus_wave.c | voices[voice].sample_pending = -1; |
voice | 1432 | drivers/sound/gus_wave.c | gus_select_voice (voice); /* Reselect the voice (just to be sure) */ |
voice | 1437 | drivers/sound/gus_wave.c | ret_val = guswave_start_note2 (dev, voice, note_num, volume); |
voice | 1441 | drivers/sound/gus_wave.c | voices[voice].dev_pending = dev; |
voice | 1442 | drivers/sound/gus_wave.c | voices[voice].note_pending = note_num; |
voice | 1443 | drivers/sound/gus_wave.c | voices[voice].volume_pending = volume; |
voice | 1444 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = VMODE_START_NOTE; |
voice | 1776 | drivers/sound/gus_wave.c | int voice, cmd; |
voice | 1781 | drivers/sound/gus_wave.c | voice = event[3]; |
voice | 1786 | drivers/sound/gus_wave.c | if ((voices[voice].volume_irq_mode == VMODE_START_NOTE) && |
voice | 1788 | drivers/sound/gus_wave.c | do_volume_irq (voice); |
voice | 1796 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1802 | drivers/sound/gus_wave.c | guswave_set_instr (dev, voice, p1); |
voice | 1808 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1817 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1823 | drivers/sound/gus_wave.c | gus_voice_fade (voice); |
voice | 1829 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1838 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1846 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1854 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1860 | drivers/sound/gus_wave.c | voices[voice].initial_volume = |
voice | 1861 | drivers/sound/gus_wave.c | voices[voice].current_volume = p1; |
voice | 1865 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voice | 1869 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1875 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voice | 1879 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1885 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voice | 1889 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1896 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voice | 1900 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1907 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voice | 1911 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1924 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 1925 | drivers/sound/gus_wave.c | gus_set_voice_pos (voice, plong); |
voice | 2109 | drivers/sound/gus_wave.c | int voice; |
voice | 2112 | drivers/sound/gus_wave.c | for (voice = 0; voice < gus_sampling_channels; voice++) |
voice | 2116 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 2497 | drivers/sound/gus_wave.c | guswave_setup_voice (int dev, int voice, int chn) |
voice | 2502 | drivers/sound/gus_wave.c | guswave_set_instr (dev, voice, info->pgm_num); |
voice | 2504 | drivers/sound/gus_wave.c | voices[voice].expression_vol = |
voice | 2506 | drivers/sound/gus_wave.c | voices[voice].main_vol = |
voice | 2508 | drivers/sound/gus_wave.c | voices[voice].panning = |
voice | 2510 | drivers/sound/gus_wave.c | voices[voice].bender = info->bender_value; |
voice | 2514 | drivers/sound/gus_wave.c | guswave_bender (int dev, int voice, int value) |
voice | 2519 | drivers/sound/gus_wave.c | voices[voice].bender = value - 8192; |
voice | 2520 | drivers/sound/gus_wave.c | freq = compute_finetune (voices[voice].orig_freq, value - 8192, |
voice | 2521 | drivers/sound/gus_wave.c | voices[voice].bender_range); |
voice | 2522 | drivers/sound/gus_wave.c | voices[voice].current_freq = freq; |
voice | 2526 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 2883 | drivers/sound/gus_wave.c | int voice; |
voice | 2893 | drivers/sound/gus_wave.c | for (voice = 0; voice < nr_voices; voice++) |
voice | 2894 | drivers/sound/gus_wave.c | dynamic_volume_change (voice); /* Apply the new vol */ |
voice | 3178 | drivers/sound/gus_wave.c | do_loop_irq (int voice) |
voice | 3186 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 3195 | drivers/sound/gus_wave.c | voice_alloc->map[voice] = 0; |
voice | 3197 | drivers/sound/gus_wave.c | mode = voices[voice].loop_irq_mode; |
voice | 3198 | drivers/sound/gus_wave.c | voices[voice].loop_irq_mode = 0; |
voice | 3199 | drivers/sound/gus_wave.c | parm = voices[voice].loop_irq_parm; |
voice | 3214 | drivers/sound/gus_wave.c | gus_voice_init (voice); |
voice | 3224 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = VMODE_HALT; |
voice | 3274 | drivers/sound/gus_wave.c | do_volume_irq (int voice) |
voice | 3283 | drivers/sound/gus_wave.c | gus_select_voice (voice); |
voice | 3291 | drivers/sound/gus_wave.c | mode = voices[voice].volume_irq_mode; |
voice | 3292 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = 0; |
voice | 3293 | drivers/sound/gus_wave.c | parm = voices[voice].volume_irq_parm; |
voice | 3301 | drivers/sound/gus_wave.c | gus_voice_init (voice); |
voice | 3307 | drivers/sound/gus_wave.c | step_envelope (voice); |
voice | 3312 | drivers/sound/gus_wave.c | guswave_start_note2 (voices[voice].dev_pending, voice, |
voice | 3313 | drivers/sound/gus_wave.c | voices[voice].note_pending, voices[voice].volume_pending); |
voice | 3314 | drivers/sound/gus_wave.c | if (voices[voice].kill_pending) |
voice | 3315 | drivers/sound/gus_wave.c | guswave_kill_note (voices[voice].dev_pending, voice, |
voice | 3316 | drivers/sound/gus_wave.c | voices[voice].note_pending, 0); |
voice | 3318 | drivers/sound/gus_wave.c | if (voices[voice].sample_pending >= 0) |
voice | 3320 | drivers/sound/gus_wave.c | guswave_set_instr (voices[voice].dev_pending, voice, |
voice | 3321 | drivers/sound/gus_wave.c | voices[voice].sample_pending); |
voice | 3322 | drivers/sound/gus_wave.c | voices[voice].sample_pending = -1; |
voice | 3336 | drivers/sound/gus_wave.c | unsigned char src, voice; |
voice | 3343 | drivers/sound/gus_wave.c | voice = src & 0x1f; |
voice | 3351 | drivers/sound/gus_wave.c | voice_bit = 1 << voice; |
voice | 3356 | drivers/sound/gus_wave.c | if (!(wave_ignore & voice_bit) && (int) voice < nr_voices) /* |
voice | 3362 | drivers/sound/gus_wave.c | do_loop_irq (voice); |
voice | 3368 | drivers/sound/gus_wave.c | if (!(volume_ignore & voice_bit) && (int) voice < nr_voices) /* |
voice | 3374 | drivers/sound/gus_wave.c | do_volume_irq (voice); |
voice | 703 | drivers/sound/midi_synth.c | midi_synth_setup_voice (int dev, int voice, int channel) |
voice | 17 | drivers/sound/midi_synth.h | void midi_synth_setup_voice (int dev, int voice, int chn); |
voice | 89 | drivers/sound/opl3.c | static int opl3_kill_note (int dev, int voice, int note, int velocity); |
voice | 319 | drivers/sound/opl3.c | opl3_kill_note (int dev, int voice, int note, int velocity) |
voice | 323 | drivers/sound/opl3.c | if (voice < 0 || voice >= devc->nr_voice) |
voice | 326 | drivers/sound/opl3.c | devc->v_alloc->map[voice] = 0; |
voice | 328 | drivers/sound/opl3.c | map = &pv_map[devc->lv_map[voice]]; |
voice | 330 | drivers/sound/opl3.c | DEB (printk ("Kill note %d\n", voice)); |
voice | 335 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, devc->voc[voice].keyon_byte & ~0x20); |
voice | 337 | drivers/sound/opl3.c | devc->voc[voice].keyon_byte = 0; |
voice | 338 | drivers/sound/opl3.c | devc->voc[voice].bender = 0; |
voice | 339 | drivers/sound/opl3.c | devc->voc[voice].volume = 64; |
voice | 340 | drivers/sound/opl3.c | devc->voc[voice].bender_range = 200; /* |
voice | 343 | drivers/sound/opl3.c | devc->voc[voice].orig_freq = 0; |
voice | 344 | drivers/sound/opl3.c | devc->voc[voice].current_freq = 0; |
voice | 345 | drivers/sound/opl3.c | devc->voc[voice].mode = 0; |
voice | 370 | drivers/sound/opl3.c | opl3_set_instr (int dev, int voice, int instr_no) |
voice | 372 | drivers/sound/opl3.c | if (voice < 0 || voice >= devc->nr_voice) |
voice | 378 | drivers/sound/opl3.c | devc->act_i[voice] = &devc->i_map[instr_no]; |
voice | 431 | drivers/sound/opl3.c | set_voice_volume (int voice, int volume, int main_vol) |
voice | 437 | drivers/sound/opl3.c | if (voice < 0 || voice >= devc->nr_voice) |
voice | 440 | drivers/sound/opl3.c | map = &pv_map[devc->lv_map[voice]]; |
voice | 442 | drivers/sound/opl3.c | instr = devc->act_i[voice]; |
voice | 450 | drivers/sound/opl3.c | if (devc->voc[voice].mode == 0) |
voice | 453 | drivers/sound/opl3.c | if (devc->voc[voice].mode == 2) |
voice | 523 | drivers/sound/opl3.c | opl3_start_note (int dev, int voice, int note, int volume) |
voice | 530 | drivers/sound/opl3.c | if (voice < 0 || voice >= devc->nr_voice) |
voice | 533 | drivers/sound/opl3.c | map = &pv_map[devc->lv_map[voice]]; |
voice | 542 | drivers/sound/opl3.c | set_voice_volume (voice, volume, devc->voc[voice].volume); |
voice | 570 | drivers/sound/opl3.c | instr = devc->act_i[voice]; |
voice | 579 | drivers/sound/opl3.c | voice); |
voice | 689 | drivers/sound/opl3.c | devc->voc[voice].mode = voice_mode; |
voice | 691 | drivers/sound/opl3.c | set_voice_volume (voice, volume, devc->voc[voice].volume); |
voice | 693 | drivers/sound/opl3.c | freq = devc->voc[voice].orig_freq = note_to_freq (note) / 1000; |
voice | 700 | drivers/sound/opl3.c | freq = compute_finetune (devc->voc[voice].orig_freq, devc->voc[voice].bender, devc->voc[voice].bender_range); |
voice | 701 | drivers/sound/opl3.c | devc->voc[voice].current_freq = freq; |
voice | 715 | drivers/sound/opl3.c | devc->voc[voice].keyon_byte = data; |
voice | 903 | drivers/sound/opl3.c | opl3_panning (int dev, int voice, int pressure) |
voice | 919 | drivers/sound/opl3.c | opl3_aftertouch (int dev, int voice, int pressure) |
voice | 925 | drivers/sound/opl3.c | if (voice < 0 || voice >= devc->nr_voice) |
voice | 928 | drivers/sound/opl3.c | map = &pv_map[devc->lv_map[voice]]; |
voice | 930 | drivers/sound/opl3.c | DEB (printk ("Aftertouch %d\n", voice)); |
voice | 939 | drivers/sound/opl3.c | instr = devc->act_i[voice]; |
voice | 944 | drivers/sound/opl3.c | if (devc->voc[voice].mode == 4) |
voice | 989 | drivers/sound/opl3.c | bend_pitch (int dev, int voice, int value) |
voice | 995 | drivers/sound/opl3.c | map = &pv_map[devc->lv_map[voice]]; |
voice | 1000 | drivers/sound/opl3.c | devc->voc[voice].bender = value; |
voice | 1003 | drivers/sound/opl3.c | if (!(devc->voc[voice].keyon_byte & 0x20)) |
voice | 1008 | drivers/sound/opl3.c | freq = compute_finetune (devc->voc[voice].orig_freq, devc->voc[voice].bender, devc->voc[voice].bender_range); |
voice | 1009 | drivers/sound/opl3.c | devc->voc[voice].current_freq = freq; |
voice | 1026 | drivers/sound/opl3.c | devc->voc[voice].keyon_byte = data; |
voice | 1031 | drivers/sound/opl3.c | opl3_controller (int dev, int voice, int ctrl_num, int value) |
voice | 1033 | drivers/sound/opl3.c | if (voice < 0 || voice >= devc->nr_voice) |
voice | 1039 | drivers/sound/opl3.c | bend_pitch (dev, voice, value); |
voice | 1043 | drivers/sound/opl3.c | devc->voc[voice].bender_range = value; |
voice | 1047 | drivers/sound/opl3.c | devc->voc[voice].volume = value / 128; |
voice | 1059 | drivers/sound/opl3.c | opl3_bender (int dev, int voice, int value) |
voice | 1061 | drivers/sound/opl3.c | if (voice < 0 || voice >= devc->nr_voice) |
voice | 1064 | drivers/sound/opl3.c | bend_pitch (dev, voice, value - 8192); |
voice | 1135 | drivers/sound/opl3.c | opl3_setup_voice (int dev, int voice, int chn) |
voice | 1140 | drivers/sound/opl3.c | opl3_set_instr (dev, voice, |
voice | 1143 | drivers/sound/opl3.c | devc->voc[voice].bender = info->bender_value; |
voice | 1144 | drivers/sound/opl3.c | devc->voc[voice].volume = |
voice | 518 | drivers/sound/sequencer.c | int voice; |
voice | 522 | drivers/sound/sequencer.c | voice = synth_devs[dev]->alloc_voice (dev, chn, note, |
voice | 524 | drivers/sound/sequencer.c | synth_devs[dev]->alloc.map[voice] = key; |
voice | 525 | drivers/sound/sequencer.c | synth_devs[dev]->alloc.alloc_times[voice] = |
voice | 527 | drivers/sound/sequencer.c | return voice; |
voice | 538 | drivers/sound/sequencer.c | int voice = -1; |
voice | 550 | drivers/sound/sequencer.c | voice = find_voice (dev, chn, note); |
voice | 565 | drivers/sound/sequencer.c | if (voice == -1 && seq_mode == SEQ_2 && synth_devs[dev]->alloc_voice) |
voice | 567 | drivers/sound/sequencer.c | voice = alloc_voice (dev, chn, note); |
voice | 570 | drivers/sound/sequencer.c | if (voice == -1) |
voice | 571 | drivers/sound/sequencer.c | voice = chn; |
voice | 582 | drivers/sound/sequencer.c | synth_devs[dev]->set_instr (dev, voice, 128 + note); |
voice | 590 | drivers/sound/sequencer.c | synth_devs[dev]->setup_voice (dev, voice, chn); |
voice | 593 | drivers/sound/sequencer.c | synth_devs[dev]->start_note (dev, voice, note, parm); |
voice | 597 | drivers/sound/sequencer.c | if (voice == -1) |
voice | 598 | drivers/sound/sequencer.c | voice = chn; |
voice | 599 | drivers/sound/sequencer.c | synth_devs[dev]->kill_note (dev, voice, note, parm); |
voice | 603 | drivers/sound/sequencer.c | if (voice == -1) |
voice | 604 | drivers/sound/sequencer.c | voice = chn; |
voice | 605 | drivers/sound/sequencer.c | synth_devs[dev]->aftertouch (dev, voice, parm); |
voice | 1056 | include/linux/soundcard.h | #define SEQ_V2_X_CONTROL(dev, voice, controller, value) {_SEQ_NEEDBUF(8);\ |
voice | 1060 | include/linux/soundcard.h | _seqbuf[_seqbufptr+3] = (voice);\ |
voice | 1069 | include/linux/soundcard.h | #define SEQ_PITCHBEND(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER, value) |
voice | 1070 | include/linux/soundcard.h | #define SEQ_BENDER_RANGE(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER_RANGE, value) |
voice | 1071 | include/linux/soundcard.h | #define SEQ_EXPRESSION(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_EXPRESSION, value*128) |
voice | 1072 | include/linux/soundcard.h | #define SEQ_MAIN_VOLUME(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_MAIN_VOLUME, (value*16383)/100) |
voice | 1073 | include/linux/soundcard.h | #define SEQ_PANNING(dev, voice, pos) SEQ_CONTROL(dev, voice, CTL_PAN, (pos+128) / 2) |
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, \ |