[alsa-devel] underruns and strange code in pcm_rate.c (and patch)

James Courtier-Dutton James at superbug.co.uk
Tue Nov 6 15:47:38 CET 2007


Takashi Iwai wrote:
> removing the hack there.  Maybe not.  But, I feel it's a barren
> discussion.  It's really a design problem.  Sigh.
> 

Are any steps being taken to change the design so that sample rate
conversion works better?
The options are:
1) get the sound card hardware to produce time based interrupts for the
rate plugin to use as it's period trigger. This is how the old OSS
drivers did it.
2) allow the user application to use different buffer/period sizes than
the hardware itself.
3) Try to encourage applications not to use the pcm_rate plugin at
all!!!  Instead force each application to do its own sample rate
conversion to match what the hardware can do.

I favor option (3) myself.

James




More information about the Alsa-devel mailing list