From owner-freebsd-usb@FreeBSD.ORG Sat Oct 19 06:41:21 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 40546822 for ; Sat, 19 Oct 2013 06:41:21 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id F2243298F for ; Sat, 19 Oct 2013 06:41:20 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 165607A2C9; Sat, 19 Oct 2013 08:41:20 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id C4BEF8F689E; Sat, 19 Oct 2013 08:41:45 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id trGyA9qcmg2j; Sat, 19 Oct 2013 08:41:44 +0200 (CEST) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 9AC478F689D; Sat, 19 Oct 2013 08:41:44 +0200 (CEST) Message-ID: <526229D6.6040605@bitfrost.no> Date: Sat, 19 Oct 2013 08:42:30 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 Subject: Re: Scratchy playback issue with USB CLASS2 audio device References: <52622842.6030105@bitfrost.no> In-Reply-To: <52622842.6030105@bitfrost.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Taner , freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Oct 2013 06:41:21 -0000 On 10/19/13 08:35, Hans Petter Selasky wrote: > On 10/19/13 07:46, Taner wrote: >> uaudio_chan_play_sync_callback: Value = 0x0005fff8 >> uaudio_chan_play_sync_callback: Comparing 47998 < 48000 >> uaudio_chan_play_sync_callback: Value = 0x0005fff6 >> uaudio_chan_play_sync_callback: Comparing 47998 < 48000 > > Hi, > > The normal for adaptive rates is that this value should tilt just above > or below the 48000 or whatever is there. Else something is wrong. > > Did you try to record while playing? > > Also, are you running -stable? > > Could also check the amount of samples sent by using > "usbdump -i usbusX -f Y -s 65536 -vvv" > > --HPS Hi, Does this patch make any difference? === dev/sound/usb/uaudio.c ================================================================== --- dev/sound/usb/uaudio.c (revision 256754) +++ dev/sound/usb/uaudio.c (local) @@ -2070,7 +2070,7 @@ chn_intr(ch->pcm_ch); /* start SYNC transfer, if any */ - if ((ch->last_sync_time++ & 7) == 0) + if ((ch->last_sync_time++ & 3) == 0) usbd_transfer_start(ch->xfer[UAUDIO_NCHANBUFS]); case USB_ST_SETUP: --HPS