-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SND_BCM2835 audio not working on 4.19 kernel version #3181
Comments
Which defconfig did you start from before seting those 3 modules as built in? bcmrpi3_defconfig already has those drivers defined as being modules. Is there a specific need to make them built in? Did it work for you with them as modules? |
bcmrpi3_defconfig already has those drivers defined as being modules. Is there a specific need to make them built in? Did it work for you with them as modules? |
You appear to be using |
Out of curiosity I tested this on my own build of 4.19.y arm64: with no overlay or with vc4-fkms-v3d -> works |
@sakaki- @asavah So now the on board audio card appear but HDMI audio is still there. I am sure that no HDMI cable is plugged in aplay -l |
vc4-hdmi is the upstream audio driver provided as part of the full DRM/KMS driver (
In theory you can get ALSA to do the relevant repacking of the data, but upstream never seemed to fully resolve the issues. See #2988 Using snd_bcm2835 ( |
There is no relation between vc4-kms-v3d and snd_bcm2835. But maybe there is some kind of regression in the VCHIQ driver which prevent probing of snd_bcm2835 in case vc4-fkms-v3d is not probed. |
@lategoodbye With no *kms overlay at all snd_bcm2835 is probed and works correctly. Note that dtoverlay is commented out in config.txt:
kernel 4.19.68 arm64 |
@6by9 so is this considered a bug after all? |
64 bit kernels are in the early stages still. I haven't had a chance to look as most of my time is on Pi4 at present. rpi-update does now include a 64bit kernel, admittedly aimed more at Pi4 than Pi3, so retesting with a standard kernel would be useful. See https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=250730 for more details. |
Looking at the dmesg from @NguyenTrongThinh shows there is no attempt to load snd_bcm2835. |
I've rpi-updated by Pi3, added
Disable vc4-hdmi audio ( I fail to see any form of bug there. Back to those reporting it to give more details of what they are doing differently. |
I have the following:
My config.txt is the following (I'm on 32 bits):
and
|
Why such an ancient firmware? And if that is what |
Updated the kernel again to 4.19.66 (I had temporarily downgraded) and indeed, I do have that commit included. So now if I'm disabling hdmi audio as you suggested, I do have the devices listed by aplay and audio playback works as expected. Thanks for all the input, much appreciated. |
Sorry to revisit this, seems there is something strange going on. Can't make it work today anymore. Wondering if there was any obscure config.txt setting I had that made it work.
I do have e8e84b7 applied.
Wondering if somebody else can reproduce this |
If you have vc4-hdmi ALSA device then somewhere you haven't disabled audio. Check for the file /proc/device-tree/soc/hdmi@7e902000/dmas. It should be 0 bytes in size if If still enabled then I'd expect it to be 8 bytes
For snd_bcm2835, check /proc/device-tree/soc/audio/status contains the string "okay" (as lategoodbye commented yesterday). |
Hi, |
Unless U-boot is configured to pass through the firmware-supplied DTB, the DTB will be loaded from scratch by U-boot. This will lose any overlays and parameters set in config.txt. |
hmm,
powering-on rpi3 gives me u-boot initial u-boot log entries on screen and then all hangs on probably is still missing something :-( so Q is: how to achieve
|
The firmware treats U-boot as a kernel and passes it a pointer to the DTB it has constructed. If U-boot and boot.scr are correctly configured I believe the firmware's DTB can be passed on to the Linux kernel, but you are more likely to find help for your problem on a U-boot forum. |
This issue will be closed within 30 days unless further interactions are posted. If you wish this issue to remain open, please add a comment. A closed issue may be reopened if requested. |
Describe the bug
Build 64 bit kernel with these configuration
CONFIG_SND_BCM2835=y
CONFIG_VIDEO_BCM2835=y
CONFIG_VIDEO_CODEC_BCM2835=y
but the on board audio (Jack 3.5) was not working, when run command $ aplay -l; it shows no audio card
To reproduce
Build 64 bit kernel with the configuration above
Expected behaviour
Audio on Jack 3.5 can work
Actual behaviour
No audio out and no sound card found when run command aplay -l
System
Raspberry Pi 3 B+
Host Machine: Ubuntu 18.04
The text was updated successfully, but these errors were encountered: