]> git.hungrycats.org Git - linux/commitdiff
ALSA: hda/hdmi - apply Haswell fix-ups to Skylake display codec
authorLibin Yang <libin.yang@intel.com>
Tue, 16 Dec 2014 05:17:34 +0000 (13:17 +0800)
committerSasha Levin <sasha.levin@oracle.com>
Thu, 27 Aug 2015 17:26:04 +0000 (13:26 -0400)
[ Upstream commit 432ac1a2c028acb289d90f918e3a7b79e4ac8c07 ]

Skylake and Haswell have the same behavior on display audio. So this patch
applys Haswell fix-ups to Skylake.

Signed-off-by: Libin Yang <libin.yang@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
sound/pci/hda/patch_hdmi.c

index 512f9fc2f693e5019241f04896036b459b2d1b2f..b422e406a9cb3ba284772d4fbd6d42854de40b95 100644 (file)
@@ -47,7 +47,9 @@ MODULE_PARM_DESC(static_hdmi_pcm, "Don't restrict PCM parameters per ELD info");
 
 #define is_haswell(codec)  ((codec)->vendor_id == 0x80862807)
 #define is_broadwell(codec)    ((codec)->vendor_id == 0x80862808)
-#define is_haswell_plus(codec) (is_haswell(codec) || is_broadwell(codec))
+#define is_skylake(codec) ((codec)->vendor_id == 0x80862809)
+#define is_haswell_plus(codec) (is_haswell(codec) || is_broadwell(codec) \
+                                       || is_skylake(codec))
 
 #define is_valleyview(codec) ((codec)->vendor_id == 0x80862882)
 #define is_cherryview(codec) ((codec)->vendor_id == 0x80862883)