[Sound-open-firmware] [PATCH] cnl: ssp: fix DSP_B setting in ssp

Rander Wang rander.wang at linux.intel.com
Wed Mar 7 05:31:02 CET 2018


set ssp according to DSP_B spec

Signed-off-by: Rander Wang <rander.wang at linux.intel.com>
---
 src/drivers/apl-ssp.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/drivers/apl-ssp.c b/src/drivers/apl-ssp.c
index a726f3c..c32bd35 100644
--- a/src/drivers/apl-ssp.c
+++ b/src/drivers/apl-ssp.c
@@ -333,10 +333,11 @@ static inline int ssp_set_config(struct dai *dai,
 		sscr0 |= SSCR0_MOD | SSCR0_FRDC(config->num_slots);
 
 		/* set asserted frame length */
-		frame_len = config->sample_container_bits;
+		frame_len = 1;
 
 		/* handle frame polarity, DSP_A default is rising/active high */
-		sspsp |= SSPSP_SFRMP(inverted_frame);
+		sspsp |= SSPSP_SFRMP(!inverted_frame);
+		sspsp |= SSPSP_FSRT;
 
 		break;
 	default:
-- 
2.14.1



More information about the Sound-open-firmware mailing list