From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alexander E. Patrakov" Subject: Re: Backported sbxfi driver, possible fix Date: Tue, 28 Oct 2008 09:44:26 +0500 Message-ID: <490698AA.9090009@gmail.com> References: <4900A4FA.7020300@jasonline.co.uk> <4900DBBD.2020806@jasonline.co.uk> <49017FBF.4030005@jasonline.co.uk> <20081025130652.GA27621@rzle423.uni-duisburg.de> <20081025194255.GA27872@rzle423.uni-duisburg.de> <49038448.3090704@jasonline.co.uk> <5501535d0810251457k165cc4ceid2e34930a2bdc8ec@mail.gmail.com> <49061FA4.5010201@superbug.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by alsa0.perex.cz (Postfix) with ESMTP id C7FE3244FD for ; Tue, 28 Oct 2008 05:45:33 +0100 (CET) Received: by ug-out-1314.google.com with SMTP id h2so155607ugf.24 for ; Mon, 27 Oct 2008 21:45:33 -0700 (PDT) In-Reply-To: <49061FA4.5010201@superbug.co.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: James Courtier-Dutton Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org 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