mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
[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>
This commit is contained in:
parent
05acb863a2
commit
5ecd7022f5
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue