Interfacing wm8960 audio module in imx8mp-phyboard-pollux board in android source code

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

Interfacing wm8960 audio module in imx8mp-phyboard-pollux board in android source code

736 Views
supraja
Contributor I

Hi Team,

Greetings for the day!!

We are working on phycore i MX 8M plus and we are trying to integrate the WM8960 Audio Codec with it.

We have added our dts file and we are able to generate the dtb file as well, but the generated dtb file is not as a part of our dtbo.img. Since our sound card is not listed under /proc/asound/cards. 

phyboard_pollux:/ # cat /proc/asound/cards
0 [sndpebav10     ]: snd-peb-av-10 - snd-peb-av-10
                      snd-peb-av-10
1 [audiohdmi      ]: audio-hdmi - audio-hdmi
                      audio-hdmi

Do we have to mention the dts path in any of the configuration file, so that it can take that dtb and include it as a part of dtbo.img.

Can you please help us in fixing the issue.

Thanks,

supraja

 

0 Kudos
Reply
3 Replies

718 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @supraja,

I hope you are doing well.

One can specify dtb for dtbo image in BoardConfig.mk file.

TARGET_BOARD_DTS_CONFIG := imx8mp-wm8960:imx8mp-evk-wm8960.dtb

BOARD_PREBUILT_DTBOIMAGE := out/target/product/evk_8mp/dtbo-imx8mp-wm8960.img

Please refer to 7.2.2 Using a customized application to update the Android platform (page 43: Note) in Android User's Guide for more information.

Additionally, one can specify which dtbo to use in fastboot_imx_flashall.sh parameter while flashing the image using -d option.

Please refer to 5.1.3 Downloading images with fastboot_imx_flashall script in Android User's Guide

Thanks & Regards,
Dhruvit Vasavada

0 Kudos
Reply

697 Views
supraja
Contributor I

Hi @Dhruvit ,

Greetings of the Day!!

dtbo.img file is working fine!!!!!!!.

card also detected and listed out in asound
phyboard_pollux:/#cat /proc/asound/cards                                                        
0 [wm8960audiosoun]: wm8960-audio-so - wm8960-audio-sound
                      wm8960-audio-sound
1 [audiohdmi]: audio-hdmi - audio-hdmi
                      audio-hdmi
phyboard_pollux:/sdcard/Download # 

 

1. in command prompt using Tinyplay  command we verified the module is working. default wm8960 module is taking and audio also playing.

2. we played the alarm default songs and we can audible the songs in wm8960 module.

     verified in  logcat it using card 0.

05-10 11:49:47.396 361 3007 D audio_hw_primary: start_output_stream: pcm_open: out->device: 2, card: 0, pcm_device_id: 0, rate: 48000, channel: 2, f9

3. suppose we played the audio through any media player application/app, we can't hear any audio.

     but in logcat it showing card 1.

    05-10 09:44:07.112 364 1721 D audio_hw_primary: start_output_stream: pcm_open: out->device: 1024, card: 1, pcm_device_id: 0, rate: 48000, channel: 28
     

3.1 what changes required to play the audio through media player app?

3.2  audio_policy_configuration.xml any configuration changes are required?

       some configuration added in this but its not happens what we expected.

 Thanks,

supraja

0 Kudos
Reply

653 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @supraja,

I hope you are doing well.

Glad to know that dtbo.img file is working and the card is detected.

Please raise another case for this query as it is different from the original issue.

Thanks & Regards,
Dhruvit Vasavada

0 Kudos
Reply