-
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
bullseye vc4-hcmi.conf is missing DMIX #4951
Comments
Originally asked at https://forums.raspberrypi.com/viewtopic.php?p=1985824 (now locked) |
Does this thread still apply? towards the end:
|
Thanks @bluestang2006 - I never can find that thread when I want it. Takashi is one of the Linux audio experts, so that is one solution, and almost certainly the easiest. Looking at the code for dmix, it would be plausible to mix IEC958 streams. @HiassofT knows a fair amount of ALSA configuration, so may be able to advise if you can control the order of dmix vs iec958 encapsulation. |
it's very very tricky and I don't know of a somewhat realistic way to achieve that. You'd need to put iec958 formatting into pcm_dmix or into pcm_direct as you also need to set the samplerate in channel status bits. dmix runs the hw pcm at a fixed rate so it won't help if you have IEC958 subframes with formatted channel status bits fed into dmix, that would need to be trashed anyways when doing sample rate conversion (which is usually happening). pcm_dmix is heavily tied to pcm_direct and that again is heavily tied to the hw so I don't think there's an easy way to put pcm_iec958 somewhere between it. Likewise duplicating pcm_iec958 functionality into pcm_direct or pcm_dmix isn't too great an idea either and might be quite involved, too. So, the original statement from Takashi is stil valid - use a sound server if you want mixing. |
@HiassofT Understood, sir. Thanks for your time and explanation, really :) |
Describe the bug
Hi,
Since I need to play two simultaneous sounds using only ALSA and the vc4hdmi device, I found out that current vc4-hdmi.conf doesn't have a dmix section.
I have seen that older vc4-hdmi.conf versions had this dmix section:
Shouldn't that be present on current vc4-hdmi.conf?
Thanks!
Steps to reproduce the behaviour
Try to reproduce two simultaneous audio streams using ALSA (not PA).
For example, run "speaker-test" on a TTY, and try it again on another TTY: second speaker-test instance will fail. DMIX should allow to run both instances.
Device (s)
Raspberry Pi 3 Mod. A+, Raspberry Pi 3 Mod. B, Raspberry Pi 3 Mod. B+, Raspberry Pi 4 Mod. B, Raspberry Pi 400
System
Raspberry Pi reference 2021-10-30
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, c12b1df4ed6416fb0df33ba1731c5b13c1bdbdf8, stage2
Linux minimal 5.10.103-v8+ #1530 SMP PREEMPT Tue Mar 8 13:06:35 GMT 2022 aarch64 GNU/Linux
Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: