From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F85DC433DF for ; Mon, 10 Aug 2020 15:20:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C996622BEA for ; Mon, 10 Aug 2020 15:20:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597072808; bh=y27Zhu8F9W1JK886ANmln+6mHUPnci9sProeWuTqNfQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=dYZd7y1UcvFBGN0u6nnf8cZ6kXZsBjo4KYw/LyQvv9QQlHsWGQhK/Z3XSD2kkT6Ct WlJGgo/nsDoL0QeWQh0Jklez1GUp6dkVSTbaVwh5OmC7CDx44AwNTkI1pFzuMxbSCB fpuGTl6bzAQ5Z2PeK9jlNaGD/1eNSohwJPliUrrs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727891AbgHJPUG (ORCPT ); Mon, 10 Aug 2020 11:20:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:50336 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727880AbgHJPUG (ORCPT ); Mon, 10 Aug 2020 11:20:06 -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 349AB22B4B; Mon, 10 Aug 2020 15:20:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597072805; bh=y27Zhu8F9W1JK886ANmln+6mHUPnci9sProeWuTqNfQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=thaHSn7pEH+CF/jfuiGeZP44L0KIBV4GVZQws96g5XEp0fi0mAYnB/ezKBf06/IvD BjA04RHpkjDOC/ts8C1a6YWa+QT/q8lqYmDgZlT3IKyaOAhV/d1GRYDWvJ9xWMeYgC 0rSZygu8fA047QnPEkXkXCrC7Y/4VPpF5KvWALnQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Connor McAdams , Takashi Iwai Subject: [PATCH 5.8 09/38] ALSA: hda/ca0132 - Fix ZxR Headphone gain control get value. Date: Mon, 10 Aug 2020 17:18:59 +0200 Message-Id: <20200810151804.360159192@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200810151803.920113428@linuxfoundation.org> References: <20200810151803.920113428@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Connor McAdams commit a00dc409de455b64e6cb2f6d40cdb8237cdb2e83 upstream. When the ZxR headphone gain control was added, the ca0132_switch_get function was not updated, which meant that the changes to the control state were not saved when entering/exiting alsamixer. Signed-off-by: Connor McAdams Cc: Link: https://lore.kernel.org/r/20200803002928.8638-1-conmanx360@gmail.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_ca0132.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/sound/pci/hda/patch_ca0132.c +++ b/sound/pci/hda/patch_ca0132.c @@ -5749,6 +5749,11 @@ static int ca0132_switch_get(struct snd_ return 0; } + if (nid == ZXR_HEADPHONE_GAIN) { + *valp = spec->zxr_gain_set; + return 0; + } + return 0; }