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 89D3F423A7A; Tue, 31 Mar 2026 16:33:32 +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=1774974812; cv=none; b=Q0uTCMQNUxdrOuleCzP6pe8ANnOYefmdS+UMRBPa7wE0NSdts1ETlbFlnli3WX6DHeH69GhEaoAohVG78BUKOB/F6Z1bIM7P3gJNlYCENiM82QhG+h4gx2vX1ZSVN1mgJIkHdTtDFilknv2sqSPK3tcWayL8SgKoo8fw9efLfUo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774974812; c=relaxed/simple; bh=yZ50GrGZRz2lPgtFkT2/uw6aI8IjsjhMqJO1EvYQRCk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ntiPLlOhEc6CtUYB7RtdHiss54NVRK0n5nlhAMylustpaAhZkbX5ZqY4hR+O5K8UgQb/RWFwl9jrIW/ekqThJ3TsqcCUmn35g1yxSIoi/C8Ibf3AMkGhV28IDmRsCrPDjF8LSLw6YuxARGGd7UCxU6T97hy+9aLOxFC0kF1uxSI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VSedWPyI; 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="VSedWPyI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C93D1C19423; Tue, 31 Mar 2026 16:33:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774974812; bh=yZ50GrGZRz2lPgtFkT2/uw6aI8IjsjhMqJO1EvYQRCk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VSedWPyIYDzhHJoW1eqgvdeuojL6MylrTV8DnBIyQpXgXwgkw4rufb3JJvDgi5/5n wzOCZ2DqVxkkf2V6tAWlBehJYdLJQ1EwEK+RXfzc0N+fI5QP0NrSr9LEopjEsIBtt3 xZU3Zc4IQW5IhF6YiDkHIzrGBc4yG8N1R8FTu18c= 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 052/342] ASoC: fsl_easrc: Fix event generation in fsl_easrc_iec958_put_bits() Date: Tue, 31 Mar 2026 18:18:05 +0200 Message-ID: <20260331161800.813784737@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 54a86cf48eaa6d1ab5130d756b718775e81e1748 ] ALSA controls should return 1 if the value in the control changed but the control put operation fsl_easrc_iec958_put_bits() unconditionally returns 0, causing ALSA to not generate any change events. This is detected by mixer-test with large numbers of messages in the form: No event generated for Context 3 IEC958 CS5 Context 3 IEC958 CS5.0 orig 5224 read 5225, is_volatile 0 Add a suitable check. Signed-off-by: Mark Brown Link: https://patch.msgid.link/20260205-asoc-fsl-easrc-fix-events-v1-1-39d4c766918b@kernel.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/fsl/fsl_easrc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c index 733374121196e..6c56134c60cc8 100644 --- a/sound/soc/fsl/fsl_easrc.c +++ b/sound/soc/fsl/fsl_easrc.c @@ -52,10 +52,13 @@ static int fsl_easrc_iec958_put_bits(struct snd_kcontrol *kcontrol, struct soc_mreg_control *mc = (struct soc_mreg_control *)kcontrol->private_value; unsigned int regval = ucontrol->value.integer.value[0]; + int ret; + + ret = (easrc_priv->bps_iec958[mc->regbase] != regval); easrc_priv->bps_iec958[mc->regbase] = regval; - return 0; + return ret; } static int fsl_easrc_iec958_get_bits(struct snd_kcontrol *kcontrol, -- 2.51.0