ALSA: hda: cs35l56: Set the init_done flag before component_add()
authorSimon Trimmer <simont@opensource.cirrus.com>
Mon, 25 Mar 2024 14:55:10 +0000 (14:55 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 25 Mar 2024 16:19:46 +0000 (17:19 +0100)
commitcafe9c6a72cf1ffe96d2561d988a141cb5c093db
tree88d7556cce088e2cfd4fe703cc8c54e8b3935b37
parent3c953163447e00bbb302666d68323cdb732c722f
ALSA: hda: cs35l56: Set the init_done flag before component_add()

Initialization is completed before adding the component as that can
start the process of the device binding and trigger actions that check
init_done.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes: 73cfbfa9caea ("ALSA: hda/cs35l56: Add driver for Cirrus Logic CS35L56 amplifier")
Message-ID: <20240325145510.328378-1-rf@opensource.cirrus.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/cs35l56_hda.c