Skip to content

Commit 9ef52d5

Browse files
charleskeepaxbroonie
authored andcommitted
ASoC: SDCA: Correct handling of selected mode DisCo property
mipi-sdca-ge-selectedmode-controls-affected is actually required by the specification so the code should return an error if it is missing. Reported-by: Maciej Strozek <mstrozek@opensource.cirrus.com> Fixes: 13fe7497af19 ("ASoC: SDCA: Add support for GE Entity properties") Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://patch.msgid.link/20250321135324.380237-1-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 5a4dd52 commit 9ef52d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/sdca/sdca_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ static int find_sdca_entity_ge(struct device *dev,
11591159

11601160
num_affected = fwnode_property_count_u8(entity_node,
11611161
"mipi-sdca-ge-selectedmode-controls-affected");
1162-
if (!num_affected || num_affected == -EINVAL) {
1162+
if (!num_affected) {
11631163
return 0;
11641164
} else if (num_affected < 0) {
11651165
dev_err(dev, "%s: failed to read affected controls: %d\n",

0 commit comments

Comments
 (0)