ALSA/PulseAudio mixing issue

NSharp

New member
I have run into some issues with my NEO Z83-4U device, related to audio mixing. By default, Ubuntu seems to use PulseAudio as its software sound system. Underlying that is ALSA. After a while (sometimes immediately on an HDMI monitor, sometimes after a time), the audio begins to stutter -- like a video dropping frames.

I have disabled PulseAudio, so that I can configure the audio directly in ALSA and narrow down the issue. What I have found is: if I introduce a dmix plugin into the chain of audio plugins, there will be audio stuttering. Otherwise, audio plays fine. The problem with this is that two programs cannot both send audio to the audio subsystem unless a dmix mixer is in the pipeline. The audio device will be "busy" to the second program.

Any idea why dmix causes problems with this Cherry Trail audio + HD audio? I have tried a variety of settings for the buffer_size and and period_size. Some of the settings make the situation worse (cannot play at all with aplay); but, the audio never improves. Usually, I just get xrun errors.

Struggling with this, in case anyone has any insight into optimal settings for the ALSA chain. Thanks in advance.
 
Back
Top