]> git.hungrycats.org Git - linux/commit
ALSA: hda: cs35l56: Fix lifecycle of codec pointer
authorSimon Trimmer <simont@opensource.cirrus.com>
Fri, 31 May 2024 11:27:16 +0000 (12:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2024 07:53:28 +0000 (09:53 +0200)
commit086cc2e8d7464a9e6e87c3ac9d1e9264024d95a9
treeaa739147890cabd89f5f26f1b6e767bc4cb7ca9d
parent89c16e7a7850bf7ad7381e222527996c1e9e78bf
ALSA: hda: cs35l56: Fix lifecycle of codec pointer

[ Upstream commit d339131bf02d4ed918415574082caf5e8af6e664 ]

The codec should be cleared when the amp driver is unbound and when
resuming it should be tested to prevent loading firmware into the device
and ALSA in a partially configured system state.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20240531112716.25323-1-simont@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/pci/hda/cs35l56_hda.c