[Sound-open-firmware] [PATCH] byt-ssp: fix status transition for ssp_stop
This fix the regression(line missed when copying) introduced by commit 0d6e17ed99ea 'byt-ssp: change and wrap status transition into ssp_stop'.
Signed-off-by: Keyon Jie yang.jie@linux.intel.com Tested-by: Zhang Keqiao keqiao.zhang@linux.intel.com --- Tested with: Mininow max + rt5651 SOF master: 6be7b1d26ac3b5b5edd6324809f6fb59592e65fa SOF-Tool master: 13b56fa6047c566a8ba3edd0882ea786e595ee2a Driver: https://github.com/plbossart/sound/tree/topic/sof-v4.14: d09db67c5a9d6dfc85f700669fa2e43c678c8d51 --- src/drivers/byt-ssp.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/src/drivers/byt-ssp.c b/src/drivers/byt-ssp.c index fcde98f..ca3385d 100644 --- a/src/drivers/byt-ssp.c +++ b/src/drivers/byt-ssp.c @@ -514,6 +514,7 @@ static void ssp_stop(struct dai *dai, int direction) if (direction == DAI_DIR_CAPTURE && ssp->state[SOF_IPC_STREAM_CAPTURE] == COMP_STATE_ACTIVE) { ssp_update_bits(dai, SSCR1, SSCR1_RSRE, 0); + ssp->state[SOF_IPC_STREAM_CAPTURE] = COMP_STATE_PAUSED; trace_ssp("Ss0"); }
@@ -521,6 +522,7 @@ static void ssp_stop(struct dai *dai, int direction) if (direction == DAI_DIR_PLAYBACK && ssp->state[SOF_IPC_STREAM_PLAYBACK] == COMP_STATE_ACTIVE) { ssp_update_bits(dai, SSCR1, SSCR1_TSRE, 0); + ssp->state[SOF_IPC_STREAM_PLAYBACK] = COMP_STATE_PAUSED; trace_ssp("Ss1"); }
On Wed, 2018-05-09 at 10:51 +0800, Keyon Jie wrote:
This fix the regression(line missed when copying) introduced by commit 0d6e17ed99ea 'byt-ssp: change and wrap status transition into ssp_stop'.
Signed-off-by: Keyon Jie yang.jie@linux.intel.com Tested-by: Zhang Keqiao keqiao.zhang@linux.intel.com
Tested with: Mininow max + rt5651 SOF master: 6be7b1d26ac3b5b5edd6324809f6fb59592e65fa SOF-Tool master: 13b56fa6047c566a8ba3edd0882ea786e595ee2a Driver: https://github.com/plbossart/sound/tree/topic/sof-v4.14: d09db67c5a9d6dfc85f700669fa2e43c678c8d51
Applied.
Thanks
Liam
participants (2)
-
Keyon Jie
-
Liam Girdwood