[alsa-devel] [PATCH] ASoC: rt5645: fix kernel hang when call rt5645_set_jack_detect()

Mark Brown broonie at kernel.org
Tue May 19 14:11:09 CEST 2015


On Mon, May 18, 2015 at 10:34:03AM +0800, John Lin wrote:
> rt5645_set_jack_detect() is usually called from
> snd_soc_dai_link.init() and it calls snd_soc_jack_report() from
> rt5645_irq_detection() if jack is inserted. snd_soc_jack_report()
> results in kernel hang if it is called from a context which cannot
> sleep.

Applied, thanks - I rather suspect this is a case of trying to reacquire
the same lock rather than being called from a context that can't sleep
though, we shouldn't be doing device init in atomic context.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20150519/c38bd97f/attachment.sig>


More information about the Alsa-devel mailing list