提交 2385b789 编写于 作者: D David Henningsson 提交者: Takashi Iwai

ALSA: hda - Ensure codec patch files are checked for the correct codec ID

Signed-off-by: NDavid Henningsson <diwic@ubuntu.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 ab85457f
......@@ -649,7 +649,9 @@ static void parse_codec_mode(char *buf, struct hda_bus *bus,
*codecp = NULL;
if (sscanf(buf, "%i %i %i", &vendorid, &subid, &caddr) == 3) {
list_for_each_entry(codec, &bus->codec_list, list) {
if (codec->addr == caddr) {
if (codec->vendor_id == vendorid &&
codec->subsystem_id == subid &&
codec->addr == caddr) {
*codecp = codec;
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册