diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-06-10 13:54:23 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-06-22 06:28:47 -0400 |
commit | 5ecd7022f52872db32eddf85a527064ed7b522a3 (patch) | |
tree | 676272c03d675c201c0787390ec66790f09625a3 | |
parent | 05acb863a27e7f82d81c422b977415fa80b99f96 (diff) |
[ALSA] hda-codec - Allow sub_device=0 in board config check
HDA Codec driver
Allow sub_device=0 in board config check. This means that every device
with the given sub vendor ID will match.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/hda_codec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 8805928167f5..f62d1d5eb7fa 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
@@ -1540,7 +1540,8 @@ int snd_hda_check_board_config(struct hda_codec *codec, struct hda_board_config | |||
1540 | pci_read_config_word(codec->bus->pci, PCI_SUBSYSTEM_ID, &subsystem_device); | 1540 | pci_read_config_word(codec->bus->pci, PCI_SUBSYSTEM_ID, &subsystem_device); |
1541 | for (c = tbl; c->modelname || c->pci_subvendor; c++) { | 1541 | for (c = tbl; c->modelname || c->pci_subvendor; c++) { |
1542 | if (c->pci_subvendor == subsystem_vendor && | 1542 | if (c->pci_subvendor == subsystem_vendor && |
1543 | c->pci_subdevice == subsystem_device) | 1543 | (! c->pci_subdevice /* all match */|| |
1544 | (c->pci_subdevice == subsystem_device))) | ||
1544 | return c->config; | 1545 | return c->config; |
1545 | } | 1546 | } |
1546 | } | 1547 | } |