Lines Matching refs:instr

82 static int      store_instr(int instr_no, struct sbi_instrument *instr);
302 static int store_instr(int instr_no, struct sbi_instrument *instr) in store_instr() argument
304 if (instr->key != FM_PATCH && (instr->key != OPL3_PATCH || devc->model != 2)) in store_instr()
305 printk(KERN_WARNING "FM warning: Invalid patch format field (key) 0x%x\n", instr->key); in store_instr()
306 memcpy((char *) &(devc->i_map[instr_no]), (char *) instr, sizeof(*instr)); in store_instr()
373 struct sbi_instrument *instr; in set_voice_volume() local
380 instr = devc->act_i[voice]; in set_voice_volume()
382 if (!instr) in set_voice_volume()
383 instr = &devc->i_map[0]; in set_voice_volume()
385 if (instr->channel < 0) in set_voice_volume()
393 vol1 = instr->operators[2]; in set_voice_volume()
394 vol2 = instr->operators[3]; in set_voice_volume()
395 if ((instr->operators[10] & 0x01)) in set_voice_volume()
413 vol1 = instr->operators[2]; in set_voice_volume()
414 vol2 = instr->operators[3]; in set_voice_volume()
415 vol3 = instr->operators[OFFS_4OP + 2]; in set_voice_volume()
416 vol4 = instr->operators[OFFS_4OP + 3]; in set_voice_volume()
423 connection = ((instr->operators[10] & 0x01) << 1) | (instr->operators[10 + OFFS_4OP] & 0x01); in set_voice_volume()
461 struct sbi_instrument *instr; in opl3_start_note() local
506 instr = devc->act_i[voice]; in opl3_start_note()
508 if (!instr) in opl3_start_note()
509 instr = &devc->i_map[0]; in opl3_start_note()
511 if (instr->channel < 0) in opl3_start_note()
517 if (map->voice_mode == 2 && instr->key == OPL3_PATCH) in opl3_start_note()
531 if (instr->key != OPL3_PATCH) /* in opl3_start_note()
550 opl3_command(map->ioaddr, AM_VIB + map->op[0], instr->operators[0]); in opl3_start_note()
551 opl3_command(map->ioaddr, AM_VIB + map->op[1], instr->operators[1]); in opl3_start_note()
557 opl3_command(map->ioaddr, ATTACK_DECAY + map->op[0], instr->operators[4]); in opl3_start_note()
558 opl3_command(map->ioaddr, ATTACK_DECAY + map->op[1], instr->operators[5]); in opl3_start_note()
564 opl3_command(map->ioaddr, SUSTAIN_RELEASE + map->op[0], instr->operators[6]); in opl3_start_note()
565 opl3_command(map->ioaddr, SUSTAIN_RELEASE + map->op[1], instr->operators[7]); in opl3_start_note()
571 opl3_command(map->ioaddr, WAVE_SELECT + map->op[0], instr->operators[8]); in opl3_start_note()
572 opl3_command(map->ioaddr, WAVE_SELECT + map->op[1], instr->operators[9]); in opl3_start_note()
578 fpc = instr->operators[10]; in opl3_start_note()
608 opl3_command(map->ioaddr, AM_VIB + map->op[2], instr->operators[OFFS_4OP + 0]); in opl3_start_note()
609 opl3_command(map->ioaddr, AM_VIB + map->op[3], instr->operators[OFFS_4OP + 1]); in opl3_start_note()
615 opl3_command(map->ioaddr, ATTACK_DECAY + map->op[2], instr->operators[OFFS_4OP + 4]); in opl3_start_note()
616 opl3_command(map->ioaddr, ATTACK_DECAY + map->op[3], instr->operators[OFFS_4OP + 5]); in opl3_start_note()
622 opl3_command(map->ioaddr, SUSTAIN_RELEASE + map->op[2], instr->operators[OFFS_4OP + 6]); in opl3_start_note()
623 opl3_command(map->ioaddr, SUSTAIN_RELEASE + map->op[3], instr->operators[OFFS_4OP + 7]); in opl3_start_note()
629 opl3_command(map->ioaddr, WAVE_SELECT + map->op[2], instr->operators[OFFS_4OP + 8]); in opl3_start_note()
630 opl3_command(map->ioaddr, WAVE_SELECT + map->op[3], instr->operators[OFFS_4OP + 9]); in opl3_start_note()
636 fpc = instr->operators[OFFS_4OP + 10]; in opl3_start_note()
859 tmp = instr->operators[(cell-1)+(((cell-1)/2)*OFFS_4OP)]; \
867 struct sbi_instrument *instr; in opl3_aftertouch() local
882 instr = devc->act_i[voice]; in opl3_aftertouch()
884 if (!instr) in opl3_aftertouch()
885 instr = &devc->i_map[0]; in opl3_aftertouch()
889 int connection = ((instr->operators[10] & 0x01) << 1) | (instr->operators[10 + OFFS_4OP] & 0x01); in opl3_aftertouch()
922 if ((instr->operators[10] & 0x01)) /* in opl3_aftertouch()
1001 struct sbi_instrument *instr; in opl3_alloc_voice() local
1010 instr = &devc->i_map[instr_no]; in opl3_alloc_voice()
1011 if (instr->channel < 0 || /* Instrument not loaded */ in opl3_alloc_voice()
1015 is4op = (instr->key == OPL3_PATCH); in opl3_alloc_voice()