]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: clear prepare state when widget is unprepared
authorRander Wang <rander.wang@intel.com>
Tue, 20 Sep 2022 15:01:06 +0000 (17:01 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 20 Sep 2022 18:07:33 +0000 (19:07 +0100)
commit27c7af9544772501d8e275966c8dfec15f6712ee
tree03102a8d50463aceea7b16abc915951f41f55fee
parent09a1105b4c7b9221ed0045b6a2c6a09f01c3b499
ASoC: SOF: clear prepare state when widget is unprepared

Playback can't work after the first try sometimes. The reason is that
some widgets don't have ipc_unprepare ops and driver will jump
to sink_prepare so miss to set prepare state to false. Next
time these widgets will not be prepared and it will result to
error with different format of audio file since the last setting
is not applicable.

This patch makes sure that widget prepare state will be cleared
to false when it is unprepared.

Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220920150107.2090695-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/sof-audio.c