Skip to content

Commit

Permalink
[ALSA] hda-codec - Allow sub_device=0 in board config check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Jun 22, 2005
1 parent 05acb86 commit 5ecd702
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 5ecd702

Please sign in to comment.