]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: core: Init pcm runtime work early to avoid warnings
authorCurtis Malainey <cujomalainey@chromium.org>
Tue, 3 Dec 2019 17:30:07 +0000 (09:30 -0800)
committerMark Brown <broonie@kernel.org>
Wed, 4 Dec 2019 11:15:30 +0000 (11:15 +0000)
commit0652bb5b001a41f7b3a476becc4f03ec767f165e
treee45468415a1ab214b52cb095d0bbf13f327178d6
parente67b218e5e70e75f1b7896469b56c5345e51ca21
ASoC: core: Init pcm runtime work early to avoid warnings

There are cases where we fail before we reach soc_new_pcm which would
init the workqueue. When we fail we attempt to flush the queue which
generates warnings from the workqueue subsystem when we have not inited
the queue. Solution is to use a proxy function to get around this issue.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20191203173007.46504-1-cujomalainey@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-compress.c
sound/soc/soc-core.c
sound/soc/soc-pcm.c