[Sound-open-firmware] [PATCH 4/5] byt-ssp: fix frame sync polarity for DSP modes

Pierre-Louis Bossart pierre-louis.bossart at linux.intel.com
Mon Jun 18 21:27:33 CEST 2018


Now that these modes work, fix the polarity to align with
ALSA/ASoC expectations

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart at linux.intel.com>
---
 src/drivers/byt-ssp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/drivers/byt-ssp.c b/src/drivers/byt-ssp.c
index caaf161..c9dbcaa 100644
--- a/src/drivers/byt-ssp.c
+++ b/src/drivers/byt-ssp.c
@@ -358,7 +358,7 @@ static inline int ssp_set_config(struct dai *dai,
 		frame_len = 1;
 
 		/* handle frame polarity, DSP_A default is rising/active high */
-		sspsp |= SSPSP_SFRMP(inverted_frame);
+		sspsp |= SSPSP_SFRMP(!inverted_frame);
 		if (cfs) {
 			/* set sscr frame polarity in DSP/master mode only */
 			sscr5 |= SSCR5_FRM_POLARITY(inverted_frame);
@@ -386,7 +386,7 @@ static inline int ssp_set_config(struct dai *dai,
 		frame_len = 1;
 
 		/* handle frame polarity, DSP_A default is rising/active high */
-		sspsp |= SSPSP_SFRMP(inverted_frame);
+		sspsp |= SSPSP_SFRMP(!inverted_frame);
 		if (cfs) {
 			/* set sscr frame polarity in DSP/master mode only */
 			sscr5 |= SSCR5_FRM_POLARITY(inverted_frame);
-- 
2.14.1



More information about the Sound-open-firmware mailing list