ALSA: hda - Avoid conflicts with snd-ctxfi driver
The PCI entries of Creative with HD-audio class can be the devices with emu20k1/emu20k2 chips. These are supported better by snd-ctxfi driver. With that driver, the device will mutate from HD-audio to its native class. This patch adds a simple ifdef to avoid the conflict of device probe between snd-hda-intel and snd-ctxfi drivers. 1102:0009 seems still OK to be added as it has no emu20kx chip, and is a pure HD-audio device. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
6c627f3978
commit
313f6e2d40
|
@ -2517,10 +2517,19 @@ static struct pci_device_id azx_ids[] = {
|
||||||
/* Teradici */
|
/* Teradici */
|
||||||
{ PCI_DEVICE(0x6549, 0x1200), .driver_data = AZX_DRIVER_TERA },
|
{ PCI_DEVICE(0x6549, 0x1200), .driver_data = AZX_DRIVER_TERA },
|
||||||
/* Creative X-Fi (CA0110-IBG) */
|
/* Creative X-Fi (CA0110-IBG) */
|
||||||
|
#if !defined(CONFIG_SND_CTXFI) && !defined(CONFIG_SND_CTXFI_MODULE)
|
||||||
|
/* the following entry conflicts with snd-ctxfi driver,
|
||||||
|
* as ctxfi driver mutates from HD-audio to native mode with
|
||||||
|
* a special command sequence.
|
||||||
|
*/
|
||||||
{ PCI_DEVICE(PCI_VENDOR_ID_CREATIVE, PCI_ANY_ID),
|
{ PCI_DEVICE(PCI_VENDOR_ID_CREATIVE, PCI_ANY_ID),
|
||||||
.class = PCI_CLASS_MULTIMEDIA_HD_AUDIO << 8,
|
.class = PCI_CLASS_MULTIMEDIA_HD_AUDIO << 8,
|
||||||
.class_mask = 0xffffff,
|
.class_mask = 0xffffff,
|
||||||
.driver_data = AZX_DRIVER_GENERIC },
|
.driver_data = AZX_DRIVER_GENERIC },
|
||||||
|
#else
|
||||||
|
/* this entry seems still valid -- i.e. without emu20kx chip */
|
||||||
|
{ PCI_DEVICE(0x1102, 0x0009), .driver_data = AZX_DRIVER_GENERIC },
|
||||||
|
#endif
|
||||||
/* AMD Generic, PCI class code and Vendor ID for HD Audio */
|
/* AMD Generic, PCI class code and Vendor ID for HD Audio */
|
||||||
{ PCI_DEVICE(PCI_VENDOR_ID_ATI, PCI_ANY_ID),
|
{ PCI_DEVICE(PCI_VENDOR_ID_ATI, PCI_ANY_ID),
|
||||||
.class = PCI_CLASS_MULTIMEDIA_HD_AUDIO << 8,
|
.class = PCI_CLASS_MULTIMEDIA_HD_AUDIO << 8,
|
||||||
|
|
Loading…
Reference in New Issue