Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2020302imu; Fri, 14 Dec 2018 04:37:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/UO5iIZao3aCLEzSa4ZrVW9cNRYIEsYAeyxfvbRTC/xC6LM5j0VVGohekUqTsHgPRznypxq X-Received: by 2002:a62:c21c:: with SMTP id l28mr2692057pfg.74.1544791032758; Fri, 14 Dec 2018 04:37:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544791032; cv=none; d=google.com; s=arc-20160816; b=BpJGTJA30pUcmhDRSKYdSlvxTjHIxusgY8+kNKRjlTfP1DVx0q1vebNVUJWbjO4vKO JWKF92s2pqDpDIP3rvpiwo+iFVr5rNThIC5Eeayy2NBkyIrD/BNAFTNhQPbJc/RELGza 7kcJ+rrnQHO0OdO4tjabsozqgl540d+czMJzf+8HULKaWjtdU6IMOEwDteMr8qoCwXNG yK54TXf75ddDj7Xh1j82W3ndq7X36IyuLFfvGiqKPq5lnR43SK7F+xPGIZeHafGeoAqT f2itlVNCX4Ea3agQbTdP/drO74ucmCWu0hYQrIWKquSvBnDM0w+sP94GfPO2viteBAL6 dzWg== 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=w0+yyVjxxF7ZIy02CGQ0qOZvTDjIyA93gBOaPR2vwIw=; b=OwGQiQqYtVdDPsZm+Oxz5I5Li/an3fn7KGuad8n/1t500uiMQ2cPJZou6ArTFPYKX6 XYmXANDTzB/geWXFoeQ6Sg1MgJKW/D2eEvW/wlXABVJUeRPTIAKdnuWlddgj5OqmZnD+ IV2aE40fh9f9s12FvfIc56BbLyjQmoQYwq96VRgrsOghfD2dYpM/id64yogwRFUzuQ84 KGr/BiCmJPMC/Kk5rXSiPvgYwX4TAiX/rn3eM77hpKgq/rB4ciLpwcKHk4fv8H+iJq/P FpFMV8E0f0sq7+0ff+bei9IvWz5Q47ZRj88009naP6eCWdtKwGhqh+3IFoyC3Woe0pMy v12Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yI+9FS3+; 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 u4si3975830pga.91.2018.12.14.04.36.58; Fri, 14 Dec 2018 04:37:12 -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=yI+9FS3+; 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 S1730777AbeLNMgL (ORCPT + 99 others); Fri, 14 Dec 2018 07:36:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:52024 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730524AbeLNMGw (ORCPT ); Fri, 14 Dec 2018 07:06:52 -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 A0B9421479; Fri, 14 Dec 2018 12:06:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544789212; bh=xIyqiv1hYLocp3nrjhnP9L4qJjRtd1GCTvZdxP/j/XQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yI+9FS3+ifxEbHyD8txmwsE/ysjUZULqCz8+21w/SSXgg0xlUStp3tt9aA160dGMO hNBckqzmU+t8B8+Ddwo4GQ0f8ssqKKhSiFOZevrK+A/Kmv3ECdNOZ9afh39Gs43NK2 HqyAH/zsifPINjXdyEwz+JngcEiXnwF2t1Wmgn0U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jian-Hong Pan , Daniel Drake , Chris Chiu , Takashi Iwai Subject: [PATCH 4.19 137/142] ALSA: hda/realtek: ALC294 mic and headset-mode fixups for ASUS X542UN Date: Fri, 14 Dec 2018 13:00:22 +0100 Message-Id: <20181214115752.519506077@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115747.053633987@linuxfoundation.org> References: <20181214115747.053633987@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: Chris Chiu commit d8ae458eeca9ed686e09a1b894867cb91fc4c1cb upstream. The known ALC256_FIXUP_ASUS_MIC fixup can fix the headphone jack sensing and enable use of the internal microphone on this laptop X542UN. However, it's ALC294 so create a new fixup named ALC294_FIXUP_ASUS_MIC to avoid confusion. Signed-off-by: Jian-Hong Pan Signed-off-by: Daniel Drake Signed-off-by: Chris Chiu Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5520,6 +5520,7 @@ enum { ALC285_FIXUP_LENOVO_HEADPHONE_NOISE, ALC295_FIXUP_HP_AUTO_MUTE, ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE, + ALC294_FIXUP_ASUS_MIC, }; static const struct hda_fixup alc269_fixups[] = { @@ -6406,6 +6407,16 @@ static const struct hda_fixup alc269_fix .chained = true, .chain_id = ALC269_FIXUP_HEADSET_MIC }, + [ALC294_FIXUP_ASUS_MIC] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x13, 0x90a60160 }, /* use as internal mic */ + { 0x19, 0x04a11120 }, /* use as headset mic, without its own jack detect */ + { } + }, + .chained = true, + .chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -7155,6 +7166,10 @@ static const struct snd_hda_pin_quirk al SND_HDA_PIN_QUIRK(0x10ec0293, 0x1028, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE, ALC292_STANDARD_PINS, {0x13, 0x90a60140}), + SND_HDA_PIN_QUIRK(0x10ec0294, 0x1043, "ASUS", ALC294_FIXUP_ASUS_MIC, + {0x14, 0x90170110}, + {0x1b, 0x90a70130}, + {0x21, 0x04211020}), SND_HDA_PIN_QUIRK(0x10ec0295, 0x1028, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE, ALC295_STANDARD_PINS, {0x17, 0x21014020},