ssp: fix inverted_frame handling for BYT and APL/CNL

inverted_frame variable should only be set in the _IF
cases

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
This commit is contained in:
Pierre-Louis Bossart 2018-03-09 09:24:21 -06:00 committed by Liam Girdwood
parent a92debe638
commit 26c291b88e
2 changed files with 2 additions and 2 deletions

View File

@ -196,6 +196,7 @@ static inline int ssp_set_config(struct dai *dai,
case SOF_DAI_FMT_NB_NF:
break;
case SOF_DAI_FMT_NB_IF:
inverted_frame = true; /* handled later with format */
break;
case SOF_DAI_FMT_IB_IF:
sspsp |= SSPSP_SCMODE(2);
@ -203,7 +204,6 @@ static inline int ssp_set_config(struct dai *dai,
break;
case SOF_DAI_FMT_IB_NF:
sspsp |= SSPSP_SCMODE(2);
inverted_frame = true; /* handled later with format */
break;
default:
trace_ssp_error("ec3");

View File

@ -223,6 +223,7 @@ static inline int ssp_set_config(struct dai *dai,
case SOF_DAI_FMT_NB_NF:
break;
case SOF_DAI_FMT_NB_IF:
inverted_frame = true; /* handled later with format */
break;
case SOF_DAI_FMT_IB_IF:
sspsp |= SSPSP_SCMODE(2);
@ -230,7 +231,6 @@ static inline int ssp_set_config(struct dai *dai,
break;
case SOF_DAI_FMT_IB_NF:
sspsp |= SSPSP_SCMODE(2);
inverted_frame = true; /* handled later with format */
break;
default:
trace_ssp_error("ec3");