[2.6 patch] fix ALSA au88x0 compilation
From: Adrian Bunk (bunk_at_fs.tum.de)
Date: 03/31/04
- Previous message: Roland Mas: ""kernel BUG at usb-ohci.h:464!" and 8139too -- 2.4.25"
- In reply to: Jaroslav Kysela: "[PATCH] ALSA update - 1.0.4rc2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Mar 2004 22:37:04 +0200 To: Jaroslav Kysela <perex@suse.cz>
On Wed, Mar 31, 2004 at 03:02:19PM +0200, Jaroslav Kysela wrote:
>...
> <perex@suse.cz> (04/03/30 1.1720)
> ALSA CVS update - Jaroslav Kysela <perex@suse.cz>
> au88x0 driver
> Cleanups - removed duplicate PCI IDs
>...
They weren't exactly duplicated, resulting in the following compile
error:
<-- snip -->
...
CC [M] sound/pci/au88x0/au8810.o
sound/pci/au88x0/au8810.c:4: `PCI_DEVICE_ID_AUREAL_ADVANTAGE' undeclared
here (not in a function)
sound/pci/au88x0/au8810.c:4: initializer element is not constant
sound/pci/au88x0/au8810.c:4: (near initialization for
`snd_vortex_ids[0].device')
In file included from sound/pci/au88x0/au8810.c:9:
sound/pci/au88x0/au88x0_core.c: In function `vortex_connect_default':
sound/pci/au88x0/au88x0_core.c:2059: `PCI_DEVICE_ID_AUREAL_VORTEX'
undeclared (first use in this function)
sound/pci/au88x0/au88x0_core.c:2059: (Each undeclared identifier is
reported only once
sound/pci/au88x0/au88x0_core.c:2059: for each function it appears in.)
sound/pci/au88x0/au88x0_core.c:2059: `PCI_DEVICE_ID_AUREAL_VORTEX2'
undeclared (first use in this function)
sound/pci/au88x0/au88x0_core.c:2059: `PCI_DEVICE_ID_AUREAL_ADVANTAGE'
undeclared (first use in this function)
make[3]: *** [sound/pci/au88x0/au8810.o] Error 1
<-- snip -->
The following patch fixes this problem:
--- linux-2.6.5-rc3-modular/include/linux/pci_ids.h.old 2004-03-31 22:00:54.000000000 +0200
+++ linux-2.6.5-rc3-modular/include/linux/pci_ids.h 2004-03-31 22:01:26.000000000 +0200
@@ -1634,8 +1634,9 @@
#define PCI_SUBDEVICE_ID_CHASE_PCIRAS8 0xF010
#define PCI_VENDOR_ID_AUREAL 0x12eb
-#define PCI_DEVICE_ID_AUREAL_VORTEX_1 0x0001
-#define PCI_DEVICE_ID_AUREAL_VORTEX_2 0x0002
+#define PCI_DEVICE_ID_AUREAL_VORTEX 0x0001
+#define PCI_DEVICE_ID_AUREAL_VORTEX2 0x0002
+#define PCI_DEVICE_ID_AUREAL_ADVANTAGE 0x0003
#define PCI_VENDOR_ID_ELECTRONICDESIGNGMBH 0x12f8
#define PCI_DEVICE_ID_LML_33R10 0x8a02
Please apply
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Roland Mas: ""kernel BUG at usb-ohci.h:464!" and 8139too -- 2.4.25"
- In reply to: Jaroslav Kysela: "[PATCH] ALSA update - 1.0.4rc2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]