mirror of https://github.com/thesofproject/sof.git
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:
parent
a92debe638
commit
26c291b88e
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue