Lines Matching refs:voice_offset
351 unsigned char voice_offset; in snd_opl3_reset() local
363 voice_offset = i; in snd_opl3_reset()
367 voice_offset = i - MAX_OPL2_VOICES; in snd_opl3_reset()
369 opl3_reg = reg_side | (OPL3_REG_KSL_LEVEL + snd_opl3_regmap[voice_offset][0]); in snd_opl3_reset()
371 opl3_reg = reg_side | (OPL3_REG_KSL_LEVEL + snd_opl3_regmap[voice_offset][1]); in snd_opl3_reset()
374 opl3_reg = reg_side | (OPL3_REG_KEYON_BLOCK + voice_offset); in snd_opl3_reset()
391 unsigned char voice_offset; in snd_opl3_play_note() local
406 voice_offset = note->voice; in snd_opl3_play_note()
410 voice_offset = note->voice - MAX_OPL2_VOICES; in snd_opl3_play_note()
415 opl3_reg = reg_side | (OPL3_REG_FNUM_LOW + voice_offset); in snd_opl3_play_note()
428 opl3_reg = reg_side | (OPL3_REG_KEYON_BLOCK + voice_offset); in snd_opl3_play_note()
439 unsigned char voice_offset, voice_op; in snd_opl3_set_voice() local
457 voice_offset = voice->voice; in snd_opl3_set_voice()
461 voice_offset = voice->voice - MAX_OPL2_VOICES; in snd_opl3_set_voice()
464 voice_offset = array_index_nospec(voice_offset, MAX_OPL2_VOICES); in snd_opl3_set_voice()
466 op_offset = snd_opl3_regmap[voice_offset][voice_op]; in snd_opl3_set_voice()
528 opl3_reg = reg_side | (OPL3_REG_FEEDBACK_CONNECTION + voice_offset); in snd_opl3_set_voice()