summaryrefslogtreecommitdiff
path: root/sound/pci/hda/hda_codec.c
diff options
context:
space:
mode:
authorMarc Boucher <marc@linuxant.com>2008-01-22 14:32:25 (GMT)
committerJaroslav Kysela <perex@perex.cz>2008-01-31 16:30:10 (GMT)
commitca7cfae9eb91c012ac448dc6816ded6285f6f39a (patch)
tree8842e362220e07738d574044c00f8de74eb312bc /sound/pci/hda/hda_codec.c
parent1cfd52bc1ad516dbdc23839d40013dea4c19c70a (diff)
downloadlinux-fsl-qoriq-ca7cfae9eb91c012ac448dc6816ded6285f6f39a.tar.xz
[ALSA] hda-codec - Add afg and mfg preset mask
Added afg and mfg preset masks for more finer codec-preset selection. Signed-off-by: Marc Boucher <marc@linuxant.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r--sound/pci/hda/hda_codec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 6b93f45..d4fd948 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)
for (tbl = hda_preset_tables; *tbl; tbl++) {
for (preset = *tbl; preset->id; preset++) {
u32 mask = preset->mask;
+ if (preset->afg && preset->afg != codec->afg)
+ continue;
+ if (preset->mfg && preset->mfg != codec->mfg)
+ continue;
if (!mask)
mask = ~0;
if (preset->id == (codec->vendor_id & mask) &&