[Sound-open-firmware] [PATCH] byt-ssp: fix status transition for ssp_stop

Keyon Jie yang.jie at linux.intel.com
Wed May 9 04:51:38 CEST 2018


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 at linux.intel.com>
Tested-by: Zhang Keqiao <keqiao.zhang at 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");
 	}
 
-- 
2.14.1



More information about the Sound-open-firmware mailing list