[mythtv] [PATCH] ALSA threaded/buffered rewrite

Kevin Kuphal kuphal at dls.net
Sat Jul 24 19:03:39 EDT 2004


David George wrote:

> 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.
>>
>> Anyways, here are the two files attached.  This really seems to be 
>> close to providing a workable native ALSA interface.  I'm sure I'm 
>> just missing something obvious (probably because it's 2am) and I hope 
>> someone here can find the problem and fix it.  Once the audio is 
>> synced up it should be another easy task to combine these two 
>> codebases using more common code/classes for the threading and 
>> buffering since their differences now are minimal.
>
>
> About the time this was committed, I haven't had audio output on 
> either of my Myth systems.  Been busy with work and stuff lately so I 
> haven't had much time to look at it, but I have been troubleshooting 
> it the last couple of days.
>
> Kevin, what kernel version and alsa version do you have this working 
> on?  It may help me track down my problem.  I am using kernel.org 
> 2.6.7 with patches and alsa 1.0.3 that comes with FC2.

I'm on 2.4.20-31_38 RH9 and looks like I'm using 1.0.5a.  I'm not on the 
latest CVS but from a little while back around when the last patch for 
this was comitted.  I'm starting to wonder if maybe the new a/v sync 
code might have affected this so I'll probably upgrade to CVS soon once 
I finish the status stuff I'm working on.

Kevin



More information about the mythtv-dev mailing list