]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-dai: fix DAI startup/shutdown sequence
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 30 Mar 2020 16:06:02 +0000 (11:06 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 30 Mar 2020 17:22:37 +0000 (18:22 +0100)
commit80f3dcc191e3e2b5d6a425b206da74012afb3afe
tree0d58ad1076c2d171ba89d623c5b6a7283e94d72d
parent835347e1222f3da86d3c07a4dc3827e200231ef4
ASoC: soc-dai: fix DAI startup/shutdown sequence

The addition of a single flag to track the DAI status prevents the DAI
startup sequence from being called on capture if the DAI is already
used for playback.

Fix by extending the existing code with one flag per direction.

Fixes: 601943694c1f1 ("ASoC: soc-pcm: call snd_soc_dai_startup()/shutdown() once")
Reported-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tested-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20200330160602.10180-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-dai.h
sound/soc/soc-dai.c