From: Takashi Iwai Subject: Re: [PATCH 3/4] ALSA: usb-audio: parse UAC2 sample rate ranges correctly Date: Fri, 11 Jun 2010 17:54:52 +0200 Message-ID: References: <20100611151829.GE17833@buzzloop.caiaq.de> <1276270462-12901-3-git-send-email-daniel@caiaq.de> <20100611154633.GG17833@buzzloop.caiaq.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 5E11B1039E0 for ; Fri, 11 Jun 2010 17:54:52 +0200 (CEST) In-Reply-To: <20100611154633.GG17833@buzzloop.caiaq.de> 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: Daniel Mack Cc: alexlee188@gmail.com, alsa-devel@alsa-project.org, clemens@ladisch.de List-Id: alsa-devel@alsa-project.org At Fri, 11 Jun 2010 17:46:33 +0200, Daniel Mack wrote: > > On Fri, Jun 11, 2010 at 05:43:04PM +0200, Takashi Iwai wrote: > > At Fri, 11 Jun 2010 17:34:21 +0200, > > Daniel Mack wrote: > > > > > > + /* > > > + * for ranges with res == 1, we want a continuous sample > > > + * rate range, so this function should return 0. > > > + */ > > > + if (res == 1) { > > > + fp->rates = SNDRV_PCM_RATE_CONTINUOUS; > > > + return 0; > > > > Missing setup of fp->rate_min and fp->rate_max here? > > Gna, not my day. I did that, and of course tested it with a modified > firmware and it worked well. > > But appearantly I exported the wrong patch. Sorry. Well, people can understand it if they see the current score of the opening football game ;) Takashi