Lines Matching refs:voice_offset
353 unsigned char voice_offset; in snd_opl3_reset() local
365 voice_offset = i; in snd_opl3_reset()
369 voice_offset = i - MAX_OPL2_VOICES; in snd_opl3_reset()
371 opl3_reg = reg_side | (OPL3_REG_KSL_LEVEL + snd_opl3_regmap[voice_offset][0]); in snd_opl3_reset()
373 opl3_reg = reg_side | (OPL3_REG_KSL_LEVEL + snd_opl3_regmap[voice_offset][1]); in snd_opl3_reset()
376 opl3_reg = reg_side | (OPL3_REG_KEYON_BLOCK + voice_offset); in snd_opl3_reset()
393 unsigned char voice_offset; in snd_opl3_play_note() local
408 voice_offset = note->voice; in snd_opl3_play_note()
412 voice_offset = note->voice - MAX_OPL2_VOICES; in snd_opl3_play_note()
417 opl3_reg = reg_side | (OPL3_REG_FNUM_LOW + voice_offset); in snd_opl3_play_note()
430 opl3_reg = reg_side | (OPL3_REG_KEYON_BLOCK + voice_offset); in snd_opl3_play_note()
441 unsigned char voice_offset, voice_op; in snd_opl3_set_voice() local
459 voice_offset = voice->voice; in snd_opl3_set_voice()
463 voice_offset = voice->voice - MAX_OPL2_VOICES; in snd_opl3_set_voice()
466 voice_offset = array_index_nospec(voice_offset, MAX_OPL2_VOICES); in snd_opl3_set_voice()
468 op_offset = snd_opl3_regmap[voice_offset][voice_op]; in snd_opl3_set_voice()
530 opl3_reg = reg_side | (OPL3_REG_FEEDBACK_CONNECTION + voice_offset); in snd_opl3_set_voice()