diff options
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 6b93f4511166..d4fd94805e7f 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
@@ -429,6 +429,10 @@ find_codec_preset(struct hda_codec *codec) | |||
429 | for (tbl = hda_preset_tables; *tbl; tbl++) { | 429 | for (tbl = hda_preset_tables; *tbl; tbl++) { |
430 | for (preset = *tbl; preset->id; preset++) { | 430 | for (preset = *tbl; preset->id; preset++) { |
431 | u32 mask = preset->mask; | 431 | u32 mask = preset->mask; |
432 | if (preset->afg && preset->afg != codec->afg) | ||
433 | continue; | ||
434 | if (preset->mfg && preset->mfg != codec->mfg) | ||
435 | continue; | ||
432 | if (!mask) | 436 | if (!mask) |
433 | mask = ~0; | 437 | mask = ~0; |
434 | if (preset->id == (codec->vendor_id & mask) && | 438 | if (preset->id == (codec->vendor_id & mask) && |