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

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:

- 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.