Skip to content

Commit 4eb6ad5

Browse files
charleskeepaxbroonie
authored andcommitted
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: 42b144c ("ASoC: SDCA: Add SDCA Control parsing") Signed-off-by: Charles Keepax <[email protected]> Reviewed-by: Pierre-Louis Bossart <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent bfd2912 commit 4eb6ad5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sound/soc/sdca/sdca_functions.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,8 @@ static int find_sdca_entity_control(struct device *dev, struct sdca_entity *enti
881881
control->value = tmp;
882882
control->has_fixed = true;
883883
}
884-
884+
fallthrough;
885+
case SDCA_ACCESS_MODE_RO:
885886
control->deferrable = fwnode_property_read_bool(control_node,
886887
"mipi-sdca-control-deferrable");
887888
break;

0 commit comments

Comments
 (0)