summaryrefslogtreecommitdiffstats
path: root/lib/atomic64.c
diff options
context:
space:
mode:
authorQiao Zhou <zhouqiao@marvell.com>2014-12-03 10:13:43 +0800
committerMark Brown <broonie@kernel.org>2014-12-04 22:41:58 +0000
commit36fba62cce8184ea6a0cecfa43f07f712716a6f8 (patch)
tree9ccbbb4e3b4834c61046d52646c24f457f44fce7 /lib/atomic64.c
parentf114040e3ea6e07372334ade75d1ee0775c355e1 (diff)
downloadlinux-36fba62cce8184ea6a0cecfa43f07f712716a6f8.tar.bz2
ASoC: soc-pcm: do not hw_free BE if it's still used
Do not free BE hw if it's still used by other FE during dpcm runtime shutdown. Otherwise the BE runtime state will be STATE_HW_FREE and won't be updated to STATE_CLOSE when shutdown ends, because BE dai shutdown function won't close pcm when detecting BE is still under use. With STATE_HW_FREE, BE can't be triggered start again. This corner case can easily appear when one BE is used by two FE, without this patch "ASoC: dpcm: Fix race between FE/BE updates and trigger"(ea9d0d771fcd32cd56070819749477d511ec9117). One FE tries to shutdown but it's raced against xrun on another FE. It improves the be dai hw_free logic. Signed-off-by: Qiao Zhou <zhouqiao@marvell.com> Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib/atomic64.c')
0 files changed, 0 insertions, 0 deletions