diff options
Diffstat (limited to 'audio')
-rw-r--r-- | audio/aureal-kmod/files/patch-au88x0.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/audio/aureal-kmod/files/patch-au88x0.c b/audio/aureal-kmod/files/patch-au88x0.c index fed742dd039e..d158dfc7f797 100644 --- a/audio/aureal-kmod/files/patch-au88x0.c +++ b/audio/aureal-kmod/files/patch-au88x0.c @@ -2,7 +2,7 @@ $FreeBSD$ --- au88x0.c.orig Fri May 10 10:32:55 2002 -+++ au88x0.c Thu Aug 5 05:44:30 2004 ++++ au88x0.c Sun Aug 7 18:14:57 2005 @@ -29,10 +29,16 @@ */ @@ -30,6 +30,24 @@ $FreeBSD$ printf("sndbuf_alloc failed\n"); return NULL; } +@@ -768,7 +774,7 @@ + } + + if (s) device_set_desc(dev, s); +- return s ? 0 : ENXIO; ++ return s ? BUS_PROBE_DEFAULT : ENXIO; + } + + static int +@@ -802,7 +808,7 @@ + data = pci_read_config(dev, PCIR_COMMAND, 2); + + for (i = 0; i < 3; i++) { +- au->regid[i] = PCIR_MAPS + i*4; ++ au->regid[i] = PCIR_BAR(i); + au->regtype[i] = SYS_RES_MEMORY; + au->reg[i] = bus_alloc_resource(dev, au->regtype[i], &au->regid[i], 0, ~0, 1, RF_ACTIVE); + if (!au->reg[i]) { @@ -852,7 +858,11 @@ /*highaddr*/BUS_SPACE_MAXADDR, /*filter*/NULL, /*filterarg*/NULL, |