diff options
author | Gyeongtaek Lee <gt82.lee@samsung.com> | 2021-04-07 13:14:04 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-04-09 13:39:44 +0100 |
commit | 45475bf60cc1d42da229a0aa757180c88bab8d22 (patch) | |
tree | 200f01e52ffe55f5b3d0f1874dfe916a6b12b095 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 3e075e842899779bd321520a3524a278442467d0 (diff) |
ASoC: soc-compress: lock pcm_mutex to resolve lockdep error
If panic_on_warn=1 is added in bootargs and compress offload playback with
DPCM is started, kernel panic would be occurred because rtd->card->pcm_mutex
isn't held in soc_compr_open_fe() and soc_compr_free_fe() and it generates
lockdep warning in the following code.
void snd_soc_runtime_action(struct snd_soc_pcm_runtime *rtd,
int stream, int action)
{
struct snd_soc_dai *dai;
int i;
lockdep_assert_held(&rtd->card->pcm_mutex);
To prevent lockdep warning but minimize side effect by adding mutex,
pcm_mutex is held just before snd_soc_runtime_activate() and
snd_soc_runtime_deactivate() and is released right after them.
Signed-off-by: Gyeongtaek Lee <gt82.lee@samsung.com>
Link: https://lore.kernel.org/r/1891546521.01617772502282.JavaMail.epsvc@epcpadp3
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions