Skip to content

Commit

Permalink
imx: sai: Fix sof run fail issue on imx8ulp
Browse files Browse the repository at this point in the history
Don't need to enable packed mode for sai on 8ulp.

Signed-off-by: Zhang Peng <[email protected]>
  • Loading branch information
Zhang Peng authored and dbaluta committed Sep 15, 2023
1 parent 1721f70 commit 036da2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/drivers/imx/sai.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ static inline int sai_set_config(struct dai *dai, struct ipc_config_dai *common_
return -EINVAL;
}

#ifndef CONFIG_IMX8ULP
switch (sai->params.tdm_slot_width) {
case 8:
val_cr4 |= REG_SAI_CR4_FPACK_8;
Expand All @@ -365,6 +366,7 @@ static inline int sai_set_config(struct dai *dai, struct ipc_config_dai *common_
default:
break;
}
#endif

val_cr4 |= REG_SAI_CR4_FRSZ(sai->params.tdm_slots);
val_cr4 |= REG_SAI_CR4_CHMOD;
Expand Down

0 comments on commit 036da2a

Please sign in to comment.