From a97a819efcc7a424d1f3566b5a6d500579be8f4e Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 30 Jul 2025 18:20:02 +0200 Subject: [PATCH] ASoC: SDCA: Allow read-only controls to be deferrable JIRA: https://issues.redhat.com/browse/RHEL-101627 commit 4eb6ad5d2080681b531db2c1764246f9a868062f Author: Charles Keepax Date: Mon Jul 7 13:41:49 2025 +0100 ASoC: SDCA: Allow read-only controls to be deferrable The current SDCA Control parsing only checks the deferrable flag for Read/Write and Dual Ranked controls. However, reads can defer as well as writes so Read Only controls should also check for the deferrable flag. Add the handling for this into find_sdca_entity_control(). Fixes: 42b144cb6a2d ("ASoC: SDCA: Add SDCA Control parsing") Signed-off-by: Charles Keepax Reviewed-by: Pierre-Louis Bossart Link: https://patch.msgid.link/20250707124155.2596744-2-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown Signed-off-by: Jaroslav Kysela --- sound/soc/sdca/sdca_functions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/sdca/sdca_functions.c b/sound/soc/sdca/sdca_functions.c index 684b097b9e1d..fe5f27275279 100644 --- a/sound/soc/sdca/sdca_functions.c +++ b/sound/soc/sdca/sdca_functions.c @@ -880,7 +880,8 @@ static int find_sdca_entity_control(struct device *dev, struct sdca_entity *enti control->value = tmp; control->has_fixed = true; } - + fallthrough; + case SDCA_ACCESS_MODE_RO: control->deferrable = fwnode_property_read_bool(control_node, "mipi-sdca-control-deferrable"); break;