Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9228152imu; Wed, 5 Dec 2018 00:55:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/XzZUdCDeSYDswmlrjxxL0pMqHsnShIqnSPw/ODaPCEhYOcLw6vPUuYmCibeeEhMt5af/d4 X-Received: by 2002:a62:5c41:: with SMTP id q62mr24002362pfb.171.1544000156901; Wed, 05 Dec 2018 00:55:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544000156; cv=none; d=google.com; s=arc-20160816; b=IdVd6rs/tfOzGKfAyTgLsDTHDi+0P4x22K2K1Rua5MNLpy/HMcDTb4j+b7q8Q5xiq6 /c8vOkbinOBvUmit34Z/515F20xBg+E1Kycxk7SI2sXxZmGV4aXpwfh7Gxj7HLQ76F40 2tE20ccyfcJVimK3vFK8q5kwMP0uEtx/iCyu0uquRMXYSt8l9nYWvKiK1Ny1PnyW7Cwf guZd+JswULbEHbuof75TY+Uoz7CAOlgkFiEIYjbnOsFpg/2UWrHuo6i179FVZ26Yhd5x frlrjVmlGrIviTgdMdz1vRCpO/sAyddSVw7h8WsnVrtb2rNIpck0EiKpt5nwsRZUDbPk 9SBw== 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=oIrYLMvu2QHGn8bkO7oX6dGxm83m+adLr/rcQdWbf6g=; b=OAYLw2kSKpnV3R1K1yV98M8b4iJqQJFer9g4jHcR2oiVSOZAYHkNAnJY28ExaZK4b8 9qfNqnGzPIjnkDYYajc3JI+IWH3lpqY8OHrxYACDOrsBIQh53u8D0PcvM+IkMG89mqqj 7OEr4KEGBJRnnezQ4inxr0ZjtWQSShQP9UPPL6Db3I49uB41uNhQmJXYz43vANSZwJVT so3SGHHnO8pOWrCiEBrZLGxDNC1fe988BQE7LW6azVpLgLIhGc+BFztykOOSjjAcrNZq OyGwhSPw81HveXxjmkQLAFFJwQ6H6a1bGXQ/YAclMCXhuJE2xgOo82W/gYY0e5QLLBgK OnDw== 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 q5si18443270pgr.435.2018.12.05.00.55.41; Wed, 05 Dec 2018 00:55:56 -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 S1727438AbeLEIxt convert rfc822-to-8bit (ORCPT + 99 others); Wed, 5 Dec 2018 03:53:49 -0500 Received: from rtits2.realtek.com ([211.75.126.72]:55524 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726866AbeLEIxt (ORCPT ); Wed, 5 Dec 2018 03:53:49 -0500 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID wB58qE0O003804, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtitcasv02.realtek.com.tw[172.21.6.19]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id wB58qE0O003804 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 5 Dec 2018 16:52:14 +0800 Received: from RTITMBSV02.realtek.com.tw ([fe80::cc0e:6d5f:56d7:c15f]) by RTITCASV02.realtek.com.tw ([::1]) with mapi id 14.03.0415.000; Wed, 5 Dec 2018 16:52:14 +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/4] ALSA: hda/realtek: ALC286 mic and headset-mode fixups for Acer Aspire U27-880 Thread-Topic: [PATCH 1/4] ALSA: hda/realtek: ALC286 mic and headset-mode fixups for Acer Aspire U27-880 Thread-Index: AQHUjGa4XN13mVP0E0CVDcC2o9xZn6Vv1lzw Date: Wed, 5 Dec 2018 08:52:10 +0000 Message-ID: <6FAB7C47BCF00940BB0999A99BE3547A184200A7@RTITMBSV02.realtek.com.tw> References: <20181205064856.19380-1-jian-hong@endlessm.com> In-Reply-To: <20181205064856.19380-1-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, Please also try to change model to ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC. + .chain_id = ALC269_FIXUP_HEADSET_MIC ==> change to ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC BR, Kailang -----Original Message----- From: Jian-Hong Pan Sent: Wednesday, December 5, 2018 2:49 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/4] ALSA: hda/realtek: ALC286 mic and headset-mode fixups for Acer Aspire U27-880 From: Chris Chiu Acer Aspire U27-880(AIO) with ALC286 codec can not detect headset mic and internal mic not working either. It needs the similar quirk like Sony laptops to fix headphone jack sensing and enables use of the internal microphone. Unfortunately jack sensing for the headset mic is still not working. Signed-off-by: Jian-Hong Pan Signed-off-by: Daniel Drake Signed-off-by: Chris Chiu --- sound/pci/hda/patch_realtek.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index c0b289ba397f..f21d52eb2ed3 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5516,6 +5516,7 @@ enum { ALC221_FIXUP_HP_HEADSET_MIC, ALC285_FIXUP_LENOVO_HEADPHONE_NOISE, ALC295_FIXUP_HP_AUTO_MUTE, + ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE, }; static const struct hda_fixup alc269_fixups[] = { @@ -6393,6 +6394,15 @@ static const struct hda_fixup alc269_fixups[] = { .type = HDA_FIXUP_FUNC, .v.func = alc_fixup_auto_mute_via_amp, }, + [ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x18, 0x01a1913c }, /* use as headset mic, without its own jack detect */ + { } + }, + .chained = true, + .chain_id = ALC269_FIXUP_HEADSET_MIC + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -7071,6 +7081,10 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = { {0x14, 0x90170110}, {0x19, 0x04a11040}, {0x21, 0x04211020}), + SND_HDA_PIN_QUIRK(0x10ec0286, 0x1025, "Acer", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE, + {0x12, 0x90a60130}, + {0x17, 0x90170110}, + {0x21, 0x02211020}), SND_HDA_PIN_QUIRK(0x10ec0288, 0x1028, "Dell", ALC288_FIXUP_DELL1_MIC_NO_PRESENCE, {0x12, 0x90a60120}, {0x14, 0x90170110}, -- 2.11.0