tag | line | file | source code |
chn | 344 | drivers/sound/ad1848.c | change_bits (unsigned char *regval, int dev, int chn, int newval) |
chn | 349 | drivers/sound/ad1848.c | if (mix_devices[dev][chn].polarity == 1) /* Reverse */ |
chn | 352 | drivers/sound/ad1848.c | mask = (1 << mix_devices[dev][chn].nbits) - 1; |
chn | 353 | drivers/sound/ad1848.c | shift = mix_devices[dev][chn].bitpos; |
chn | 201 | drivers/sound/dev_table.h | void (*bender) (int dev, int chn, int value); |
chn | 202 | drivers/sound/dev_table.h | int (*alloc_voice) (int dev, int chn, int note, struct voice_alloc_info *alloc); |
chn | 203 | drivers/sound/dev_table.h | void (*setup_voice) (int dev, int voice, int chn); |
chn | 2129 | drivers/sound/gus_wave.c | int this_one, is16bits, chn; |
chn | 2138 | drivers/sound/gus_wave.c | for (chn = 0; chn < gus_sampling_channels; chn++) |
chn | 2140 | drivers/sound/gus_wave.c | mode[chn] = 0x00; |
chn | 2141 | drivers/sound/gus_wave.c | ramp_mode[chn] = 0x03; /* Ramping and rollover off */ |
chn | 2143 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2145 | drivers/sound/gus_wave.c | mode[chn] |= 0x20; /* Loop IRQ */ |
chn | 2146 | drivers/sound/gus_wave.c | voices[chn].loop_irq_mode = LMODE_PCM; |
chn | 2152 | drivers/sound/gus_wave.c | mode[chn] |= 0x04; /* 16 bit data */ |
chn | 2158 | drivers/sound/gus_wave.c | dram_loc += chn * pcm_banksize; |
chn | 2162 | drivers/sound/gus_wave.c | mode[chn] |= 0x08; /* Enable loop */ |
chn | 2163 | drivers/sound/gus_wave.c | ramp_mode[chn] = 0x03; /* Disable rollover bit */ |
chn | 2167 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2168 | drivers/sound/gus_wave.c | ramp_mode[chn] = 0x04; /* Enable rollover bit */ |
chn | 2173 | drivers/sound/gus_wave.c | gus_select_voice (chn); |
chn | 2178 | drivers/sound/gus_wave.c | else if (chn == 0) |
chn | 2198 | drivers/sound/gus_wave.c | gus_write_addr (0x02, chn * pcm_banksize, is16bits); /* Loop start */ |
chn | 2200 | drivers/sound/gus_wave.c | if (chn != 0) |
chn | 2205 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2209 | drivers/sound/gus_wave.c | mode[chn] |= 0x08; /* Enable looping */ |
chn | 2216 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2218 | drivers/sound/gus_wave.c | mode[chn] &= ~0x08; /* Disable looping */ |
chn | 2219 | drivers/sound/gus_wave.c | mode[chn] |= 0x20; /* Enable IRQ at the end */ |
chn | 2221 | drivers/sound/gus_wave.c | ramp_mode[chn] = 0x03; /* No rollover bit */ |
chn | 2227 | drivers/sound/gus_wave.c | mode[chn] &= ~0x08; /* Disable looping */ |
chn | 2234 | drivers/sound/gus_wave.c | for (chn = 0; chn < gus_sampling_channels; chn++) |
chn | 2238 | drivers/sound/gus_wave.c | gus_select_voice (chn); |
chn | 2239 | drivers/sound/gus_wave.c | gus_write8 (0x0d, ramp_mode[chn]); |
chn | 2240 | drivers/sound/gus_wave.c | gus_voice_on (mode[chn]); |
chn | 2249 | drivers/sound/gus_wave.c | int total_count, int intrflag, int chn) |
chn | 2270 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2284 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE); |
chn | 2287 | drivers/sound/gus_wave.c | address += chn * pcm_banksize; |
chn | 2311 | drivers/sound/gus_wave.c | if (chn == (gus_sampling_channels - 1)) /* Last channel */ |
chn | 2497 | drivers/sound/gus_wave.c | guswave_setup_voice (int dev, int voice, int chn) |
chn | 2500 | drivers/sound/gus_wave.c | &synth_devs[dev]->chn_info[chn]; |
chn | 2715 | drivers/sound/gus_wave.c | guswave_alloc (int dev, int chn, int note, struct voice_alloc_info *alloc) |
chn | 78 | drivers/sound/ics2101.c | write_mix (int dev, int chn, int vol) |
chn | 87 | drivers/sound/ics2101.c | if (chn == CHN_LEFT) |
chn | 310 | drivers/sound/midi_synth.c | int msg, chn; |
chn | 324 | drivers/sound/midi_synth.c | chn = prev_out_status[orig_dev] & 0x0f; |
chn | 326 | drivers/sound/midi_synth.c | if (chn == channel && ((msg == 0x90 && velocity == 64) || msg == 0x80)) |
chn | 400 | drivers/sound/midi_synth.c | int msg, chn; |
chn | 414 | drivers/sound/midi_synth.c | chn = prev_out_status[orig_dev] & 0x0f; |
chn | 416 | drivers/sound/midi_synth.c | if (chn == channel && msg == 0x90) |
chn | 607 | drivers/sound/midi_synth.c | int msg, chn; |
chn | 617 | drivers/sound/midi_synth.c | chn = prev_out_status[orig_dev] & 0x0f; |
chn | 619 | drivers/sound/midi_synth.c | if (msg != 0xd0 || chn != channel) /* |
chn | 639 | drivers/sound/midi_synth.c | int chn, msg; |
chn | 649 | drivers/sound/midi_synth.c | chn = prev_out_status[orig_dev] & 0x0f; |
chn | 651 | 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 | 1068 | drivers/sound/opl3.c | opl3_alloc_voice (int dev, int chn, int note, struct voice_alloc_info *alloc) |
chn | 1075 | drivers/sound/opl3.c | if (chn < 0 || chn > 15) |
chn | 1078 | drivers/sound/opl3.c | instr_no = devc->chn_info[chn].pgm_num; |
chn | 1135 | drivers/sound/opl3.c | opl3_setup_voice (int dev, int voice, int chn) |
chn | 1138 | drivers/sound/opl3.c | &synth_devs[dev]->chn_info[chn]; |
chn | 38 | drivers/sound/os.h | extern int sound_alloc_dma(int chn, char *deviceID); |
chn | 39 | drivers/sound/os.h | extern int sound_open_dma(int chn, char *deviceID); |
chn | 40 | drivers/sound/os.h | extern void sound_free_dma(int chn); |
chn | 41 | drivers/sound/os.h | extern void sound_close_dma(int chn); |
chn | 175 | drivers/sound/sb_mixer.c | change_bits (unsigned char *regval, int dev, int chn, int newval) |
chn | 180 | drivers/sound/sb_mixer.c | mask = (1 << (*iomap)[dev][chn].nbits) - 1; |
chn | 185 | drivers/sound/sb_mixer.c | shift = (*iomap)[dev][chn].bitoffs - (*iomap)[dev][LEFT_CHN].nbits + 1; |
chn | 500 | drivers/sound/sequencer.c | find_voice (int dev, int chn, int note) |
chn | 505 | drivers/sound/sequencer.c | key = (chn << 8) | (note + 1); |
chn | 515 | drivers/sound/sequencer.c | alloc_voice (int dev, int chn, int note) |
chn | 520 | drivers/sound/sequencer.c | key = (chn << 8) | (note + 1); |
chn | 522 | drivers/sound/sequencer.c | voice = synth_devs[dev]->alloc_voice (dev, chn, note, |
chn | 535 | drivers/sound/sequencer.c | unsigned char chn = event[3]; |
chn | 550 | drivers/sound/sequencer.c | voice = find_voice (dev, chn, note); |
chn | 567 | drivers/sound/sequencer.c | voice = alloc_voice (dev, chn, note); |
chn | 571 | drivers/sound/sequencer.c | voice = chn; |
chn | 580 | drivers/sound/sequencer.c | if (chn == 9) |
chn | 590 | drivers/sound/sequencer.c | synth_devs[dev]->setup_voice (dev, voice, chn); |
chn | 598 | drivers/sound/sequencer.c | voice = chn; |
chn | 604 | drivers/sound/sequencer.c | voice = chn; |
chn | 617 | drivers/sound/sequencer.c | unsigned char chn = event[3]; |
chn | 635 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].pgm_num = p1; |
chn | 637 | drivers/sound/sequencer.c | synth_devs[dev]->set_instr (dev, chn, p1); |
chn | 640 | drivers/sound/sequencer.c | synth_devs[dev]->set_instr (dev, chn, p1); |
chn | 647 | drivers/sound/sequencer.c | if (chn > 15 || p1 > 127) |
chn | 650 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].controllers[p1] = w14 & 0x7f; |
chn | 653 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].controllers[p1 + 32] = 0; |
chn | 663 | drivers/sound/sequencer.c | chn_info[chn].controllers[p1 & ~32] & 0x7f) << 7) |
chn | 665 | drivers/sound/sequencer.c | chn_info[chn].controllers[p1 | 32] & 0x7f); |
chn | 671 | drivers/sound/sequencer.c | key = ((int) chn << 8); |
chn | 678 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, chn, p1, w14); |
chn | 681 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, chn, p1, w14); |
chn | 687 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].bender_value = w14; |
chn | 693 | drivers/sound/sequencer.c | key = (chn << 8); |
chn | 700 | drivers/sound/sequencer.c | synth_devs[dev]->bender (dev, chn, w14); |
chn | 703 | drivers/sound/sequencer.c | synth_devs[dev]->bender (dev, chn, w14); |
chn | 1077 | drivers/sound/sequencer.c | int chn; |
chn | 1079 | drivers/sound/sequencer.c | for (chn = 0; chn < 16; chn++) |
chn | 1081 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].pgm_num = 0; |
chn | 1083 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].controllers, |
chn | 1085 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].bender_value = (1 << 7); /* Neutral */ |
chn | 1455 | drivers/sound/sequencer.c | int chn; |
chn | 1474 | drivers/sound/sequencer.c | for (chn = 0; chn < 16; chn++) |
chn | 1479 | drivers/sound/sequencer.c | synth_devs[i]->controller (i, chn, 123, 0); /* All notes off */ |
chn | 1480 | drivers/sound/sequencer.c | synth_devs[i]->controller (i, chn, 121, 0); /* Reset all ctl */ |
chn | 1481 | drivers/sound/sequencer.c | synth_devs[i]->bender (i, chn, 1 << 13); /* Bender off */ |
chn | 1500 | drivers/sound/sequencer.c | for (chn = 0; chn < 16; chn++) |
chn | 1503 | drivers/sound/sequencer.c | (unsigned char) (0xb0 + (chn & 0x0f))); /* control change */ |
chn | 432 | drivers/sound/soundcard.c | sound_alloc_dma (int chn, char *deviceID) |
chn | 436 | drivers/sound/soundcard.c | if ((err = request_dma (chn, deviceID)) != 0) |
chn | 439 | drivers/sound/soundcard.c | dma_alloc_map[chn] = DMA_MAP_FREE; |
chn | 445 | drivers/sound/soundcard.c | sound_open_dma (int chn, char *deviceID) |
chn | 452 | drivers/sound/soundcard.c | if (dma_alloc_map[chn] != DMA_MAP_FREE) |
chn | 454 | drivers/sound/soundcard.c | printk ("sound_open_dma: DMA channel %d busy or not allocated\n", chn); |
chn | 459 | drivers/sound/soundcard.c | dma_alloc_map[chn] = DMA_MAP_BUSY; |
chn | 465 | drivers/sound/soundcard.c | sound_free_dma (int chn) |
chn | 467 | drivers/sound/soundcard.c | if (dma_alloc_map[chn] != DMA_MAP_FREE) |
chn | 469 | drivers/sound/soundcard.c | printk ("sound_free_dma: Bad access to DMA channel %d\n", chn); |
chn | 472 | drivers/sound/soundcard.c | free_dma (chn); |
chn | 473 | drivers/sound/soundcard.c | dma_alloc_map[chn] = DMA_MAP_UNAVAIL; |
chn | 477 | drivers/sound/soundcard.c | sound_close_dma (int chn) |
chn | 484 | drivers/sound/soundcard.c | if (dma_alloc_map[chn] != DMA_MAP_BUSY) |
chn | 486 | drivers/sound/soundcard.c | printk ("sound_close_dma: Bad access to DMA channel %d\n", chn); |
chn | 490 | drivers/sound/soundcard.c | dma_alloc_map[chn] = DMA_MAP_FREE; |
chn | 985 | include/linux/soundcard.h | #define _CHN_VOICE(dev, event, chn, note, parm) \ |
chn | 990 | include/linux/soundcard.h | _seqbuf[_seqbufptr+3] = (chn);\ |
chn | 997 | include/linux/soundcard.h | #define SEQ_START_NOTE(dev, chn, note, vol) \ |
chn | 998 | include/linux/soundcard.h | _CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol) |
chn | 1000 | include/linux/soundcard.h | #define SEQ_STOP_NOTE(dev, chn, note, vol) \ |
chn | 1001 | include/linux/soundcard.h | _CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol) |
chn | 1003 | include/linux/soundcard.h | #define SEQ_KEY_PRESSURE(dev, chn, note, pressure) \ |
chn | 1004 | include/linux/soundcard.h | _CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure) |
chn | 1010 | include/linux/soundcard.h | #define _CHN_COMMON(dev, event, chn, p1, p2, w14) \ |
chn | 1015 | include/linux/soundcard.h | _seqbuf[_seqbufptr+3] = (chn);\ |
chn | 1043 | include/linux/soundcard.h | #define SEQ_CHN_PRESSURE(dev, chn, pressure) \ |
chn | 1044 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_CHN_PRESSURE, chn, pressure, 0, 0) |
chn | 1046 | include/linux/soundcard.h | #define SEQ_SET_PATCH(dev, chn, patch) \ |
chn | 1047 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0) |
chn | 1049 | include/linux/soundcard.h | #define SEQ_CONTROL(dev, chn, controller, value) \ |
chn | 1050 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_CTL_CHANGE, chn, controller, 0, value) |
chn | 1052 | include/linux/soundcard.h | #define SEQ_BENDER(dev, chn, value) \ |
chn | 1053 | 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, \ |