Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9217335imu; Wed, 5 Dec 2018 00:39:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/XtHqVLJ4sW88thWwCoVuzQMfvA3JenscM5an1+2ZHNHA8/ih5eoQFC29CHUfUc+0+7ieHH X-Received: by 2002:a62:ae12:: with SMTP id q18mr23493754pff.126.1543999160791; Wed, 05 Dec 2018 00:39:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543999160; cv=none; d=google.com; s=arc-20160816; b=hWyf9PImEYDzN5T8k0RXoqfrWHEDZcoPN7/eWdhf3Pmxu8LSTQLnXSqOV3Hdsy/zp6 cd9IoMAKt1oXG1upsasDjjRfWCY241ymWsMMjtMAxg7PHp57Pim98FbLE0qE4OvTzEI/ js3pZVWWBM4XolQ2YCe8U1ESFR/Hf9SEkQDQ9kb4lnnl8+3ZgRy6J76HMfUpbIvP/bQA /zNYc/Al+umWVNPW7Ec+L67smpNF+7LG91guRJesVygVPl0Ud6rzbEJP1FvDdpVlfiDq KZ4yO5+07E+6gOD8+90Z+lmPb3qLj1o61doycovSUqTfbo6mfKJwXXV4j0jzLXSKsut/ JAig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=zk/ilIUqqczkxeLn25X2HDgkEP9DyvBr75TyFCS188E=; b=wJw9PeA513MDk9dmUQMNceZrRRrzOInr2lI3fuDUKFVRRLZa7dFvWq8R1u/qptA+jJ STiLrNmHCMZ51Wu414l1aI+McDYHolya8TnS91BylwM4il9yDB168h8rx92X+cdZTihg cmiwbW8Q8og44zSALd/XW3uBxVAaeRnus90gDbjCOv3sXFY0IybAYh5RzzMHDR8ANHET ZDWnIfnaTFEf4nbIEBuSFL+ggu4WsBwjXSOPS6RgOlWfP1McY/xMRQYDflsodqYXKHjb o4l7hO22DrKo3N7TQMO051bVP4Vh2EfbIvK8cacdI0Um2YobW5y0IzD9hbB7GQ8eSSJN DM5g== ARC-Authentication-Results: i=1; mx.google.com; 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 w22si18529138plp.301.2018.12.05.00.39.06; Wed, 05 Dec 2018 00:39:20 -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; 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 S1727495AbeLEIiK convert rfc822-to-8bit (ORCPT + 99 others); Wed, 5 Dec 2018 03:38:10 -0500 Received: from rtits2.realtek.com ([211.75.126.72]:52812 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727409AbeLEIiG (ORCPT ); Wed, 5 Dec 2018 03:38:06 -0500 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID wB58aShb030450, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtitcas12.realtek.com.tw[172.21.6.16]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id wB58aShb030450 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 5 Dec 2018 16:36:28 +0800 Received: from RTITMBSV02.realtek.com.tw ([fe80::cc0e:6d5f:56d7:c15f]) by RTITCAS12.realtek.com.tw ([::1]) with mapi id 14.03.0415.000; Wed, 5 Dec 2018 16:36:27 +0800 From: Kailang To: Jian-Hong Pan , Jaroslav Kysela , Takashi Iwai CC: Hui Wang , "alsa-devel@alsa-project.org" , "linux-kernel@vger.kernel.org" , "linux@endlessm.com" , Chris Chiu , Daniel Drake Subject: RE: [PATCH 1/3] ALSA: hda/realtek: ALC294 mic and headset-mode fixups for ASUS X542UN Thread-Topic: [PATCH 1/3] ALSA: hda/realtek: ALC294 mic and headset-mode fixups for ASUS X542UN Thread-Index: AQHUjG4z5Y1EMUXolEKQbVvni1nQzqVv0chg Date: Wed, 5 Dec 2018 08:36:23 +0000 Message-ID: <6FAB7C47BCF00940BB0999A99BE3547A18420099@RTITMBSV02.realtek.com.tw> References: <20181205074212.31104-1-jian-hong@endlessm.com> <20181205074212.31104-2-jian-hong@endlessm.com> In-Reply-To: <20181205074212.31104-2-jian-hong@endlessm.com> Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.22.105.152] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jian-Hong, Could you test to change the model to ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC? .chain_id = ALC256_FIXUP_ASUS_HEADSET_MODE ==> change to ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC BR, Kailang -----Original Message----- From: Jian-Hong Pan Sent: Wednesday, December 5, 2018 3:42 PM To: Jaroslav Kysela ; Takashi Iwai Cc: Kailang ; Hui Wang ; alsa-devel@alsa-project.org; linux-kernel@vger.kernel.org; linux@endlessm.com; Chris Chiu ; Jian-Hong Pan ; Daniel Drake Subject: [PATCH 1/3] ALSA: hda/realtek: ALC294 mic and headset-mode fixups for ASUS X542UN From: Chris Chiu 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 --- sound/pci/hda/patch_realtek.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index bb40624fb6d5..bbae06267054 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5517,6 +5517,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[] = { @@ -6403,6 +6404,16 @@ static const struct hda_fixup alc269_fixups[] = { .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 = ALC256_FIXUP_ASUS_HEADSET_MODE + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -7152,6 +7163,10 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = { 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}, -- 2.11.0