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

From: Lee Revell
Date: Sun Jun 05 2005 - 17:15:22 EST


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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/