OSDN Git Service

ASoC: cs35l56: Wait for init_complete in cs35l56_component_probe()
authorSimon Trimmer <simont@opensource.cirrus.com>
Fri, 14 Apr 2023 13:37:51 +0000 (14:37 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 17 Apr 2023 11:55:49 +0000 (12:55 +0100)
commit440c2d38950f738d7a35d3d29533728e74586d54
tree145b3e7207dc255a32701f1ddb783fd50b2a95ee
parentb82396122b028a07ce2977e3f33123d7ab526d91
ASoC: cs35l56: Wait for init_complete in cs35l56_component_probe()

Moving the wait from the beginning of the cs35l56_dsp_work() into
cs35l56_component_probe() will prevent the limbo situation that is an
artifact of the two stage SoundWire driver probe and initialisation
where the card is all registered and shows in ALSA but doesn't actually
work because the hardware didn't enumerate.

The other bus drivers perform the probe and init sequentially and are
not susceptible to this issue.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230414133753.653139-4-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l56.c