From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 263E7423A8B; Tue, 31 Mar 2026 16:33:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774974794; cv=none; b=ei+WXQsXZ/qNuUGBfzRBjHGC/D+DchBzsdc55CwmaSECwMU8bHYW/zDBLzaeAWb5TqG4vzXrjKu75Vivb9EpgEvFg9A2K6UG6FG41gpcLdxNUlk8vOUeb/nDbpBm2jV0JMWAQP/2Svi4hgvJPxSV/+imn20INd9N030CttjFMQ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774974794; c=relaxed/simple; bh=vpLUUSQGsgpKNgEGOFCYeqTldtAxyKYSUnmP0Sn5+0Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=i9rwkI1Cj0B2JKf0YI7O46SOkzVzl6EXhAVOpVbVTRggySUGilCBabuW144G2SvIRhU6KU0nw1dDuIMf/CHgwa2ogYZV40NDEO1M6tNWG4iGDLXbmzr0Z/3nxQwbBOWktXWHCTg17a17aYPC9Euc87Oyk1DJI26cMGJOMCIdybI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rs5gkdcu; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="rs5gkdcu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0664C19423; Tue, 31 Mar 2026 16:33:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774974794; bh=vpLUUSQGsgpKNgEGOFCYeqTldtAxyKYSUnmP0Sn5+0Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rs5gkdcuy2uStQ8+lWf6vce5t4JsEYbvakBQbVPb4xwPIELe/CMyDQQJLi0cGFzg9 XDFcF6FLVO15UVCaMa6RmHQ8IeT0G+3G/dKvpByo+C69yyC6P/hoS4t+HKcU2/wJZ0 T4RoBz5wrMu96xtPWp5m9yGIzu7ZF/RtGWO6jTl8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Mark Brown , Sasha Levin Subject: [PATCH 6.19 046/342] ASoC: fsl_easrc: Fix event generation in fsl_easrc_iec958_set_reg() Date: Tue, 31 Mar 2026 18:17:59 +0200 Message-ID: <20260331161800.595029681@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260331161758.909578033@linuxfoundation.org> References: <20260331161758.909578033@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mark Brown [ Upstream commit 31ddc62c1cd92e51b9db61d7954b85ae2ec224da ] ALSA controls should return 1 if the value in the control changed but the control put operation fsl_easrc_set_reg() only returns 0 or a negative error code, causing ALSA to not generate any change events. Add a suitable check by using regmap_update_bits_check() with the underlying regmap, this is more clearly and simply correct than trying to verify that one of the generic ops is exactly equivalent to this one. Signed-off-by: Mark Brown Link: https://patch.msgid.link/20260205-asoc-fsl-easrc-fix-events-v1-2-39d4c766918b@kernel.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/fsl/fsl_easrc.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c index e64a0d97afd0c..733374121196e 100644 --- a/sound/soc/fsl/fsl_easrc.c +++ b/sound/soc/fsl/fsl_easrc.c @@ -93,14 +93,17 @@ static int fsl_easrc_set_reg(struct snd_kcontrol *kcontrol, struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); struct soc_mreg_control *mc = (struct soc_mreg_control *)kcontrol->private_value; + struct fsl_asrc *easrc = snd_soc_component_get_drvdata(component); unsigned int regval = ucontrol->value.integer.value[0]; + bool changed; int ret; - ret = snd_soc_component_write(component, mc->regbase, regval); - if (ret < 0) + ret = regmap_update_bits_check(easrc->regmap, mc->regbase, + GENMASK(31, 0), regval, &changed); + if (ret != 0) return ret; - return 0; + return changed; } #define SOC_SINGLE_REG_RW(xname, xreg) \ -- 2.51.0