-
Notifications
You must be signed in to change notification settings - Fork 21
No sound out of the box on lite #157
Comments
Is this one for you, @spl237 ? |
Nope - lite's not mine! |
kms or fkms? The two are very different. Try diagnosing the problem a bit - what does |
kms. Sound works fine with fkms. pi@raspberrypi:~ $ aplay -l pulseaudio seems to do some magic, so that when the file /etc/alsa/conf.d/99-pulse.conf exists the sound works. pi@raspberrypi:~ $ speaker-test -c2 speaker-test 1.1.8 Playback device is default Even raspi-config (1. System Options -> S2 Audio ) says: No internal audio devices found |
Don't you think it might be helpful if you say what hardware you are running on? |
Oh, sorry. This is a Raspberry Pi 400. |
So raspi-config is correct - there is no built-in audio output (HDMI audio is classed as external). What's in your /boot/cmdline.txt? |
But /proc/cmdline says: |
It works out of the box for me with the current Lite image - zero configuration required - but I am getting a different ALSA configuration:
How old is your image? |
...and that's because kms is not the default - Why do you claim kms is the default? What is your reason for switching to it? |
This is 2021-05-07-raspios-buster-arm64-lite, but fully updated. I'm getting the same output as you of aplay -l if I use fkms instead of kms. But kms is the default. |
|
Sorry, yes. My mistake. |
I've accidentally just demonstrated that the problem is shared by the 32-bit Lite build when using the kms driver. |
Pi4 is also affected. |
For some odd reason, installing pulseaudio fixes this... |
Can you post the contents of |
|
Can you try replacing it with this one |
Same results, I'm afraid. |
What does |
|
We recognised that indeed the vc4hdmi sound does not work, producing the errors reported above, when using the
which basically matches the default config reported above. I checked back and with latest |
vc4-hdmi only supports |
Okay, thanks for clarification. I would tend to then simply pass |
kernel kms for video and firmware hdmi audio is not a supported use case. Some settings are interdependent. |
Does this mean the Are there plans to detangle this, when even possible, i.e. to support firmware HDMI with full KMS in the future? |
Looking at raspberrypi/linux#4651 and raspberrypi/linux#4652, I wouldn't think this will be changed/supported. |
HDMI audio has to be configured based on the video mode that is running.
|
Did further testing:
Hence, I underline by suggestion above that |
On a 5.10.85 kernel, Pi4.
With
Both vc4-kms-v3d-overlay.dts and vc4-kms-v3d-pi4-overlay.dts unconditionally set |
On Raspberry Pi Zero W with current stable kernel/firmware:
Interesting, Testing master version now. |
At least on Raspberry Pi Zero W, latest kernel firmware does not solve it:
And again |
So what kernel version are you running now? |
Ah sorry, |
This is still an issue in 2023. Installing pulseaudio and setting the output in |
I've now had some success by getting audio without pulseaudio by removing (or comment out) |
I've just had a look at a bullseye lite image on Pi3+. By default, with
So two sound cards, and the first is analogue/headphones. The second hdmi.
Removing If using Pi4, then the device is |
With kms-driver (which is the default) there's no working sound support. I can get sound to work as soon as I install pulseaudio, but without it, no sound.
The text was updated successfully, but these errors were encountered: