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
What changes need to be done in Device tree for wm8960 integration.
@supraja Can you please help me for this to resolve this issue. codec is connected in X15 header with i2c4 scl, sda even couldn't able to get in i2cdect command.
Error I am getting :
dmesg | grep -i wm8960
[ 9.589598] Driver 'wm8960'register with bus_type 'i2c' .
[ 9.595012] bus: 'i2c': add driver wm8960
[ 9.599043] Driver 'rpmsg-audio-codec-wm8960'register with bus_type 'platform' .
[ 9.606468] bus: 'platform': add driver rpmsg-audio-codec-wm8960
[ 9.612571] Driver 'rpmsg-audio-codec-wm8960'register with bus_type 'i2c' .
[ 9.619546] bus: 'i2c': add driver rpmsg-audio-codec-wm8960
[ 10.841356] wm8960 3-001a: Failed to issue reset
[ 10.851164] rpmsg-audio-codec-wm8960 3-001a: Failed to issue reset
[ 11.551122] Driver 'imx-wm8960'register with bus_type 'platform' .
[ 11.557370] bus: 'platform': add driver imx-wm8960
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
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
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