From owner-freebsd-multimedia@FreeBSD.ORG Sun May 13 16:13:29 2012 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 105BF1065674 for ; Sun, 13 May 2012 16:13:29 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id 90D528FC0C for ; Sun, 13 May 2012 16:13:28 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 276083106; Sun, 13 May 2012 18:08:18 +0200 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org, Matthias Apitz Date: Sun, 13 May 2012 18:07:33 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.3-STABLE; KDE/4.4.5; amd64; ; ) References: <20120513155939.GA4313@tinyCurrent> In-Reply-To: <20120513155939.GA4313@tinyCurrent> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201205131807.33259.hselasky@c2i.net> Cc: Subject: Re: Logitech HD Webcam Pro c910 && snd_uaudio does not work 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: Sun, 13 May 2012 16:13:29 -0000 On Sunday 13 May 2012 17:59:39 Matthias Apitz wrote: > Hello, > > The audio recording with the above cam is not working in r214444 and > snd_uaudio(4); on plug-in it says: > > May 13 17:22:36 tinyCurrent kernel: ugen4.4: at usbus4 > May 13 17:22:36 tinyCurrent kernel: uaudio0: class 239/2, rev 2.00/0.10, addr 4> on usbus4 May 13 17:22:36 tinyCurrent > kernel: uaudio0: No playback! > May 13 17:22:36 tinyCurrent kernel: uaudio0: Record: 32000 Hz, 2 ch, 16-bit > S-LE PCM format May 13 17:22:36 tinyCurrent kernel: uaudio0: No midi > sequencer > May 13 17:22:36 tinyCurrent kernel: pcm1: on uaudio0 > > but recording does not work: > > $ dd if=/dev/dsp1 of=/tmp/snd > (after a second or so) > dd: /dev/dsp1: Invalid argument > 0+0 records in > 0+0 records out > 0 bytes transferred in 5.000931 secs (0 bytes/sec) > > in /var/log/messages it says in that situation: > > May 13 17:23:12 tinyCurrent kernel: pcm1: chn_read(): > pcm1:virtual:dsp1.vr0: record interrupt timeout, channel dead > > The same procedure for recording works fine in r226986 (where uaudio is > linked in the kernel) and > > $ cat /tmp/snd > /dev/dsp > > plays fine the recorded audio. Any idea? > > Thanks > > matthias It might be a race. Try to delay starting webcamd, after snd_uaudio is loaded. I remember someone reported a similar issue to me, and the solution was that snd_uaudio must do some commands before the webcamd is started. Else it doesn't work. This is a bug in the Webcam itself. --HPS