Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1966060ima; Thu, 25 Oct 2018 07:41:12 -0700 (PDT) X-Google-Smtp-Source: AJdET5fcMMp9PztKeUwXXCYZNw69pY3bbRut4T2e8uRK31lBBETHOdMsoRkvrPY0f7RuLTbrqw5j X-Received: by 2002:a63:2356:: with SMTP id u22-v6mr1728296pgm.122.1540478472032; Thu, 25 Oct 2018 07:41:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540478472; cv=none; d=google.com; s=arc-20160816; b=ri2xzqfHpdlxJjrqovn1Jp/gcA267ILfXOSAi4rT0pmCIYrSLg3nCKCoxHuuG36drc N9RIcrzY6edZcPbCM6Swg38ZOCctpcKqEdemAwGSKGKPDqS4fqS0EWnlXj0Cj0EKCqM6 NDsABeDBIr/wPIpDxAXOTvZJHCRQYr8OYjh+E0JziF4dOvZmT+pPsvAK1AKnXAMI+due NG7bHGAZ1uYvpaj7eqN8dHwZo0lYVD3j7QVHE/ftK7Wuw5hw8APsWIzEhz7ZueYzuk0w 0HgpTRAePt6xiJXpR4AWbbLDBPQ9Y4K9JEecmQjbuTZTTsCFtry7Xs7lehee3VBNnTMt aQRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=3N1N0DZU46g6B6zrr6Nf/I+WZsCLtuiLPsOWdZeJ9aE=; b=OhEfXo92QWB7AcUVc7K2NzGfo72ePJOeyBg1pVDQmd6RcS1ahPwiX3G4zxR9CPRkyD V8OkyJa3JgpKuW9t4PLQXH//Pev3PfXHa81nkBxT1FWrNMS9ilKNywNMi+Aq9cvv0Jfo Xec3qUndGIAXbC7E0L+KCVLy9zsiL9JB1U5UPJ5ViHx7lhIr5wutMpLWNycc9QdRAEm0 hIrzbw9HnHKC05UqSCgN68jYI5cnazK5BiBv5eImZmpeURnLRXwV0Jzdj/kP0B2nwrjx u/1o72eCx3cqHBZXl+Y3loMtuxBbRWZMkJqFh181P0hnFh3EVVNaPxbpkAwI/Hlsw0ZC TbGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dKa9iXOT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10-v6si8401182pgh.338.2018.10.25.07.40.55; Thu, 25 Oct 2018 07:41:12 -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=dKa9iXOT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729172AbeJYWsw (ORCPT + 99 others); Thu, 25 Oct 2018 18:48:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:57708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728220AbeJYWsu (ORCPT ); Thu, 25 Oct 2018 18:48:50 -0400 Received: from sasha-vm.mshome.net (unknown [167.98.65.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 39CB22086D; Thu, 25 Oct 2018 14:15:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540476954; bh=6S//L59qjtXmZaiVK6R/vWn7u8Dl8a6SWTZ3z0sUvyQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dKa9iXOTj8bNRAGXQapJ966iUeJ4Liza4SVBrSiJc9vrkxO8j8Hx4/o00hdYE8rv6 sUrCMMSahw5UBPsKVnGNN0ht2cjct6zOjMJszdSNzkJduVJc5YDXqDXUR2c4+zGY9p 8MEPCd1KChgAsM+9gElzkMP2FyF1PMBpGkeAVYbY= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Takashi Iwai , Sasha Levin Subject: [PATCH AUTOSEL 4.9 61/98] ALSA: hda - No loopback on ALC299 codec Date: Thu, 25 Oct 2018 10:13:46 -0400 Message-Id: <20181025141423.213774-61-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025141423.213774-1-sashal@kernel.org> References: <20181025141423.213774-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Takashi Iwai [ Upstream commit fa16b69f1299004b60b625f181143500a246e5cb ] ALC299 has no loopback mixer, but the driver still tries to add a beep control over the mixer NID which leads to the error at accessing it. This patch fixes it by properly declaring mixer_nid=0 for this codec. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=195775 Fixes: 28f1f9b26cee ("ALSA: hda/realtek - Add new codec ID ALC299") Cc: stable@vger.kernel.org Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/pci/hda/patch_realtek.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index ca2945711dbe..0eee308365c4 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6392,8 +6392,11 @@ static int patch_alc269(struct hda_codec *codec) break; case 0x10ec0225: case 0x10ec0295: + spec->codec_variant = ALC269_TYPE_ALC225; + break; case 0x10ec0299: spec->codec_variant = ALC269_TYPE_ALC225; + spec->gen.mixer_nid = 0; /* no loopback on ALC299 */ break; case 0x10ec0234: case 0x10ec0274: -- 2.17.1