Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp532333ybe; Mon, 2 Sep 2019 05:36:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwoJZvX96ZO9kVDSkF+tL+BYHyonNEi1klPWh2GIfv8l8S0TEHgymDMUndL/01h9PJGoxhN X-Received: by 2002:a65:5003:: with SMTP id f3mr25180802pgo.335.1567427773883; Mon, 02 Sep 2019 05:36:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567427773; cv=none; d=google.com; s=arc-20160816; b=VCSZJDMp1LZmdmXbmTmGiBxx3IcHE6jQR0PbUDj/I9imJkrNG9V0QPVJybKdqt2ERt JaszfhBQ++nQYxcd5OMDe5j+ESNXVuphMyj5aYoAADFBijLbMEE9/dHoL3PRGYNrwCtD RcnUqO7UfR5AGDG+QTCnUF3f1KVF6jQL7sRRtUrAyZIfgpg9OHavJayqz0nMc5MSNBIj irwa1R4CVn7DGO+NL7DomEdFvHMwjH2Qd8rYG8JJGrzD9rsvqCCcv4mZf/AZcrV3FgkC Xl4x9snG0PIUogIXct9JXG/KAMAQfS109naOWKzLbNCGXKZPGVhzfTcwkuQTXJ3lguiQ pcyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=anaTKfbT0Z/QT8LCkNlxoORAH6xsMCLD3p8lXjLL2NA=; b=IBE7rmGw/08dynxpZ6jompEeGLARQWAj60xO7KNo9S5hPQU56zhHkbVevym62C6pCN 2T7whgKdeSwohiI+yBZgpS75cEbmo0Mh5UfAvuL/0vfzFJD65z6l40gdx6Wvf+jLlsk4 PJOIayZSG6CVbjIy+QCRlrDhP292dowLfZmeY/uZtXuhCUMdDBaLRVS4Mvj9le5QkGNw 5nO1tZl/7BZ2KhszikLFf2qilt04llsriBGXO2IoI5lFreVmgWgn31wXzFbCjf+IVqH2 L0xrjcE4RS//Frc6WqGWkk4Tb+32zPBkF2p4ToMOlDh89EsCcTzQGg/nN8LyvKQqJrJ6 t6yA== 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 x185si11639735pgb.161.2019.09.02.05.35.58; Mon, 02 Sep 2019 05:36:13 -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; 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 S1731016AbfIBLlH (ORCPT + 99 others); Mon, 2 Sep 2019 07:41:07 -0400 Received: from mx2.suse.de ([195.135.220.15]:48170 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727951AbfIBLlH (ORCPT ); Mon, 2 Sep 2019 07:41:07 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2258FAEEC; Mon, 2 Sep 2019 11:41:05 +0000 (UTC) Date: Mon, 02 Sep 2019 13:41:04 +0200 Message-ID: From: Takashi Iwai To: "Jian-Hong Pan" Cc: "Jaroslav Kysela" , , , Subject: Re: [PATCH] ALSA: hda/realtek - Enable internal speaker & headset mic of ASUS UX431FL In-Reply-To: <20190902100054.6941-1-jian-hong@endlessm.com> References: <20190902100054.6941-1-jian-hong@endlessm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 02 Sep 2019 12:00:56 +0200, Jian-Hong Pan wrote: > > 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). Is 0x14 really a dead pin? Or is a surround/bass speaker or such? thanks, Takashi > > Signed-off-by: Jian-Hong Pan > --- > sound/pci/hda/patch_realtek.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c > index e333b3e30e31..0a1fa99a6723 100644 > --- a/sound/pci/hda/patch_realtek.c > +++ b/sound/pci/hda/patch_realtek.c > @@ -5797,6 +5797,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[] = { > @@ -6837,6 +6838,16 @@ static const struct hda_fixup alc269_fixups[] = { > { } > } > }, > + [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[] = { > @@ -6995,6 +7006,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { > 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), > -- > 2.20.1 > >