Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2272242pxb; Mon, 11 Jan 2021 05:43:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKqBgluPQojQnZr/qS6QdqExAboL45JPc8o0yP9GT558e0GMcxDQVJ2b0V2zcZ24KsFOiB X-Received: by 2002:a17:906:a48:: with SMTP id x8mr10613076ejf.444.1610372635219; Mon, 11 Jan 2021 05:43:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610372635; cv=none; d=google.com; s=arc-20160816; b=bBLeIE0V9Ox8hmUD4hwmaK0niJ6AdS/FwFVtvrAJzZH6lOOPAghVou02Qqsjbc+44b 9PdLddMJMWig6f4YDLazR+Q7vOwLO6K/VwMzc3H4amh/GnPDFnWZpim5TUJ5X+Jkd0gq PawW03olL6pnLVk58fIlp4udqiCJyPQVqgANJJ+ixr4QWx+GNWFG5UuMgsC2LzJHcdc4 FNY1x4brnSnwqM7HEvJ9gYTW0C0kH/VkjbCncOR468ur8ev460LTOs8TlyrJPjJAcj2O TSLXZK5mhVunr3jmB1vt4PzBHuVoDnxQ0o6U3yBkJy7k9BsutiWe91ohAeMiRTJ21TPV xOig== 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=1RXwfKV8DfxUYEwl67dSwwHdVD8XrGBgRCsghknGfws=; b=D0reZk/u1ZHVprJ6YIvY5iOBvQSZuSJfsdeOfnGuxOezEPDmcAb83/wACNVrCMuE59 IDU8zeZNGqBiQqdFAWGGXpTbr/2bWPBJUg9qgQqIcikU2KVGedrBFF+WQDIh6In66JXY yqklP9uaT66y4lGFnn6wIAuvMWgx/i3bmoJ5dW9Qcly2qe2HJIWpqBn0MAyTYOTJcpCP DWvC5BxWWOQjur6NHboPG9yiYVsc3FsMfMd5ziG6+74tDDgAzxt/TcUPxU6wZQ5YvJBx 1Yhbakcxk34StFBSgSUrwOlDtkMQ0Fl+uVmK55mPD0q8l9sm8t2N4j3UpY0aQ1oZF09J Prsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=feaH1EDn; 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 hj13si6427537ejb.475.2021.01.11.05.43.31; Mon, 11 Jan 2021 05:43:55 -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=feaH1EDn; 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 S1731696AbhAKNlO (ORCPT + 99 others); Mon, 11 Jan 2021 08:41:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:59032 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731513AbhAKNMo (ORCPT ); Mon, 11 Jan 2021 08:12:44 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4217F21973; Mon, 11 Jan 2021 13:12:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610370748; bh=FjhDmEErWLv+VD/UaFYFFWSZMxO5uY64QUES59IVFFI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=feaH1EDnUTL2nMwHdhBsFY2YSFpTwe4LATc9MrfeoT8XaWqcbrJnSx+z5m5fiAfjT D4o4WoxOESDRpT7O4yk6KPfvXIsCh2cUxISDMzIJYx48lFQQcRTs6hzMYU+btpwuuI XOaVMftaCorejot+W9eFVBe+QsPv9cyEmNjWKt4Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kailang Yang , Takashi Iwai Subject: [PATCH 5.4 80/92] ALSA: hda/realtek - Fix speaker volume control on Lenovo C940 Date: Mon, 11 Jan 2021 14:02:24 +0100 Message-Id: <20210111130043.009580745@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210111130039.165470698@linuxfoundation.org> References: <20210111130039.165470698@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: Kailang Yang commit f86de9b1c0663b0a3ca2dcddec9aa910ff0fbf2c upstream. Cannot adjust speaker's volume on Lenovo C940. Applying the alc298_fixup_speaker_volume function can fix the issue. [ Additional note: C940 has I2S amp for the speaker and this needs the same initialization as Dell machines. The patch was slightly modified so that the quirk entry is moved next to the corresponding Dell quirk entry. -- tiwai ] Signed-off-by: Kailang Yang Cc: Link: https://lore.kernel.org/r/ea25b4e5c468491aa2e9d6cb1f2fced3@realtek.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6236,6 +6236,7 @@ enum { ALC221_FIXUP_HP_FRONT_MIC, ALC292_FIXUP_TPT460, ALC298_FIXUP_SPK_VOLUME, + ALC298_FIXUP_LENOVO_SPK_VOLUME, ALC256_FIXUP_DELL_INSPIRON_7559_SUBWOOFER, ALC269_FIXUP_ATIV_BOOK_8, ALC221_FIXUP_HP_MIC_NO_PRESENCE, @@ -7062,6 +7063,10 @@ static const struct hda_fixup alc269_fix .chained = true, .chain_id = ALC298_FIXUP_DELL_AIO_MIC_NO_PRESENCE, }, + [ALC298_FIXUP_LENOVO_SPK_VOLUME] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc298_fixup_speaker_volume, + }, [ALC295_FIXUP_DISABLE_DAC3] = { .type = HDA_FIXUP_FUNC, .v.func = alc295_fixup_disable_dac3, @@ -8040,6 +8045,7 @@ static const struct snd_pci_quirk alc269 SND_PCI_QUIRK(0x17aa, 0x3151, "ThinkCentre Station", ALC283_FIXUP_HEADSET_MIC), SND_PCI_QUIRK(0x17aa, 0x3176, "ThinkCentre Station", ALC283_FIXUP_HEADSET_MIC), SND_PCI_QUIRK(0x17aa, 0x3178, "ThinkCentre Station", ALC283_FIXUP_HEADSET_MIC), + SND_PCI_QUIRK(0x17aa, 0x3818, "Lenovo C940", ALC298_FIXUP_LENOVO_SPK_VOLUME), SND_PCI_QUIRK(0x17aa, 0x3902, "Lenovo E50-80", ALC269_FIXUP_DMIC_THINKPAD_ACPI), SND_PCI_QUIRK(0x17aa, 0x3977, "IdeaPad S210", ALC283_FIXUP_INT_MIC), SND_PCI_QUIRK(0x17aa, 0x3978, "Lenovo B50-70", ALC269_FIXUP_DMIC_THINKPAD_ACPI),