Interface wm8960 audio module for imx8mp-phyboard-pollux board in Android 11

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

Interface wm8960 audio module for imx8mp-phyboard-pollux board in Android 11

943 Views
SachinGowda
Contributor II

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. I have attached the logs below.

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,

Sachin Gowda

 

Tags (3)
0 Kudos
Reply
3 Replies

919 Views
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

On Android User's Guide are the steps to support a new sound card on the Android system, please refer to section 8.2.2 "Supporting a new sound card".

I hope it helps.

Best regards.

Jorge.

0 Kudos
Reply

903 Views
SachinGowda
Contributor II

Hi Team,

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,
 Sachin

 

0 Kudos
Reply

874 Views
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

Please refer to Android Users Guide on Audio configuration chapter to configure the audio mix port, device port, and route in audio_policy_configuration.xml.

- Mix ports describe the possible configuration profiles for streams that can be opened at the audio HAL for playback and capture.
- Device ports describe the devices that can be attached with their type.
- Routes describe which mix port can route to which device.

There is an example with three output devices.

I hope this information helps you.

Best regards.

Jorge.

0 Kudos
Reply