-
Notifications
You must be signed in to change notification settings - Fork 133
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
dmix / dsnoop not enabled by default on Raptor Lake HDA #5170
Comments
@jerstlouis sorry to hear about the pain in resolving this, normally the soundserver will mix multiple aplays for you by default without the need to configure plugins for mixing (although the soundserver does need to register it self with ALSA with a config file). I also dont think there is anything new with the Raptor lake HDA vs previous generations to support ALSA plugins. Are you able to share the kernel log of the audio drivers ? Raptor lake also been out a while (I'm using it with Ubuntu now - not seen this issue). One other thing, have you also tried to reinstall alsa/soundserver, sometimes a missing/renamed/edited config file can cause problems similar to this. |
Which soundserver? I am explicitly not using pulseaudio (nor pipewire, nor jack), wanting to use the built-in ALSA mixing (which from what I understand should either use hardware mixing when the hardware supports, or falls back to the dmix / dsnoop when it does not). That's what the issue is, that these are not set up by default when not using an ALSA config file.
Not sure what you mean by this? On Artix (Arch-based) I imagine there is only those 2 packages
The problem is things not working when I do not have config file set up.
Here is what seems to be relevant from [ 5.542915] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver [ 5.687322] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002) [ 5.798607] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 5 [ 5.888596] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864 |
@jerstlouis This is really distribution choice what happens by default. Most distros enable Pipewire or Pulsaudio by default, and dmix/dsnoop is not really that common anymore. There are still setups where native ALSA without any userspace mixing is prefered (e.g. people who want to run JACK and similar apps) and having dmix/snoop by default would not be desirable. |
Thanks @kv2019i . I think it's really a matter of clarifying whether there is an expectation that dsnoop/dmix are on by default without an ALSA config in cases where the hardware does not support hardware mixing. Because without either of those things, audio works terribly in user applications. People (and distros) can still set up an ALSA config to explicitly disable dmix/dsnoop if they do set up pulseaudio, pipewire or JACK of course. But it seems like the default behavior should be for things to work. |
probably need to ask @perexg for advice. |
@jerstlouis : Unfortunately, we do not add legacy configuration for new ASoC drivers to alsa-lib, because users have also other requirements (see bellow). So your special configuration is really an option for users who don't want to bother with pulseaudio/pipewire audio servers on desktop machines. Requested features:
Your config can be reduced as:
|
Thanks @perexg . So if there's no guarantee of mixing being available from ALSA itself without a config, I think what would help is much clearer / easier to find documentation on the matter from https://www.alsa-project.org/ on how to set up such a config and why that is needed. |
Please re-direct me if this is not the proper place to submit such bug report. Apologies if that's the case.
From support in libera.chat #alsa , I was told that this is similar to a bug that continuously keeps coming back for Intel HDA drivers (e.g., https://forums.gentoo.org/viewtopic-t-913432-start-0.html). I'm not exactly clear how the Linux kernel / audio device drivers / ALSA / SOF projects all relate to each other.
Describe the bug
On a laptop with Intel Raptor Lake HDA, audio mixing does not work by default on ALSA with a simplistic ALSA config or no config at all.
The work around is to create a
/etc/asound.conf
file withtype dmix
inpcm.output
andtype dsnoop
inpcm.input
.The loaded driver is
snd_sof_pci_intel_tgl
on Linux kernel 6.10.0 (or 6.10.6).The
sof_dev_desc
for my device is this: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/sound/soc/sof/intel/pci-tgl.c#n219https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/pci_ids.h#n3080
To Reproduce
Try playing 2 sounds at the same time with
aplay
without an ALSA config with a Raptor Lake (14th gen Intel) HDA system such as this Gigabyte AORUS 17X gaming laptop, with Linux 6.10.0 or 6.10.6.Alternatively this simple
asound.conf
used to correct the fact that my default sound card is the NVidia HDMI instead of the onboard audio (also a bug in itself?) results in the same problem:Reproduction Rate
Always.
Expected behavior
ALSA audio mixing should just work by default without a config, and Linux users should not have to choose between intense suffering to just get video conferencing working, or installing pulseaudio to handle mixing.
This is the asound.conf which solves the problems and would hopefully be the default behavior.
Impact
3 months of intense frustration with seemingly random audio-conferencing issues in browsers, which are incredibly difficult to troubleshoot for a regular end-user.
Environment
Running kernel 6.10.0-artix1-2 or 6.10.6-artix1-1
The text was updated successfully, but these errors were encountered: