summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-sii902x.c
diff options
context:
space:
mode:
authorZidan Wang <zidan.wang@freescale.com>2016-01-20 09:50:40 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:50:04 +0800
commit5bc6557674611923916d7f02beec502fae087ae6 (patch)
tree1ad2e3131921328757ad7cc5b777336763017a13 /sound/soc/fsl/imx-sii902x.c
parentc770ac5d82d0937d408e3c267027ea37660d0ebd (diff)
MLK-12244 ASoC: fsl: Set the sound card owner field
When load sound card, the pulseaudio will using the sound card to playback and record. It may be cause a kernel crash when the sound card is unloaded while the playback/record is active After setting the sound card owner field, when pulseaudio is running, the sound card module ref-count will not be 0 and the sound card will not be unloaded. So you should stop the pulseaudio when you want to unload the sound card. Signed-off-by: Zidan Wang <zidan.wang@freescale.com> [ Aisheng: hdmi change merged into hdmi branch ] Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Diffstat (limited to 'sound/soc/fsl/imx-sii902x.c')
-rw-r--r--sound/soc/fsl/imx-sii902x.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-sii902x.c b/sound/soc/fsl/imx-sii902x.c
index 7cd19faa8617..f66ecf59c016 100644
--- a/sound/soc/fsl/imx-sii902x.c
+++ b/sound/soc/fsl/imx-sii902x.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2015 Freescale Semiconductor, Inc.
+ * Copyright (C) 2015-2016 Freescale Semiconductor, Inc.
*
* The code contained herein is licensed under the GNU General Public
* License. You may obtain a copy of the GNU General Public License
@@ -225,6 +225,7 @@ static int imx_sii902x_probe(struct platform_device *pdev)
SND_SOC_DAIFMT_CBS_CFS;
data->card.dev = &pdev->dev;
+ data->card.owner = THIS_MODULE;
ret = snd_soc_of_parse_card_name(&data->card, "model");
if (ret)
goto fail;