• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/oss/

Lines Matching refs:chn

417 static int find_voice(int dev, int chn, int note)
422 key = (chn << 8) | (note + 1);
429 static int alloc_voice(int dev, int chn, int note)
434 key = (chn << 8) | (note + 1);
436 voice = synth_devs[dev]->alloc_voice(dev, chn, note,
448 #define chn event_rec[3]
464 voice = find_voice(dev, chn, note);
482 voice = alloc_voice(dev, chn, note);
485 voice = chn;
494 if (chn == 9)
497 synth_devs[dev]->chn_info[chn].pgm_num = 128 + note;
499 synth_devs[dev]->setup_voice(dev, voice, chn);
506 voice = chn;
512 voice = chn;
520 #undef chn
530 unsigned char chn = event_rec[3];
548 synth_devs[dev]->chn_info[chn].pgm_num = p1;
550 synth_devs[dev]->set_instr(dev, chn, p1);
553 synth_devs[dev]->set_instr(dev, chn, p1);
560 if (chn > 15 || p1 > 127)
563 synth_devs[dev]->chn_info[chn].controllers[p1] = w14 & 0x7f;
566 synth_devs[dev]->chn_info[chn].controllers[p1 + 32] = 0;
576 chn_info[chn].controllers[p1 & ~32] & 0x7f) << 7)
578 chn_info[chn].controllers[p1 | 32] & 0x7f);
583 key = ((int) chn << 8);
590 synth_devs[dev]->controller(dev, chn, p1, w14);
593 synth_devs[dev]->controller(dev, chn, p1, w14);
599 synth_devs[dev]->chn_info[chn].bender_value = w14;
606 key = (chn << 8);
613 synth_devs[dev]->bender(dev, chn, w14);
616 synth_devs[dev]->bender(dev, chn, w14);
925 int chn;
930 for (chn = 0; chn < 16; chn++)
932 synth_devs[dev]->chn_info[chn].pgm_num = 0;
934 synth_devs[dev]->chn_info[chn].controllers,0);
935 synth_devs[dev]->chn_info[chn].bender_value = (1 << 7); /* Neutral */
936 synth_devs[dev]->chn_info[chn].bender_range = 200;
1234 int chn;
1253 for (chn = 0; chn < 16; chn++)
1258 synth_devs[i]->controller(i, chn, 123, 0); /* All notes off */
1259 synth_devs[i]->controller(i, chn, 121, 0); /* Reset all ctl */
1260 synth_devs[i]->bender(i, chn, 1 << 13); /* Bender off */
1277 for (chn = 0; chn < 16; chn++)
1279 midi_outc(i, (unsigned char) (0xb0 + (chn & 0x0f))); /* control change */