From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 491DBC4360C for ; Sun, 29 Sep 2019 14:02:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1D43B21835 for ; Sun, 29 Sep 2019 14:02:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569765733; bh=HIj7xDrGYMFVV5U6wShQoDOHJHsSh4zlhJ7c9z0ONnc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=uSEh7UjDlN7fjwZK0fBeUHlD8IJWhT2mT6ANH0854gqrQn0GKHcD39vjE539bZv9K ZRb5TSIZcbKYQTMjN+6/Tk1SQysUZWkIDzC9FR7xjc/ZbE4EuIWzLbdz/2rQWIhw0C 1uk5xeDBZS2THzWYVlZD4noxr/T+CAwxWLvgBOYk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730155AbfI2OCG (ORCPT ); Sun, 29 Sep 2019 10:02:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:44538 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730144AbfI2OCF (ORCPT ); Sun, 29 Sep 2019 10:02:05 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3903721835; Sun, 29 Sep 2019 14:02:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569765725; bh=HIj7xDrGYMFVV5U6wShQoDOHJHsSh4zlhJ7c9z0ONnc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tJbXOHbJG6qxhsb6wmXrHoDv397v6jEbI+HQ4shxM0IXp7a+upQVT0xb7JqnpZZ+a moCYQNZFmbUH0yNZDhvRuOQ3beN8F8h/2NKdlLhO05834TPSLNXqFpJRc/FafHsHSD Kz521kADQcwGKsIBu49tZ4elSU6N1WOrbiAsygJk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai , Dennis Padiernos Subject: [PATCH 5.2 27/45] ALSA: hda - Apply AMD controller workaround for Raven platform Date: Sun, 29 Sep 2019 15:55:55 +0200 Message-Id: <20190929135031.591655291@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190929135024.387033930@linuxfoundation.org> References: <20190929135024.387033930@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Takashi Iwai commit d2c63b7dfd06788a466d5ec8a850491f084c5fc2 upstream. 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 Cc: Link: https://lore.kernel.org/r/20190920073040.31764-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/hda_intel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -2514,8 +2514,7 @@ static const struct pci_device_id azx_id 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 },