Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp5849957ybn; Sun, 29 Sep 2019 07:03:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7fxd8ZCfKBnySrcULxJ5oCOUrE+yFk8l7fv1YtkwE+m0PWxNrfGTgkgEJ0zBaVpMgWRAv X-Received: by 2002:a05:6402:a48:: with SMTP id bt8mr14729257edb.298.1569765826481; Sun, 29 Sep 2019 07:03:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569765826; cv=none; d=google.com; s=arc-20160816; b=SPD59ASPle6aE/x/SwR7vOxdaae6WK1sBp6TXsslTPEZM7b0v2I2siJrGNoPQ8tV4n y948Tnc/iQrbAVcWTAowzbqyox25VCoubkqoI83KOYfuoD2m5kVDGS0lU3uqmLmri5Lu vFxZBMLPd5tnHhHQesJuWiXeuf8eMmme5x0NyFSpbsHCw4RmvpitV7zWL47nAugfJzQS e/DLDIEsQ5Jf6m1Fs+2LkJ4m2RZhdCAcs9fOzDkylZpFhmO6j552s+sDt1ZbGv+XmXN8 62XtAmoRw8Q13bIOD3/VHZ+q4YNvu8Fe8t7ugzNHnfRVAx4QbbLvuCoHREUhMuWvbn8X Kxmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=685lFFSbzz68QGHDZRyJ0aYmIWRmRd4mKEcF5gHATZw=; b=s23KeXaFt4GJUKIz/GbHWQjGor0s8vBAh5DKi0Il0fy/IpXRajffmM8nUd2NjMg209 hQxTjQvoNcOwkdBk13U1ZxUK3V8jGOHQogINmEHnxpDCS6W47HpbkddkMjrKeB6+oql+ 64bBHaXlswA7dyjb0A2W/GICPzdEvW8kzAwWhfkL1bwCFm1ehXOzna7c+YvuL7Mjcxqo xPQiGp+t2ISMv7294nBZLxRSPYybSv1WUZro3uQnqYZld54EReHJ/excEqnH+BmOP+4L W/jjpLNrYHeyapk1Im58eK5DgJ7mwNQk2CtYk8EYC8TVIYUWPVRXRL2lmDk6GaBTcmsI UDIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tJbXOHbJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qq19si5482982ejb.85.2019.09.29.07.03.19; Sun, 29 Sep 2019 07:03:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tJbXOHbJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730162AbfI2OCH (ORCPT + 99 others); Sun, 29 Sep 2019 10:02:07 -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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 },