From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 11 17:05:02 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31F641065673; Mon, 11 Apr 2011 17:05:02 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [212.27.42.5]) by mx1.freebsd.org (Postfix) with ESMTP id 2A34E8FC15; Mon, 11 Apr 2011 17:04:59 +0000 (UTC) Received: from graf.pompo.net (unknown [78.225.128.39]) by smtp5-g21.free.fr (Postfix) with ESMTP id 21D4ED48434; Mon, 11 Apr 2011 19:04:52 +0200 (CEST) Received: by graf.pompo.net (Postfix, from userid 1001) id 69E7111487; Mon, 11 Apr 2011 18:59:51 +0200 (CEST) Date: Mon, 11 Apr 2011 18:59:51 +0200 From: Thierry Thomas To: Hans Petter Selasky Message-ID: <20110411165951.GG16543@graf.pompo.net> References: <201104101010.p3AAAEQ6022759@freefall.freebsd.org> <201104111747.37797.hselasky@c2i.net> <20110411162721.GF16543@graf.pompo.net> <201104111838.16322.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201104111838.16322.hselasky@c2i.net> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.2-STABLE i386 Organization: Kabbale Eros X-Face: (hRbQnK~Pt7$ct`!fupO(`y_WL4^-Iwn4@ly-.,[4xC4xc; y=\ipKMNm<1J>lv@PP~7Z<.t KjAnXLs: X-PGP: 0xC71405A2 Cc: freebsd-multimedia@freebsd.org, FreeBSD-gnats-submit@freebsd.org Subject: Re: kern/152622: [pcm] uaudio recording problem X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2011 17:05:02 -0000 On mon 11 apr 11 at 18:38:16 +0200, Hans Petter Selasky wrote: > > Still no success: > > > > # sysctl hw.usb.uaudio.default_rate=16000 > > hw.usb.uaudio.default_rate: 0 -> 16000 > > # dd if=/dev/dsp1.0 of=/dev/dsp0.0 bs=64 > > dd: /dev/dsp1.0: Invalid argument > > 0+0 records in > > 0+0 records out > > 0 bytes transferred in 5.000237 secs (0 bytes/sec) > > # sysctl hw.usb.uaudio.default_rate=32000 > > Did you reply the device after setting the sysctl. It should show a different > rate. > > > hw.usb.uaudio.default_rate: 16000 -> 32000 > > # dd if=/dev/dsp1.0 of=/dev/dsp0.0 bs=64 > > dd: /dev/dsp1.0: Invalid argument > > 0+0 records in > > 0+0 records out > > 0 bytes transferred in 5.002866 secs (0 bytes/sec) I had'nt done anything special, but trying again and plug-in / plug-out after changing hw.usb.uaudio.default_rate shows that it is detected: Apr 11 18:49:43 graf root: Unknown USB device: vendor 0x046d product 0x0825 bus uhub4 Apr 11 18:49:43 graf last message repeated 4 times Apr 11 18:49:49 graf kernel: ugen4.3: at usbus4 Apr 11 18:49:49 graf kernel: uaudio0: on usbus4 Apr 11 18:49:49 graf kernel: uaudio0: No playback! Apr 11 18:49:49 graf kernel: uaudio0: Record: 16000 Hz, 1 ch, 16-bit S-LE PCM format Apr 11 18:49:49 graf kernel: uaudio0: No midi sequencer Apr 11 18:49:49 graf kernel: pcm1: on uaudio0 Apr 11 18:51:53 graf kernel: pcm1: chn_read(): pcm1:virtual:dsp1.vr0: record interrupt timeout, channel dead Apr 11 18:52:19 graf kernel: pcm1: chn_read(): pcm1:virtual:dsp1.vr0: record interrupt timeout, channel dead Apr 11 18:52:56 graf kernel: pcm1: chn_read(): pcm1:virtual:dsp1.vr0: record interrupt timeout, channel dead Apr 11 18:53:00 graf root: Unknown USB device: vendor 0x046d product 0x0825 bus uhub4 Apr 11 18:53:00 graf kernel: ugen4.3: at usbus4 (disconnected) Apr 11 18:53:00 graf kernel: uaudio0: at uhub4, port 8, addr 3 (disconnected) Apr 11 18:53:00 graf kernel: pcm1: detached Apr 11 18:53:00 graf root: Unknown USB device: vendor 0x046d product 0x0825 bus uhub4 Apr 11 18:53:00 graf last message repeated 3 times Apr 11 18:53:04 graf kernel: ugen4.3: at usbus4 Apr 11 18:53:04 graf kernel: uaudio0: on usbus4 Apr 11 18:53:04 graf kernel: uaudio0: No playback! Apr 11 18:53:04 graf kernel: uaudio0: Record: 32000 Hz, 1 ch, 16-bit S-LE PCM format Apr 11 18:53:04 graf kernel: uaudio0: No midi sequencer Apr 11 18:53:04 graf kernel: pcm1: on uaudio0 Apr 11 18:53:23 graf kernel: pcm1: chn_read(): pcm1:virtual:dsp1.vr0: record interrupt timeout, channel dead Best regards, -- Th. Thomas.