From: Takashi Iwai Subject: Re: usbaudio: curframesize Date: Tue, 10 Sep 2002 15:08:26 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <20020909224716.34317.qmail@web12204.mail.yahoo.com> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20020909224716.34317.qmail@web12204.mail.yahoo.com> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: karsten wiese Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org Hi Karsten, At Tue, 10 Sep 2002 00:47:16 +0200 (CEST), karsten wiese wrote: > > hi, > > the curframesize member of struct snd_usb_substream > seams not to be initialized to something different > from 0. oops, thanks for spotting. fixed on cvs now. > > thus the code sequence > > subs->transfer_sched += subs->curframesize; > if (subs->transfer_sched >= runtime->period_size) { > subs->transfer_sched -= runtime->period_size; > break; > } > > in static int prepare_capture_urb() doesn't make sense > to me. > should curframesize be initialized with the minimum > estimated number of frames per 1ms? > like 44 for 44100? this is just the size in frames of curpacksize, i.e. the urb packet size in bytes. the non-integer packet size problem (44.1kHz) is not solved yet. ciao, Takashi ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390