Skip to content

Commit bc5b332

Browse files
kartbenfabiobaltieri
authored andcommitted
drivers: audio: max98091: fix max98091_set_property error handling
Don't systematically return -EINVAL when property actually exists Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent 3ce5226 commit bc5b332

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/audio/max98091.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ static int max98091_set_property(const struct device *dev, audio_property_t prop
232232
{
233233
switch (property) {
234234
case AUDIO_PROPERTY_OUTPUT_VOLUME:
235-
max98091_out_volume_config(dev, channel, val.vol);
235+
return max98091_out_volume_config(dev, channel, val.vol);
236236
case AUDIO_PROPERTY_OUTPUT_MUTE:
237-
max98091_out_mute_config(dev, channel, val.mute);
237+
return max98091_out_mute_config(dev, channel, val.mute);
238238
default:
239239
return -EINVAL;
240240
}

0 commit comments

Comments
 (0)