Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3442723imu; Sun, 11 Nov 2018 15:12:07 -0800 (PST) X-Google-Smtp-Source: AJdET5coRCvSHI6WRvGezVR/NIamiLIwtRKNaY1YavHF24icVMFDhSFEGPWnHSAB6Q4FnAGwGXEa X-Received: by 2002:a17:902:9a91:: with SMTP id w17-v6mr17075204plp.274.1541977927292; Sun, 11 Nov 2018 15:12:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541977927; cv=none; d=google.com; s=arc-20160816; b=hZC9TEIwu2+qPFIpdpmQqGy5+jsVxuupX0CqxE5f07aBTQ4odb2T711DjcENbL0sJ0 7fctWT8XmKpsHmFHs+ozxtHSmX2p5zW15k106pMCTYrdbCKqGi+Dz9JxjeN850T56CaY rUtiQbAzbJkVGKlJrOkRteqyIs+JKRMz3cezzP8Kbv+XBM9xHdQJKKkKkg7Q3nhjfQYQ u8OPDjwMvJCSh3A3eTXm59vZHqXJg2juOYzoHh89tmbjZBO8mYHZL25SBIaE16fbWAgm UdPFaAq9EEFogKY1q1tbVEBxdGLVlGZI4++OPQXGCF7B21ExAie1D9V554DSklxbrUq/ 7iqA== 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=dyB86Vuw0M3b3kSOF0W3KW5lGzSZgVquqmKDclbfPn8=; b=QyC/s4Lfz6fom9Qr3ps9unIu+Q7MF0ax2DwGjApWrq0SwPx525dOEiF2Kvl998XVOs 3LHFWMN+oMMhkbD9sgZ3+RZeXS6fCsF+UOhzz7kTnUX/ASo1Y00/u7xSX3+S4n26glwa RnAso4J/wfVIHVvbvYAIyFAEPqsAizP+OqqPcXTTCmJ0ZHPtq5w56GkboOZPS1qWflHm GROz4d7BEb8BOEm+tgvhuIc+MNYUtGofMUmhIqkYTBGPLx/9H2cIYSpUm+MRO4eBKYRg f5SY2I1syU/QaAsO9jTP/k36fJpjlgld+Q6WggmuudPakWSMsA4ubF/x6ja9NQt/YFJ4 qnsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oTjNaxf9; 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 15-v6si16645905pfr.242.2018.11.11.15.11.52; Sun, 11 Nov 2018 15:12:07 -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=oTjNaxf9; 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 S2390188AbeKLIWA (ORCPT + 99 others); Mon, 12 Nov 2018 03:22:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:50768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390163AbeKLIV7 (ORCPT ); Mon, 12 Nov 2018 03:21:59 -0500 Received: from localhost (unknown [206.108.79.134]) (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 4E42021582; Sun, 11 Nov 2018 22:32:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975522; bh=CXfOqfzFDbg+l883ehtze90VQx8YTaiKU6bQNbNqF1k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oTjNaxf9FmmVWqxZJwZV2bZMS1j3biuap0fWtmXVvWRKt0QN/0QMvkmutiqkkhe/V XVgxFpogzm7CSKqIZd9nS9Dj0SdOplOn7ajeieItJkyNAQeDDuRIuGJT4sTXu3F7Yb uCnTSblxMiwyrXXMuUMu2LFlXHnBu5ZPc8LuFkmc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?H=C3=A5vard?= , Takashi Iwai Subject: [PATCH 4.14 015/222] ALSA: hda - Fix headphone pin config for ASUS G751 Date: Sun, 11 Nov 2018 14:21:52 -0800 Message-Id: <20181111221649.471908598@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221647.665769131@linuxfoundation.org> References: <20181111221647.665769131@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Takashi Iwai commit 5b7c5e1f4c36b99d0f694f38b9ad910f520cb7ef upstream. BIOS on ASUS G751 doesn't seem to map the headphone pin (NID 0x16) correctly. Add a quirk to address it, as well as chaining to the previous fix for the microphone. Reported-by: HÃ¥vard Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -7515,6 +7515,7 @@ enum { ALC662_FIXUP_ASUS_Nx50, ALC668_FIXUP_ASUS_Nx51_HEADSET_MODE, ALC668_FIXUP_ASUS_Nx51, + ALC668_FIXUP_MIC_COEF, ALC668_FIXUP_ASUS_G751, ALC891_FIXUP_HEADSET_MODE, ALC891_FIXUP_DELL_MIC_NO_PRESENCE, @@ -7785,7 +7786,7 @@ static const struct hda_fixup alc662_fix .chained = true, .chain_id = ALC668_FIXUP_ASUS_Nx51_HEADSET_MODE, }, - [ALC668_FIXUP_ASUS_G751] = { + [ALC668_FIXUP_MIC_COEF] = { .type = HDA_FIXUP_VERBS, .v.verbs = (const struct hda_verb[]) { { 0x20, AC_VERB_SET_COEF_INDEX, 0xc3 }, @@ -7793,6 +7794,15 @@ static const struct hda_fixup alc662_fix {} }, }, + [ALC668_FIXUP_ASUS_G751] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x16, 0x0421101f }, /* HP */ + {} + }, + .chained = true, + .chain_id = ALC668_FIXUP_MIC_COEF + }, [ALC891_FIXUP_HEADSET_MODE] = { .type = HDA_FIXUP_FUNC, .v.func = alc_fixup_headset_mode,