Closed jsln closed 1 month ago
Hello,
Usually the first two audio output slots are taken by HDMI output as shown below.
0 [vc4hdmi0 ]: vc4-hdmi - vc4-hdmi-0 vc4-hdmi-0 1 [vc4hdmi1 ]: vc4-hdmi - vc4-hdmi-1 vc4-hdmi-1
However in your case seems like HDMI is not showing up in /proc/asound/cards and 0 ist he fist Alsa output entry.
Try pointing persist.audio.pcm.card to 0 instead: persist.audio.pcm.card=0
Yes, as @skanda-coder mentioned above, you don't have the HDMI output devices because you've set dtoverlay=vc4-kms-v3d,noaudio
and you would need to set persist.audio.pcm.card=0
. The relevant wiki page (https://github.com/raspberry-vanilla/android_local_manifest/wiki/Audio) is slightly out of date. On Pi 5 with dtoverlay=vc4-kms-v3d
(i.e. no change in that regard), you would set persist.audio.pcm.card=2
.
I'm not sure if adding the slave
parameter to the DAC driver is still needed or has it been fixed upstream since.
Thanks @skanda-coder , @KonstaT , I got it working by setting persist.audio.pcm.card.
Furthermore, it turns out the slave parameter is not needed.
Hi, I get no audio using one of the Oboe samples (compiled with NDK), with the HifiBerry DAC+ ADC Pro, anybody has had success with that hardware? I guess this has something to do with my configuration as this is what the logcat shows:
I have the following lines in device/brcm/rpi5/vendor.prop
And I can see those properties set with getproc.
Furthermore, these are the relevant parts of my boot/config.txt:
I see the driver being enabled:
I have another previously built aosp image with unmodified vendor.prop, and hdmi audio enabled in boot/config.txt, and hdmi audio works there.
Any ideas with what might be happening?