ALSA: cs35l41: Poll for Power Up/Down rather than waiting a fixed delay
authorStefan Binding <sbinding@opensource.cirrus.com>
Fri, 21 Jul 2023 15:18:07 +0000 (16:18 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 24 Jul 2023 08:59:59 +0000 (10:59 +0200)
commitf8264c7592088727629e14f396f95ad643847740
tree2aa0caf1e8ca3b979c9d9860d556c8efa154442e
parentfa3efcc36aacdd8ac9372217970d0ed2eb293fcc
ALSA: cs35l41: Poll for Power Up/Down rather than waiting a fixed delay

To ensure the chip has correctly powered up or down before continuing,
the driver will now poll a register, rather than wait a fixed delay.

Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230721151816.2080453-3-sbinding@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/codecs/cs35l41-lib.c
sound/soc/codecs/cs35l41.c