From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 234F749891A; Wed, 23 Sep 2026 14:21:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790173280; cv=none; b=q9NFjZ9j+Muh/gq4iaLW9vqOuPU3HMvS4h4T8P/OC/NYzDdyc+9N5294P/nNnHsCE3DJb6pMVSfHIcIac5nfmRc270LqqHtjL1+OLo+vR3OqMFV9iQPZD74zumBAgQ/DSnuXQ98Qyk+XkGhn4L4Wg/+R0gqJwNgiUJTPPXQheQ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790173280; c=relaxed/simple; bh=XwjmhEvJ4vQ5+HHHdcbig0Qh2Pd2/03K4EhriuimguA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gap6ioEX9fErKIaIF8a74OKcyP2FuidV9jq3Z32Y8q+sGfehlSb/nzjVWSwVjmWofPNqCnSZQaxZ0l8lIC1d6J+CmRLZfq6LdLwYOCh4taMQhHk8NtUOjN5pPu6Ow8/LA2o5YPSINhobUmi7QVYTO2Evc6N9KHZh6NR4tCpTaGU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=S9mDNOZS; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="S9mDNOZS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63B4C1F000FF; Wed, 23 Sep 2026 14:21:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790173279; bh=UegVMEph0nrqLOefS7hJ4qDZvLhR6K3mF0Dp6E9CvyY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=S9mDNOZSzKoJzSZM1Xnna9jENPnpurWuIc1aDTWQsdTNtxRaSl++MS1TmiiKoQIWV TZrRH8wM6qICjWoe0gg733W0KvEPJy85Xe9IEdu2Kd4LHI6irGXQT1gRlnBaxj3Q3a lw3q+RQnt0zJ7l1WgUQ6lutVlhoY6OiA2zmbBvY8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, HyeongJun An , Mark Brown , Sasha Levin Subject: [PATCH 7.2 198/438] ASoC: hdmi-codec: Report a change when the channel status moves Date: Wed, 23 Sep 2026 16:03:39 +0200 Message-ID: <20260923140649.889948251@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260923140644.756254324@linuxfoundation.org> References: <20260923140644.756254324@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.2-stable review patch. If anyone has any objections, please let me know. ------------------ From: HyeongJun An [ Upstream commit c17ae8c26eac16ad244daef44044d714f68a2ddc ] The put() callback of "IEC958 Playback Default" stores all 24 channel status bytes and then returns 0. The core notifies userspace only on a positive return, so a write that changes what the get() callback hands back is never announced, and a mixer holding the control open keeps showing the old value. Compare the stored bytes and return 1 when they move, the way snd_hda_spdif_default_put() does. The same shape is in img-spdif-out and uniperif_player. No board with this codec was to hand. The change is a comparison of driver state with no hardware behaviour in it, and mixer-test counts the missing notification as event_missing. Fixes: 7a8e1d44211e ("ASoC: hdmi-codec: Add iec958 controls") Signed-off-by: HyeongJun An Assisted-by: Claude:claude-opus-5 Link: https://patch.msgid.link/20260915092515.2638542-1-sammiee5311@gmail.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/hdmi-codec.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c index 13ae9e83bc21f..2db9cf8ec6e96 100644 --- a/sound/soc/codecs/hdmi-codec.c +++ b/sound/soc/codecs/hdmi-codec.c @@ -425,10 +425,14 @@ static int hdmi_codec_iec958_default_put(struct snd_kcontrol *kcontrol, struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); struct hdmi_codec_priv *hcp = snd_soc_component_get_drvdata(component); + if (!memcmp(hcp->iec_status, ucontrol->value.iec958.status, + sizeof(hcp->iec_status))) + return 0; + memcpy(hcp->iec_status, ucontrol->value.iec958.status, sizeof(hcp->iec_status)); - return 0; + return 1; } static int hdmi_codec_iec958_mask_get(struct snd_kcontrol *kcontrol, -- 2.53.0