Re: [PATCH 3/4] new timeofday x86-64 arch specific changes (v. B1)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2005-06-05 at 17:41 -0400, Parag Warudkar wrote:
> On Sunday 05 June 2005 16:51, Lee Revell wrote:
> > Well, that would be a broken design anyway.  That's what the ALSA timer
> > API is for.  But XMMS has a long history of buggy ALSA support anyway.
> >
> 
> I am not sure they use gettimeofday(). Pardon my ignorance but why is it 
> broken for them to use gettimeofday()?

If they're trying to synchronize other things to the sound,
gettimeofday() is a poor choice because it's driven by a different
crystal than the soundcard.  The correct solution is to use a PCM slave
timer.  See alsa-lib/examples/timer.c.

Lee

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux