Lines Matching refs:voice_ctrl
52 unsigned char voice_ctrl, ramp_ctrl; member
109 unsigned char voice_ctrl, ramp_ctrl; in snd_gf1_pcm_trigger_up() local
126 voice_ctrl = snd_pcm_format_width(runtime->format) == 16 ? 0x24 : 0x20; in snd_gf1_pcm_trigger_up()
130 voice_ctrl |= 0x08; /* loop enable */ in snd_gf1_pcm_trigger_up()
145 snd_gf1_write_addr(gus, SNDRV_GF1_VA_START, begin << 4, voice_ctrl & 4); in snd_gf1_pcm_trigger_up()
146 snd_gf1_write_addr(gus, SNDRV_GF1_VA_END, end << 4, voice_ctrl & 4); in snd_gf1_pcm_trigger_up()
147 snd_gf1_write_addr(gus, SNDRV_GF1_VA_CURRENT, curr << 4, voice_ctrl & 4); in snd_gf1_pcm_trigger_up()
164 snd_gf1_write8(gus, SNDRV_GF1_VB_ADDRESS_CONTROL, voice_ctrl); in snd_gf1_pcm_trigger_up()
165 voice_ctrl &= ~0x20; in snd_gf1_pcm_trigger_up()
167 voice_ctrl |= 0x20; in snd_gf1_pcm_trigger_up()
172 snd_gf1_write8(gus, SNDRV_GF1_VB_ADDRESS_CONTROL, voice_ctrl); in snd_gf1_pcm_trigger_up()
173 voice_ctrl &= ~0x20; /* disable IRQ for next voice */ in snd_gf1_pcm_trigger_up()
184 unsigned char voice_ctrl, ramp_ctrl; in snd_gf1_pcm_interrupt_wave() local
204 voice_ctrl = snd_gf1_read8(gus, SNDRV_GF1_VB_ADDRESS_CONTROL) & ~0x8b; in snd_gf1_pcm_interrupt_wave()
208 printk("position = 0x%x\n", (snd_gf1_read_addr(gus, SNDRV_GF1_VA_CURRENT, voice_ctrl & 4) >> 4)); in snd_gf1_pcm_interrupt_wave()
210 printk("position = 0x%x\n", (snd_gf1_read_addr(gus, SNDRV_GF1_VA_CURRENT, voice_ctrl & 4) >> 4)); in snd_gf1_pcm_interrupt_wave()
216 voice_ctrl |= 0x08; /* enable loop */ in snd_gf1_pcm_interrupt_wave()
221 end -= voice_ctrl & 4 ? 2 : 1; in snd_gf1_pcm_interrupt_wave()
223 voice_ctrl |= 0x20; in snd_gf1_pcm_interrupt_wave()
230 snd_gf1_write_addr(gus, SNDRV_GF1_VA_END, end << 4, voice_ctrl & 4); in snd_gf1_pcm_interrupt_wave()
231 snd_gf1_write8(gus, SNDRV_GF1_VB_ADDRESS_CONTROL, voice_ctrl); in snd_gf1_pcm_interrupt_wave()
233 voice_ctrl &= ~0x20; in snd_gf1_pcm_interrupt_wave()
237 voice_ctrl |= 0x20; in snd_gf1_pcm_interrupt_wave()
240 snd_gf1_write8(gus, SNDRV_GF1_VB_ADDRESS_CONTROL, voice_ctrl); in snd_gf1_pcm_interrupt_wave()
242 voice_ctrl &= ~0x20; in snd_gf1_pcm_interrupt_wave()
519 unsigned char voice_ctrl; in snd_gf1_pcm_playback_pointer() local
525 voice_ctrl = snd_gf1_read8(gus, SNDRV_GF1_VB_ADDRESS_CONTROL); in snd_gf1_pcm_playback_pointer()
526 pos = (snd_gf1_read_addr(gus, SNDRV_GF1_VA_CURRENT, voice_ctrl & 4) >> 4) - pcmp->memory; in snd_gf1_pcm_playback_pointer()