Skip to content
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

RPi vc4-kms-v3d driver does not support hardware mixing #20

Open
markferry opened this issue Jun 14, 2023 · 1 comment
Open

RPi vc4-kms-v3d driver does not support hardware mixing #20

markferry opened this issue Jun 14, 2023 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@markferry
Copy link
Owner

markferry commented Jun 14, 2023

...or at least doesn't provide an Alsa dmixer.

https://forums.raspberrypi.com/viewtopic.php?t=324067

raspberrypi/linux#4951

This applies to Debian 11-based RPi distros without pulseaudio. (OSMC does not support pulseaudio).

Observations

snapclient -s vc4hdmi fails with:

2023-06-14 16-34-12.160 [Info] (Player) Player name: alsa, device: hw:CARD=vc4hdmi,DEV=0, description: vc4-hdmi, MAI PCM i2s-hifi-0
2023-06-14 16-34-12.160 [Info] (Player) Direct hardware device without any conversions, idx: 18, sharing mode: unspecified, parameters: <none>
2023-06-14 16-34-12.160 [Info] (Player) Mixer mode: software, parameters: <none>
2023-06-14 16-34-12.160 [Info] (Player) Sampleformat: 48000:16:2, stream: 48000:16:2
2023-06-14 16-34-12.160 [Info] (Alsa) Using default buffer_time: 80 ms, default fragments: 4
2023-06-14 16-34-12.161 [Error] (Alsa) Exception: Can't set format: Invalid argument, supported: IEC958_SUBFRAME_LE , code: 0
2023-06-14 16-34-12.162 [Fatal] (Snapclient) Exception: Can't set format: Invalid argument, supported: IEC958_SUBFRAME_LE 
2023-06-14 16-34-12.162 [Notice] (Snapclient) Snapclient terminated.

Workaround

Use the Fake KMS and reenable ALSA compatibility.

dtoverlay must be set in /boot/config.txt:

[all]
dtoverlay=vc4-fkms-v3d,cma-512

/boot/config-user.txt:

dtparam=audio=on

/boot/cmdline.txt:

... snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_compat_alsa=1
@markferry markferry added bug Something isn't working wontfix This will not be worked on labels Jun 14, 2023
@markferry
Copy link
Owner Author

vc4-fkms-v3d doesn't support passthrough. This wasn't a problem for the study (which is 2.0 only) but is in the ballroom (which is 5.0)

https://forums.raspberrypi.com/viewtopic.php?t=342929

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant