Skip to content

Commit 48102d8

Browse files
Srinivas Kandagatlagregkh
authored andcommitted
ASoC: qcom: q6apm: remove child devices when apm is removed
commit 4a0e1bc upstream. looks like q6apm driver does not remove the child driver q6apm-dai and q6apm-bedais when the this driver is removed. Fix this by depopulating them in remove callback. With this change when the dsp is shutdown all the devices associated with q6apm will now be removed. Fixes: 5477518 ("ASoC: qdsp6: audioreach: add q6apm support") Cc: Stable@vger.kernel.org Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com> Link: https://patch.msgid.link/20260402081118.348071-3-srinivas.kandagatla@oss.qualcomm.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7cab9f2 commit 48102d8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sound/soc/qcom/qdsp6/q6apm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,7 @@ static int apm_probe(gpr_device_t *gdev)
784784

785785
static void apm_remove(gpr_device_t *gdev)
786786
{
787+
of_platform_depopulate(&gdev->dev);
787788
snd_soc_unregister_component(&gdev->dev);
788789
}
789790

0 commit comments

Comments
 (0)