[mythtv] [PATCH] ALSA threaded/buffered rewrite

John Patrick Poet john at BlueSkyTours.com
Sun Jul 11 19:54:47 EDT 2004

Kevin Kuphal wrote:

> Isaac Richards wrote:
>> On Saturday 03 July 2004 03:04 am, Kevin Kuphal wrote:
>>> At the suggestion on the list here a little while back, I took the time
>>> to basically duplicate the OSS audio code (threading, buffers, etc) 
>>> into
>>> the ALSA functions.  I've tested this on my system and I can playback
>>> with my audio device as ALSA:spdif with no studdering or jumping but 
>>> the
>>> audio is not in sync with the video and I was hoping someone here that
>>> understands such things more than I could take a look at it.  I'm no
>>> ALSA expert nor am I an audio expert.
>> I'd guess that it's probably something wrong in the free space 
>> calculation.
> Exactly right.  Minor issue calling the wrong function to get the free 
> buffer space from the hardware parameters.  It now takes about the 
> same amount of time on my system now to have ALSA synced to video as 
> it does to sync the OSS part (just a second or two when starting 
> LiveTV).  I've attached the new files again.  I hope you experience 
> the same results I did here.
> Kevin

I have been using ALSA:iec958 and "Enable AC3 to SPDIF passthrough" from 
the begining with no problems -- but only with MythTV and HDTV 
material.  Those setting do not seem to work with MythMusic.  Will your 
patch allow me to use ALSA with MythMusic?



More information about the mythtv-dev mailing list