porting wm8960 to imx8mq android11.0.0, unable to play music

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

porting wm8960 to imx8mq android11.0.0, unable to play music

658 Views
pyh0603
Contributor III

Hello,

My current version:

Release: android_p11.0.0_2.6.0

Board: i.MX8MQ based custom board

 

I need to port wm8960 to Android system.

In the Android system, I can play audio files normally with tinyplay:

#tinyplay tinghai-zhanghuimei. wav

I can also use tinycap to record files normally, and the recorded files play normally:

#tinycap /data/rec.wav -D 0 -d 0 –c 2 –r 48000 –b 16 –p 1024 –n 3 -T 10

 

When I integrated wm8960 into Android, I noticed the following two points according to the description of 8.2.2 supporting a new sound card in android_user's_guide.pdf-rev. android-11.0.0_2.6.0-7 January 2022:

  • Modify file device/nxp/imx8m/evk_8mq/evk_8mq.mk

pyh0603_2-1654152368035.png

Add the contents in the above red box and turn off the wm8524 sound card

wm8960_config.json file is an original configuration file in the official source code. It has not been modified. The contents of the file are as follows:

pyh0603_3-1654152380818.png

  • Modify file device/nxp/imx8m/evk_8mq/audio_policy_configuration.xml

I have not made any changes to this file. It is still the official configuration for wm8524.

 

The current situation is:

When I set the Android volume: settings->sound->medium Volume I can hear the prompt tone of the system, but when I set the volume, the volume progress bar keeps bouncing, as if the volume setting was unsuccessful. And I can't play music through the KuGou music APK.

 

My question:

1 How to replace the sound card wm8524 with wm8960 and port it to Android 11.0.0? Do I need to modify the device/nxp/imx8m/evk_ 8mq/audio_policy_configuration.xml

2 If I want to play music in the KuGou music APK, in addition to adding wm8960_rpmsg_config.json, what changes need to be made?

 

Attachment 1 is a log that the volume progress bar keeps bouncing when the system volume is modified

Attachment 2 is the log when playing music with kugou apk

 

Looking forward to your reply.

 

0 Kudos
2 Replies

452 Views
Satyaprakash
Contributor II

I'm facing the same issue!!

Does your issue got solved?

if yes, then please tell how to play audio through media player application.

0 Kudos

629 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Please refer 8mp platforn to port wm8960.

0 Kudos