Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp903186imu; Tue, 11 Dec 2018 09:18:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vios3ar4jEVw7yoTn1Io2fB4PkxOszvuHfD1K/u165ihVb6lTjW0aEeiT7vNb+9SpvBE7W X-Received: by 2002:a17:902:24e7:: with SMTP id l36mr16870697plg.61.1544548714314; Tue, 11 Dec 2018 09:18:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544548714; cv=none; d=google.com; s=arc-20160816; b=d4aVmF8GDCB8d4Xvklnz/g4pSopyRNbuqVsVNpmiBxg7GxQ6H9QtcmVQunt21aKchC 3ZTXmMODxfO0sYxIeo/oClhTcljbPalcPKHHCZGi+YHOWt1kwbFn3olcui6XrI1RrhzU k7kdhlvTwIrctfH2b1U25I/EkMD+xpq9J2lEtmdb83nECSJ7pcXJG1S20Ro7U1tGRCKi ueCaOgxH6Lf5/2PWb0HC28/NUZmG6NnUu5QnlTUWUxBZWMenh8i7oaFksSY09YAqx7uJ lyQ3LNv9ozp7KBJEDaHYbGdrYqZ5NFqEi/3iq8dkJbBbze4W2OfabXuKQga6VIGzUdpU 1OJg== 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=axPN9JMYd3BNEln2O9wwSre9zzb9UoaAsTHhk0rNt08=; b=BAvY+Sjnk3pLcGHJSxYH7DRsJgbBPRLW4pVbgUW6OuYFb8Ssj3NyKO+ZQXMSbsKMfk z+ZXD6BDgFBCzbsa2R44PpJwN7/HydAFQAXdbeBW8udl0FpKh38qknuevHsQ2q0yXfWN Y9Msynvi2x8AQtDICdaZn7ZaoQUKcmnzCNYJK12L6EuPa0/akD5trySJ111/TP7MxVf2 XladfvzOuspkAvHvdiCThhMhqFiESUbV/ggKQWpwcNT30ptoxwM6kTKYwtXALPed39CS oqDp/eySCSL/M3deDxaQJtOWC+YJeXtcrj0EU0jYaCFkSExjbAKfCH5M7PWt9CB7WYAO AJ6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=elkZJAsI; 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 m32si13104381pld.86.2018.12.11.09.17.57; Tue, 11 Dec 2018 09:18:34 -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=elkZJAsI; 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 S1729952AbeLKP4k (ORCPT + 99 others); Tue, 11 Dec 2018 10:56:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:45426 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730620AbeLKP4j (ORCPT ); Tue, 11 Dec 2018 10:56:39 -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 337112146D; Tue, 11 Dec 2018 15:56:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544543798; bh=RZ9P5POzx5DGYu3wMbLziF2mvY7dvwTrEm0txs2k3z0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=elkZJAsItVw2ZzWZZ85o/8HzWEDQe1+50UzwIf3zQrlSoZ/VVhjFkYU7SRxtvP34y wk3mVWEt4PV7pD+/tNDOvzZYqrSV38FMYOIWxI9JxuAdbYm/A3lRHyD/sY6KvIkicn UgxJ7HNR3wQfl6k8OwYj5+o84VCMuo7MRn9jqPhs= 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 067/118] ALSA: hda/realtek: ALC286 mic and headset-mode fixups for Acer Aspire U27-880 Date: Tue, 11 Dec 2018 16:41:26 +0100 Message-Id: <20181211151646.941553439@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181211151644.216668863@linuxfoundation.org> References: <20181211151644.216668863@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 33aaebd48ae2d2c78fef5063a0381e17db19b060 upstream. 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 Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5519,6 +5519,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[] = { @@ -6396,6 +6397,15 @@ static const struct hda_fixup alc269_fix .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[] = { @@ -7074,6 +7084,10 @@ static const struct snd_hda_pin_quirk al {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},