Skip to content

Commit

Permalink
ALSA: hda - Ensure codec patch files are checked for the correct code…
Browse files Browse the repository at this point in the history
…c ID

Signed-off-by: David Henningsson <diwic@ubuntu.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
David Henningsson authored and Takashi Iwai committed Jul 26, 2010
1 parent ab85457 commit 2385b78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sound/pci/hda/hda_hwdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2385b78

Please sign in to comment.