i.MX6Q Audio Register Settings Confirmation

Showing results for 
Search instead for 
Did you mean: 

i.MX6Q Audio Register Settings Confirmation

Contributor III


Using a i.MX6Q_SABRE_SDP board running on a WEC7 software platform and having an issue getting audio to come out of the audio mux component of the chip.

Please confirm the register settings for the i.MX audio mux and ssi interface to properly get audio out of on the SABRE_SDP board.


Present Configuration:


App xmit data is DMA’d to SSI2 TX FIFOs à Aud Mux port 2 ---- Aud Mux port 3 being fed TXFS and TXC from audio codec (i2s master)


SSI Config:

STCCR before xmit = 0x16100

SFCSR before xmit = 0xf880f88

SCR before xmit = 0x151

STCR before xmit = 0x38d

SISR before xmit = 0x0

SIER before xmit = 0x0

SFCSR after DMA = 0xf880f88

SISR after xmit = 0x0

SCR after xmit = 0x153

SFCSR after xmit = 0xf880e88


Aud Mux;

PTCR2 = 0x94800800

PDCR2 = 0x4000

PTCR3 = 0x800

PDCR3 = 0x2000


I see a TX FS or 44.1 Khz and a TXC of 2.63Mhz

Thank you in advance,


Labels (2)
0 Kudos
1 Reply

NXP TechSupport
NXP TechSupport

Hi Scott

I think audmux settings are correct. For ssi please verify

ssi i2s slave (if codec is using as master) settings described in

sect. I2S Mode i.MX6DQ Reference Manual

Also this configuration is used in linux, from imx6qdl-sabresd.dtsi :

    sound {
        compatible = "fsl,imx6q-sabresd-wm8962",
        model = "wm8962-audio";
        cpu-dai = <&ssi2>;
        audio-codec = <&codec>;
        asrc-controller = <&asrc>;
        audio-routing =
            "Headphone Jack", "HPOUTL",
            "Headphone Jack", "HPOUTR",
            "Ext Spk", "SPKOUTL",
            "Ext Spk", "SPKOUTR",
            "AMIC", "MICBIAS",
            "IN3R", "AMIC",
            "DMIC", "MICBIAS",
            "DMICDAT", "DMIC",
            "CPU-Playback", "ASRC-Playback",
            "Playback", "CPU-Playback",
            "ASRC-Capture", "CPU-Capture",
            "CPU-Capture", "Capture";
        mux-int-port = <2>;
        mux-ext-port = <3>;
        hp-det-gpios = <&gpio7 8 1>;
        mic-det-gpios = <&gpio1 9 1>;

and one can test with linux demo images


using memtool for reading registers as described on

Patch to make i.MX6DQ USB to support test modes... | NXP Community 

Best regards
Note: If this post answers your question, please click the Correct Answer button. Thank you!

0 Kudos