Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3489310imu; Sun, 11 Nov 2018 16:15:23 -0800 (PST) X-Google-Smtp-Source: AJdET5fL1PrjmBJuEl4JBvG3gK3IVrEx7q2Uz3qy9TAjk9F6NNdbQ/L84UNPxJx69lvJPDMbqHWF X-Received: by 2002:a17:902:4c08:: with SMTP id a8-v6mr17842415ple.211.1541981723627; Sun, 11 Nov 2018 16:15:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541981723; cv=none; d=google.com; s=arc-20160816; b=h0GfB91PgVsLlQhWHRO4IYwnbiASSm+Wh1NZjgmShgS0BzxLMBME8XRiOx/ti7oXo0 z+xCRqW03f4XKSVkJIWx4bSQ1FAtjamKWjF7+u39SAfvJwHfPyXGrew2+/1Iv46tED1F VOw6myyLBHSHbjnWPLupFFWZ1kZ3XzKaGcveweo7/CBAPk5UWzr3Q0kJALb2ecsmH+Gj 8nvkkA329nV+2btjR8SstSaVoy3DtS/rpV+pa3a8FS/Gf5SXR8RVcmItDxeh9+U8hh/F xDcB+72+3B25l4YD7FOeyVd0S9o6C9T+FnYuJHtxWw1YA37R4GQAh0un5owOMIcMgCtm NvWw== 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=TePDQjIo5QV1rfH0cUno+OrQxT+7jWZ/vIChEpCpDbI=; b=KijxV1OcvbayMKApFJL3bgZ3NvZItmF0WWPzJaHgH2pKPAHF2GBJY+XRwYkRcuKQla yGjXN/OM8y40RuRYfUDnXU2ZfkdURKzacZDCycbLg0TksqA+yTXjSfWC/lS2ITLMzGzx P4Zcuqeh9jXJnUwDl+bQluaDFbnZFomnHL3Puq22GKCDzhlY4EZENtm2fR+WS091qZP2 T/hEVk9kJx7ueDYKP6kdVuqgKasy3TJyCISYbGVJXUYjyrksORh8KIk9qMGsWknmit+J 8A+uAOofR0y9u6TbzYwC6mgFEauAINBG6J977BGnSh1pUaTwWloIfsWL7p90RATEmPcY hc2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="e/2j+Xvh"; 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 a34-v6si17049822pld.249.2018.11.11.16.15.08; Sun, 11 Nov 2018 16:15:23 -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="e/2j+Xvh"; 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 S1730799AbeKLKFR (ORCPT + 99 others); Mon, 12 Nov 2018 05:05:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:59904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730338AbeKLIRL (ORCPT ); Mon, 12 Nov 2018 03:17:11 -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 D760421731; Sun, 11 Nov 2018 22:27:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975235; bh=eEeNZ/B42idF2A3i/dTfI6A5rA/R8C6tOr4VSodBISU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e/2j+Xvh5N7affdJ7rUVMAc7UO8/aKLxssUjOfGjXmP7HzcJBi2jvHpdX5uO52ngh RcdFAOaLX4Ir2WwxMxYDd7nFwvV0uNrfvXy5bI/3aLeDHkPC1hzNBxuTPb1mGztAeK UqdT9aGk82rEf1dhclPYvVp91Qc2c6tjPksWSNhc= 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.19 035/361] ALSA: hda - Fix headphone pin config for ASUS G751 Date: Sun, 11 Nov 2018 14:16:22 -0800 Message-Id: <20181111221624.684977853@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@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.19-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 @@ -7738,6 +7738,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, @@ -8008,7 +8009,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 }, @@ -8016,6 +8017,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,