tag | line | file | source code |
chn | 163 | drivers/sound/dev_table.h | void (*bender) (int dev, int chn, int value); |
chn | 164 | drivers/sound/dev_table.h | int (*alloc_voice) (int dev, int chn, int note, struct voice_alloc_info *alloc); |
chn | 2040 | drivers/sound/gus_wave.c | int this_one, is16bits, chn; |
chn | 2049 | drivers/sound/gus_wave.c | for (chn = 0; chn < gus_sampling_channels; chn++) |
chn | 2051 | drivers/sound/gus_wave.c | mode[chn] = 0x00; |
chn | 2052 | drivers/sound/gus_wave.c | ramp_mode[chn] = 0x03; /* Ramping and rollover off */ |
chn | 2054 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2056 | drivers/sound/gus_wave.c | mode[chn] |= 0x20; /* Loop IRQ */ |
chn | 2057 | drivers/sound/gus_wave.c | voices[chn].loop_irq_mode = LMODE_PCM; |
chn | 2063 | drivers/sound/gus_wave.c | mode[chn] |= 0x04; /* 16 bit data */ |
chn | 2069 | drivers/sound/gus_wave.c | dram_loc += chn * pcm_banksize; |
chn | 2073 | drivers/sound/gus_wave.c | mode[chn] |= 0x08; /* Enable loop */ |
chn | 2074 | drivers/sound/gus_wave.c | ramp_mode[chn] = 0x03;/* Disable rollover bit */ |
chn | 2078 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2079 | drivers/sound/gus_wave.c | ramp_mode[chn] = 0x04; /* Enable rollover bit */ |
chn | 2083 | drivers/sound/gus_wave.c | gus_select_voice (chn); |
chn | 2088 | drivers/sound/gus_wave.c | else if (chn == 0) |
chn | 2108 | drivers/sound/gus_wave.c | gus_write_addr (0x02, chn * pcm_banksize, is16bits); /* Loop start */ |
chn | 2110 | drivers/sound/gus_wave.c | if (chn != 0) |
chn | 2115 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2119 | drivers/sound/gus_wave.c | mode[chn] |= 0x08; /* Enable looping */ |
chn | 2126 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2128 | drivers/sound/gus_wave.c | mode[chn] &= ~0x08; /* Disable looping */ |
chn | 2129 | drivers/sound/gus_wave.c | mode[chn] |= 0x20;/* Enable IRQ at the end */ |
chn | 2131 | drivers/sound/gus_wave.c | ramp_mode[chn] = 0x03; /* No rollover bit */ |
chn | 2137 | drivers/sound/gus_wave.c | mode[chn] &= ~0x08; /* Disable looping */ |
chn | 2144 | drivers/sound/gus_wave.c | for (chn = 0; chn < gus_sampling_channels; chn++) |
chn | 2147 | drivers/sound/gus_wave.c | gus_select_voice (chn); |
chn | 2148 | drivers/sound/gus_wave.c | gus_write8 (0x0d, ramp_mode[chn]); |
chn | 2149 | drivers/sound/gus_wave.c | gus_voice_on (mode[chn]); |
chn | 2158 | drivers/sound/gus_wave.c | int total_count, int intrflag, int chn) |
chn | 2178 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2192 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE); |
chn | 2195 | drivers/sound/gus_wave.c | address += chn * pcm_banksize; |
chn | 2219 | drivers/sound/gus_wave.c | if (chn == (gus_sampling_channels - 1)) /* Last channel */ |
chn | 2604 | drivers/sound/gus_wave.c | guswave_alloc (int dev, int chn, int note, struct voice_alloc_info *alloc) |
chn | 81 | drivers/sound/ics2101.c | write_mix (int dev, int chn, int vol) |
chn | 90 | drivers/sound/ics2101.c | if (chn == CHN_LEFT) |
chn | 132 | drivers/sound/midi_synth.c | int msg, chn; |
chn | 144 | drivers/sound/midi_synth.c | chn = prev_out_status[orig_dev] & 0x0f; |
chn | 146 | drivers/sound/midi_synth.c | if (chn == channel && ((msg == 0x90 && velocity == 64) || msg == 0x80)) |
chn | 218 | drivers/sound/midi_synth.c | int msg, chn; |
chn | 230 | drivers/sound/midi_synth.c | chn = prev_out_status[orig_dev] & 0x0f; |
chn | 232 | drivers/sound/midi_synth.c | if (chn == channel && msg == 0x90) |
chn | 387 | drivers/sound/midi_synth.c | int msg, chn; |
chn | 395 | drivers/sound/midi_synth.c | chn = prev_out_status[orig_dev] & 0x0f; |
chn | 397 | drivers/sound/midi_synth.c | if (msg != 0xd0 || chn != channel) /* |
chn | 416 | drivers/sound/midi_synth.c | int chn, msg; |
chn | 424 | drivers/sound/midi_synth.c | chn = prev_out_status[orig_dev] & 0x0f; |
chn | 426 | drivers/sound/midi_synth.c | if (msg != 0xb0 || chn != channel) |
chn | 16 | drivers/sound/midi_synth.h | void midi_synth_bender (int dev, int chn, int value); |
chn | 1077 | drivers/sound/opl3.c | opl3_alloc_voice (int dev, int chn, int note, struct voice_alloc_info *alloc) |
chn | 1084 | drivers/sound/opl3.c | if (chn < 0 || chn > 15) |
chn | 1087 | drivers/sound/opl3.c | instr_no = chn_info[chn].pgm_num; |
chn | 96 | drivers/sound/os.h | #define ALLOC_DMA_CHN(chn,deviceID) request_dma(chn,deviceID) |
chn | 97 | drivers/sound/os.h | #define RELEASE_DMA_CHN(chn) free_dma(chn) |
chn | 155 | drivers/sound/sb_mixer.c | change_bits (unsigned char *regval, int dev, int chn, int newval) |
chn | 160 | drivers/sound/sb_mixer.c | mask = (1 << (*iomap)[dev][chn].nbits) - 1; |
chn | 165 | drivers/sound/sb_mixer.c | shift = (*iomap)[dev][chn].bitoffs - (*iomap)[dev][LEFT_CHN].nbits + 1; |
chn | 440 | drivers/sound/sequencer.c | find_voice (int dev, int chn, int note) |
chn | 445 | drivers/sound/sequencer.c | key = (chn << 8) | (note + 1); |
chn | 455 | drivers/sound/sequencer.c | alloc_voice (int dev, int chn, int note) |
chn | 460 | drivers/sound/sequencer.c | key = (chn << 8) | (note + 1); |
chn | 462 | drivers/sound/sequencer.c | voice = synth_devs[dev]->alloc_voice (dev, chn, note, |
chn | 473 | drivers/sound/sequencer.c | unsigned char chn = event[3]; |
chn | 488 | drivers/sound/sequencer.c | voice = find_voice (dev, chn, note); |
chn | 505 | drivers/sound/sequencer.c | voice = alloc_voice (dev, chn, note); |
chn | 509 | drivers/sound/sequencer.c | voice = chn; |
chn | 514 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].pgm_num); |
chn | 522 | drivers/sound/sequencer.c | voice = chn; |
chn | 539 | drivers/sound/sequencer.c | unsigned char chn = event[3]; |
chn | 557 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].pgm_num = p1; |
chn | 560 | drivers/sound/sequencer.c | synth_devs[dev]->set_instr (dev, chn, p1); |
chn | 577 | drivers/sound/sequencer.c | if (chn > 15 || p1 > 127) |
chn | 580 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].controllers[p1] = w14 & 0xff; |
chn | 589 | drivers/sound/sequencer.c | chn_info[chn].controllers[p1 & ~32] & 0x7f) << 7) |
chn | 591 | drivers/sound/sequencer.c | chn_info[chn].controllers[p1 | 32] & 0x7f); |
chn | 595 | drivers/sound/sequencer.c | val = synth_devs[dev]->chn_info[chn].controllers[p1]; |
chn | 597 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, chn, p1, val); |
chn | 600 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, chn, p1, w14); |
chn | 603 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, chn, p1, w14); |
chn | 607 | drivers/sound/sequencer.c | synth_devs[dev]->bender (dev, chn, w14); |
chn | 909 | drivers/sound/sequencer.c | int chn; |
chn | 911 | drivers/sound/sequencer.c | for (chn = 0; chn < 16; chn++) |
chn | 913 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].pgm_num = 0; |
chn | 915 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].controllers, |
chn | 1236 | drivers/sound/sequencer.c | int chn; |
chn | 1256 | drivers/sound/sequencer.c | for (chn = 0; chn < 16; chn++) |
chn | 1257 | drivers/sound/sequencer.c | synth_devs[i]->controller (i, chn, 0xfe, 0); /* All notes off */ |
chn | 1273 | drivers/sound/sequencer.c | for (chn = 0; chn < 16; chn++) |
chn | 1276 | drivers/sound/sequencer.c | (unsigned char) (0xb0 + (chn & 0xff))); /* |
chn | 844 | include/linux/soundcard.h | #define _CHN_VOICE(dev, event, chn, note, parm) \ |
chn | 849 | include/linux/soundcard.h | _seqbuf[_seqbufptr+3] = (chn);\ |
chn | 856 | include/linux/soundcard.h | #define SEQ_START_NOTE(dev, chn, note, vol) \ |
chn | 857 | include/linux/soundcard.h | _CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol) |
chn | 859 | include/linux/soundcard.h | #define SEQ_STOP_NOTE(dev, chn, note, vol) \ |
chn | 860 | include/linux/soundcard.h | _CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol) |
chn | 862 | include/linux/soundcard.h | #define SEQ_KEY_PRESSURE(dev, chn, note, pressure) \ |
chn | 863 | include/linux/soundcard.h | _CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure) |
chn | 869 | include/linux/soundcard.h | #define _CHN_COMMON(dev, event, chn, p1, p2, w14) \ |
chn | 874 | include/linux/soundcard.h | _seqbuf[_seqbufptr+3] = (chn);\ |
chn | 880 | include/linux/soundcard.h | #define SEQ_CHN_PRESSURE(dev, chn, pressure) \ |
chn | 881 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_CHN_PRESSURE, chn, pressure, 0, 0) |
chn | 883 | include/linux/soundcard.h | #define SEQ_SET_PATCH(dev, chn, patch) \ |
chn | 884 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0) |
chn | 886 | include/linux/soundcard.h | #define SEQ_CONTROL(dev, chn, controller, value) \ |
chn | 887 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_CTL_CHANGE, chn, controller, 0, value) |
chn | 889 | include/linux/soundcard.h | #define SEQ_BENDER(dev, chn, value) \ |
chn | 890 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_PITCH_BEND, chn, 0, 0, value) |
chn | 93 | include/linux/ultrasound.h | #define _GUS_CMD(chn, voice, cmd, p1, p2) \ |
chn | 95 | include/linux/ultrasound.h | _seqbuf[_seqbufptr+1] = (chn); _seqbuf[_seqbufptr+2] = cmd;\ |
chn | 101 | include/linux/ultrasound.h | #define GUS_NUMVOICES(chn, p1) _GUS_CMD(chn, 0, _GUS_NUMVOICES, (p1), 0) |
chn | 102 | include/linux/ultrasound.h | #define GUS_VOICESAMPLE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICESAMPLE, (p1), 0) /* OBSOLETE */ |
chn | 103 | include/linux/ultrasound.h | #define GUS_VOICEON(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEON, (p1), 0) |
chn | 104 | include/linux/ultrasound.h | #define GUS_VOICEOFF(chn, voice) _GUS_CMD(chn, voice, _GUS_VOICEOFF, 0, 0) |
chn | 105 | include/linux/ultrasound.h | #define GUS_VOICEFADE(chn, voice) _GUS_CMD(chn, voice, _GUS_VOICEFADE, 0, 0) |
chn | 106 | include/linux/ultrasound.h | #define GUS_VOICEMODE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEMODE, (p1), 0) |
chn | 107 | include/linux/ultrasound.h | #define GUS_VOICEBALA(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEBALA, (p1), 0) |
chn | 108 | include/linux/ultrasound.h | #define GUS_VOICEFREQ(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICEFREQ, \ |
chn | 110 | include/linux/ultrasound.h | #define GUS_VOICEVOL(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEVOL, (p1), 0) |
chn | 111 | include/linux/ultrasound.h | #define GUS_VOICEVOL2(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEVOL2, (p1), 0) |
chn | 112 | include/linux/ultrasound.h | #define GUS_RAMPRANGE(chn, voice, low, high) _GUS_CMD(chn, voice, _GUS_RAMPRANGE, (low), (high)) |
chn | 113 | include/linux/ultrasound.h | #define GUS_RAMPRATE(chn, voice, p1, p2) _GUS_CMD(chn, voice, _GUS_RAMPRATE, (p1), (p2)) |
chn | 114 | include/linux/ultrasound.h | #define GUS_RAMPMODE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_RAMPMODE, (p1), 0) |
chn | 115 | include/linux/ultrasound.h | #define GUS_RAMPON(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_RAMPON, (p1), 0) |
chn | 116 | include/linux/ultrasound.h | #define GUS_RAMPOFF(chn, voice) _GUS_CMD(chn, voice, _GUS_RAMPOFF, 0, 0) |
chn | 117 | include/linux/ultrasound.h | #define GUS_VOLUME_SCALE(chn, voice, p1, p2) _GUS_CMD(chn, voice, _GUS_VOLUME_SCALE, (p1), (p2)) |
chn | 118 | include/linux/ultrasound.h | #define GUS_VOICE_POS(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICE_POS, \ |