-
Notifications
You must be signed in to change notification settings - Fork 24
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
HifiBerry+ DAC and vc4hdmi: different default ALSA card bewteen reboots #130
Comments
My guess would be that baseline ALSA is just defaulting to whatever module probes first, and module probe order in Linux is arbitrary. You should probably be using some software like pulseaudio that implements policy on top of ALSA, or just force the issue using alsa.conf snippets somehow. |
@anholt : But I am not using the vc4-hdmi audio. What modules does it use specifically? I don't see a specific vc4-hdmi audio module on lsmod. If I knew what module does vc4-hdmi audio use, I could simply prevent it from being loaded in this machine. |
There is no specific module for it - if you use the VC4 DRM driver, you will automatically get the HDMI audio. |
@stschake : I see. Then I don't see the way around it by not loading a module :(
In asound.conf. The problem is that the card number assigned to the hifiberry and the vc4hdmi changes bewteen boots. Is there a way to tell default by name instead of number? |
Ah, it seems doing:
..does the job. Thanks! |
@anholt
I got the information for this here: However, from time to time, vc4-hdmi is STILL alsa card 0, causing the alsa-restore.service to fail on system boot. |
Alternatively, is there a way to disable the HDMI audio device? If there's a suitable DT property value then I can add a parameter to the vc4-kms-v3d overlay. |
It looks like nuking the dmas property from the hdmi DT node will do it, whilst leaving the rest of the vc4 driver to come up. Not the cleanest, but might be worth a quick try. https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/vc4/vc4_hdmi.c#L1075 |
If only an overlay could delete a property. |
Hi there, Eric
I updated my system to the latest kernel (4.14.31-v7+) and now I get different default sound cards between boots.
Sometimes aplay -L will report:
default:CARD=sndrpihifiberry
and sometimes it will report:
default:CARD=vc4hdmi
When the vc4hdmi (which I don't currently use) is the default card, sound won't work and alsamixer reports it having no controls.
Do you have an idea on what could be going on?
Any way to disable vc4hdmi so it's never used on the Pi where I use HifiBerry+?
The text was updated successfully, but these errors were encountered: