From: "Adrian Stancu" Subject: Re: snd-usb-audio syncronisation problem Date: Fri, 22 Feb 2008 18:46:43 +0200 Message-ID: <43e8c7320802220846g7d7c8b61jb29e8ca3028d2c24@mail.gmail.com> References: <43e8c7320802220151p177d2c73y2c9724a4cb4743ef@mail.gmail.com> <47BEC97A.3030507@ladisch.de> <43e8c7320802220545m6ccf8c7fr13a9390563d7df7@mail.gmail.com> <47BED4C2.4020501@ladisch.de> <43e8c7320802220619x4dfc049cv1f38a6fb8b1cb7a8@mail.gmail.com> <47BEDF9E.3000907@ladisch.de> <43e8c7320802220651r25ac78d7pecca63f3e1d48249@mail.gmail.com> <47BEEF4D.4050507@ladisch.de> <43e8c7320802220815y332a82f4kac19999cc15fd276@mail.gmail.com> <47BEF8FE.4030408@ladisch.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.185]) by alsa0.perex.cz (Postfix) with ESMTP id B832724440 for ; Fri, 22 Feb 2008 17:46:47 +0100 (CET) Received: by ti-out-0910.google.com with SMTP id u3so346142tia.8 for ; Fri, 22 Feb 2008 08:46:46 -0800 (PST) In-Reply-To: <47BEF8FE.4030408@ladisch.de> Content-Disposition: inline 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: Clemens Ladisch Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Yes!!! the feedback works correctly this way => perfect playback! what I had to do was: [...] f = combine_quad((u8*)urb->transfer_buffer) & 0x0fffffff; f /= 8; if (f >= subs->freqn - subs->freqn / 8 && f <= subs->freqmax) { spin_lock_irqsave(&subs->lock, flags); subs->freqm = f; [...] otherwise, the 'if' condition would still not be satisfied. Words can not describe how thankful I am about this one! Now, is there a way to incorporate this change into the driver without affecting functionality for other usb audio devices? On Fri, Feb 22, 2008 at 6:31 PM, Clemens Ladisch wrote: > Adrian Stancu wrote: > > According to dmesg, the device is running at high speed: > > usb 1-6: new high speed USB device using ehci_hcd and address 20 > > > > > So, if I convert the freq using the high speed formula, I get a value > > within the acceptable range, > > No; the device is high speed, but it sends a full speed feedback value. > > Please try "subs->freqm = f / 8;" > > > The value quoted in your previous message was exactly 48000 Hz; please > check if it ever changes. > > > Regards, > Clemens >