Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9093527pxu; Mon, 28 Dec 2020 06:29:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAEsa7ev04Ic4dWLGGpznWWOgZl+sEH6Lm4lBoN4g7IJ2eg8fufzTB2B3ie32OjNy84xYg X-Received: by 2002:a50:b746:: with SMTP id g64mr42201962ede.33.1609165752848; Mon, 28 Dec 2020 06:29:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609165752; cv=none; d=google.com; s=arc-20160816; b=iFjEO387rrKNCH5K3zFPBaydN0tt0lQuSpamldpbP2kmJeoNsFE8PZQcRjbFbBZlPJ WLL1aGdQfY1tVnwAAZjMlMmdiHmXcE8WyEOgkrfFU1AvWkvGv9PnepHlAdIJ09iMAcv0 WaeTyQzVW8oX1QwRRbZHHKkOs52ilGii5SKfQuU8w20NbkvxEiu9K1aI9Vkknzd0+oi+ 8NGvCmeVd7LgZRg21ziN2pZXwZwklvdta5lkfU04+x9+AAfDH6JCF+3/wGxhfVXRfz90 Khga4xSb7PHaXY8sLYmklUwI/tw19KuoTn5PX2qV1EXo7q1LdMdSjU45dM4DoNsDeGwI QWaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nV4dwJCN9uDqu6REedQcpg0M2lJ1JtwGizDI6EEC8rs=; b=Jd58DE751aSpjOmFQuGriPuHv8Lg3oCxLCjz+6HVtWKVzRTiO40Za5HQwUr2E+uwBv ZqXKGNTfdKY26cPy4fVjTNmARYUXDlVx+nG493YiQyjlHU7x+Kc2e91Ugg9Uipa2dGbu ULUUcJ8EKej4+FprNO5ysFt8yXv3w3Ebgr6IwUt1xAOGWm+ifzblS2Pzk9yYjNWa0RXc nX/LzIsvRlnmbHJcXxBsNncypiHBh7g6KILFLnWuFOPr6EgndPtr8cHck1ZssfajJ/Un onvXrd5hGg3rMG+68MSY5r950JDK3tfzgdym1sTA1xqIF7EGfjgDgI+NeqJe8s3cCiDt rz3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0XB+wvPl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si21102392ede.501.2020.12.28.06.28.50; Mon, 28 Dec 2020 06:29:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0XB+wvPl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503883AbgL1O0s (ORCPT + 99 others); Mon, 28 Dec 2020 09:26:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:34680 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2503869AbgL1O0n (ORCPT ); Mon, 28 Dec 2020 09:26:43 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0AAC6207B2; Mon, 28 Dec 2020 14:26:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165562; bh=DieRUxCgiy8BL/gIK1JwZmNJdIR2pQqOk5P2wFx3Of4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0XB+wvPlPAcKb08HPFJElzI9Af0k1OLjQ6vm9xLmV+Z/ADGv6XoUj3s4dDZVqpxhA hfEJyrC9nCKq8QehI6KjfSgJMxtlc5awo84UmfTb66SWZCMyeyV2xqDvu8ECWq2MWa vcziY4y0z0HuuongCxZaQnDIvPxKkfzoMkzf6ARo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chris Chiu , Jian-Hong Pan , Takashi Iwai Subject: [PATCH 5.10 545/717] ALSA: hda/realtek: Remove dummy lineout on Acer TravelMate P648/P658 Date: Mon, 28 Dec 2020 13:49:03 +0100 Message-Id: <20201228125047.051904184@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chris Chiu commit 34cdf405aa5de827b8bef79a6c82c39120b3729b upstream. Acer TravelMate laptops P648/P658 series with codec ALC282 only have one physical jack for headset but there's a confusing lineout pin on NID 0x1b reported. Audio applications hence misunderstand that there are a speaker and a lineout, and take the lineout as the default audio output. Add a new quirk to remove the useless lineout and enable the pin 0x18 for jack sensing and headset microphone. Signed-off-by: Chris Chiu Signed-off-by: Jian-Hong Pan Cc: Link: https://lore.kernel.org/r/20201216125200.27053-1-chiu@endlessos.org Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6369,6 +6369,7 @@ enum { ALC287_FIXUP_HP_GPIO_LED, ALC256_FIXUP_HP_HEADSET_MIC, ALC236_FIXUP_DELL_AIO_HEADSET_MIC, + ALC282_FIXUP_ACER_DISABLE_LINEOUT, }; static const struct hda_fixup alc269_fixups[] = { @@ -7792,6 +7793,16 @@ static const struct hda_fixup alc269_fix .chained = true, .chain_id = ALC255_FIXUP_DELL1_MIC_NO_PRESENCE }, + [ALC282_FIXUP_ACER_DISABLE_LINEOUT] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x1b, 0x411111f0 }, + { 0x18, 0x01a1913c }, /* use as headset mic, without its own jack detect */ + { }, + }, + .chained = true, + .chain_id = ALC269_FIXUP_HEADSET_MODE + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -8569,6 +8580,22 @@ static const struct snd_hda_pin_quirk al {0x12, 0x90a60140}, {0x19, 0x04a11030}, {0x21, 0x04211020}), + SND_HDA_PIN_QUIRK(0x10ec0282, 0x1025, "Acer", ALC282_FIXUP_ACER_DISABLE_LINEOUT, + ALC282_STANDARD_PINS, + {0x12, 0x90a609c0}, + {0x18, 0x03a11830}, + {0x19, 0x04a19831}, + {0x1a, 0x0481303f}, + {0x1b, 0x04211020}, + {0x21, 0x0321101f}), + SND_HDA_PIN_QUIRK(0x10ec0282, 0x1025, "Acer", ALC282_FIXUP_ACER_DISABLE_LINEOUT, + ALC282_STANDARD_PINS, + {0x12, 0x90a60940}, + {0x18, 0x03a11830}, + {0x19, 0x04a19831}, + {0x1a, 0x0481303f}, + {0x1b, 0x04211020}, + {0x21, 0x0321101f}), SND_HDA_PIN_QUIRK(0x10ec0283, 0x1028, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE, ALC282_STANDARD_PINS, {0x12, 0x90a60130},