提交 5ecd7022 编写于 作者: T Takashi Iwai 提交者: Jaroslav Kysela

[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: NTakashi Iwai <tiwai@suse.de>
上级 05acb863
...@@ -1540,7 +1540,8 @@ int snd_hda_check_board_config(struct hda_codec *codec, struct hda_board_config ...@@ -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); pci_read_config_word(codec->bus->pci, PCI_SUBSYSTEM_ID, &subsystem_device);
for (c = tbl; c->modelname || c->pci_subvendor; c++) { for (c = tbl; c->modelname || c->pci_subvendor; c++) {
if (c->pci_subvendor == subsystem_vendor && if (c->pci_subvendor == subsystem_vendor &&
c->pci_subdevice == subsystem_device) (! c->pci_subdevice /* all match */||
(c->pci_subdevice == subsystem_device)))
return c->config; return c->config;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册