On Sun, 3 Mar 2002, Achim Linder wrote:

> Hi,
> 
> as already mentioned, there is a correlation between bit 11 (SMOD
> LSB) of the Extended Legacy Audio Control register (0x42-0x43) of
> the YMF chips and the "floppy access crashes with alsa ymfpci driver"
> phenomenon, i.e. I can avoid these crashes if I add this line to the
> alsa source
> 
> legacy_ctrl2 |= 1 << 11;
> 
> (or if dma8=1). The kernel ymfpci driver uses  v = 0x8800;
> to initialize this register - and is well behaved. If I change this
> to  v = 0x8000;  and load the module with parameters, the machine
> locks up if I try to access the floppy drive.
> 
> The number 0x8800 seems to come from the old ymf_sb driver.
> Unfortunately it doesn't mention the origin of this value
> (Yamaha sample code?), but wouldn't it be a good idea to patch
> the alsa driver, e.g. to adopt the behaviour of the kernel ymfpci,
> or to add a snd_sbdma8 parameter, so people can try to use the
> chipset default (dma8=1) instead of the alsa default?

Do this patch fix your problem?

Index: ymfpci.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ymfpci/ymfpci.c,v
retrieving revision 1.11
diff -u -r1.11 ymfpci.c
--- ymfpci.c    25 Feb 2002 11:50:13 -0000      1.11
+++ ymfpci.c    3 Mar 2002 19:56:00 -0000
@@ -109,7 +109,7 @@
        }

        legacy_ctrl = 0;
-       legacy_ctrl2 = 0;
+       legacy_ctrl2 = 0x0800;  /* SMOD = 01 */

        if (id->device >= 0x0010) { /* YMF 744/754 */
                if (snd_fm_port[dev] < 0)


                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project  http://www.alsa-project.org
SuSE Linux    http://www.suse.com


_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to