Module Name: src
Committed By: jmcneill
Date: Fri Dec 2 11:58:44 UTC 2011
Modified Files:
src/sys/dev/pci: auixp.c
Log Message:
audio cookie is a struct auixp_codec, not auixp_softc
To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/pci/auixp.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/auixp.c
diff -u src/sys/dev/pci/auixp.c:1.36 src/sys/dev/pci/auixp.c:1.37
--- src/sys/dev/pci/auixp.c:1.36 Thu Nov 24 03:35:58 2011
+++ src/sys/dev/pci/auixp.c Fri Dec 2 11:58:44 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: auixp.c,v 1.36 2011/11/24 03:35:58 mrg Exp $ */
+/* $NetBSD: auixp.c,v 1.37 2011/12/02 11:58:44 jmcneill Exp $ */
/*
* Copyright (c) 2004, 2005 Reinoud Zandijk <[email protected]>
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auixp.c,v 1.36 2011/11/24 03:35:58 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auixp.c,v 1.37 2011/12/02 11:58:44 jmcneill Exp $");
#include <sys/types.h>
#include <sys/errno.h>
@@ -1813,9 +1813,9 @@ auixp_dumpreg(void)
static void
auixp_get_locks(void *addr, kmutex_t **intr, kmutex_t **proc)
{
- struct auixp_softc *sc;
+ struct auixp_codec *co = addr;
+ struct auixp_softc *sc = co->sc;
- sc = addr;
*intr = &sc->sc_intr_lock;
*proc = &sc->sc_lock;
}