i.MX6Q Audio Register Settings Confirmation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

i.MX6Q Audio Register Settings Confirmation

610 次查看
ScottKerstein
Contributor III

Hello,

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,

Scott

标签 (2)
0 项奖励
1 回复

441 次查看
igorpadykov
NXP Employee
NXP Employee

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.61.8.1.4 I2S Mode i.MX6DQ Reference Manual
https://www.nxp.com/docs/en/reference-manual/IMX6DQRM.pdf

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

    sound {
        compatible = "fsl,imx6q-sabresd-wm8962",
               "fsl,imx-audio-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>;
        codec-master;
        hp-det-gpios = <&gpio7 8 1>;
        mic-det-gpios = <&gpio1 9 1>;
    };

and one can test with linux demo images

https://www.nxp.com/webapp/Download?colCode=L4.1.15_2.0.0_MX6QDLSOLO&appType=license&location=null 

using memtool for reading registers as described on

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

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

0 项奖励