Home Home > GIT Browse > SLE15-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-10-19 08:45:58 +0200
committerTakashi Iwai <tiwai@suse.de>2019-10-19 08:47:05 +0200
commita96b9dd6ed16fa3e81615b2a56d616b9d961509d (patch)
tree2a21e9ba92438ee34c6707e45769cb263cf2696b
parentcd46a6209516acdf0c7bd9f763b2477694cf3bfc (diff)
ALSA: hda - Apply AMD controller workaround for Raven platform
(bsc#1051510).
-rw-r--r--patches.suse/ALSA-hda-Apply-AMD-controller-workaround-for-Raven-p.patch40
-rw-r--r--series.conf1
2 files changed, 41 insertions, 0 deletions
diff --git a/patches.suse/ALSA-hda-Apply-AMD-controller-workaround-for-Raven-p.patch b/patches.suse/ALSA-hda-Apply-AMD-controller-workaround-for-Raven-p.patch
new file mode 100644
index 0000000000..f252555aeb
--- /dev/null
+++ b/patches.suse/ALSA-hda-Apply-AMD-controller-workaround-for-Raven-p.patch
@@ -0,0 +1,40 @@
+From d2c63b7dfd06788a466d5ec8a850491f084c5fc2 Mon Sep 17 00:00:00 2001
+From: Takashi Iwai <tiwai@suse.de>
+Date: Fri, 20 Sep 2019 09:30:40 +0200
+Subject: [PATCH] ALSA: hda - Apply AMD controller workaround for Raven platform
+Git-commit: d2c63b7dfd06788a466d5ec8a850491f084c5fc2
+Patch-mainline: v5.4-rc1
+References: bsc#1051510
+
+It's reported that the garbled sound on HP Envy x360 13z-ag000 (Ryzen
+Laptop) is fixed by the same workaround applied to other AMD chips.
+Update the driver_data entry for Raven (1022:15e3) to use the newly
+introduced preset, AZX_DCAPS_PRESET_AMD_SB. Since it already contains
+AZX_DCAPS_PM_RUNTIME, we can drop that bit, too.
+
+Reported-and-tested-by: Dennis Padiernos <depadiernos@gmail.com>
+Cc: <stable@vger.kernel.org>
+Link: https://lore.kernel.org/r/20190920073040.31764-1-tiwai@suse.de
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+
+---
+ sound/pci/hda/hda_intel.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
+index 91e71be42fa4..240f4ca76391 100644
+--- a/sound/pci/hda/hda_intel.c
++++ b/sound/pci/hda/hda_intel.c
+@@ -2485,8 +2485,7 @@ static const struct pci_device_id azx_ids[] = {
+ AZX_DCAPS_PM_RUNTIME },
+ /* AMD Raven */
+ { PCI_DEVICE(0x1022, 0x15e3),
+- .driver_data = AZX_DRIVER_GENERIC | AZX_DCAPS_PRESET_ATI_SB |
+- AZX_DCAPS_PM_RUNTIME },
++ .driver_data = AZX_DRIVER_GENERIC | AZX_DCAPS_PRESET_AMD_SB },
+ /* ATI HDMI */
+ { PCI_DEVICE(0x1002, 0x0002),
+ .driver_data = AZX_DRIVER_ATIHDMI_NS | AZX_DCAPS_PRESET_ATI_HDMI_NS },
+--
+2.16.4
+
diff --git a/series.conf b/series.conf
index 1bdcd0e4b1..f8fca88b27 100644
--- a/series.conf
+++ b/series.conf
@@ -24793,6 +24793,7 @@
patches.suse/suse-hv-PCI-hv-Detect-and-fix-Hyper-V-PCI-domain-number-coll.patch
patches.suse/msft-hv-1947-PCI-hv-Use-bytes-4-and-5-from-instance-ID-as-the-PCI.patch
patches.suse/ALSA-hda-realtek-Fix-alienware-headset-mic.patch
+ patches.suse/ALSA-hda-Apply-AMD-controller-workaround-for-Raven-p.patch
patches.suse/ceph-fix-directories-inode-i_blkbits-initialization.patch
patches.suse/ceph-update-the-mtime-when-truncating-up.patch
patches.suse/ceph-reconnect-connection-if-session-hang-in-opening-state.patch