]> git.baikalelectronics.ru Git - kernel.git/commit
Subject: [PATCH v2] ASoC: soc-pcm: fix BE dai not hw_free and shutdown during mixer...
author朱灿灿 <zhucancan@vivo.com>
Fri, 29 May 2020 10:12:44 +0000 (18:12 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 29 May 2020 15:55:30 +0000 (16:55 +0100)
commita2179a161e4bdd8538dd9e0f4b3bec8983a8c0e6
tree9aac76c784a255014949c350c2e7463a97d1a90b
parenteae59390fda068411b0568acf79aa28bfc388433
Subject: [PATCH v2] ASoC: soc-pcm: fix BE dai not hw_free and shutdown during mixer update

FE state is SND_SOC_DPCM_STATE_PREPARE now, BE1 is
used by FE.

Later when new BE2 is added to FE by mixer update,
it will call dpcm_run_update_startup() to update
BE2's state, but unfortunately BE2 .prepare() meets
error, it will disconnect all non started BE.

This make BE1 dai skip .hw_free() and .shutdown(),
and the BE1 users will never decrease to zero.

Signed-off-by: zhucancan <zhucancan@vivo.com>
Link: https://lore.kernel.org/r/ALMAWwB5CP9aAcKXCU5FzqqF.1.1590747164172.Hmail.zhucancan@vivo.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c