Skip to content
Commit dc6e08b1 authored by Harshit Mogalapalli's avatar Harshit Mogalapalli Committed by Takashi Iwai
Browse files

ALSA: hda: cs35l41: Fix missing error code in cs35l41_smart_amp()



When firmware status is invalid, assign -EINVAL to ret as ret is '0' at
that point and returning success is incorrect when firmware status is
invalid.

Fixes: a51d8ba0 ("ALSA: hda: cs35l41: Check CSPL state after loading firmware")
Signed-off-by: default avatarHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Link: https://lore.kernel.org/r/20231030070836.3234385-1-harshit.m.mogalapalli@oracle.com


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 2dc15ff7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment