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 465A83D813D; Wed, 8 Apr 2026 18:07:50 +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=1775671670; cv=none; b=SgjidcEIlZo1Y6Ie+S5/ZitGolBA6mATAZIt4W0SVZ0+2UjGni2xO1ONAY4PyhzWW/Iy3WhH4+QxGwWB1tHIFzllSomThYV4PeSJH8c+KSrBgmf/MG5xbByLf0AHrzvF3FQQDY3rIhgAawCgXQ30RnYAfGnYdRy+A6OOBlj4OCU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775671670; c=relaxed/simple; bh=Rmh9Yqkx8IKpY/Km5qR8Y9/donU/l3NPdl3uyDePtIw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bFmRUyzCDICJ+vapifxlpqw6lfsX1qoZaQJmPgd9i5GpmPa0SEkjtfbKhfJ8Q5qOWA7HBuaH0HorqqapxbiaESjhF5DPHhqiW4yZV+8SO4HHHJOJDIlFevTJay4o2Wpwxt0FacsBza2cPRPUW/UbBwEZDaMHmBUqg6G0Mdx08SA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=x2wDM7cX; 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="x2wDM7cX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1AFAC19421; Wed, 8 Apr 2026 18:07:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775671670; bh=Rmh9Yqkx8IKpY/Km5qR8Y9/donU/l3NPdl3uyDePtIw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x2wDM7cXtO/GwlWZ7eYDFuiKLJm1LOCc0f6k+a8MlmbIvbLPEOl1LDY/tDwbRm/ct 88ehAsKDMGPcKCr7HjkO6MaL1+b6oWg/uSxX+gU6morqcodq3G80AWnuJyMuUArsrR 96SxA5WAKPoKiUQfoztX5OFONcH9xzBihDuYqpf4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Mark Brown , Sasha Levin Subject: [PATCH 6.1 015/312] ASoC: fsl_easrc: Fix event generation in fsl_easrc_iec958_set_reg() Date: Wed, 8 Apr 2026 19:58:52 +0200 Message-ID: <20260408175934.300545612@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260408175933.715315542@linuxfoundation.org> References: <20260408175933.715315542@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.1-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 210ca7199adab..8cf414ab1295b 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