[ALSA] Prevent ALSA trident driver from grabbing pcnet32 hardware
authorJon Mason <jdmason@us.ibm.com>
Fri, 13 Jan 2006 12:14:53 +0000 (13:14 +0100)
committerJaroslav Kysela <perex@suse.cz>
Sun, 22 Jan 2006 15:24:18 +0000 (16:24 +0100)
commite3183ec9cd98db7800d078768b1c9edc2fd0425f
tree7ccac5fc51c86978bc060ac18ddf5af1b6c77ac8
parent33159378254b67d0080a8d63197e95654b672cf7
[ALSA] Prevent ALSA trident driver from grabbing pcnet32 hardware

Modules: Trident driver

Some pcnet32 hardware erroneously has the Vendor ID for Trident.  The
pcnet32 driver looks for the PCI ethernet class before grabbing the
hardware, but the current trident driver does not check against the
PCI audio class.  This allows the trident driver to claim the pcnet32
hardware.  This patch prevents that.

Per Jiri Slaby's request, I changed the trident driver to use
PCI_DEVICE macro and PCI ID #defines.

This patch is untested on Trident 4DWAVE_DX hardware, but has been
tested on pcnet32 hardware.

Signed-off-by: Jon Mason <jdmason@us.ibm.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/trident/trident.c