diff options
author | Shengjiu Wang <shengjiu.wang@freescale.com> | 2014-12-10 14:49:45 +0800 |
---|---|---|
committer | Shengjiu Wang <shengjiu.wang@freescale.com> | 2014-12-11 17:23:38 +0800 |
commit | 644e274a982a7559b8df4bbd4dde80268166cfd2 (patch) | |
tree | 365badf066e07259e053e3711469202dcb4625c3 | |
parent | 6966e95596a23a105caffdbff11965b3c8a3a764 (diff) |
MLK-9856: ASoC: imx-hdmi: fix the failure in module test
The kernel log is
[<8000dcd8>] (__dabt_svc+0x38/0x60) from [<8067d218>] (mutex_lock+0xc/0x4c)
[<8067d218>] (mutex_lock+0xc/0x4c) from [<804f8c48>] (snd_soc_dapm_stream_event+0x20/0xe4)
[<804f8c48>] (snd_soc_dapm_stream_event+0x20/0xe4) from [<804fa5b4>] (close_delayed_work+0x3c/0x48)
[<804fa5b4>] (close_delayed_work+0x3c/0x48) from [<80042c68>] (process_one_work+0xfc/0x34c)
[<80042c68>] (process_one_work+0xfc/0x34c) from [<80043700>] (worker_thread+0x144/0x3a4)
[<80043700>] (worker_thread+0x144/0x3a4) from [<80048d7c>] (kthread+0xa4/0xb0)
[<80048d7c>] (kthread+0xa4/0xb0) from [<8000e1d8>] (ret_from_fork+0x14/0x3c)
The alsa driver use shedule_delayed_work when close pcm in remove module.
But after remove module the resource is released, so there will be kernel dump.
So here use ignore_pmdown_time to avoid to use shedule_delayed_work, then this
issue can be avoided.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
-rw-r--r-- | sound/soc/fsl/imx-hdmi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-hdmi.c b/sound/soc/fsl/imx-hdmi.c index 5a8fcadc2fde..de9df517f71b 100644 --- a/sound/soc/fsl/imx-hdmi.c +++ b/sound/soc/fsl/imx-hdmi.c @@ -1,7 +1,7 @@ /* * ASoC HDMI Transmitter driver for IMX development boards * - * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. + * Copyright (C) 2011-2014 Freescale Semiconductor, Inc. * * based on stmp3780_devb_hdmi.c * @@ -29,6 +29,7 @@ static struct snd_soc_dai_link imx_hdmi_dai_link = { .codec_dai_name = "hdmi-hifi", .codec_name = "hdmi-audio-codec", .platform_name = "imx-hdmi-audio", + .ignore_pmdown_time = 1, }; static struct snd_soc_card snd_soc_card_imx_hdmi = { |