Skip to content

Commit d4c0532

Browse files
author
Lucas Tanure
committed
ASoC: clsic-alg: Call wm_adsp2_remove to free controls memory
Change-Id: Ic2c58585414745c76c5b80f69b075894088d5c27 Signed-off-by: Lucas Tanure <[email protected]>
1 parent e2dbbf6 commit d4c0532

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sound/soc/codecs/clsic-alg.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,6 +1634,10 @@ static int clsic_alg_remove(struct platform_device *pdev)
16341634
snd_soc_unregister_codec(&pdev->dev);
16351635
module_put(alg->clsic->dev->driver->owner);
16361636

1637+
wm_adsp2_remove(&alg->dsp[CLSIC_DSP1]);
1638+
wm_adsp2_remove(&alg->dsp[CLSIC_DSP2]);
1639+
wm_adsp2_remove(&alg->dsp[CLSIC_VPU1]);
1640+
16371641
return 0;
16381642
}
16391643

0 commit comments

Comments
 (0)