Home Home > GIT Browse > SLE15
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-06-24 11:56:33 +0200
committerTakashi Iwai <tiwai@suse.de>2019-06-24 11:56:33 +0200
commitef7c06bade7e456ae1c0c99554db16f09ac7f837 (patch)
tree34acb1a1e0f6727c7a66c00f79557d4c083e4e3d
parent190eab52759c8ea0acba55b48e90fe88339fb354 (diff)
ALSA: hda - Force polling mode on CNL for fixing codec
communication (bsc#1051510).
-rw-r--r--patches.drivers/ALSA-hda-Force-polling-mode-on-CNL-for-fixing-codec-.patch45
-rw-r--r--series.conf1
2 files changed, 46 insertions, 0 deletions
diff --git a/patches.drivers/ALSA-hda-Force-polling-mode-on-CNL-for-fixing-codec-.patch b/patches.drivers/ALSA-hda-Force-polling-mode-on-CNL-for-fixing-codec-.patch
new file mode 100644
index 0000000000..8d2c71e68e
--- /dev/null
+++ b/patches.drivers/ALSA-hda-Force-polling-mode-on-CNL-for-fixing-codec-.patch
@@ -0,0 +1,45 @@
+From fa763f1b2858752e6150ffff46886a1b7faffc82 Mon Sep 17 00:00:00 2001
+From: Bard Liao <yung-chuan.liao@linux.intel.com>
+Date: Mon, 27 May 2019 00:58:32 +0800
+Subject: [PATCH] ALSA: hda - Force polling mode on CNL for fixing codec communication
+Git-commit: fa763f1b2858752e6150ffff46886a1b7faffc82
+Patch-mainline: v5.2-rc3
+References: bsc#1051510
+
+We observed the same issue as reported by commit a8d7bde23e7130686b7662
+("alsa: hda - Force polling mode on CFL for fixing codec communication")
+We don't have a better solution. So apply the same workaround to CNL.
+
+Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+
+---
+ sound/pci/hda/hda_intel.c | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
+index 0741eae23f10..a4b0414dda3b 100644
+--- a/sound/pci/hda/hda_intel.c
++++ b/sound/pci/hda/hda_intel.c
+@@ -375,6 +375,7 @@ enum {
+
+ #define IS_BXT(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x5a98)
+ #define IS_CFL(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0xa348)
++#define IS_CNL(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x9dc8)
+
+ static char *driver_short_names[] = {
+ [AZX_DRIVER_ICH] = "HDA Intel",
+@@ -1700,8 +1701,8 @@ static int azx_create(struct snd_card *card, struct pci_dev *pci,
+ else
+ chip->bdl_pos_adj = bdl_pos_adj[dev];
+
+- /* Workaround for a communication error on CFL (bko#199007) */
+- if (IS_CFL(pci))
++ /* Workaround for a communication error on CFL (bko#199007) and CNL */
++ if (IS_CFL(pci) || IS_CNL(pci))
+ chip->polling_mode = 1;
+
+ err = azx_bus_init(chip, model[dev], &pci_hda_io_ops);
+--
+2.16.4
+
diff --git a/series.conf b/series.conf
index f491dfaec8..1a4b9b07fa 100644
--- a/series.conf
+++ b/series.conf
@@ -22528,6 +22528,7 @@
patches.drivers/gpio-fix-gpio-adp5588-build-errors.patch
patches.fixes/0001-docs-Fix-conf.py-for-Sphinx-2.0.patch
patches.drivers/ALSA-hda-realtek-Set-default-power-save-node-to-0.patch
+ patches.drivers/ALSA-hda-Force-polling-mode-on-CNL-for-fixing-codec-.patch
patches.drivers/ALSA-hda-realtek-Improve-the-headset-mic-for-Acer-As.patch
patches.fixes/configfs-Fix-use-after-free-when-accessing-sd-s_dent.patch
patches.suse/btrfs-reloc-also-queue-orphan-reloc-tree-for-cleanup-to-avoid-bug_on.patch