From owner-freebsd-mobile Tue Apr 24 22: 8:33 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from hobbit.ccrypt.net (tycho-165-227-57-20.tychonet.com [165.227.57.20]) by hub.freebsd.org (Postfix) with ESMTP id 49D8137B424 for ; Tue, 24 Apr 2001 22:08:31 -0700 (PDT) (envelope-from gollum@hobbit.ccrypt.net) Received: from localhost (gollum@localhost) by hobbit.ccrypt.net (8.10.1/8.10.1) with ESMTP id f3P5AiK31572 for ; Tue, 24 Apr 2001 22:10:44 -0700 (PDT) Date: Tue, 24 Apr 2001 22:10:44 -0700 (PDT) From: gollum To: Subject: Fix for csa driver under 4.x Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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. */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message