Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8127294imu; Tue, 4 Dec 2018 03:28:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vh9Tm2/Hr4Gj1l/h/tC/fDaYhbMSVvSKVHjDMlBdHE5rYyTxUx96bmMb8IqMsOCr8cH3pI X-Received: by 2002:a17:902:bf49:: with SMTP id u9mr19398258pls.4.1543922930930; Tue, 04 Dec 2018 03:28:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543922930; cv=none; d=google.com; s=arc-20160816; b=H1nVZP/SbfY8XnKYFI47sSJjH03M3CUL9U69/JTTLLk4MyRa3X0nBoKPMJiM7h3cGx Z36XS48kJcyYsZlfJGzN0/ruPd5jZNGAHnR3/nCR9wEvc+03Xvi4O8hQCCEiQs67Ry4d tl5EtS4v2zHGQdqSGsKh4y+gldwgVRmcxoyhC9ggrFwpSh2/qkbvalBcTHZWWT6648ct WpdabspzxG6lSCI8ZD6CMJL3tPlL66tiFtavhZLHa3pF3xEqig2pGdKpr3z91uyNTYnq Bx7e9Adr49PU9H23R93uUmeusr0tm48XP9k3fqgqX0aa0PfsUmAmo1FURMovIQ6P0CRN e++g== 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=cix0/tX/5WHNb5DonQ4DOz2XF5GKjI+/yv5uXkE+KKs=; b=Ix7nvmYtdz4upWp2XTz4TnqFBzqoPETgZJNs1ViCEnoBcsMH7XikiQ1R3fsyTPO0Tc 2+VUG36YUnu04c6cICleNm1fZ9P07hsl/vipHF5tjowVFxgy9U3Pd51CxoCXGOxU8YWt o1tXYD0V1yB46Ca6vIOJZVXRcREVPI5KgxZDykqEsA5LCT5aGhMQc6PcCR1j9Hxl7jNA yAGQq6EU07ENVXIyn1aMfkB7bs7sn2d7cIqzMwjcTiK/qGZ5i1kSNEpfGUVioTDL99EV M0amPdvRuSwXvMHHEmRyC82bpUBEdsQOhPDicTKleiXUgGh/mS72o5rWgQoQHUZ8gqqN 34zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rfIDcmwU; 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 v75si16815857pfd.157.2018.12.04.03.28.36; Tue, 04 Dec 2018 03:28:50 -0800 (PST) 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=rfIDcmwU; 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 S1727168AbeLDL2E (ORCPT + 99 others); Tue, 4 Dec 2018 06:28:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:43514 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726376AbeLDK6z (ORCPT ); Tue, 4 Dec 2018 05:58:55 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 C0F9420878; Tue, 4 Dec 2018 10:58:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543921135; bh=Jz44rsR1hzRjHR559x5LfIL+Nus8RB8r0LQN0KARGBM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rfIDcmwUid6m+OrCsOatJK82WX5P/fwUpzcjr0HCcKyhzanPeC0zpf0bQSQKG0zjR h1tVErYd0fw1QQ56EV8dCHM6YC+rXncHX2DXBkAR+DqoOFFfuxk9CCDu2VvB8hkwV3 OPIDoXll4Gn8akSHFwKwZlPL2lHIDKdXkkdKHwjc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kailang Yang , Takashi Iwai Subject: [PATCH 4.19 094/139] ALSA: hda/realtek - Support ALC300 Date: Tue, 4 Dec 2018 11:49:35 +0100 Message-Id: <20181204103654.239513185@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181204103649.950154335@linuxfoundation.org> References: <20181204103649.950154335@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kailang Yang commit 1078bef0cd9291355a20369b21cd823026ab8eaa upstream. This patch will enable ALC300. [ It's almost equivalent with other ALC269-compatible ones, and apparently has no loopback mixer -- tiwai ] Signed-off-by: Kailang Yang Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -388,6 +388,7 @@ static void alc_fill_eapd_coef(struct hd case 0x10ec0285: case 0x10ec0298: case 0x10ec0289: + case 0x10ec0300: alc_update_coef_idx(codec, 0x10, 1<<9, 0); break; case 0x10ec0275: @@ -2830,6 +2831,7 @@ enum { ALC269_TYPE_ALC215, ALC269_TYPE_ALC225, ALC269_TYPE_ALC294, + ALC269_TYPE_ALC300, ALC269_TYPE_ALC700, }; @@ -2864,6 +2866,7 @@ static int alc269_parse_auto_config(stru case ALC269_TYPE_ALC215: case ALC269_TYPE_ALC225: case ALC269_TYPE_ALC294: + case ALC269_TYPE_ALC300: case ALC269_TYPE_ALC700: ssids = alc269_ssids; break; @@ -7295,6 +7298,10 @@ static int patch_alc269(struct hda_codec spec->gen.mixer_nid = 0; /* ALC2x4 does not have any loopback mixer path */ alc_update_coef_idx(codec, 0x6b, 0x0018, (1<<4) | (1<<3)); /* UAJ MIC Vref control by verb */ break; + case 0x10ec0300: + spec->codec_variant = ALC269_TYPE_ALC300; + spec->gen.mixer_nid = 0; /* no loopback on ALC300 */ + break; case 0x10ec0700: case 0x10ec0701: case 0x10ec0703: @@ -8404,6 +8411,7 @@ static const struct hda_device_id snd_hd HDA_CODEC_ENTRY(0x10ec0295, "ALC295", patch_alc269), HDA_CODEC_ENTRY(0x10ec0298, "ALC298", patch_alc269), HDA_CODEC_ENTRY(0x10ec0299, "ALC299", patch_alc269), + HDA_CODEC_ENTRY(0x10ec0300, "ALC300", patch_alc269), HDA_CODEC_REV_ENTRY(0x10ec0861, 0x100340, "ALC660", patch_alc861), HDA_CODEC_ENTRY(0x10ec0660, "ALC660-VD", patch_alc861vd), HDA_CODEC_ENTRY(0x10ec0861, "ALC861", patch_alc861),