]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - sound/pci/hda/hda_codec.c
[ALSA] Fix/add support of Realtek ALC883 / ALC888 and ALC861 codecs
[mirror_ubuntu-bionic-kernel.git] / sound / pci / hda / hda_codec.c
index 8c2a8174ece182a24f8a0ee2ae6535cb98b73a67..23201f3eeb1293ccc958a81e30e85ad81fc49d19 100644 (file)
@@ -408,7 +408,9 @@ static const struct hda_codec_preset *find_codec_preset(struct hda_codec *codec)
                        u32 mask = preset->mask;
                        if (! mask)
                                mask = ~0;
-                       if (preset->id == (codec->vendor_id & mask))
+                       if (preset->id == (codec->vendor_id & mask) &&
+                           (! preset->rev ||
+                            preset->rev == codec->revision_id))
                                return preset;
                }
        }