Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1123723ybe; Fri, 13 Sep 2019 11:23:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlS2fy4DMK7c4ForuyDQyxQ8MWY3IY48455B4dnn8+KtT5TtjqDajhp1j6CNqxSgCp7jlC X-Received: by 2002:a17:906:c410:: with SMTP id u16mr110827ejz.228.1568399022895; Fri, 13 Sep 2019 11:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568399022; cv=none; d=google.com; s=arc-20160816; b=mJsHNLi4VFqsAnJtm1QRjTkiHeyK2HnRaImEAh4/oG2Yf78tXFAtlUEa5ZVRI1K4uH Kzi9xR0NOOkKRcf7AE8SpE6/woiqeojX7D67PvkibywxnvKeQEL56wqM23mer5NzTwSf HzUrfK3pVo6d4eCZSQKIAZsi5iRacQq7+01cDoU9UompUMXH9bnD8lBSXxOZEaAYeuf7 CrFr62Ylx9zhbyxUcvJhdu5D9MMQbs27jZb8fZMC7EmMZVrY6TIAvRjoBrON5K0/0WyK 95g35MDGRAxs+32OA68QzRiyUwnfNg/ynfv9ZlpmDHlgaumjLKjdcUhyGIZjOIlPQEgW lgYQ== 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=4HkzpgpgcfO7VYThmg1Zrrmf1fEPqNf0F6+Ulyjp4jE=; b=m/uUqKM11ZTYmprmnVp7ZWUdYZHdfQEPm1SmEH59FHKkcCm4wYyOHgRZPjTLow72pA YwlznY9Pxrvzmxn/CXgYF97gcxHS+3GunAhWgzlBuu1WHf2oaZAfA/2Hpq1WeUdj+GHk +AF6apZPI8zuBWF3UxI8FRuH0X+gr7uGqBjXWlxaCQab1/wjfdGKEIfB6bh4LW20ZLE+ nIT3KzKpvtYRCa/tnN3Ud/M34XaAEAJLZg9Wk9ew07gnfws594SukbE+i7EQmPQ48Y+P x6rvpf5DAlFNQ3lQtq9IqyFW79/5X2EFmqVPbABPhGtgQ77oPcbFMKedjX/dwJLLkJNR SEaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bXFtB5Wh; 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 x3si15238262ejb.95.2019.09.13.11.23.19; Fri, 13 Sep 2019 11:23:42 -0700 (PDT) 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=bXFtB5Wh; 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 S2390123AbfIMNVF (ORCPT + 99 others); Fri, 13 Sep 2019 09:21:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:50416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390714AbfIMNVD (ORCPT ); Fri, 13 Sep 2019 09:21:03 -0400 Received: from localhost (unknown [104.132.45.99]) (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 1C59E206BB; Fri, 13 Sep 2019 13:21:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568380862; bh=QMVlag0qqeZVF7AtUAiqBf+PBP+FgaKrteIQgjAKXPw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bXFtB5Wh892O42pPslZytxDP+fkS9lSkKnw2WqiE/O5GplTknT1AJx7QNkphSeSxq yYIz6bNkAfRgZXipT3/Ec6jqPI3dvI2kIbby8Rseqa/dVpl5H6U2FgqpUa7fvoyNI2 72RfADro8oO+9aWXGB8F2azDF+CWlVJwLftXCLXk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jian-Hong Pan , Takashi Iwai Subject: [PATCH 5.2 06/37] ALSA: hda/realtek - Enable internal speaker & headset mic of ASUS UX431FL Date: Fri, 13 Sep 2019 14:07:11 +0100 Message-Id: <20190913130512.188810278@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190913130510.727515099@linuxfoundation.org> References: <20190913130510.727515099@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Jian-Hong Pan commit 60083f9e94b2f28047d71ed778adf89357c1a8fb upstream. Original pin node values of ASUS UX431FL with ALC294: 0x12 0xb7a60140 0x13 0x40000000 0x14 0x90170110 0x15 0x411111f0 0x16 0x411111f0 0x17 0x90170111 0x18 0x411111f0 0x19 0x411111f0 0x1a 0x411111f0 0x1b 0x411111f0 0x1d 0x4066852d 0x1e 0x411111f0 0x1f 0x411111f0 0x21 0x04211020 1. Has duplicated internal speakers (0x14 & 0x17) which makes the output route become confused. So, the output volume cannot be changed by setting. 2. Misses the headset mic pin node. This patch disables the confusing speaker (NID 0x14) and enables the headset mic (NID 0x19). Link: https://lore.kernel.org/r/20190902100054.6941-1-jian-hong@endlessm.com Signed-off-by: Jian-Hong Pan Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5799,6 +5799,7 @@ enum { ALC286_FIXUP_ACER_AIO_HEADSET_MIC, ALC256_FIXUP_ASUS_MIC_NO_PRESENCE, ALC299_FIXUP_PREDATOR_SPK, + ALC294_FIXUP_ASUS_INTSPK_HEADSET_MIC, }; static const struct hda_fixup alc269_fixups[] = { @@ -6839,6 +6840,16 @@ static const struct hda_fixup alc269_fix { } } }, + [ALC294_FIXUP_ASUS_INTSPK_HEADSET_MIC] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x14, 0x411111f0 }, /* disable confusing internal speaker */ + { 0x19, 0x04a11150 }, /* 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[] = { @@ -6998,6 +7009,7 @@ static const struct snd_pci_quirk alc269 SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK), SND_PCI_QUIRK(0x1043, 0x1517, "Asus Zenbook UX31A", ALC269VB_FIXUP_ASUS_ZENBOOK_UX31A), SND_PCI_QUIRK(0x1043, 0x16e3, "ASUS UX50", ALC269_FIXUP_STEREO_DMIC), + SND_PCI_QUIRK(0x1043, 0x17d1, "ASUS UX431FL", ALC294_FIXUP_ASUS_INTSPK_HEADSET_MIC), SND_PCI_QUIRK(0x1043, 0x1a13, "Asus G73Jw", ALC269_FIXUP_ASUS_G73JW), SND_PCI_QUIRK(0x1043, 0x1a30, "ASUS X705UD", ALC256_FIXUP_ASUS_MIC), SND_PCI_QUIRK(0x1043, 0x1b13, "Asus U41SV", ALC269_FIXUP_INV_DMIC),