diff mbox series

[v1,4/4] ALSA: hda/realtek: Delete cs35l41 component master during free

Message ID 168148597653.26.9417569568632907166@mailman-core.alsa-project.org
State Superseded
Headers show
Series [v1,1/4] ALSA: hda: cs35l41: Clean up Firmware Load Controls | expand

Commit Message

Stefan Binding April 14, 2023, 3:25 p.m. UTC
This ensures that the driver is properly cleaned up when freed.

Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
---
 sound/pci/hda/patch_realtek.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 3b9f077a227f7..bbeffbb84091e 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -6757,6 +6757,8 @@  static void cs35l41_generic_fixup(struct hda_codec *cdc, int action, const char
 		else
 			spec->gen.pcm_playback_hook = comp_generic_playback_hook;
 		break;
+	case HDA_FIXUP_ACT_FREE:
+		component_master_del(dev, &comp_master_ops);
 	}
 }