Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4407457pxa; Mon, 10 Aug 2020 08:23:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1n3i+FE85nUWrAF89/gdPAMjmlzn44OxlqXsM9Fbv1Y8vGYJBdqnU06/9b10NUz5NrJcy X-Received: by 2002:a17:906:c002:: with SMTP id e2mr23103247ejz.244.1597073025050; Mon, 10 Aug 2020 08:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597073025; cv=none; d=google.com; s=arc-20160816; b=TN7FjaHmRZxk8qKlMELhwoWmf9f4yP9q+shq+8hAE8geahdtkRHm8zNTv526ik/JCZ gotW1BJ1o1uN2uAoU15UMrtXaBgp1l5b7kVngb4zTE96aI54lzBdtVzzQB3CSRpoz9IK AB0rIQjAPtOKLGoi5sYr3Jr3jeu/LUHiCUHHJBNC9UWRquIxlRaFhl7cbrKnsMWMHe2i tIYQ4eXOOhjWlKM2cwx2AlALzmjnwSnCDbUEFhRdeDXeznbKz0r0zwX+O/rrFAihf4WQ VpISE4/qG/yVcszAYrRXC239EAd2BpBhvRtcPfBbkPflGaQGinpeyAZAopBqB107GLVF BKWQ== 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=O9KYfVDTvGQjdZgUxedHr3jWDc+IOYmqopz+CQDiS40=; b=C5yI6qIjo0/20Oidr7myMijsy0ZHnFQLK5bodVVDfidVaRwbbZzoA+dtRznJwj7X3Y 6DSQNu3u68HiskzVtYPUTo52DCgWBJ/MKI80U6nzhbyfnvHRsfwtPrh45u9M++iIJOvd RLexiSfTHFOR1gXnRD59jLdWXKBA3r5ROHavbSqVlGl5OYMEoaOGX+Qw2xczxN/s0mlK JhewOEsL0ubras8zhoN03qHrQ1hZLEZ4bEoXGjbg7ufDI5JgjUJnkMJKLS5LQw6orezh Weowm2KLyM46JVGX0cfbp8Qet8Lo0B/CjlirVwMko3/GHqh2Hlnq7h346F+GZ864/SfA qK8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=thaHSn7p; 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 v15si10405664edq.579.2020.08.10.08.23.22; Mon, 10 Aug 2020 08:23:45 -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=thaHSn7p; 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 S1727915AbgHJPUK (ORCPT + 99 others); Mon, 10 Aug 2020 11:20:10 -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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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; }