Lines Matching refs:gf1

132 		vol = !voice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right;
145 if (!gus->gf1.enh_mode) {
154 if (gus->gf1.enh_mode)
160 if (!gus->gf1.enh_mode) {
229 if (!gus->gf1.enh_mode) {
277 vol = !cvoice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right;
299 (int)buf, pos, count, gus->gf1.port);
430 snd_gf1_mem_free(&gus->gf1.mem_alloc, pcmp->memory);
433 if ((block = snd_gf1_mem_alloc(&gus->gf1.mem_alloc,
480 snd_gf1_mem_free(&pcmp->gus->gf1.mem_alloc, pcmp->memory);
566 gus->gf1.pcm_rcntrl_reg = 0x21; /* IRQ at end, enable & start */
568 gus->gf1.pcm_rcntrl_reg |= 2;
569 if (gus->gf1.dma2 > 3)
570 gus->gf1.pcm_rcntrl_reg |= 4;
572 gus->gf1.pcm_rcntrl_reg |= 0x80;
584 snd_dma_program(gus->gf1.dma2, runtime->dma_addr, gus->c_period_size, DMA_MODE_READ);
595 val = gus->gf1.pcm_rcntrl_reg;
612 int pos = snd_dma_pointer(gus->gf1.dma2, gus->c_period_size);
689 printk(KERN_DEBUG "playback.buffer = 0x%lx, gf1.pcm_buffer = 0x%lx\n",
690 (long) pcm->playback.buffer, (long) gus->gf1.pcm_buffer);
697 snd_pcm_limit_isa_dma_size(gus->gf1.dma1, &runtime->hw.buffer_bytes_max);
698 snd_pcm_limit_isa_dma_size(gus->gf1.dma1, &runtime->hw.period_bytes_max);
710 snd_printk(KERN_ERR "gf1 pcm - serious DMA problem\n");
721 gus->gf1.interrupt_handler_dma_read = snd_gf1_pcm_interrupt_dma_read;
724 snd_pcm_limit_isa_dma_size(gus->gf1.dma2, &runtime->hw.buffer_bytes_max);
725 snd_pcm_limit_isa_dma_size(gus->gf1.dma2, &runtime->hw.period_bytes_max);
755 ucontrol->value.integer.value[0] = gus->gf1.pcm_volume_level_left1;
756 ucontrol->value.integer.value[1] = gus->gf1.pcm_volume_level_right1;
774 change = val1 != gus->gf1.pcm_volume_level_left1 ||
775 val2 != gus->gf1.pcm_volume_level_right1;
776 gus->gf1.pcm_volume_level_left1 = val1;
777 gus->gf1.pcm_volume_level_right1 = val2;
778 gus->gf1.pcm_volume_level_left = snd_gf1_lvol_to_gvol_raw(val1 << 9) << 4;
779 gus->gf1.pcm_volume_level_right = snd_gf1_lvol_to_gvol_raw(val2 << 9) << 4;
784 pvoice = &gus->gf1.voices[idx];
794 vol = pvoice == pcmp->pvoices[0] ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right;
856 gus->gf1.pcm_channels / 2,
868 64*1024, gus->gf1.dma1 > 3 ? 128*1024 : 64*1024);
874 if (gus->gf1.dma2 == gus->gf1.dma1)
878 64*1024, gus->gf1.dma2 > 3 ? 128*1024 : 64*1024);