Emu10k1x driver
A message that is not in the archive (sent off-list or not yet received): [email protected]
At Fri, 14 May 2004 11:50:50 GMT,
Quoted 8 lines · [email protected] wrote:
Here's a revised version of the driver. I found a bug in the previous version, not sure why it was working, maybe because I had my printk's in it.
I've also revised the indentation and now supports the 3 PCM streams, even though I seem to only be able to hear the first two when the mixer is set correctly.
thanks, the code looks nicer.
i noticed that you set the irq mask IPR_CH_0_LOOP|IPR_CH_0_HALF_LOOP. does it mean that the chip generates interrupts twice per buffer? if yes, what we need is to limit the number of periods to 2.
the attached patch includes some fixes by me for the latest cvs, and changes the periods to 2. i'll apply it to cvs now.
Takashi
Index: alsa-driver/pci/Kconfig
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-driver/pci/Kconfig,v retrieving revision 1.16
pci/Kconfig +8 -0
@@ -18,4 +18,12 @@ Say 'Y' or 'M' to include support for RME Hammerfall DSP MADI soundcards. +config SND_EMU10K1X + tristate "EMU10K1X (Dell OEM Version)" + depends on SND + select SND_AC97_CODEC + help + Say 'Y' or 'M' to include support for Sound Blaster Live Dell + OEM version. + endmenu
Index: alsa-driver/pci/emu10k1/Makefile
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-driver/pci/emu10k1/Makefile,v retrieving revision 1.5
pci/emu10k1/Makefile +4 -0
@@ -5,6 +5,10 @@ include $(SND_TOPDIR)/toplevel.config include $(SND_TOPDIR)/Makefile.conf +snd-emu10k1x-objs := emu10k1x.o + +obj-$(CONFIG_SND_EMU10K1X) += snd-emu10k1x.o + export-objs := emu10k1_main.o include $(SND_TOPDIR)/alsa-kernel/pci/emu10k1/Makefile
Index: alsa-driver/pci/emu10k1/emu10k1x.c
===================================================================
RCS file: alsa-driver/pci/emu10k1/emu10k1x.c
pci/emu10k1/emu10k1x.c new file +867 -0
867 lines not on this page · raw message
Quoted 6 lines · Takashi Iwai
i noticed that you set the irq mask IPR_CH_0_LOOP|IPR_CH_0_HALF_LOOP. does it mean that the chip generates interrupts twice per buffer? if yes, what we need is to limit the number of periods to 2.
Well, you can enable the half buffer interrupt. I am not sure if that helps or improves anything but it is available.
Quoted 4 lines
the attached patch includes some fixes by me for the latest cvs, and changes the periods to 2. i'll apply it to cvs now.
I also noticed that I forgot to enable the interrupts for the other two voices.
Francisco
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click