[alsa-devel] [PATCH 1/3] sound: Add a quirk to enforce period_bytes

Alexander E. Patrakov patrakov at gmail.com
Mon Jun 16 16:38:52 CEST 2014


16.06.2014 20:21, Mauro Carvalho Chehab wrote:
> Both xawtv and tvtime use the same code for audio:
> 	http://git.linuxtv.org/cgit.cgi/xawtv3.git/tree/common/alsa_stream.c
>
> There's an algorithm there that gets the period size form both the
> capture and the playback cards, trying to find a minimum period that
> would work properly for both.

I don't see any adaptive resampler (similar to what module-loopback does 
in pulseaudio) there. Without that, or dynamically controlling the audio 
capture clock PLL in the tuner, xruns are unavoidable when transferring 
data between two unrelated cards.

So, until any further evidence appears, I think it is a common bug in 
these audio codes.

-- 
Alexander E. Patrakov


More information about the Alsa-devel mailing list