Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2020147imu; Fri, 14 Dec 2018 04:37:02 -0800 (PST) X-Google-Smtp-Source: AFSGD/Urxcv8L1RaOjkPeSXKMk2h+fVsaeNL+IzDtv4tQQfm2FJoWQrBrCd61C/lrVq/kFZ+sJTp X-Received: by 2002:a65:62da:: with SMTP id m26mr2600034pgv.278.1544791022532; Fri, 14 Dec 2018 04:37:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544791022; cv=none; d=google.com; s=arc-20160816; b=T6aVHkIG82EmJ7RGPvnic4LykL3sOgmPX0hz9dGdhBE/79jzhEXmyVXNOqcLYBaTUQ 4ZIi5Dsc0xmJ8u4uuDvfsPqXBzuC6VrcwkQpSLyAV1O36SXxgaTTaQIQeb+XqR/UEzMb D95pLCJteO9tUOIlJymcOr+QrVWZrjPVxEBf5rSwml2bB5DPBiMUrMA+/fwy1X0Ira7r hBZpafqEQduW1DBKe25EZjqfwpyMQAs16SIfhJmFfKViN8eVIUSCEBDJv797lk0byHAg N8w98S7e1ukFJr3bNLzUKtvJgWH89CogaVHHD24EcJRYBqbtZlKnSF1AmaJ14DHKdk2S IufQ== 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=vSHdZhWNArf39K3z+jvLNGcPH0PHjYpPBZaPj8/Su/c=; b=rTAVbYNGPTilc1uljBBE9eEOel9p0vdP+/hl54dE8snqg67BfC2ei/Mi98vCwdpUXe HHhogSgbaeTrnynkNuMoNdGecM0arC5HL16etxQ2gTTKA2lERJ3sgQLISbxqYP0aGnq+ j9aIdn8G83s/IkFEcvEXfSPspqY/coRSVwwvrpmW/+dtssMZfD4Q4HiXHjenS6StRxqz hL6EOZyI8hS+8h5TJ9/Ye9S5G9kavQyfu3RYXSDv0XNjeJJ70cBfyAFDeoeEko1dt1uw suoy+V6JcpoK4rCLAmF+06FR8RaChMam2SIZSfQ+ST3j5ljuO3Q0TUgLIb4xP7KC9Ife 0suQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WMhJQzMn; 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 23si4118975pfz.20.2018.12.14.04.36.47; Fri, 14 Dec 2018 04:37:02 -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=WMhJQzMn; 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 S1731013AbeLNMG6 (ORCPT + 99 others); Fri, 14 Dec 2018 07:06:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:52052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730492AbeLNMGz (ORCPT ); Fri, 14 Dec 2018 07:06:55 -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 4A84021479; Fri, 14 Dec 2018 12:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544789214; bh=B61w/jG/rPl9rPjBz85/bMKkmoG/LM0Hl2ABknPEUyw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WMhJQzMn3hHN/1LJTH70DPZTDItY2YXzbbh6d1TE3827DYUYclo9UVsRELackrBCP 109kGaNq/6sYYjnoY21ffapezlJEa8rkXmj3fQY2DnivY3OR5vlHGkJKfrvH9WEKks c3K9Agb56+GDDlt9RQpq10HPJmI3pJ838+lj4T7Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Daniel Drake , Jian-Hong Pan , Takashi Iwai Subject: [PATCH 4.19 138/142] ALSA: hda/realtek: Enable audio jacks of ASUS UX533FD with ALC294 Date: Fri, 14 Dec 2018 13:00:23 +0100 Message-Id: <20181214115752.557445221@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115747.053633987@linuxfoundation.org> References: <20181214115747.053633987@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: Jian-Hong Pan commit 4e051106730dfc640a8b49db88440af304726f4d upstream. The ASUS UX533FD with ALC294 cannot detect the headset MIC and outputs through the internal speaker and the headphone until ALC294_FIXUP_ASUS_SPK and ALC294_FIXUP_ASUS_HEADSET_MIC quirk applied. Signed-off-by: Daniel Drake Signed-off-by: Jian-Hong Pan Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5521,6 +5521,8 @@ enum { ALC295_FIXUP_HP_AUTO_MUTE, ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE, ALC294_FIXUP_ASUS_MIC, + ALC294_FIXUP_ASUS_HEADSET_MIC, + ALC294_FIXUP_ASUS_SPK, }; static const struct hda_fixup alc269_fixups[] = { @@ -6417,6 +6419,26 @@ static const struct hda_fixup alc269_fix .chained = true, .chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC }, + [ALC294_FIXUP_ASUS_HEADSET_MIC] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x19, 0x01a1113c }, /* use as headset mic, without its own jack detect */ + { } + }, + .chained = true, + .chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC + }, + [ALC294_FIXUP_ASUS_SPK] = { + .type = HDA_FIXUP_VERBS, + .v.verbs = (const struct hda_verb[]) { + /* Set EAPD high */ + { 0x20, AC_VERB_SET_COEF_INDEX, 0x40 }, + { 0x20, AC_VERB_SET_PROC_COEF, 0x8800 }, + { } + }, + .chained = true, + .chain_id = ALC294_FIXUP_ASUS_HEADSET_MIC + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -6559,6 +6581,7 @@ static const struct snd_pci_quirk alc269 SND_PCI_QUIRK(0x1043, 0x12e0, "ASUS X541SA", ALC256_FIXUP_ASUS_MIC), SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC), SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK), + SND_PCI_QUIRK(0x1043, 0x14a1, "ASUS UX533FD", ALC294_FIXUP_ASUS_SPK), 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, 0x1a13, "Asus G73Jw", ALC269_FIXUP_ASUS_G73JW),