From 09b97dccba1864caf2e4a286bc5812637aa74641 Mon Sep 17 00:00:00 2001 From: Keyon Jie Date: Wed, 9 May 2018 10:51:38 +0800 Subject: [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 Tested-by: Zhang Keqiao --- 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 fcde98fda..ca3385df7 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"); }