]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.4.14/alsa-hda-add-pci-id-for-kabylake.patch
drop queue-4.14/mips-make-sure-dt-memory-regions-are-valid.patch
[thirdparty/kernel/stable-queue.git] / releases / 4.4.14 / alsa-hda-add-pci-id-for-kabylake.patch
1 From 35639a0e98391036a4c7f23253c321d6621a8897 Mon Sep 17 00:00:00 2001
2 From: Vinod Koul <vinod.koul@intel.com>
3 Date: Thu, 9 Jun 2016 11:32:14 +0530
4 Subject: ALSA: hda - Add PCI ID for Kabylake
5
6 From: Vinod Koul <vinod.koul@intel.com>
7
8 commit 35639a0e98391036a4c7f23253c321d6621a8897 upstream.
9
10 Kabylake shows up as PCI ID 0xa171. And Kabylake-LP as 0x9d71.
11 Since these are similar to Skylake add these to SKL_PLUS macro
12
13 Signed-off-by: Vinod Koul <vinod.koul@intel.com>
14 Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16
17 ---
18 sound/pci/hda/hda_intel.c | 11 ++++++++++-
19 1 file changed, 10 insertions(+), 1 deletion(-)
20
21 --- a/sound/pci/hda/hda_intel.c
22 +++ b/sound/pci/hda/hda_intel.c
23 @@ -359,8 +359,11 @@ enum {
24
25 #define IS_SKL(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0xa170)
26 #define IS_SKL_LP(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x9d70)
27 +#define IS_KBL(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0xa171)
28 +#define IS_KBL_LP(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x9d71)
29 #define IS_BXT(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x5a98)
30 -#define IS_SKL_PLUS(pci) (IS_SKL(pci) || IS_SKL_LP(pci) || IS_BXT(pci))
31 +#define IS_SKL_PLUS(pci) (IS_SKL(pci) || IS_SKL_LP(pci) || IS_BXT(pci)) || \
32 + IS_KBL(pci) || IS_KBL_LP(pci)
33
34 static char *driver_short_names[] = {
35 [AZX_DRIVER_ICH] = "HDA Intel",
36 @@ -2204,6 +2207,12 @@ static const struct pci_device_id azx_id
37 /* Sunrise Point-LP */
38 { PCI_DEVICE(0x8086, 0x9d70),
39 .driver_data = AZX_DRIVER_PCH | AZX_DCAPS_INTEL_SKYLAKE },
40 + /* Kabylake */
41 + { PCI_DEVICE(0x8086, 0xa171),
42 + .driver_data = AZX_DRIVER_PCH | AZX_DCAPS_INTEL_SKYLAKE },
43 + /* Kabylake-LP */
44 + { PCI_DEVICE(0x8086, 0x9d71),
45 + .driver_data = AZX_DRIVER_PCH | AZX_DCAPS_INTEL_SKYLAKE },
46 /* Broxton-P(Apollolake) */
47 { PCI_DEVICE(0x8086, 0x5a98),
48 .driver_data = AZX_DRIVER_PCH | AZX_DCAPS_INTEL_BROXTON },