aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_bind.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-05-28 14:46:55 +0200
committerTakashi Iwai <tiwai@suse.de>2015-05-28 14:46:55 +0200
commit18fe73ef7c96e98668f84c02ebb9ac626f062b67 (patch)
treea76770994679fb39fe2b470572c377eabc0fec04 /sound/pci/hda/hda_bind.c
parentALSA: replace CONFIG_PROC_FS with CONFIG_SND_PROC_FS (diff)
downloadlinux-dev-18fe73ef7c96e98668f84c02ebb9ac626f062b67.tar.xz
linux-dev-18fe73ef7c96e98668f84c02ebb9ac626f062b67.zip
ALSA: hda - Drop unused fields from struct hda_codec_preset
It's very unlikely that we'd need these fields out of sudden. Let's drop them. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_bind.c')
-rw-r--r--sound/pci/hda/hda_bind.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sound/pci/hda/hda_bind.c b/sound/pci/hda/hda_bind.c
index 00aa31c5f08e..d5ac25cc7fee 100644
--- a/sound/pci/hda/hda_bind.c
+++ b/sound/pci/hda/hda_bind.c
@@ -27,15 +27,7 @@ static int hda_codec_match(struct hdac_device *dev, struct hdac_driver *drv)
u32 id = codec->probe_id ? codec->probe_id : codec->core.vendor_id;
for (preset = driver->preset; preset->id; preset++) {
- u32 mask = preset->mask;
-
- if (preset->afg && preset->afg != codec->core.afg)
- continue;
- if (preset->mfg && preset->mfg != codec->core.mfg)
- continue;
- if (!mask)
- mask = ~0;
- if (preset->id == (id & mask) &&
+ if (preset->id == id &&
(!preset->rev || preset->rev == codec->core.revision_id)) {
codec->preset = preset;
return 1;