Lines Matching refs:gf1
132 vol = !voice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right; in snd_gf1_pcm_trigger_up()
145 if (!gus->gf1.enh_mode) { in snd_gf1_pcm_trigger_up()
154 if (gus->gf1.enh_mode) in snd_gf1_pcm_trigger_up()
160 if (!gus->gf1.enh_mode) { in snd_gf1_pcm_trigger_up()
229 if (!gus->gf1.enh_mode) { in snd_gf1_pcm_interrupt_wave()
277 vol = !cvoice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right; in snd_gf1_pcm_interrupt_volume()
430 snd_gf1_mem_free(&gus->gf1.mem_alloc, pcmp->memory); in snd_gf1_pcm_playback_hw_params()
433 block = snd_gf1_mem_alloc(&gus->gf1.mem_alloc, in snd_gf1_pcm_playback_hw_params()
483 snd_gf1_mem_free(&pcmp->gus->gf1.mem_alloc, pcmp->memory); in snd_gf1_pcm_playback_hw_free()
569 gus->gf1.pcm_rcntrl_reg = 0x21; /* IRQ at end, enable & start */ in snd_gf1_pcm_capture_hw_params()
571 gus->gf1.pcm_rcntrl_reg |= 2; in snd_gf1_pcm_capture_hw_params()
572 if (gus->gf1.dma2 > 3) in snd_gf1_pcm_capture_hw_params()
573 gus->gf1.pcm_rcntrl_reg |= 4; in snd_gf1_pcm_capture_hw_params()
575 gus->gf1.pcm_rcntrl_reg |= 0x80; in snd_gf1_pcm_capture_hw_params()
587 snd_dma_program(gus->gf1.dma2, runtime->dma_addr, gus->c_period_size, DMA_MODE_READ); in snd_gf1_pcm_capture_prepare()
598 val = gus->gf1.pcm_rcntrl_reg; in snd_gf1_pcm_capture_trigger()
615 int pos = snd_dma_pointer(gus->gf1.dma2, gus->c_period_size); in snd_gf1_pcm_capture_pointer()
693 (long) pcm->playback.buffer, (long) gus->gf1.pcm_buffer); in snd_gf1_pcm_playback_open()
701 snd_pcm_limit_isa_dma_size(gus->gf1.dma1, &runtime->hw.buffer_bytes_max); in snd_gf1_pcm_playback_open()
702 snd_pcm_limit_isa_dma_size(gus->gf1.dma1, &runtime->hw.period_bytes_max); in snd_gf1_pcm_playback_open()
725 gus->gf1.interrupt_handler_dma_read = snd_gf1_pcm_interrupt_dma_read; in snd_gf1_pcm_capture_open()
728 snd_pcm_limit_isa_dma_size(gus->gf1.dma2, &runtime->hw.buffer_bytes_max); in snd_gf1_pcm_capture_open()
729 snd_pcm_limit_isa_dma_size(gus->gf1.dma2, &runtime->hw.period_bytes_max); in snd_gf1_pcm_capture_open()
759 ucontrol->value.integer.value[0] = gus->gf1.pcm_volume_level_left1; in snd_gf1_pcm_volume_get()
760 ucontrol->value.integer.value[1] = gus->gf1.pcm_volume_level_right1; in snd_gf1_pcm_volume_get()
778 change = val1 != gus->gf1.pcm_volume_level_left1 || in snd_gf1_pcm_volume_put()
779 val2 != gus->gf1.pcm_volume_level_right1; in snd_gf1_pcm_volume_put()
780 gus->gf1.pcm_volume_level_left1 = val1; in snd_gf1_pcm_volume_put()
781 gus->gf1.pcm_volume_level_right1 = val2; in snd_gf1_pcm_volume_put()
782 gus->gf1.pcm_volume_level_left = snd_gf1_lvol_to_gvol_raw(val1 << 9) << 4; in snd_gf1_pcm_volume_put()
783 gus->gf1.pcm_volume_level_right = snd_gf1_lvol_to_gvol_raw(val2 << 9) << 4; in snd_gf1_pcm_volume_put()
788 pvoice = &gus->gf1.voices[idx]; in snd_gf1_pcm_volume_put()
798 …vol = pvoice == pcmp->pvoices[0] ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_righ… in snd_gf1_pcm_volume_put()
860 gus->gf1.pcm_channels / 2, in snd_gf1_pcm_new()
872 64*1024, gus->gf1.dma1 > 3 ? 128*1024 : 64*1024); in snd_gf1_pcm_new()
878 if (gus->gf1.dma2 == gus->gf1.dma1) in snd_gf1_pcm_new()
882 64*1024, gus->gf1.dma2 > 3 ? 128*1024 : 64*1024); in snd_gf1_pcm_new()