Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FROMGIT: ASoC: SOF: pcm: remove warning - initialize workqueue on open
If the SOF hw_params() fail, typically with an IPC error thrown by the firmware, the period_elapsed workqueue is not initialized, but we still cancel it in hw_free(), which results in a kernel warning. Move the initialization to the .open callback. Tested on Broadwell (Samus) and IceLake. Fixes: e2803e6 ("ASoC: SOF: PCM: add period_elapsed work to fix race condition in interrupt context") GitHub issue: thesofproject/linux#932 Reviewed-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org> (cherry picked from commit fab4edf git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next) BUG=b:134688240 TEST=Test Audio use cases for CML with full SOF patch series applied. Signed-off-by: Ap, Kamal <kamal.ap@intel.corp-partner.google.com>
- Loading branch information