CS42888 codec not working in i.mx6q Sabre AI having Android M

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CS42888 codec not working in i.mx6q Sabre AI having Android M

Jump to solution
3,043 Views
deepika_t
Contributor IV

Hi

I am working on  I.MX6Q Sabre Auto Evaluation board having Android M.  This is my bootargs for only enabling LVDS

setenv bootargs console=ttymxc3,115200 init=/init video=mxcfb0:dev=ldb,bpp=32 video=mxcfb1:off

video=mxcfb2:off video=mxcfb3:off vmalloc=320M androidboot.console=ttymxc3 consoleblank=0

androidboot.hardware=freescale cma=384M androidboot.selinux=disabled androidboot.serialno=0b0631d4d72d73bb

Bootlogs showing the available ALSA devices

imx-cs42888 sound-cs42888.28: cs42888 <-> 2024000.esai mapping ok

imx-cs42888 sound-cs42888.28: snd-soc-dummy-dai <-> 2034000.asrc ma

imx-cs42888 sound-cs42888.28: cs42888 <-> 2024000.esai mapping ok

imx-spdif sound-spdif.21: snd-soc-dummy-dai <-> 2004000.spdif mappi

imx-audio-hdmi sound-hdmi.22: initialize HDMI-audio failed. load HDMI video first!

ALSA device list:

  #0: cs42888-audio

  #1: imx-spdif

In the /dev/snd we get the following :

root@sabreauto_6q:/dev/snd # ls

controlC0

controlC1

pcmC0D0c

pcmC0D0p

pcmC0D1c

pcmC0D1p

pcmC1D0c

timer

When I  try playing a .wav song from tinyplay we get the following output

root@sabreauto_6q:/data # tinyplay audiocheck.wav -D 0 -d 1

Playing sample: 2 ch, 44100 hz, 16 bit

The .wav file is a 16 bit, stereo 44100 Hz  file.

Still i am not able to hear anything when I connect the Speaker to Sabre Auto board using RCA to AUX connector.

I am showing my set up in the attachment.

The device tree configuration is shown:

      sound-cs42888 {

                compatible = "fsl,imx6-sabreauto-cs42888",

                                "fsl,imx-audio-cs42888";

                model = "imx-cs42888";

                esai-controller = <&esai>;

                asrc-controller = <&asrc>;

                audio-codec = <&codec>;

        };

        codec: cs42888@48 {

                compatible = "cirrus,cs42888";

                reg = <0x48>;

                clocks = <&codec_osc>;

                clock-names = "mclk";

                VA-supply = <&reg_audio>;

                VD-supply = <&reg_audio>;

                VLS-supply = <&reg_audio>;

                VLC-supply = <&reg_audio>;

        }

&esai {

        pinctrl-names = "default";

        pinctrl-0 = <&pinctrl_esai>;

        assigned-clocks = <&clks IMX6QDL_CLK_ESAI_SEL>,

                          <&clks IMX6QDL_CLK_ESAI_EXTAL>;

        assigned-clock-parents = <&clks IMX6QDL_CLK_PLL4_AUDIO_DIV>;

        assigned-clock-rates = <0>, <24576000>;

Can any one help me out in this?

Thanks and Regards

Deepika

Labels (2)
0 Kudos
Reply
1 Solution
2,298 Views
weidong_sun
NXP TechSupport
NXP TechSupport
0 Kudos
Reply
4 Replies
2,298 Views
engineer_bsp01
Contributor III

Hi weidong.sundeepika.t@tataelxsi.co.in,

I am working on imx6q sabre AI based custom board.

connected cs42888 audio codec on i2c2.showing sound cards

pastedImage_2.png

1|sabreauto_6q:/system/bin # cat /proc/asound/cards                                                                                               
 0 [cs42888audio   ]: cs42888-audio - cs42888-audio
                      cs42888-audio
 1 [imxspdif       ]: imx-spdif - imx-spdif
                      imx-spdif
 2 [imxhdmisoc     ]: imx-hdmi-soc - imx-hdmi-soc
                      imx-hdmi-soc

played audio signal and try to probe i2c signal using DSO but didn't get any signals.

Don't know what the real issue.

anything else has to be done in the kernel side

I have connected audio Amp(TDF8546J) to i2c1 on probing in u-boot we can see the address 6E of audio amplifier , but could not find any android driver on Internet to control this device through i2c .

audio amp connector.

By default there is no sound when audio track is played .please support

pastedImage_1.png

0 Kudos
Reply
2,298 Views
deepika_t
Contributor IV

Hi Weidong,

Thanks for your reply.

I have tried playing through the connectors as shown by you. Still not able to hear anything on AUDIO_OUT

Thanks and Regards

Deepika

0 Kudos
Reply
2,298 Views
deepika_t
Contributor IV

Hi

It was a hardware issue on the board. When I tested on another Sabre auto board ,it was playing well when I connected the RCA to AUX cable to the port as shown by Weidong Sun.

Thanks Weidong Sun for your advice.

Deepika

0 Kudos
Reply
2,299 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Deepika,

    Try  these 2 connectors!

ai-audio.png

See user's guide:

http://cache.nxp.com/files/32bit/doc/user_guide/IMX6SABREINFOQSG.pdf?fpsp=1&WT_TYPE=Users%20Guides&W...

Regards,

weidong

0 Kudos
Reply