Vanfanel
Posts: 436
Joined: Sat Aug 18, 2012 5:58 pm

Building a kernel without vc4-hdmi ALSA card

Tue Jul 02, 2019 3:15 pm

Hi there,

As I have reported, vc4-hdmi does not seem to work with baremetal ALSA (it has NOTHING to do with 64bit kernels, look: https://github.com/Debian/raspi3-image-spec/issues/12), so I want to build my own kernel without it, since it seems that it is not possible to disable it via config.txt, kernel command line, etc...
So, I have seen that all the vc4-hdmi mentions are in

Code: Select all

drivers/gpu/drm/vc4/vc4_hdmi.c
What would be a "less hacky" way to disable it there so it is not brought up on boot? (ie: ALSA should be the ONLY card!)

For example, I have been thinking that making

Code: Select all

vc4_hdmi_audio_startup()
always

Code: Select all

return -ENODEV
would work, but is it a good idea to do so?


Thanks!

NOTE: Ideally, I would prefer vc4-hdmi to work instead of the BCM2835 ALSA driver, but it does not seem like this will be fixed anytime soon, does it?

Return to “Raspbian”