]> err.no Git - linux-2.6/blobdiff - sound/pci/hda/hda_codec.c
[ALSA] hda-codec - Allow sub_device=0 in board config check
[linux-2.6] / sound / pci / hda / hda_codec.c
index 8805928167f5ee10c525f82b492b9e73e9279a1f..f62d1d5eb7fa425f5cd8a0487af2c43856aebfea 100644 (file)
@@ -1540,7 +1540,8 @@ int snd_hda_check_board_config(struct hda_codec *codec, struct hda_board_config
                pci_read_config_word(codec->bus->pci, PCI_SUBSYSTEM_ID, &subsystem_device);
                for (c = tbl; c->modelname || c->pci_subvendor; c++) {
                        if (c->pci_subvendor == subsystem_vendor &&
-                           c->pci_subdevice == subsystem_device)
+                           (! c->pci_subdevice /* all match */||
+                            (c->pci_subdevice == subsystem_device)))
                                return c->config;
                }
        }