Received: by 2002:a17:90a:bc8d:0:0:0:0 with SMTP id x13csp1571787pjr; Mon, 18 May 2020 16:44:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQm6ClC2++JZSa7E+h9/fIOxSrp66V0UgIMrhM/aZE8BuLd5T20QqilzRcp6x3zfee3akE X-Received: by 2002:a05:6402:555:: with SMTP id i21mr6857881edx.119.1589845445985; Mon, 18 May 2020 16:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589845445; cv=none; d=google.com; s=arc-20160816; b=wyOAt/u2b+fQEsmD+4b1Fa99gs01ZVJUSMxhfj8chGC4h6GyCTS3YdNX9gHd5Iobgf Qqn1otRiHiX4czDXKPt2OquZZOW73LjT6FiKp2bKnmMmS/8txHUCyBDim/AlYWE+GhMe lKN3r0oOIIt/+vrNXeYZggSVO/BJ5SdO37xnuUHn2dwIn8o2J7VV93hFNOjD+nmMUFGx xfT2T20/6JAyidGkkyfNw2bWebJ5zrqUyBEGJve1A4BSUqHUyw0OdTDZlEgXJy1bKR2S Mb27O+q5oNpZGukgbZuleyljb5Kt9cBlmqkxJTkj+nYmfJkfbfk8uCkyRFfsr8DOme19 BdpQ== 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=iJwzdS+PQ1ckkGQEerygGBNqX9OVw6Yc/ULgE6cHkAU=; b=xOsoBFJpY7U3aBGFYobHLsxijKPZlz4mbFVVo0CXF6HA2pE1m88/+U+acrt5DZBSYc RtLWz2McoElabCJ/E21mQoIQGIzsgweSSuDqjBDr+LZtcDD6iIgEBG7cF2Y52VNJEZRH f3N+gvt5GVr8CQIXqqWBdGC21Q7U7hjDjj9BoJ/kN979bhguUENJ+Li3mn+qldVIvfrB aLdOGdVb6IQgrI1BJQdzJ4mPJNHGR97sZPOyVQ25/xAHGn0OE5bZmjwM+uRXKB53bapl 9vydShO9YheslzhlZDZiUyf61WgA1KYnEvJ/105fuqAWOc8tVkqJlrIqfJA7s6dnOdGk JxnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rCnh2Efs; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j5si3201763ejm.468.2020.05.18.16.43.43; Mon, 18 May 2020 16:44:05 -0700 (PDT) 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=@kernel.org header.s=default header.b=rCnh2Efs; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730974AbgERRw0 (ORCPT + 99 others); Mon, 18 May 2020 13:52:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:55662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730198AbgERRwY (ORCPT ); Mon, 18 May 2020 13:52:24 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 BFFA620674; Mon, 18 May 2020 17:52:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589824344; bh=Hu6rY2+B+FsZyOlVEIjwnv983HFrsjYCoZu3AjQrEyE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rCnh2EfsTCfV4pV29qcR0AqL99MJ9LucX8f061wAqFzuDMPxc39/NVdAQdafiurw5 Jk7cX1WvbAIWv6Ak7h2ogmYrk7hTzBbGx5cLxHqiW2eeW9V7HUB5qglTI8iQbvyWCC r4RPailfHoBcV7wD3KeNFAaLSUDwxbEUMtq2B7Jk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai Subject: [PATCH 4.19 53/80] ALSA: hda/realtek - Limit int mic boost for Thinkpad T530 Date: Mon, 18 May 2020 19:37:11 +0200 Message-Id: <20200518173501.132932239@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200518173450.097837707@linuxfoundation.org> References: <20200518173450.097837707@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Takashi Iwai commit b590b38ca305d6d7902ec7c4f7e273e0069f3bcc upstream. Lenovo Thinkpad T530 seems to have a sensitive internal mic capture that needs to limit the mic boost like a few other Thinkpad models. Although we may change the quirk for ALC269_FIXUP_LENOVO_DOCK, this hits way too many other laptop models, so let's add a new fixup model that limits the internal mic boost on top of the existing quirk and apply to only T530. BugLink: https://bugzilla.suse.com/show_bug.cgi?id=1171293 Cc: Link: https://lore.kernel.org/r/20200514160533.10337-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5616,6 +5616,7 @@ enum { ALC269_FIXUP_HP_LINE1_MIC1_LED, ALC269_FIXUP_INV_DMIC, ALC269_FIXUP_LENOVO_DOCK, + ALC269_FIXUP_LENOVO_DOCK_LIMIT_BOOST, ALC269_FIXUP_NO_SHUTUP, ALC286_FIXUP_SONY_MIC_NO_PRESENCE, ALC269_FIXUP_PINCFG_NO_HP_TO_LINEOUT, @@ -5928,6 +5929,12 @@ static const struct hda_fixup alc269_fix .chained = true, .chain_id = ALC269_FIXUP_PINCFG_NO_HP_TO_LINEOUT }, + [ALC269_FIXUP_LENOVO_DOCK_LIMIT_BOOST] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc269_fixup_limit_int_mic_boost, + .chained = true, + .chain_id = ALC269_FIXUP_LENOVO_DOCK, + }, [ALC269_FIXUP_PINCFG_NO_HP_TO_LINEOUT] = { .type = HDA_FIXUP_FUNC, .v.func = alc269_fixup_pincfg_no_hp_to_lineout, @@ -7013,7 +7020,7 @@ static const struct snd_pci_quirk alc269 SND_PCI_QUIRK(0x17aa, 0x21b8, "Thinkpad Edge 14", ALC269_FIXUP_SKU_IGNORE), SND_PCI_QUIRK(0x17aa, 0x21ca, "Thinkpad L412", ALC269_FIXUP_SKU_IGNORE), SND_PCI_QUIRK(0x17aa, 0x21e9, "Thinkpad Edge 15", ALC269_FIXUP_SKU_IGNORE), - SND_PCI_QUIRK(0x17aa, 0x21f6, "Thinkpad T530", ALC269_FIXUP_LENOVO_DOCK), + SND_PCI_QUIRK(0x17aa, 0x21f6, "Thinkpad T530", ALC269_FIXUP_LENOVO_DOCK_LIMIT_BOOST), SND_PCI_QUIRK(0x17aa, 0x21fa, "Thinkpad X230", ALC269_FIXUP_LENOVO_DOCK), SND_PCI_QUIRK(0x17aa, 0x21f3, "Thinkpad T430", ALC269_FIXUP_LENOVO_DOCK), SND_PCI_QUIRK(0x17aa, 0x21fb, "Thinkpad T430s", ALC269_FIXUP_LENOVO_DOCK), @@ -7150,6 +7157,7 @@ static const struct hda_model_fixup alc2 {.id = ALC269_FIXUP_HEADSET_MODE, .name = "headset-mode"}, {.id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC, .name = "headset-mode-no-hp-mic"}, {.id = ALC269_FIXUP_LENOVO_DOCK, .name = "lenovo-dock"}, + {.id = ALC269_FIXUP_LENOVO_DOCK_LIMIT_BOOST, .name = "lenovo-dock-limit-boost"}, {.id = ALC269_FIXUP_HP_GPIO_LED, .name = "hp-gpio-led"}, {.id = ALC269_FIXUP_HP_DOCK_GPIO_MIC1_LED, .name = "hp-dock-gpio-mic1-led"}, {.id = ALC269_FIXUP_DELL1_MIC_NO_PRESENCE, .name = "dell-headset-multi"},