Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2232166ybi; Thu, 20 Jun 2019 11:17:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXwrUakD8XZyWQ5HMvQuJmTe77HnwFIXf8GqW1YlpBcVc7nGz/7uOFeQHjKkfELorAzHo7 X-Received: by 2002:aa7:97bb:: with SMTP id d27mr63804018pfq.93.1561054635244; Thu, 20 Jun 2019 11:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561054635; cv=none; d=google.com; s=arc-20160816; b=Kuo9datdbzRa+kQVq4/YbT5w156Tl6utX/aBbXrzQf+rP3C9QqdQp2Amip5k3zUv8c 090IxQ9dXuuwoc/ZMcPwUMTb6QVfqnSl8QifG3MubCdydhA/4bnCq8P3qvZucDd75HVK y1D7nPVyTGhUCTkp/Y9+hnrkj333Lua9vYWAEDF4FxjRaQDbWlC1mIJTEgCpzUzYXDIQ C2yi92KJ7mx1A6J3tdJWVjd8GOhfha7m3M91jL9aAQ/cOcRYbeD2BPZ2J8JklbfTxqSc n0EuiiTpRmpWBqPJzcpRTH1PFGKq7FegfgIbNNG0k6N5FZb9xi4ksA7u18x2PEfKhRdy /lQA== 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=d8/Xkphq6FVMaqmsUB+aFxkoLcq/wMgucBvDk9n8HtA=; b=raR5OxyNiYURXGRxpPcSMTvKVwEwIT3aFjVBB/8FE4h4ZvMshj07cosmutwthyv8rA XJHSbS2CBtrNJ625zdGkFI6v+A6IsLRH9qD6XP5JK+fsXtDGP+wlq33bqXQq/Pm0EDQ3 C6zCGC7kQxkzKRVTvoIsRiS6x3VCVUQy2qmyFiSlz4E0K4hyuZwE1OtM0CfVqTnevvVv okhjv+197zLMtvv3LUT2d01F8Rvayrokf1lq9QwO3fUnFi/OLL4ZkiNUxzwpws7gDOkd ryslnQwfzb83RR7B1Nff906wUYCcBYOqab1tHiQ936P+HOO5NNqjo06VV1inXjC1Fx9w rHFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aRvGjXEi; 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 j3si326075plk.79.2019.06.20.11.17.00; Thu, 20 Jun 2019 11:17:15 -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=aRvGjXEi; 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 S1729643AbfFTSPm (ORCPT + 99 others); Thu, 20 Jun 2019 14:15:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:44544 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728828AbfFTSPj (ORCPT ); Thu, 20 Jun 2019 14:15:39 -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 E782B2082C; Thu, 20 Jun 2019 18:15:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561054539; bh=bsYg6yzNVST13QE08prWSj+y7Mh7O3QmbE7OEgqDCbM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aRvGjXEizrwUzlsmlf/WJOssP0tFSMYprYSKctpMWSgvQP2s42nQnV15SHkDBqIYo mgGimvZ7LGY8WdbwTQ0PVx71E8dlNGyuw+lUWDP8s39JzD0usqbxSO/bU9n2qnzmy+ bUpUcXMTDctEoiiJ7k6fcQmFaC4Hlg777XB/x3zs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bard Liao , Takashi Iwai , Sasha Levin Subject: [PATCH 5.1 64/98] ALSA: hda - Force polling mode on CNL for fixing codec communication Date: Thu, 20 Jun 2019 19:57:31 +0200 Message-Id: <20190620174352.328906616@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190620174349.443386789@linuxfoundation.org> References: <20190620174349.443386789@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 [ Upstream commit fa763f1b2858752e6150ffff46886a1b7faffc82 ] 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 Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- 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 789308f54785..5c29d6490a18 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.20.1