Now that these modes work, fix the polarity to align with ALSA/ASoC expectations
Signed-off-by: Pierre-Louis Bossart pierre-louis.bossart@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 ab6b4ed..928f5b1 100644 --- a/src/drivers/byt-ssp.c +++ b/src/drivers/byt-ssp.c @@ -357,7 +357,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); @@ -385,7 +385,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);