cnl: ssp: fix DSP_B setting in ssp

set ssp according to DSP_B spec

Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
This commit is contained in:
Rander Wang 2018-03-07 12:31:02 +08:00 committed by Liam Girdwood
parent 0857b21acb
commit 680798071e
1 changed files with 3 additions and 2 deletions

View File

@ -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: