tag | line | file | source code |
chn | 325 | drivers/sound/ad1848.c | change_bits (unsigned char *regval, int dev, int chn, int newval) |
chn | 330 | drivers/sound/ad1848.c | if (mix_devices[dev][chn].polarity == 1) /* Reverse */ |
chn | 333 | drivers/sound/ad1848.c | mask = (1 << mix_devices[dev][chn].nbits) - 1; |
chn | 334 | drivers/sound/ad1848.c | shift = mix_devices[dev][chn].bitpos; |
chn | 180 | drivers/sound/dev_table.h | void (*bender) (int dev, int chn, int value); |
chn | 181 | drivers/sound/dev_table.h | int (*alloc_voice) (int dev, int chn, int note, struct voice_alloc_info *alloc); |
chn | 182 | drivers/sound/dev_table.h | void (*setup_voice) (int dev, int voice, int chn); |
chn | 2095 | drivers/sound/gus_wave.c | int this_one, is16bits, chn; |
chn | 2104 | drivers/sound/gus_wave.c | for (chn = 0; chn < gus_sampling_channels; chn++) |
chn | 2106 | drivers/sound/gus_wave.c | mode[chn] = 0x00; |
chn | 2107 | drivers/sound/gus_wave.c | ramp_mode[chn] = 0x03; /* Ramping and rollover off */ |
chn | 2109 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2111 | drivers/sound/gus_wave.c | mode[chn] |= 0x20; /* Loop IRQ */ |
chn | 2112 | drivers/sound/gus_wave.c | voices[chn].loop_irq_mode = LMODE_PCM; |
chn | 2118 | drivers/sound/gus_wave.c | mode[chn] |= 0x04; /* 16 bit data */ |
chn | 2124 | drivers/sound/gus_wave.c | dram_loc += chn * pcm_banksize; |
chn | 2128 | drivers/sound/gus_wave.c | mode[chn] |= 0x08; /* Enable loop */ |
chn | 2129 | drivers/sound/gus_wave.c | ramp_mode[chn] = 0x03; /* Disable rollover bit */ |
chn | 2133 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2134 | drivers/sound/gus_wave.c | ramp_mode[chn] = 0x04; /* Enable rollover bit */ |
chn | 2138 | drivers/sound/gus_wave.c | gus_select_voice (chn); |
chn | 2143 | drivers/sound/gus_wave.c | else if (chn == 0) |
chn | 2163 | drivers/sound/gus_wave.c | gus_write_addr (0x02, chn * pcm_banksize, is16bits); /* Loop start */ |
chn | 2165 | drivers/sound/gus_wave.c | if (chn != 0) |
chn | 2170 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2174 | drivers/sound/gus_wave.c | mode[chn] |= 0x08; /* Enable looping */ |
chn | 2181 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2183 | drivers/sound/gus_wave.c | mode[chn] &= ~0x08; /* Disable looping */ |
chn | 2184 | drivers/sound/gus_wave.c | mode[chn] |= 0x20; /* Enable IRQ at the end */ |
chn | 2186 | drivers/sound/gus_wave.c | ramp_mode[chn] = 0x03; /* No rollover bit */ |
chn | 2192 | drivers/sound/gus_wave.c | mode[chn] &= ~0x08; /* Disable looping */ |
chn | 2199 | drivers/sound/gus_wave.c | for (chn = 0; chn < gus_sampling_channels; chn++) |
chn | 2202 | drivers/sound/gus_wave.c | gus_select_voice (chn); |
chn | 2203 | drivers/sound/gus_wave.c | gus_write8 (0x0d, ramp_mode[chn]); |
chn | 2204 | drivers/sound/gus_wave.c | gus_voice_on (mode[chn]); |
chn | 2213 | drivers/sound/gus_wave.c | int total_count, int intrflag, int chn) |
chn | 2233 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2247 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE); |
chn | 2250 | drivers/sound/gus_wave.c | address += chn * pcm_banksize; |
chn | 2274 | drivers/sound/gus_wave.c | if (chn == (gus_sampling_channels - 1)) /* Last channel */ |
chn | 2459 | drivers/sound/gus_wave.c | guswave_setup_voice (int dev, int voice, int chn) |
chn | 2462 | drivers/sound/gus_wave.c | &synth_devs[dev]->chn_info[chn]; |
chn | 2676 | 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 | 283 | drivers/sound/midi_synth.c | int msg, chn; |
chn | 295 | drivers/sound/midi_synth.c | chn = prev_out_status[orig_dev] & 0x0f; |
chn | 297 | drivers/sound/midi_synth.c | if (chn == channel && ((msg == 0x90 && velocity == 64) || msg == 0x80)) |
chn | 369 | drivers/sound/midi_synth.c | int msg, chn; |
chn | 381 | drivers/sound/midi_synth.c | chn = prev_out_status[orig_dev] & 0x0f; |
chn | 383 | drivers/sound/midi_synth.c | if (chn == channel && msg == 0x90) |
chn | 550 | drivers/sound/midi_synth.c | int msg, chn; |
chn | 558 | drivers/sound/midi_synth.c | chn = prev_out_status[orig_dev] & 0x0f; |
chn | 560 | drivers/sound/midi_synth.c | if (msg != 0xd0 || chn != channel) /* |
chn | 580 | drivers/sound/midi_synth.c | int chn, msg; |
chn | 588 | drivers/sound/midi_synth.c | chn = prev_out_status[orig_dev] & 0x0f; |
chn | 590 | 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 | 17 | drivers/sound/midi_synth.h | void midi_synth_setup_voice (int dev, int voice, int chn); |
chn | 1101 | drivers/sound/opl3.c | opl3_alloc_voice (int dev, int chn, int note, struct voice_alloc_info *alloc) |
chn | 1108 | drivers/sound/opl3.c | if (chn < 0 || chn > 15) |
chn | 1111 | drivers/sound/opl3.c | instr_no = chn_info[chn].pgm_num; |
chn | 1168 | drivers/sound/opl3.c | opl3_setup_voice (int dev, int voice, int chn) |
chn | 1171 | drivers/sound/opl3.c | &synth_devs[dev]->chn_info[chn]; |
chn | 103 | drivers/sound/os.h | #define ALLOC_DMA_CHN(chn,deviceID) request_dma(chn, deviceID) |
chn | 104 | drivers/sound/os.h | #define RELEASE_DMA_CHN(chn) free_dma(chn) |
chn | 172 | drivers/sound/sb_mixer.c | change_bits (unsigned char *regval, int dev, int chn, int newval) |
chn | 177 | drivers/sound/sb_mixer.c | mask = (1 << (*iomap)[dev][chn].nbits) - 1; |
chn | 182 | drivers/sound/sb_mixer.c | shift = (*iomap)[dev][chn].bitoffs - (*iomap)[dev][LEFT_CHN].nbits + 1; |
chn | 455 | drivers/sound/sequencer.c | find_voice (int dev, int chn, int note) |
chn | 460 | drivers/sound/sequencer.c | key = (chn << 8) | (note + 1); |
chn | 470 | drivers/sound/sequencer.c | alloc_voice (int dev, int chn, int note) |
chn | 475 | drivers/sound/sequencer.c | key = (chn << 8) | (note + 1); |
chn | 477 | drivers/sound/sequencer.c | voice = synth_devs[dev]->alloc_voice (dev, chn, note, |
chn | 490 | drivers/sound/sequencer.c | unsigned char chn = event[3]; |
chn | 505 | drivers/sound/sequencer.c | voice = find_voice (dev, chn, note); |
chn | 522 | drivers/sound/sequencer.c | voice = alloc_voice (dev, chn, note); |
chn | 526 | drivers/sound/sequencer.c | voice = chn; |
chn | 535 | drivers/sound/sequencer.c | if (chn == 9) |
chn | 545 | drivers/sound/sequencer.c | synth_devs[dev]->setup_voice (dev, voice, chn); |
chn | 553 | drivers/sound/sequencer.c | voice = chn; |
chn | 559 | drivers/sound/sequencer.c | voice = chn; |
chn | 572 | drivers/sound/sequencer.c | unsigned char chn = event[3]; |
chn | 590 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].pgm_num = p1; |
chn | 592 | drivers/sound/sequencer.c | synth_devs[dev]->set_instr (dev, chn, p1); |
chn | 595 | drivers/sound/sequencer.c | synth_devs[dev]->set_instr (dev, chn, p1); |
chn | 603 | drivers/sound/sequencer.c | if (chn > 15 || p1 > 127) |
chn | 606 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].controllers[p1] = w14 & 0x7f; |
chn | 616 | drivers/sound/sequencer.c | chn_info[chn].controllers[p1 & ~32] & 0x7f) << 7) |
chn | 618 | drivers/sound/sequencer.c | chn_info[chn].controllers[p1 | 32] & 0x7f); |
chn | 624 | drivers/sound/sequencer.c | key = (chn << 8); |
chn | 631 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, chn, p1, w14); |
chn | 634 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, chn, p1, w14); |
chn | 640 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].bender_value = w14; |
chn | 646 | drivers/sound/sequencer.c | key = (chn << 8); |
chn | 653 | drivers/sound/sequencer.c | synth_devs[dev]->bender (dev, chn, w14); |
chn | 656 | drivers/sound/sequencer.c | synth_devs[dev]->bender (dev, chn, w14); |
chn | 975 | drivers/sound/sequencer.c | int chn; |
chn | 977 | drivers/sound/sequencer.c | for (chn = 0; chn < 16; chn++) |
chn | 979 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].pgm_num = 0; |
chn | 981 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].controllers, |
chn | 983 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].bender_value = (1 << 7); /* Neutral */ |
chn | 1299 | drivers/sound/sequencer.c | int chn; |
chn | 1318 | drivers/sound/sequencer.c | for (chn = 0; chn < 16; chn++) |
chn | 1323 | drivers/sound/sequencer.c | synth_devs[i]->controller (i, chn, 123, 0); /* All notes off */ |
chn | 1324 | drivers/sound/sequencer.c | synth_devs[i]->controller (i, chn, 121, 0); /* Reset all ctl */ |
chn | 1325 | drivers/sound/sequencer.c | synth_devs[i]->bender (i, chn, 1 << 13); /* Bender off */ |
chn | 1344 | drivers/sound/sequencer.c | for (chn = 0; chn < 16; chn++) |
chn | 1347 | drivers/sound/sequencer.c | (unsigned char) (0xb0 + (chn & 0x0f))); /* control change */ |
chn | 935 | include/linux/soundcard.h | #define _CHN_VOICE(dev, event, chn, note, parm) \ |
chn | 940 | include/linux/soundcard.h | _seqbuf[_seqbufptr+3] = (chn);\ |
chn | 947 | include/linux/soundcard.h | #define SEQ_START_NOTE(dev, chn, note, vol) \ |
chn | 948 | include/linux/soundcard.h | _CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol) |
chn | 950 | include/linux/soundcard.h | #define SEQ_STOP_NOTE(dev, chn, note, vol) \ |
chn | 951 | include/linux/soundcard.h | _CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol) |
chn | 953 | include/linux/soundcard.h | #define SEQ_KEY_PRESSURE(dev, chn, note, pressure) \ |
chn | 954 | include/linux/soundcard.h | _CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure) |
chn | 960 | include/linux/soundcard.h | #define _CHN_COMMON(dev, event, chn, p1, p2, w14) \ |
chn | 965 | include/linux/soundcard.h | _seqbuf[_seqbufptr+3] = (chn);\ |
chn | 971 | include/linux/soundcard.h | #define SEQ_CHN_PRESSURE(dev, chn, pressure) \ |
chn | 972 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_CHN_PRESSURE, chn, pressure, 0, 0) |
chn | 974 | include/linux/soundcard.h | #define SEQ_SET_PATCH(dev, chn, patch) \ |
chn | 975 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0) |
chn | 977 | include/linux/soundcard.h | #define SEQ_CONTROL(dev, chn, controller, value) \ |
chn | 978 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_CTL_CHANGE, chn, controller, 0, value) |
chn | 980 | include/linux/soundcard.h | #define SEQ_BENDER(dev, chn, value) \ |
chn | 981 | 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, \ |