AnsweredAssumed Answered

SAI Interface as I2S Master and Slave in i.MX8MM EVK

Question asked by Sreedhar A on May 18, 2020
Latest reply on May 18, 2020 by Sreedhar A

Hi,

 

I am working with IMX8M Mini EVK and yocto project build details:

 

Build Configuration:
BB_VERSION = "1.38.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx8mmevk"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "4.14-sumo"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""

 

we want to configure SAI1 as Master for Playback (Tx Operation) and

SAI5 as Slave for Capture (Rx Operation)

 

We set the dai fmt in the machine driver for Playback (SAIx as master)

fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
                                       SND_SOC_DAIFMT_CBS_CFS;

 

and 

 

We set dai fmt in the machine driver for Capture (SAI5 as slave)

fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
                                       SND_SOC_DAIFMT_CBM_CFM;

 

 

I want to validate this on iMX8MM EVK hw, do you have any test code test this master and slave operation

 

Thank you,

Sreedhar

Outcomes