Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2001 22:10:44 -0700 (PDT)
From:      gollum <gollum@hobbit.ccrypt.net>
To:        <freebsd-mobile@freebsd.org>
Subject:   Fix for csa driver under 4.x
Message-ID:  <Pine.BSO.4.32.0104242146520.24249-100000@hobbit.ccrypt.net>

next in thread | raw e-mail | index | archive | help
The follow fix solved the sound issue on my T21 (CS461x) laptop running
4.3 FreeBSD. The issue was two function parameters that were backwards
in the pci_write_config call in the csa_attach function. This fix sould
solve the sound issue for the csa driver under 4.2 also, however, I have
yet to test it. NOTE: This fix has been added to the HEAD CVS tree, but
has yet to be added to RELENG_4.

The following diff shows the fix for the csa.c file under
/usr/src/sys/dev/sound/pci:

*** csa.c       Tue Apr 24 21:51:45 2001
--- csa.c.broken        Tue Apr 24 20:47:38 2001
***************
*** 131,137 ****
        stcmd = pci_read_config(dev, PCIR_COMMAND, 4);
        if ((stcmd & PCIM_CMD_MEMEN) == 0 || (stcmd & PCIM_CMD_BUSMASTEREN) == 0) {
                stcmd |= (PCIM_CMD_MEMEN | PCIM_CMD_BUSMASTEREN);
!               pci_write_config(dev, PCIR_COMMAND, stcmd, 4);
        }

        /* Allocate the resources. */
--- 131,137 ----
        stcmd = pci_read_config(dev, PCIR_COMMAND, 4);
        if ((stcmd & PCIM_CMD_MEMEN) == 0 || (stcmd & PCIM_CMD_BUSMASTEREN) == 0) {
                stcmd |= (PCIM_CMD_MEMEN | PCIM_CMD_BUSMASTEREN);
!               pci_write_config(dev, PCIR_COMMAND, 4, stcmd);
        }

        /* Allocate the resources. */



<gollum>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSO.4.32.0104242146520.24249-100000>