ALSA: hda: cs35l41: Check CSPL state after loading firmware
authorStefan Binding <sbinding@opensource.cirrus.com>
Thu, 26 Oct 2023 15:05:57 +0000 (16:05 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 26 Oct 2023 15:55:22 +0000 (17:55 +0200)
commita51d8ba03a4fc92940d5e349f0325f36e85a89cb
tree5ecf74be0131b63797385a889372624d0f07e8b2
parent33790d1f039114a829433b89fc55a0d781d38d62
ALSA: hda: cs35l41: Check CSPL state after loading firmware

CSPL firmware should be in RUNNING or PAUSED state after loading.
If not, the firmware has not been loaded correctly, and we can unload
it and pass the error up.

Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20231026150558.2105827-8-sbinding@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/cs35l41_hda.c