[alsa-devel] Backported sbxfi driver, possible fix

Alexander E. Patrakov patrakov at gmail.com
Tue Oct 28 05:44:26 CET 2008

James Courtier-Dutton wrote:
> Alex,
> I added that comment (takashi cut and pasted my text). No resampling is
> done.
> Say you have a buffer that is running at 48kHz.
> So you have say 480 samples at the 48kHz rate.
> But if you want to transfer 44.1kHz rate samples over it, you only want
> 441 samples to be there, so what to do with the left over 39 samples.
> What the xfi does is next to each sample it adds a "valid" tag.
> So, the xfi adds those 39 samples but marks them as "invalid".
> The xfi then drops the 39 "invalid" samples, leaving only the 441
> "valid" samples just before sending them at 44.1kHz to the DAC.
> Does this explain things a bit better?

Yes, thanks!

Alexander E. Patrakov

More information about the Alsa-devel mailing list