taglinefilesource code
chn344drivers/sound/ad1848.cchange_bits (unsigned char *regval, int dev, int chn, int newval)
chn349drivers/sound/ad1848.cif (mix_devices[dev][chn].polarity == 1)  /* Reverse */
chn352drivers/sound/ad1848.cmask = (1 << mix_devices[dev][chn].nbits) - 1;
chn353drivers/sound/ad1848.cshift = mix_devices[dev][chn].bitpos;
chn201drivers/sound/dev_table.hvoid (*bender) (int dev, int chn, int value);
chn202drivers/sound/dev_table.hint (*alloc_voice) (int dev, int chn, int note, struct voice_alloc_info *alloc);
chn203drivers/sound/dev_table.hvoid (*setup_voice) (int dev, int voice, int chn);
chn2129drivers/sound/gus_wave.cint             this_one, is16bits, chn;
chn2138drivers/sound/gus_wave.cfor (chn = 0; chn < gus_sampling_channels; chn++)
chn2140drivers/sound/gus_wave.cmode[chn] = 0x00;
chn2141drivers/sound/gus_wave.cramp_mode[chn] = 0x03;  /* Ramping and rollover off */
chn2143drivers/sound/gus_wave.cif (chn == 0)
chn2145drivers/sound/gus_wave.cmode[chn] |= 0x20;  /* Loop IRQ */
chn2146drivers/sound/gus_wave.cvoices[chn].loop_irq_mode = LMODE_PCM;
chn2152drivers/sound/gus_wave.cmode[chn] |= 0x04;  /* 16 bit data */
chn2158drivers/sound/gus_wave.cdram_loc += chn * pcm_banksize;
chn2162drivers/sound/gus_wave.cmode[chn] |= 0x08;  /* Enable loop */
chn2163drivers/sound/gus_wave.cramp_mode[chn] = 0x03;  /* Disable rollover bit */
chn2167drivers/sound/gus_wave.cif (chn == 0)
chn2168drivers/sound/gus_wave.cramp_mode[chn] = 0x04;  /* Enable rollover bit */
chn2173drivers/sound/gus_wave.cgus_select_voice (chn);
chn2178drivers/sound/gus_wave.celse if (chn == 0)
chn2198drivers/sound/gus_wave.cgus_write_addr (0x02, chn * pcm_banksize, is16bits);  /* Loop start */
chn2200drivers/sound/gus_wave.cif (chn != 0)
chn2205drivers/sound/gus_wave.cif (chn == 0)
chn2209drivers/sound/gus_wave.cmode[chn] |= 0x08;  /* Enable looping */
chn2216drivers/sound/gus_wave.cif (chn == 0)
chn2218drivers/sound/gus_wave.cmode[chn] &= ~0x08;  /* Disable looping */
chn2219drivers/sound/gus_wave.cmode[chn] |= 0x20;  /* Enable IRQ at the end */
chn2221drivers/sound/gus_wave.cramp_mode[chn] = 0x03;  /* No rollover bit */
chn2227drivers/sound/gus_wave.cmode[chn] &= ~0x08;  /* Disable looping */
chn2234drivers/sound/gus_wave.cfor (chn = 0; chn < gus_sampling_channels; chn++)
chn2238drivers/sound/gus_wave.cgus_select_voice (chn);
chn2239drivers/sound/gus_wave.cgus_write8 (0x0d, ramp_mode[chn]);
chn2240drivers/sound/gus_wave.cgus_voice_on (mode[chn]);
chn2249drivers/sound/gus_wave.cint total_count, int intrflag, int chn)
chn2270drivers/sound/gus_wave.cif (chn == 0)
chn2284drivers/sound/gus_wave.cDMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE);
chn2287drivers/sound/gus_wave.caddress += chn * pcm_banksize;
chn2311drivers/sound/gus_wave.cif (chn == (gus_sampling_channels - 1))  /* Last channel */
chn2497drivers/sound/gus_wave.cguswave_setup_voice (int dev, int voice, int chn)
chn2500drivers/sound/gus_wave.c&synth_devs[dev]->chn_info[chn];
chn2715drivers/sound/gus_wave.cguswave_alloc (int dev, int chn, int note, struct voice_alloc_info *alloc)
chn78drivers/sound/ics2101.cwrite_mix (int dev, int chn, int vol)
chn87drivers/sound/ics2101.cif (chn == CHN_LEFT)
chn310drivers/sound/midi_synth.cint             msg, chn;
chn324drivers/sound/midi_synth.cchn = prev_out_status[orig_dev] & 0x0f;
chn326drivers/sound/midi_synth.cif (chn == channel && ((msg == 0x90 && velocity == 64) || msg == 0x80))
chn400drivers/sound/midi_synth.cint             msg, chn;
chn414drivers/sound/midi_synth.cchn = prev_out_status[orig_dev] & 0x0f;
chn416drivers/sound/midi_synth.cif (chn == channel && msg == 0x90)
chn607drivers/sound/midi_synth.cint             msg, chn;
chn617drivers/sound/midi_synth.cchn = prev_out_status[orig_dev] & 0x0f;
chn619drivers/sound/midi_synth.cif (msg != 0xd0 || chn != channel)  /*
chn639drivers/sound/midi_synth.cint             chn, msg;
chn649drivers/sound/midi_synth.cchn = prev_out_status[orig_dev] & 0x0f;
chn651drivers/sound/midi_synth.cif (msg != 0xb0 || chn != channel)
chn16drivers/sound/midi_synth.hvoid midi_synth_bender (int dev, int chn, int value);
chn17drivers/sound/midi_synth.hvoid midi_synth_setup_voice (int dev, int voice, int chn);
chn1068drivers/sound/opl3.copl3_alloc_voice (int dev, int chn, int note, struct voice_alloc_info *alloc)
chn1075drivers/sound/opl3.cif (chn < 0 || chn > 15)
chn1078drivers/sound/opl3.cinstr_no = devc->chn_info[chn].pgm_num;
chn1135drivers/sound/opl3.copl3_setup_voice (int dev, int voice, int chn)
chn1138drivers/sound/opl3.c&synth_devs[dev]->chn_info[chn];
chn38drivers/sound/os.hextern int sound_alloc_dma(int chn, char *deviceID);
chn39drivers/sound/os.hextern int sound_open_dma(int chn, char *deviceID);
chn40drivers/sound/os.hextern void sound_free_dma(int chn);
chn41drivers/sound/os.hextern void sound_close_dma(int chn);
chn175drivers/sound/sb_mixer.cchange_bits (unsigned char *regval, int dev, int chn, int newval)
chn180drivers/sound/sb_mixer.cmask = (1 << (*iomap)[dev][chn].nbits) - 1;
chn185drivers/sound/sb_mixer.cshift = (*iomap)[dev][chn].bitoffs - (*iomap)[dev][LEFT_CHN].nbits + 1;
chn500drivers/sound/sequencer.cfind_voice (int dev, int chn, int note)
chn505drivers/sound/sequencer.ckey = (chn << 8) | (note + 1);
chn515drivers/sound/sequencer.calloc_voice (int dev, int chn, int note)
chn520drivers/sound/sequencer.ckey = (chn << 8) | (note + 1);
chn522drivers/sound/sequencer.cvoice = synth_devs[dev]->alloc_voice (dev, chn, note,
chn535drivers/sound/sequencer.cunsigned char   chn = event[3];
chn550drivers/sound/sequencer.cvoice = find_voice (dev, chn, note);
chn567drivers/sound/sequencer.cvoice = alloc_voice (dev, chn, note);
chn571drivers/sound/sequencer.cvoice = chn;
chn580drivers/sound/sequencer.cif (chn == 9)
chn590drivers/sound/sequencer.csynth_devs[dev]->setup_voice (dev, voice, chn);
chn598drivers/sound/sequencer.cvoice = chn;
chn604drivers/sound/sequencer.cvoice = chn;
chn617drivers/sound/sequencer.cunsigned char   chn = event[3];
chn635drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].pgm_num = p1;
chn637drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, chn, p1);
chn640drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, chn, p1);
chn647drivers/sound/sequencer.cif (chn > 15 || p1 > 127)
chn650drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].controllers[p1] = w14 & 0x7f;
chn653drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].controllers[p1 + 32] = 0;
chn663drivers/sound/sequencer.cchn_info[chn].controllers[p1 & ~32] & 0x7f) << 7)
chn665drivers/sound/sequencer.cchn_info[chn].controllers[p1 | 32] & 0x7f);
chn671drivers/sound/sequencer.ckey = ((int) chn << 8);
chn678drivers/sound/sequencer.csynth_devs[dev]->controller (dev, chn, p1, w14);
chn681drivers/sound/sequencer.csynth_devs[dev]->controller (dev, chn, p1, w14);
chn687drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].bender_value = w14;
chn693drivers/sound/sequencer.ckey = (chn << 8);
chn700drivers/sound/sequencer.csynth_devs[dev]->bender (dev, chn, w14);
chn703drivers/sound/sequencer.csynth_devs[dev]->bender (dev, chn, w14);
chn1077drivers/sound/sequencer.cint             chn;
chn1079drivers/sound/sequencer.cfor (chn = 0; chn < 16; chn++)
chn1081drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].pgm_num = 0;
chn1083drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].controllers,
chn1085drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].bender_value = (1 << 7);  /* Neutral */
chn1455drivers/sound/sequencer.cint             chn;
chn1474drivers/sound/sequencer.cfor (chn = 0; chn < 16; chn++)
chn1479drivers/sound/sequencer.csynth_devs[i]->controller (i, chn, 123, 0);  /* All notes off */
chn1480drivers/sound/sequencer.csynth_devs[i]->controller (i, chn, 121, 0);  /* Reset all ctl */
chn1481drivers/sound/sequencer.csynth_devs[i]->bender (i, chn, 1 << 13);  /* Bender off */
chn1500drivers/sound/sequencer.cfor (chn = 0; chn < 16; chn++)
chn1503drivers/sound/sequencer.c(unsigned char) (0xb0 + (chn & 0x0f)));  /* control change */
chn432drivers/sound/soundcard.csound_alloc_dma (int chn, char *deviceID)
chn436drivers/sound/soundcard.cif ((err = request_dma (chn, deviceID)) != 0)
chn439drivers/sound/soundcard.cdma_alloc_map[chn] = DMA_MAP_FREE;
chn445drivers/sound/soundcard.csound_open_dma (int chn, char *deviceID)
chn452drivers/sound/soundcard.cif (dma_alloc_map[chn] != DMA_MAP_FREE)
chn454drivers/sound/soundcard.cprintk ("sound_open_dma: DMA channel %d busy or not allocated\n", chn);
chn459drivers/sound/soundcard.cdma_alloc_map[chn] = DMA_MAP_BUSY;
chn465drivers/sound/soundcard.csound_free_dma (int chn)
chn467drivers/sound/soundcard.cif (dma_alloc_map[chn] != DMA_MAP_FREE)
chn469drivers/sound/soundcard.cprintk ("sound_free_dma: Bad access to DMA channel %d\n", chn);
chn472drivers/sound/soundcard.cfree_dma (chn);
chn473drivers/sound/soundcard.cdma_alloc_map[chn] = DMA_MAP_UNAVAIL;
chn477drivers/sound/soundcard.csound_close_dma (int chn)
chn484drivers/sound/soundcard.cif (dma_alloc_map[chn] != DMA_MAP_BUSY)
chn486drivers/sound/soundcard.cprintk ("sound_close_dma: Bad access to DMA channel %d\n", chn);
chn490drivers/sound/soundcard.cdma_alloc_map[chn] = DMA_MAP_FREE;
chn985include/linux/soundcard.h#define _CHN_VOICE(dev, event, chn, note, parm) \
chn990include/linux/soundcard.h_seqbuf[_seqbufptr+3] = (chn);\
chn997include/linux/soundcard.h#define SEQ_START_NOTE(dev, chn, note, vol) \
chn998include/linux/soundcard.h_CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol)
chn1000include/linux/soundcard.h#define SEQ_STOP_NOTE(dev, chn, note, vol) \
chn1001include/linux/soundcard.h_CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol)
chn1003include/linux/soundcard.h#define SEQ_KEY_PRESSURE(dev, chn, note, pressure) \
chn1004include/linux/soundcard.h_CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure)
chn1010include/linux/soundcard.h#define _CHN_COMMON(dev, event, chn, p1, p2, w14) \
chn1015include/linux/soundcard.h_seqbuf[_seqbufptr+3] = (chn);\
chn1043include/linux/soundcard.h#define SEQ_CHN_PRESSURE(dev, chn, pressure) \
chn1044include/linux/soundcard.h_CHN_COMMON(dev, MIDI_CHN_PRESSURE, chn, pressure, 0, 0)
chn1046include/linux/soundcard.h#define SEQ_SET_PATCH(dev, chn, patch) \
chn1047include/linux/soundcard.h_CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0)
chn1049include/linux/soundcard.h#define SEQ_CONTROL(dev, chn, controller, value) \
chn1050include/linux/soundcard.h_CHN_COMMON(dev, MIDI_CTL_CHANGE, chn, controller, 0, value)
chn1052include/linux/soundcard.h#define SEQ_BENDER(dev, chn, value) \
chn1053include/linux/soundcard.h_CHN_COMMON(dev, MIDI_PITCH_BEND, chn, 0, 0, value)
chn93include/linux/ultrasound.h#define _GUS_CMD(chn, voice, cmd, p1, p2) \
chn95include/linux/ultrasound.h_seqbuf[_seqbufptr+1] = (chn); _seqbuf[_seqbufptr+2] = cmd;\
chn101include/linux/ultrasound.h#define GUS_NUMVOICES(chn, p1)      _GUS_CMD(chn, 0, _GUS_NUMVOICES, (p1), 0)
chn102include/linux/ultrasound.h#define GUS_VOICESAMPLE(chn, voice, p1)    _GUS_CMD(chn, voice, _GUS_VOICESAMPLE, (p1), 0)  /* OBSOLETE */
chn103include/linux/ultrasound.h#define GUS_VOICEON(chn, voice, p1)    _GUS_CMD(chn, voice, _GUS_VOICEON, (p1), 0)
chn104include/linux/ultrasound.h#define GUS_VOICEOFF(chn, voice)    _GUS_CMD(chn, voice, _GUS_VOICEOFF, 0, 0)
chn105include/linux/ultrasound.h#define GUS_VOICEFADE(chn, voice)    _GUS_CMD(chn, voice, _GUS_VOICEFADE, 0, 0)
chn106include/linux/ultrasound.h#define GUS_VOICEMODE(chn, voice, p1)    _GUS_CMD(chn, voice, _GUS_VOICEMODE, (p1), 0)
chn107include/linux/ultrasound.h#define GUS_VOICEBALA(chn, voice, p1)    _GUS_CMD(chn, voice, _GUS_VOICEBALA, (p1), 0)
chn108include/linux/ultrasound.h#define GUS_VOICEFREQ(chn, voice, p)    _GUS_CMD(chn, voice, _GUS_VOICEFREQ, \
chn110include/linux/ultrasound.h#define GUS_VOICEVOL(chn, voice, p1)    _GUS_CMD(chn, voice, _GUS_VOICEVOL, (p1), 0)
chn111include/linux/ultrasound.h#define GUS_VOICEVOL2(chn, voice, p1)    _GUS_CMD(chn, voice, _GUS_VOICEVOL2, (p1), 0)
chn112include/linux/ultrasound.h#define GUS_RAMPRANGE(chn, voice, low, high)  _GUS_CMD(chn, voice, _GUS_RAMPRANGE, (low), (high))
chn113include/linux/ultrasound.h#define GUS_RAMPRATE(chn, voice, p1, p2)  _GUS_CMD(chn, voice, _GUS_RAMPRATE, (p1), (p2))
chn114include/linux/ultrasound.h#define GUS_RAMPMODE(chn, voice, p1)    _GUS_CMD(chn, voice, _GUS_RAMPMODE, (p1), 0)
chn115include/linux/ultrasound.h#define GUS_RAMPON(chn, voice, p1)    _GUS_CMD(chn, voice, _GUS_RAMPON, (p1), 0)
chn116include/linux/ultrasound.h#define GUS_RAMPOFF(chn, voice)      _GUS_CMD(chn, voice, _GUS_RAMPOFF, 0, 0)
chn117include/linux/ultrasound.h#define GUS_VOLUME_SCALE(chn, voice, p1, p2)  _GUS_CMD(chn, voice, _GUS_VOLUME_SCALE, (p1), (p2))
chn118include/linux/ultrasound.h#define GUS_VOICE_POS(chn, voice, p)    _GUS_CMD(chn, voice, _GUS_VOICE_POS, \