How to modify audio_policy_configuration.xml for WM8960 in android 11.0.0

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

How to modify audio_policy_configuration.xml for WM8960 in android 11.0.0

2,454 次查看
pyh0603
Contributor III

Hello,

Software Version: 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 record files normally using tinycap:

#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 modified the following files:

vi device/nxp/imx8m/evk_8mq/evk_8mq.mk

pyh0603_0-1653988464226.png

The contents of the wm8960_rpmsg_config.json as follows:

pyh0603_1-1653988474669.png

The current situation is:

When I set the Android volume: settings->sound->medium Volume,  I can hear the prompt tone of the system, but the set volume keeps beating. It appears that the volume setting failed, And I can't play music through kugou music APK.

 

According to the instructions of 8.2.2 supporting a new sound card in the document < Android_User's_Guide.pdf-Rev. android-11.0.0_2.6.0 7 January 2022>, in addition to adding wm8960_rpmsg_config.json file, and audio needs to be modified audio_policy_configuration.xml file.

 

My question:

1 How to modify audio_policy_configuration.xml for WM8960 in android 11.0.0

0 项奖励
回复
1 回复

2,437 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

You can refer  i.MX8MP WM8960 configuration in Android11

0 项奖励
回复