Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4420627pxa; Mon, 10 Aug 2020 08:40:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQUwO6eZivYulBId5I9eG8GXo0HVcxYpywJKse4VmhT2Hr/Yp7l9El/MiGmGwRPP+mHhKF X-Received: by 2002:a50:f396:: with SMTP id g22mr21969989edm.220.1597074047757; Mon, 10 Aug 2020 08:40:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597074047; cv=none; d=google.com; s=arc-20160816; b=KkUegLtlqUSZ8XQSGWsHiN9OJhDn1wVcGtcElrTHX2VEwtpS1ETbVt5A3ie2eQ7QUM dudtmyYHqvJ63RKxSVHzPhjwjVVuL1WbcTbq/RdbVFCeUzlioN+aA8dS/8ebIefUQ4rE SzrM/aJJKfMq+GeQ94FC/yvJGgrD8WRmze+oLEO45NLLCtutGxA8uRvRqDZCpzXiHg7V wjpKTxCZkzCQV/HRIVpVhM4V/t6vHTBWKEVQo0Mp+9sEtBGuHgeyBnzlcisfbfjaIGgc FPaov9Rp+dRa3LtTS9hETiJXFO44qH8cBArN0cipKKKzAa8NWw4COKvZkk+BADtZrZHw X+6Q== 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=9BXSTH3h4eeuSIX+X97mys44lZDfGmyW23ubdydjjZA=; b=bmAhKUYZKeKEwjGCoLs1JqyMLMXa9bj+tLJjPy1/5oVLOxeqOIrBRxMlxRUZwv4HZD H2kbNggQTa5ifcO/Kxv/fOI/rwvsthcoTwstxju0j7/4f6JVrYl3uFcXw6tu2LAY3ZBa hXYWDzyg/R/iY51iPEoOOBddmWpj7mbR3jjCDwCe2SWRVfdz6EDVcOHjaBh5CDm3wXRu nwg2BsvePduz4Cq1j2nLRgZ22PQRr0cRPXkH/g0YQX89DdiZO8q0b2pM/k+DJyoWQk4U 8QTFTqm6PcrBw+1xFIgYCgGfb+6ypSDpa4hjHaBB4Nlgr4N9vvND15VeHVO5fe9DpnpE 724A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MMbW2gR1; 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 v21si7580268ejg.482.2020.08.10.08.40.24; Mon, 10 Aug 2020 08:40:47 -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=MMbW2gR1; 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 S1728943AbgHJPiL (ORCPT + 99 others); Mon, 10 Aug 2020 11:38:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:60080 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728619AbgHJP0J (ORCPT ); Mon, 10 Aug 2020 11:26:09 -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 6852322B47; Mon, 10 Aug 2020 15:26:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597073169; bh=wbJkXYzP4NTlhdtfFxMAEuOaGDEharlTk8bywJATAuk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MMbW2gR1w/NA6A2sLO1hT38CCe81uFnXRBu0WGk++/E8yNaBYa6Pop6+NoI5JTCkK GDy6Hps6egNWzUGT57ncI9y1xOxLCCBBXRlLG2s3xaUXspedQ3rDKQmPqPCYumaHS2 gISex2QoxMH0Smuuk6P5Tmrn/Itm3ho/my0SeQe0= 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.4 11/67] ALSA: hda/ca0132 - Fix ZxR Headphone gain control get value. Date: Mon, 10 Aug 2020 17:20:58 +0200 Message-Id: <20200810151809.984317011@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200810151809.438685785@linuxfoundation.org> References: <20200810151809.438685785@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 @@ -5748,6 +5748,11 @@ static int ca0132_switch_get(struct snd_ return 0; } + if (nid == ZXR_HEADPHONE_GAIN) { + *valp = spec->zxr_gain_set; + return 0; + } + return 0; }