From owner-freebsd-multimedia@FreeBSD.ORG Sun May 13 15:59:48 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9265D106566B for ; Sun, 13 May 2012 15:59:48 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 4DE0D8FC08 for ; Sun, 13 May 2012 15:59:48 +0000 (UTC) Received: from [188.174.220.176] (helo=localhost.my.domain) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1STbCu-0003wp-K1 for freebsd-multimedia@freebsd.org; Sun, 13 May 2012 17:59:40 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.4/8.14.3) with ESMTP id q4DFxepN004355 for ; Sun, 13 May 2012 17:59:40 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.4/8.14.3/Submit) id q4DFxdnL004354 for freebsd-multimedia@freebsd.org; Sun, 13 May 2012 17:59:39 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sun, 13 May 2012 17:59:39 +0200 From: Matthias Apitz To: freebsd-multimedia@freebsd.org Message-ID: <20120513155939.GA4313@tinyCurrent> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.220.176 Subject: Logitech HD Webcam Pro c910 && snd_uaudio does not work X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2012 15:59:48 -0000 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: 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 -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5 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 From owner-freebsd-multimedia@FreeBSD.ORG Sun May 13 16:24:20 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9A4E1106564A for ; Sun, 13 May 2012 16:24:20 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 516928FC12 for ; Sun, 13 May 2012 16:24:20 +0000 (UTC) Received: from [188.174.220.176] (helo=localhost.my.domain) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1STbal-0001Mq-83 for freebsd-multimedia@freebsd.org; Sun, 13 May 2012 18:24:19 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.4/8.14.3) with ESMTP id q4DGOI7o004566 for ; Sun, 13 May 2012 18:24:19 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.4/8.14.3/Submit) id q4DGOIMd004565 for freebsd-multimedia@freebsd.org; Sun, 13 May 2012 18:24:18 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sun, 13 May 2012 18:24:18 +0200 From: Matthias Apitz To: freebsd-multimedia@freebsd.org Message-ID: <20120513162418.GA4544@tinyCurrent> References: <20120513155939.GA4313@tinyCurrent> <201205131807.33259.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201205131807.33259.hselasky@c2i.net> X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.220.176 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 Reply-To: Matthias Apitz List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2012 16:24:20 -0000 El día Sunday, May 13, 2012 a las 06:07:33PM +0200, Hans Petter Selasky escribió: > > May 13 17:23:12 tinyCurrent kernel: pcm1: chn_read(): > > pcm1:virtual:dsp1.vr0: record interrupt timeout, channel dead > > > > ... > > 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. I inserted a 'sleep 3' in /usr/local/etc/rc.d/webcamd before the start of webcamd (and /var/log/messages showes that it is delayed). But this does not help. matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5 From owner-freebsd-multimedia@FreeBSD.ORG Sun May 13 17:12:13 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4A2071065679 for ; Sun, 13 May 2012 17:12:13 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id C7D4C8FC16 for ; Sun, 13 May 2012 17:12:12 +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 mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 273509531; Sun, 13 May 2012 19:12:04 +0200 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org, Matthias Apitz Date: Sun, 13 May 2012 19:11:18 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.3-STABLE; KDE/4.4.5; amd64; ; ) References: <20120513155939.GA4313@tinyCurrent> <201205131807.33259.hselasky@c2i.net> <20120513162418.GA4544@tinyCurrent> In-Reply-To: <20120513162418.GA4544@tinyCurrent> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@ =?iso-8859-1?q?d2+AyewRX=7DmAm=3BYp=0A=09=7CU=5B?=@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y> =?iso-8859-1?q?Y=7Dk1C4TfysrsUI=0A=09-=25GU9V5=5DiUZF=26nRn9mJ=27=3F=26?=>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201205131911.18787.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 17:12:13 -0000 On Sunday 13 May 2012 18:24:18 Matthias Apitz wrote: > El d=EDa Sunday, May 13, 2012 a las 06:07:33PM +0200, Hans Petter Selasky= =20 escribi=F3: > > > May 13 17:23:12 tinyCurrent kernel: pcm1: chn_read(): > > > pcm1:virtual:dsp1.vr0: record interrupt timeout, channel dead > > >=20 > > > ... > >=20 > > 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. >=20 > I inserted a 'sleep 3' in /usr/local/etc/rc.d/webcamd before the start > of webcamd (and /var/log/messages showes that it is delayed). But this > does not help. >=20 > matthias Hi, Maybe you can try to capture an USB trace using "usbdump -i xxx -f y -s 655= 36"=20 under FreeBSD and compare with the output from similar utility on Linux. =2D-HPS From owner-freebsd-multimedia@FreeBSD.ORG Mon May 14 05:10:30 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1ADF6106564A for ; Mon, 14 May 2012 05:10:30 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id C4E1B8FC12 for ; Mon, 14 May 2012 05:10:29 +0000 (UTC) Received: from [93.104.10.157] (helo=localhost.my.domain) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1STnYC-0000k3-NX for freebsd-multimedia@freebsd.org; Mon, 14 May 2012 07:10:28 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.4/8.14.3) with ESMTP id q4E5AR2q002726 for ; Mon, 14 May 2012 07:10:27 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.4/8.14.3/Submit) id q4E5AQ5V002725 for freebsd-multimedia@freebsd.org; Mon, 14 May 2012 07:10:26 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Mon, 14 May 2012 07:10:26 +0200 From: Matthias Apitz To: freebsd-multimedia@freebsd.org Message-ID: <20120514051026.GA2711@tinyCurrent> References: <20120513155939.GA4313@tinyCurrent> <201205131807.33259.hselasky@c2i.net> <20120513162418.GA4544@tinyCurrent> <201205131911.18787.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201205131911.18787.hselasky@c2i.net> X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 93.104.10.157 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 Reply-To: Matthias Apitz List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2012 05:10:30 -0000 El día Sunday, May 13, 2012 a las 07:11:18PM +0200, Hans Petter Selasky escribió: > Hi, > > Maybe you can try to capture an USB trace using "usbdump -i xxx -f y -s 65536" > under FreeBSD and compare with the output from similar utility on Linux. Hi, The system where it does not work (r214444) does not have the usbdump utility; is there any debug in snd_uaudio to enable? Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5 From owner-freebsd-multimedia@FreeBSD.ORG Mon May 14 11:07:17 2012 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4240C106566B for ; Mon, 14 May 2012 11:07:17 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2B2AE8FC17 for ; Mon, 14 May 2012 11:07:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q4EB7How053327 for ; Mon, 14 May 2012 11:07:17 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q4EB7GYw053324 for freebsd-multimedia@FreeBSD.org; Mon, 14 May 2012 11:07:16 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 14 May 2012 11:07:16 GMT Message-Id: <201205141107.q4EB7GYw053324@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-multimedia@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-multimedia@FreeBSD.org 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, 14 May 2012 11:07:17 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/165090 multimedia audio/faad missing head files o kern/162181 multimedia [snd_emu10k1] [patch] The kernel sound driver module s o ports/161783 multimedia [PATCH] multimedia/gpac-libgpac: Fix build with gcc46 o ports/161568 multimedia [PATCH] audio/libsamplerate: samplerate.h has comma at o ports/161546 multimedia [PATCH] multimedia/mkvtoolnix: make some dependencies o kern/159236 multimedia [pcm] [patch] set PCM_CAP_DEFAULT for the default snd o ports/158987 multimedia multimedia/py-kaa-multimedia: fix build error for grap o kern/158979 multimedia [snd_uadio] snd_uaudio fails to initialize built-in mi o kern/158542 multimedia [snd_hda] hdac0: hdac_get_capabilities: Invalid corb s f kern/158424 multimedia [snd_hda] snd_hda driver doesn't expose 'rec' flag for o stand/157050 multimedia OSS implementation lacks AFMT_FLOAT o kern/156726 multimedia [snd_uaudio]: snd_uaudio(4) fails to detach when mixer o kern/156198 multimedia [snd_hda] [hang] loading snd_hda kernel module hangs s o kern/156165 multimedia [hdac] Missing card definition for hdac audio device, o ports/153846 multimedia graphics/libcaca 0.99.beta17 - Hidden dependency on Xl o kern/152622 multimedia [pcm] uaudio recording problem o kern/152500 multimedia [hdac] play interrupt timeout, channel dead o kern/152378 multimedia [sound][patch] Update snd_envy24ht to be MPSAFE and us f ports/150502 multimedia multimedia/gpac-libgpac 0.4.5_4,1 fails to compile on o kern/150284 multimedia [snd_hda] No gain with Audio o kern/149943 multimedia [pcm]: CS4236 audio problem o kern/148741 multimedia [sound] Headphones are deaf (do not work) on Lenovo Th o kern/147504 multimedia [oss] [panic] panic: dev_pager_getpage: map function r o kern/146031 multimedia [snd_hda] race condition when kldunload snd_hda sound o kern/144659 multimedia [pcm] The distortion of the sound playback of music at o kern/143505 multimedia [pcm] FreeBSD 8.0-RELEASE (x64) won't make sound card o kern/141826 multimedia [snd_hda] load of snd_hda module fails o kern/140591 multimedia [PATCH][sound] No sound output on lineout/headphone ja o kern/137589 multimedia [snd_uaudio] snd_uaudio.ko (USB audio driver) doesn't o kern/134767 multimedia [sound] [snd_hda] [regression] Sigmatel STAC9205X no s o kern/132848 multimedia [sound] [snd_emu10kx] driver problem with card init, s o kern/132511 multimedia [sound] [snd_hda] Probing ALC888 codec on ASRock K10N7 o kern/129604 multimedia [sound] Sound stops with error: pcm0:virtual:dsp0.vp0: o kern/127131 multimedia [bktr] /usr/src/sys/dev/bktr/bktr_os.c, line 469: wron s kern/125756 multimedia [sound] [patch] cannot detect soft-modem on HDA bus o kern/124319 multimedia [sound] [snd_emu10k1] [regression] Cannot record from o kern/122086 multimedia [sound] maestro sound driver is working, but mixer ini p kern/121156 multimedia [sound] [patch] Turn on inverted external amplifier se o kern/120857 multimedia [sound] [snd_emu10k1] snd_emu10k1 driver issues a warn o kern/120780 multimedia [sound] [snd_hda] snd_hda doesn't work on Dell Latitut o kern/119973 multimedia [sound] [snd_maestro] [regression] snd_maestro only wo o kern/119931 multimedia [sound] No sound card detected on ASUS "K8V-X SE R2.00 o kern/119759 multimedia [sound] [snd_emu10k1] [regression] Can not record anyt o kern/115300 multimedia [sound] [snd_hda] [regression] snd_hda(4) fails to att o kern/114760 multimedia [sound] [snd_cmi] snd_cmi driver causing sporadic syst o kern/111767 multimedia [sound] ATI SB450 High Definition Audio Controller sou o kern/107516 multimedia [sound] [snd_emu10k1] - skips, clicks and lag after a o kern/107051 multimedia [sound] only 2 channels output works for the ALC850 (o o kern/104874 multimedia [sound] [snd_emu10k1] kldload snd_emu10k1 hangs system o kern/101417 multimedia [sound] 4-speakers output not possible on Asus A8V-Del o kern/100859 multimedia [sound] [snd_ich] snd_ich broken on GIGABYTE 915 syste o kern/98752 multimedia [sound] Intel ich6 82801 FB - on Packard Bell A8810 la o kern/98504 multimedia [sound] Sound is distorted with SB Live 5.1 o kern/98496 multimedia [sound] [snd_ich] some functions don't work in my soun o kern/97609 multimedia [sound] Load Sound Module - VIA8233 - fails o kern/97535 multimedia [sound] [snd_mss] doesn't work in 6.0-RELEASE and abov o kern/96538 multimedia [sound] emu10k1-driver inverts channels o kern/95086 multimedia [sound] uaudio line in problem with sbdm lx o kern/94279 multimedia [sound] [snd_neomagic] snd_neomagic crashes on FreeBSD o kern/93986 multimedia [sound] Acer TravelMate 4652LMi pcm0 channel dead o kern/92512 multimedia [sound] distorted mono output with emu10k1 o kern/87782 multimedia [sound] snd_t4dwave and pcm0:record:0: record interrup o kern/82043 multimedia [sound] snd_emu10k1 - mixer does not work. o kern/81146 multimedia [sound] Sound isn't working AT ALL for Sis7012 onboard o kern/80632 multimedia [sound] pcm driver missing support for CMI8738 auxilla o kern/79912 multimedia [sound] sound broken for 2 VIA chipsets: interrupt sto o kern/79905 multimedia [sound] sis7018 sound module problem o kern/79678 multimedia [sound] sound works except recording from any source o conf/75137 multimedia [sound] add snd_* modules support to /etc/rc.d/mixer f kern/72995 multimedia [sound] Intel ICH2 (82801BA) - sound nearly inaudible o kern/63204 multimedia [sound] /dev/mixer broken with ESS Maestro-2E (still o o kern/60677 multimedia [sound] [patch] No reaction of volume controy key on I s kern/60599 multimedia [bktr] [partial patch] No sound for ATI TV Wonder (ste o kern/37600 multimedia [sound] [partial patch] t4dwave drive doesn't record. o kern/23546 multimedia [sound] [snd_csa] [patch] csa DMA-interrupt problem 75 problems total. From owner-freebsd-multimedia@FreeBSD.ORG Mon May 14 15:27:20 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D71F21065674 for ; Mon, 14 May 2012 15:27:20 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id 652F88FC27 for ; Mon, 14 May 2012 15:27:20 +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 mailfe06.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 272985689; Mon, 14 May 2012 17:22:13 +0200 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org, Matthias Apitz Date: Mon, 14 May 2012 17:21:25 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.3-STABLE; KDE/4.4.5; amd64; ; ) References: <20120513155939.GA4313@tinyCurrent> <201205131911.18787.hselasky@c2i.net> <20120514051026.GA2711@tinyCurrent> In-Reply-To: <20120514051026.GA2711@tinyCurrent> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@ =?iso-8859-1?q?d2+AyewRX=7DmAm=3BYp=0A=09=7CU=5B?=@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y> =?iso-8859-1?q?Y=7Dk1C4TfysrsUI=0A=09-=25GU9V5=5DiUZF=26nRn9mJ=27=3F=26?=>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201205141721.25641.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: Mon, 14 May 2012 15:27:20 -0000 On Monday 14 May 2012 07:10:26 Matthias Apitz wrote: > El d=EDa Sunday, May 13, 2012 a las 07:11:18PM +0200, Hans Petter Selasky= =20 escribi=F3: > > Hi, > >=20 > > Maybe you can try to capture an USB trace using "usbdump -i xxx -f y -s > > 65536" under FreeBSD and compare with the output from similar utility on > > Linux. >=20 > Hi, > The system where it does not work (r214444) does not have the usbdump > utility; is there any debug in snd_uaudio to enable? > Thanks Yes, hw.usb.uaudio.debug=3D15 If compiled with USB_DEBUG set. =2D-HPS From owner-freebsd-multimedia@FreeBSD.ORG Tue May 15 07:27:52 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7807A106564A for ; Tue, 15 May 2012 07:27:52 +0000 (UTC) (envelope-from udenisov@geostan.kz) Received: from mail.geostan.kz (mail.geostan.kz [193.193.241.12]) by mx1.freebsd.org (Postfix) with ESMTP id 20A7A8FC0A for ; Tue, 15 May 2012 07:27:52 +0000 (UTC) Received: from [192.168.0.10] (unknown [190.228.29.103]) (Authenticated sender: udenisov@geostan.kz) by mail.geostan.kz (Postfix) with ESMTP id D11DA204BDB0 for ; Tue, 15 May 2012 12:53:51 +0600 (ALMT) Date: Tue, 15 May 2012 4:27:46 +0500 From: =?windows-1251?Q?=C3=E0=EB=FF_=C5=EB=E5=F8=E5=E2=E0?= Organization: ajxnpd X-Priority: 3 (Normal) Message-ID: <1165514913.20120515042746@geostan.kz> To: freebsd-multimedia@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Subject: =?windows-1251?b?6vDg8eDi9+jqLi4uISkg?= 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: Tue, 15 May 2012 07:27:52 -0000 Çäðàâñòâóéòå ìîé õîðîøèé.!)) åñëè ñêó÷àåøü è õîø ïîçíàêîìèòüñÿ Ëèío÷êaXëoïoíèía-csgrnatzj.hotmail.ru èìÿ ìî¸ òàì..!!))) From owner-freebsd-multimedia@FreeBSD.ORG Wed May 16 12:23:38 2012 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D7613106566B for ; Wed, 16 May 2012 12:23:38 +0000 (UTC) (envelope-from countercultures2@pacunion.com) Received: from actae.ath.forthnet.gr (actae.ath.forthnet.gr [193.92.77.115]) by mx1.freebsd.org (Postfix) with ESMTP id 7E0D48FC0C for ; Wed, 16 May 2012 12:23:38 +0000 (UTC) Received: from apache by qbrujdeeejifh.fnbhutch.com with local (Exim 4.63) (envelope-from <>) id TK7JF5-WW5B7N-4H for ; Wed, 16 May 2012 14:23:36 +0200 To: Date: Wed, 16 May 2012 14:23:36 +0200 From: Message-ID: <65CCC8E113E03AE85525009080B32DAA@qbrujdeeejifh.ataportfoy.com.tr> X-Priority: 3 X-Mailer: PHPMailer 5.1 (phpmailer.sourceforge.net) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" Cc: Subject: We invite you to work in your spare time for $ 100 per hour 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: Wed, 16 May 2012 12:23:38 -0000 We invite you to work in the remote assistant position. This work takes 2-3 hours per week and requires absolutely no investment. The essence of this work for incoming client requests in your city. The starting salary is about 2500 EUR per month + bonuses. You get paid your salary every 2 weeks and your bonuses after fulfilling each task! We guarantee work for everyone. But we accept applications this week only! Therefore, you should write a request right now. And you will start earning money, starting from next week. Please indicate in the request: Your name: Your email address: City of residence: Please send the request to my email Davis@eureseurope.com and I will answer you personally as soon as possible Sincerely, Davis Amos From owner-freebsd-multimedia@FreeBSD.ORG Wed May 16 16:08:19 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EA0421065761 for ; Wed, 16 May 2012 16:08:19 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 794798FC16 for ; Wed, 16 May 2012 16:08:19 +0000 (UTC) Received: from [93.104.4.71] (helo=localhost.my.domain) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1SUglm-0007ut-OT for freebsd-multimedia@freebsd.org; Wed, 16 May 2012 18:08:11 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.4/8.14.3) with ESMTP id q4GG89QV002258 for ; Wed, 16 May 2012 18:08:09 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.4/8.14.3/Submit) id q4GG88Jo002257 for freebsd-multimedia@freebsd.org; Wed, 16 May 2012 18:08:08 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Wed, 16 May 2012 18:08:07 +0200 From: Matthias Apitz To: freebsd-multimedia@freebsd.org Message-ID: <20120516160807.GA2246@tinyCurrent> References: <20120513155939.GA4313@tinyCurrent> <201205131911.18787.hselasky@c2i.net> <20120514051026.GA2711@tinyCurrent> <201205141721.25641.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201205141721.25641.hselasky@c2i.net> X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 93.104.4.71 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 Reply-To: Matthias Apitz List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2012 16:08:20 -0000 El día Monday, May 14, 2012 a las 05:21:25PM +0200, Hans Petter Selasky escribió: > > Hi, > > The system where it does not work (r214444) does not have the usbdump > > utility; is there any debug in snd_uaudio to enable? > > Thanks > > Yes, > > hw.usb.uaudio.debug=15 > > If compiled with USB_DEBUG set. This gives the following messages: on plug-in: May 16 18:00:36 tinyCurrent kernel: pcm1: on uaudio0 May 16 18:00:36 tinyCurrent kernel: uaudio_attach_sub: emulating master volume May 16 18:00:36 tinyCurrent kernel: uaudio_mixer_init_sub: May 16 18:00:36 tinyCurrent kernel: uaudio_mixer_bsd2value: type=0x002 val=-18176 min=-18176 max=-4864 val=-18176 May 16 18:00:36 tinyCurrent kernel: uaudio_mixer_write_cfg_callback: May 16 18:00:36 tinyCurrent kernel: uaudio_mixer_write_cfg_callback: May 16 18:00:36 tinyCurrent kernel: uaudio_chan_init: endpoint=0x86, speed=32000, iface=1 alt=3 May 16 18:00:36 tinyCurrent kernel: uaudio_chan_init: fps=1000 sample_rem=0 May 16 18:00:36 tinyCurrent root: /usr/local/etc/rc.d/webcamd: WARNING: failed to start webcamd May 16 18:00:36 tinyCurrent root: Unknown USB device: vendor 0x046d product 0x0821 bus uhub4 May 16 18:00:37 tinyCurrent last message repeated 2 times (now started in another window dd if=/dev/dsp1.0 of=/tmp/snd) May 16 18:02:08 tinyCurrent kernel: uaudio_chan_record_callback: transferred 0 bytes May 16 18:02:13 tinyCurrent last message repeated 623 times ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ May 16 18:02:13 tinyCurrent kernel: pcm1: chn_read(): pcm1:virtual:dsp1.vr0: record interrupt timeout, channel dead Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5 From owner-freebsd-multimedia@FreeBSD.ORG Wed May 16 16:09:57 2012 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57C961065673; Wed, 16 May 2012 16:09:57 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from smtp.timeweb.ru (unknown [IPv6:2a03:6f00:1::5c35:743c]) by mx1.freebsd.org (Postfix) with ESMTP id DC7818FC08; Wed, 16 May 2012 16:09:56 +0000 (UTC) Received: from [213.148.20.85] (helo=hive.panopticon) by smtp.timeweb.ru with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76) (envelope-from ) id 1SUgnT-00075v-8d; Wed, 16 May 2012 20:09:55 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id 256B2B84E; Wed, 16 May 2012 20:09:55 +0400 (MSK) Received: by hades.panopticon (Postfix, from userid 1000) id 1668170D; Wed, 16 May 2012 20:09:55 +0400 (MSK) To: FreeBSD-gnats-submit@freebsd.org From: Dmitry Marakasov X-send-pr-version: 3.113 X-GNATS-Notify: Message-Id: <20120516160955.1668170D@hades.panopticon> Date: Wed, 16 May 2012 20:09:55 +0400 (MSK) Cc: multimedia@FreeBSD.org Subject: [PATCH] audio/jack: ALSA driver is broken 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: Wed, 16 May 2012 16:09:57 -0000 >Submitter-Id: current-users >Originator: Dmitry Marakasov >Organization: >Confidential: no >Synopsis: [PATCH] audio/jack: ALSA driver is broken >Severity: serious >Priority: low >Category: ports >Class: sw-bug >Release: FreeBSD 9.0-RELEASE amd64 >Environment: System: FreeBSD hades.panopticon 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 10 01:33:18 MSK 2012 >Description: ALSA driver is broken: --- % jackd -d alsa jackd 0.121.3 Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others. jackd comes with ABSOLUTELY NO WARRANTY This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details could not open driver .so '/usr/local/lib/jack/jack_alsa.so': /usr/local/lib/jack/jack_alsa.so: Undefined symbol "clock_nanosleep" could not open driver .so '/usr/local/lib/jack/jack_alsa_midi.so': /usr/local/lib/jack/jack_alsa_midi.so: Undefined symbol "clock_nanosleep" jackd: unknown driver 'alsa' --- The cause: --- % grep -R clock_nanosleep work work/jack-audio-connection-kit-0.121.3/drivers/alsa-midi/alsa_rawmidi.c: clock_nanosleep(CLOCK_MONOTONIC, 0, &ts, NULL); --- but this function is not supported on FreeBSD: --- % grep clock_nanosleep /usr/include/time.h /* XXX missing: clock_nanosleep() */ --- and though jack builds: --- /bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -I../../config -I../.. -I../.. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -g -O2 -pipe -march=nocona -fno-strict-aliasing -I../../config -I../.. -I../.. -D_ REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -g -MT alsa_rawmidi.lo -MD -MP -MF .deps/alsa_rawmidi.Tpo -c -o alsa_rawmidi.lo alsa_rawmidi.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -I../../config -I../.. -I../.. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -g -O2 -pipe -march=nocona -fno-strict-aliasing -I../../config -I../.. -I../.. -D_REENTRANT -D_POSIX_PTHREAD_SEMANT ICS -Wall -g -MT alsa_rawmidi.lo -MD -MP -MF .deps/alsa_rawmidi.Tpo -c alsa_rawmidi.c -fPIC -DPIC -o .libs/alsa_rawmidi.o alsa_rawmidi.c: In function 'midi_thread': alsa_rawmidi.c:856: warning: implicit declaration of function 'clock_nanosleep' --- the driver is unuseable. Port maintainer (multimedia@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: CVS) >How-To-Repeat: Try to use ALSA driver >Fix: Since the second argument of clock_nanosleep (flags) is 0, ts still specifies a relative time, so theoretically the call may be replaced with simple nanosleep(&ts, NULL). I'm, however, unaware of differences between CLOCK_MONOTONIC and other clock types, as well as which of them is used by FreeBSD's nanosleep(), so it may have implications. From owner-freebsd-multimedia@FreeBSD.ORG Wed May 16 16:20:18 2012 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BACDD106566C; Wed, 16 May 2012 16:20:18 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8D4CA8FC20; Wed, 16 May 2012 16:20:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q4GGKI4v011483; Wed, 16 May 2012 16:20:18 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q4GGKIx6011476; Wed, 16 May 2012 16:20:18 GMT (envelope-from edwin) Date: Wed, 16 May 2012 16:20:18 GMT Message-Id: <201205161620.q4GGKIx6011476@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-multimedia@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/167971: [PATCH] audio/jack: ALSA driver is broken 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: Wed, 16 May 2012 16:20:18 -0000 Synopsis: [PATCH] audio/jack: ALSA driver is broken Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-multimedia Responsible-Changed-By: edwin Responsible-Changed-When: Wed May 16 16:20:17 UTC 2012 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=167971 From owner-freebsd-multimedia@FreeBSD.ORG Wed May 16 17:28:39 2012 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A8587106566C; Wed, 16 May 2012 17:28:39 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from smtp.timeweb.ru (unknown [IPv6:2a03:6f00:1::5c35:743c]) by mx1.freebsd.org (Postfix) with ESMTP id 3473A8FC0C; Wed, 16 May 2012 17:28:39 +0000 (UTC) Received: from [213.148.20.85] (helo=hive.panopticon) by smtp.timeweb.ru with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76) (envelope-from ) id 1SUi1e-0006OQ-1s; Wed, 16 May 2012 21:28:38 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id BFAD3B84E; Wed, 16 May 2012 21:28:37 +0400 (MSK) Received: by hades.panopticon (Postfix, from userid 1000) id B3AF2724; Wed, 16 May 2012 21:28:37 +0400 (MSK) Date: Wed, 16 May 2012 21:28:37 +0400 From: Dmitry Marakasov To: bug-followup@FreeBSD.org Message-ID: <20120516172837.GD15922@hades.panopticon> References: <20120516160955.1668170D@hades.panopticon> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20120516160955.1668170D@hades.panopticon> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: multimedia@FreeBSD.org Subject: Re: ports/167971: [PATCH] audio/jack: ALSA driver is broken 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: Wed, 16 May 2012 17:28:39 -0000 * Dmitry Marakasov (amdmi3@amdmi3.ru) wrote: > Since the second argument of clock_nanosleep (flags) is 0, ts still specifies a relative time, so theoretically the call may be replaced with simple nanosleep(&ts, NULL). I'm, however, unaware of differences between CLOCK_MONOTONIC and other clock types, as well as which of them is used by FreeBSD's nanosleep(), so it may have implications. NB: the same fix is used in multimedia/gavl file:///usr/ports/multimedia/gavl/files/patch-gavl-time.c and, judging from Linux man it should be safe: http://linux.die.net/man/2/nanosleep: --- POSIX.1 specifies that nanosleep() should measure time against the CLOCK_REALTIME clock. However, Linux measures the time using the CLOCK_MONOTONIC clock. This probably does not matter, since the POSIX.1 specification for clock_settime(2) says that discontinuous changes in CLOCK_REALTIME should not affect nanosleep() --- Thus, if FreeBSD nanosleep conforms to POSIX.1, it shouldn't matter for FreeBSD as well, so clock_nanosleep(CLOCK_MONOTONIC, 0, ...) -> nanosleep(...) replacement is safe. Thus, the PR is fixed by this patch (http://people.freebsd.org/~amdmi3/patch-drivers-alsa-midi-alsa_rawmidi.c): --- ./drivers/alsa-midi/alsa_rawmidi.c.orig 2008-05-29 16:26:07.000000000 +0400 +++ ./drivers/alsa-midi/alsa_rawmidi.c 2012-05-16 20:10:24.645166068 +0400 @@ -853,7 +853,7 @@ struct timespec ts; ts.tv_sec = 0; ts.tv_nsec = wait_nanosleep; - clock_nanosleep(CLOCK_MONOTONIC, 0, &ts, NULL); + nanosleep(&ts, NULL); } int res = poll((struct pollfd*)&pfds, npfds, poll_timeout); //debug_log("midi_thread(%s): poll exit: %d", str->name, res); -- Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D amdmi3@amdmi3.ru ..: jabber: amdmi3@jabber.ru http://www.amdmi3.ru From owner-freebsd-multimedia@FreeBSD.ORG Wed May 16 17:30:13 2012 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 416AA1065677 for ; Wed, 16 May 2012 17:30:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0DA2E8FC12 for ; Wed, 16 May 2012 17:30:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q4GHUCk8077005 for ; Wed, 16 May 2012 17:30:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q4GHUChf076997; Wed, 16 May 2012 17:30:12 GMT (envelope-from gnats) Date: Wed, 16 May 2012 17:30:12 GMT Message-Id: <201205161730.q4GHUChf076997@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: Dmitry Marakasov Cc: Subject: Re: ports/167971: [PATCH] audio/jack: ALSA driver is broken X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dmitry Marakasov List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2012 17:30:13 -0000 The following reply was made to PR ports/167971; it has been noted by GNATS. From: Dmitry Marakasov To: bug-followup@FreeBSD.org Cc: multimedia@FreeBSD.org Subject: Re: ports/167971: [PATCH] audio/jack: ALSA driver is broken Date: Wed, 16 May 2012 21:28:37 +0400 * Dmitry Marakasov (amdmi3@amdmi3.ru) wrote: > Since the second argument of clock_nanosleep (flags) is 0, ts still specifies a relative time, so theoretically the call may be replaced with simple nanosleep(&ts, NULL). I'm, however, unaware of differences between CLOCK_MONOTONIC and other clock types, as well as which of them is used by FreeBSD's nanosleep(), so it may have implications. NB: the same fix is used in multimedia/gavl file:///usr/ports/multimedia/gavl/files/patch-gavl-time.c and, judging from Linux man it should be safe: http://linux.die.net/man/2/nanosleep: --- POSIX.1 specifies that nanosleep() should measure time against the CLOCK_REALTIME clock. However, Linux measures the time using the CLOCK_MONOTONIC clock. This probably does not matter, since the POSIX.1 specification for clock_settime(2) says that discontinuous changes in CLOCK_REALTIME should not affect nanosleep() --- Thus, if FreeBSD nanosleep conforms to POSIX.1, it shouldn't matter for FreeBSD as well, so clock_nanosleep(CLOCK_MONOTONIC, 0, ...) -> nanosleep(...) replacement is safe. Thus, the PR is fixed by this patch (http://people.freebsd.org/~amdmi3/patch-drivers-alsa-midi-alsa_rawmidi.c): --- ./drivers/alsa-midi/alsa_rawmidi.c.orig 2008-05-29 16:26:07.000000000 +0400 +++ ./drivers/alsa-midi/alsa_rawmidi.c 2012-05-16 20:10:24.645166068 +0400 @@ -853,7 +853,7 @@ struct timespec ts; ts.tv_sec = 0; ts.tv_nsec = wait_nanosleep; - clock_nanosleep(CLOCK_MONOTONIC, 0, &ts, NULL); + nanosleep(&ts, NULL); } int res = poll((struct pollfd*)&pfds, npfds, poll_timeout); //debug_log("midi_thread(%s): poll exit: %d", str->name, res); -- Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D amdmi3@amdmi3.ru ..: jabber: amdmi3@jabber.ru http://www.amdmi3.ru From owner-freebsd-multimedia@FreeBSD.ORG Wed May 16 17:47:34 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9F8BB106566C for ; Wed, 16 May 2012 17:47:34 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.c2i.net [212.247.154.226]) by mx1.freebsd.org (Postfix) with ESMTP id 29ECA8FC12 for ; Wed, 16 May 2012 17:47:33 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 275895496; Wed, 16 May 2012 19:47:26 +0200 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org, Matthias Apitz Date: Wed, 16 May 2012 19:46:39 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.3-STABLE; KDE/4.4.5; amd64; ; ) References: <20120513155939.GA4313@tinyCurrent> <201205141721.25641.hselasky@c2i.net> <20120516160807.GA2246@tinyCurrent> In-Reply-To: <20120516160807.GA2246@tinyCurrent> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@ =?iso-8859-1?q?d2+AyewRX=7DmAm=3BYp=0A=09=7CU=5B?=@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y> =?iso-8859-1?q?Y=7Dk1C4TfysrsUI=0A=09-=25GU9V5=5DiUZF=26nRn9mJ=27=3F=26?=>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201205161946.39956.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: Wed, 16 May 2012 17:47:34 -0000 On Wednesday 16 May 2012 18:08:07 Matthias Apitz wrote: > El d=EDa Monday, May 14, 2012 a las 05:21:25PM +0200, Hans Petter Selasky= =20 escribi=F3: > > > Hi, > > > The system where it does not work (r214444) does not have the usbdump > > > utility; is there any debug in snd_uaudio to enable? > > > Thanks > >=20 > > Yes, > >=20 > > hw.usb.uaudio.debug=3D15 > >=20 > > If compiled with USB_DEBUG set. >=20 > This gives the following messages: >=20 > on plug-in: >=20 > May 16 18:00:36 tinyCurrent kernel: pcm1: on uaudio0 > May 16 18:00:36 tinyCurrent kernel: uaudio_attach_sub: emulating master > volume May 16 18:00:36 tinyCurrent kernel: uaudio_mixer_init_sub: > May 16 18:00:36 tinyCurrent kernel: uaudio_mixer_bsd2value: type=3D0x002 > val=3D-18176 min=3D-18176 max=3D-4864 val=3D-18176 May 16 18:00:36 tinyCu= rrent > kernel: uaudio_mixer_write_cfg_callback: May 16 18:00:36 tinyCurrent > kernel: uaudio_mixer_write_cfg_callback: May 16 18:00:36 tinyCurrent > kernel: uaudio_chan_init: endpoint=3D0x86, speed=3D32000, iface=3D1 alt= =3D3 > May 16 18:00:36 tinyCurrent kernel: uaudio_chan_init: fps=3D1000 sample_r= em=3D0 > May 16 18:00:36 tinyCurrent root: /usr/local/etc/rc.d/webcamd: WARNING: > failed to start webcamd May 16 18:00:36 tinyCurrent root: Unknown USB > device: vendor 0x046d product 0x0821 bus uhub4 May 16 18:00:37 tinyCurrent > last message repeated 2 times >=20 > (now started in another window dd if=3D/dev/dsp1.0 of=3D/tmp/snd) >=20 >=20 > May 16 18:02:08 tinyCurrent kernel: uaudio_chan_record_callback: > transferred 0 bytes May 16 18:02:13 tinyCurrent last message repeated 623 > times > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > May 16 18:02:13 tinyCurrent kernel: pcm1: chn_read(): > pcm1:virtual:dsp1.vr0: record interrupt timeout, channel dead >=20 > Thanks >=20 > matthias Hi, I believe this is a firmware bug. You should try to report to the manufactu= rer=20 of the webcam. =2D-HPS From owner-freebsd-multimedia@FreeBSD.ORG Wed May 16 17:51:49 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2957A106564A for ; Wed, 16 May 2012 17:51:49 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id D4C848FC17 for ; Wed, 16 May 2012 17:51:48 +0000 (UTC) Received: from [89.204.130.122] (helo=tiny.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1SUiO3-0003uq-6i for freebsd-multimedia@freebsd.org; Wed, 16 May 2012 19:51:47 +0200 Received: from tiny.Sisis.de (localhost [127.0.0.1]) by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q4GHpjRA001350 for ; Wed, 16 May 2012 19:51:45 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q4GHpi0U001349 for freebsd-multimedia@freebsd.org; Wed, 16 May 2012 19:51:44 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Wed, 16 May 2012 19:51:44 +0200 From: Matthias Apitz To: freebsd-multimedia@freebsd.org Message-ID: <20120516175144.GB1280@tiny> References: <20120513155939.GA4313@tinyCurrent> <201205141721.25641.hselasky@c2i.net> <20120516160807.GA2246@tinyCurrent> <201205161946.39956.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201205161946.39956.hselasky@c2i.net> X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.130.122 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 Reply-To: Matthias Apitz List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2012 17:51:49 -0000 Hi, El día Wednesday, May 16, 2012 a las 07:46:39PM +0200, Hans Petter Selasky escribió: > > May 16 18:02:08 tinyCurrent kernel: uaudio_chan_record_callback: > > transferred 0 bytes May 16 18:02:13 tinyCurrent last message repeated 623 > > times > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > May 16 18:02:13 tinyCurrent kernel: pcm1: chn_read(): > > pcm1:virtual:dsp1.vr0: record interrupt timeout, channel dead > > > > Thanks > > > > matthias > > Hi, > > I believe this is a firmware bug. Keep in mind that it is working fine in 10-CURRENT r226986; > You should try to report to the manufacturer > of the webcam. You are kidding, aren't you? :-) matthias -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 From owner-freebsd-multimedia@FreeBSD.ORG Thu May 17 05:50:12 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 A4332106564A for ; Thu, 17 May 2012 05:50:12 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 5AED88FC0C for ; Thu, 17 May 2012 05:50:12 +0000 (UTC) Received: from [88.217.85.60] (helo=localhost.my.domain) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1SUtbG-0005bS-Sb for freebsd-multimedia@freebsd.org; Thu, 17 May 2012 07:50:11 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.4/8.14.3) with ESMTP id q4H5o9KZ002451 for ; Thu, 17 May 2012 07:50:09 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.4/8.14.3/Submit) id q4H5o8j5002450 for freebsd-multimedia@freebsd.org; Thu, 17 May 2012 07:50:08 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Thu, 17 May 2012 07:50:08 +0200 From: Matthias Apitz To: freebsd-multimedia@freebsd.org Message-ID: <20120517055008.GA2336@tinyCurrent> References: <20120513155939.GA4313@tinyCurrent> <201205141721.25641.hselasky@c2i.net> <20120516160807.GA2246@tinyCurrent> <201205161946.39956.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201205161946.39956.hselasky@c2i.net> X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 88.217.85.60 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 Reply-To: Matthias Apitz List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 May 2012 05:50:12 -0000 El día Wednesday, May 16, 2012 a las 07:46:39PM +0200, Hans Petter Selasky escribió: > Hi, > > I believe this is a firmware bug. You should try to report to the manufacturer > of the webcam. > > --HPS Here we go: http://forums.logitech.com/t5/Webcams/c910-on-FreeBSD-laptops-problem-with-built-in-micro/td-p/834798 HIH matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5 From owner-freebsd-multimedia@FreeBSD.ORG Thu May 17 06:46:37 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 61C37106566B for ; Thu, 17 May 2012 06:46:37 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 9C7428FC12 for ; Thu, 17 May 2012 06:46:36 +0000 (UTC) Received: from [88.217.85.60] (helo=localhost.my.domain) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1SUuTr-0002hw-6F for freebsd-multimedia@freebsd.org; Thu, 17 May 2012 08:46:35 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.4/8.14.3) with ESMTP id q4H6kXUt002714 for ; Thu, 17 May 2012 08:46:33 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.4/8.14.3/Submit) id q4H6kXNf002713 for freebsd-multimedia@freebsd.org; Thu, 17 May 2012 08:46:33 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Thu, 17 May 2012 08:46:32 +0200 From: Matthias Apitz To: freebsd-multimedia@freebsd.org Message-ID: <20120517064632.GA2670@tinyCurrent> References: <20120513155939.GA4313@tinyCurrent> <201205131911.18787.hselasky@c2i.net> <20120514051026.GA2711@tinyCurrent> <201205141721.25641.hselasky@c2i.net> <20120516160807.GA2246@tinyCurrent> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20120516160807.GA2246@tinyCurrent> X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 88.217.85.60 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 Reply-To: Matthias Apitz List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 May 2012 06:46:37 -0000 --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit El día Wednesday, May 16, 2012 a las 06:08:07PM +0200, Matthias Apitz escribió: > This gives the following messages: > > on plug-in: > > May 16 18:00:36 tinyCurrent kernel: pcm1: on uaudio0 > May 16 18:00:36 tinyCurrent kernel: uaudio_attach_sub: emulating master volume > May 16 18:00:36 tinyCurrent kernel: uaudio_mixer_init_sub: > May 16 18:00:36 tinyCurrent kernel: uaudio_mixer_bsd2value: type=0x002 val=-18176 min=-18176 max=-4864 val=-18176 > May 16 18:00:36 tinyCurrent kernel: uaudio_mixer_write_cfg_callback: > May 16 18:00:36 tinyCurrent kernel: uaudio_mixer_write_cfg_callback: > May 16 18:00:36 tinyCurrent kernel: uaudio_chan_init: endpoint=0x86, > speed=32000, iface=1 alt=3 > May 16 18:00:36 tinyCurrent kernel: uaudio_chan_init: fps=1000 sample_rem=0 > May 16 18:00:36 tinyCurrent root: /usr/local/etc/rc.d/webcamd: WARNING: failed to start webcamd > May 16 18:00:36 tinyCurrent root: Unknown USB device: vendor 0x046d product 0x0821 bus uhub4 > May 16 18:00:37 tinyCurrent last message repeated 2 times > > (now started in another window dd if=/dev/dsp1.0 of=/tmp/snd) > > > May 16 18:02:08 tinyCurrent kernel: uaudio_chan_record_callback: transferred 0 bytes > May 16 18:02:13 tinyCurrent last message repeated 623 times > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > May 16 18:02:13 tinyCurrent kernel: pcm1: chn_read(): pcm1:virtual:dsp1.vr0: record interrupt timeout, channel dead I have had a look into the kernel sources... the message 'uaudio_chan_record_callback: transferred 0 bytes' comes from /usr/src.r214444/sys/dev/sound/usb/uaudio.c and if I svn diff this with the kernel r226986 where the micro of the cam is working # svn diff -r226986 uaudio.c > /tmp/uaudio.c-r214444-r226986 there are substantial changes in the source (diff attached); I think I should just update this laptop to a more recent version.... matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5 --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="uaudio.c-r214444-r226986" Content-Transfer-Encoding: 8bit Index: uaudio.c =================================================================== --- uaudio.c (revisión: 226986) +++ uaudio.c (copia de trabajo) @@ -53,6 +53,7 @@ #include #include #include +#include #include #include #include @@ -191,16 +192,10 @@ uint8_t iface_alt_index; }; +#define UMIDI_N_TRANSFER 4 /* units */ #define UMIDI_CABLES_MAX 16 /* units */ -#define UMIDI_TX_FRAMES 256 /* units */ -#define UMIDI_TX_BUFFER (UMIDI_TX_FRAMES * 4) /* bytes */ +#define UMIDI_BULK_SIZE 1024 /* bytes */ -enum { - UMIDI_TX_TRANSFER, - UMIDI_RX_TRANSFER, - UMIDI_N_TRANSFER, -}; - struct umidi_sub_chan { struct usb_fifo_sc fifo; uint8_t *temp_cmd; @@ -230,13 +225,16 @@ uint8_t iface_index; uint8_t iface_alt_index; + uint8_t flags; +#define UMIDI_FLAG_READ_STALL 0x01 +#define UMIDI_FLAG_WRITE_STALL 0x02 + uint8_t read_open_refcount; uint8_t write_open_refcount; uint8_t curr_cable; uint8_t max_cable; uint8_t valid; - uint8_t single_command; }; struct uaudio_softc { @@ -267,7 +265,6 @@ uint8_t sc_uq_au_inp_async:1; uint8_t sc_uq_au_no_xu:1; uint8_t sc_uq_bad_adc:1; - uint8_t sc_uq_au_vendor_class:1; }; struct uaudio_search_result { @@ -340,7 +337,9 @@ static usb_callback_t uaudio_chan_play_callback; static usb_callback_t uaudio_chan_record_callback; static usb_callback_t uaudio_mixer_write_cfg_callback; +static usb_callback_t umidi_read_clear_stall_callback; static usb_callback_t umidi_bulk_read_callback; +static usb_callback_t umidi_write_clear_stall_callback; static usb_callback_t umidi_bulk_write_callback; static void uaudio_chan_fill_info_sub(struct uaudio_softc *, @@ -404,8 +403,8 @@ static int umidi_ioctl(struct usb_fifo *, u_long cmd, void *, int); static void umidi_close(struct usb_fifo *, int); static void umidi_init(device_t dev); -static int umidi_probe(device_t dev); -static int umidi_detach(device_t dev); +static int32_t umidi_probe(device_t dev); +static int32_t umidi_detach(device_t dev); #ifdef USB_DEBUG static void uaudio_chan_dump_ep_desc( @@ -495,22 +494,43 @@ static const struct usb_config umidi_config[UMIDI_N_TRANSFER] = { - [UMIDI_TX_TRANSFER] = { + [0] = { .type = UE_BULK, .endpoint = UE_ADDR_ANY, .direction = UE_DIR_OUT, - .bufsize = UMIDI_TX_BUFFER, + .bufsize = UMIDI_BULK_SIZE, + .flags = {.pipe_bof = 1,.short_xfer_ok = 1,}, .callback = &umidi_bulk_write_callback, }, - [UMIDI_RX_TRANSFER] = { + [1] = { .type = UE_BULK, .endpoint = UE_ADDR_ANY, .direction = UE_DIR_IN, .bufsize = 4, /* bytes */ - .flags = {.short_xfer_ok = 1,.proxy_buffer = 1,}, + .flags = {.pipe_bof = 1,.short_xfer_ok = 1,.proxy_buffer = 1,}, .callback = &umidi_bulk_read_callback, }, + + [2] = { + .type = UE_CONTROL, + .endpoint = 0x00, /* Control pipe */ + .direction = UE_DIR_ANY, + .bufsize = sizeof(struct usb_device_request), + .callback = &umidi_write_clear_stall_callback, + .timeout = 1000, /* 1 second */ + .interval = 50, /* 50ms */ + }, + + [3] = { + .type = UE_CONTROL, + .endpoint = 0x00, /* Control pipe */ + .direction = UE_DIR_ANY, + .bufsize = sizeof(struct usb_device_request), + .callback = &umidi_read_clear_stall_callback, + .timeout = 1000, /* 1 second */ + .interval = 50, /* 50ms */ + }, }; static devclass_t uaudio_devclass; @@ -532,15 +552,6 @@ .size = sizeof(struct uaudio_softc), }; -static const STRUCT_USB_HOST_ID __used uaudio_devs[] = { - /* Generic USB audio class match */ - {USB_IFACE_CLASS(UICLASS_AUDIO), - USB_IFACE_SUBCLASS(UISUBCLASS_AUDIOCONTROL),}, - /* Generic USB MIDI class match */ - {USB_IFACE_CLASS(UICLASS_AUDIO), - USB_IFACE_SUBCLASS(UISUBCLASS_MIDISTREAM),}, -}; - static int uaudio_probe(device_t dev) { @@ -549,29 +560,24 @@ if (uaa->usb_mode != USB_MODE_HOST) return (ENXIO); - /* lookup non-standard device */ + if (uaa->use_generic == 0) + return (ENXIO); - if (uaa->info.bInterfaceClass != UICLASS_AUDIO) { - if (usb_test_quirk(uaa, UQ_AU_VENDOR_CLASS) == 0) - return (ENXIO); - } + /* trigger on the control interface */ - /* check for AUDIO control interface */ - - if (uaa->info.bInterfaceSubClass == UISUBCLASS_AUDIOCONTROL) { + if ((uaa->info.bInterfaceClass == UICLASS_AUDIO) && + (uaa->info.bInterfaceSubClass == UISUBCLASS_AUDIOCONTROL)) { if (usb_test_quirk(uaa, UQ_BAD_AUDIO)) return (ENXIO); else - return (BUS_PROBE_GENERIC); + return (0); } /* check for MIDI stream */ - if (uaa->info.bInterfaceSubClass == UISUBCLASS_MIDISTREAM) { - if (usb_test_quirk(uaa, UQ_BAD_MIDI)) - return (ENXIO); - else - return (BUS_PROBE_GENERIC); + if ((uaa->info.bInterfaceClass == UICLASS_AUDIO) && + (uaa->info.bInterfaceSubClass == UISUBCLASS_MIDISTREAM)) { + return (0); } return (ENXIO); } @@ -602,9 +608,6 @@ if (usb_test_quirk(uaa, UQ_BAD_ADC)) sc->sc_uq_bad_adc = 1; - if (usb_test_quirk(uaa, UQ_AU_VENDOR_CLASS)) - sc->sc_uq_au_vendor_class = 1; - umidi_init(dev); device_set_usb_desc(dev); @@ -796,47 +799,7 @@ #endif -/* - * The following is a workaround for broken no-name USB audio devices - * sold by dealextreme called "3D sound". The problem is that the - * manufacturer computed wMaxPacketSize is too small to hold the - * actual data sent. In other words the device sometimes sends more - * data than it actually reports it can send in a single isochronous - * packet. - */ static void -uaudio_record_fix_fs(usb_endpoint_descriptor_audio_t *ep, - uint32_t xps, uint32_t add) -{ - uint32_t mps; - - mps = UGETW(ep->wMaxPacketSize); - - /* - * If the device indicates it can send more data than what the - * sample rate indicates, we apply the workaround. - */ - if (mps > xps) { - - /* allow additional data */ - xps += add; - - /* check against the maximum USB 1.x length */ - if (xps > 1023) - xps = 1023; - - /* check if we should do an update */ - if (mps < xps) { - /* simply update the wMaxPacketSize field */ - USETW(ep->wMaxPacketSize, xps); - DPRINTF("Workaround: Updated wMaxPacketSize " - "from %d to %d bytes.\n", - (int)mps, (int)xps); - } - } -} - -static void uaudio_chan_fill_info_sub(struct uaudio_softc *sc, struct usb_device *udev, uint32_t rate, uint8_t channels, uint8_t bit_resolution) { @@ -844,7 +807,7 @@ const struct usb_audio_streaming_interface_descriptor *asid = NULL; const struct usb_audio_streaming_type1_descriptor *asf1d = NULL; const struct usb_audio_streaming_endpoint_descriptor *sed = NULL; - usb_endpoint_descriptor_audio_t *ed1 = NULL; + const usb_endpoint_descriptor_audio_t *ed1 = NULL; const usb_endpoint_descriptor_audio_t *ed2 = NULL; struct usb_config_descriptor *cd = usbd_get_config_descriptor(udev); struct usb_interface_descriptor *id; @@ -859,7 +822,6 @@ uint8_t bBitResolution; uint8_t x; uint8_t audio_if = 0; - uint8_t uma_if_class; while ((desc = usb_desc_foreach(cd, desc))) { @@ -877,22 +839,19 @@ alt_index++; } - uma_if_class = - ((id->bInterfaceClass == UICLASS_AUDIO) || - ((id->bInterfaceClass == UICLASS_VENDOR) && - (sc->sc_uq_au_vendor_class != 0))); - - if ((uma_if_class != 0) && (id->bInterfaceSubClass == UISUBCLASS_AUDIOSTREAM)) { + if ((id->bInterfaceClass == UICLASS_AUDIO) && + (id->bInterfaceSubClass == UISUBCLASS_AUDIOSTREAM)) { audio_if = 1; } else { audio_if = 0; } - if ((uma_if_class != 0) && + if ((id->bInterfaceClass == UICLASS_AUDIO) && (id->bInterfaceSubClass == UISUBCLASS_MIDISTREAM)) { /* * XXX could allow multiple MIDI interfaces + * XXX */ if ((sc->sc_midi_chan.valid == 0) && @@ -927,8 +886,8 @@ continue; } if (asf1d->bLength < (sizeof(*asf1d) + - ((asf1d->bSamFreqType == 0) ? 6 : - (asf1d->bSamFreqType * 3)))) { + (asf1d->bSamFreqType == 0) ? 6 : + (asf1d->bSamFreqType * 3))) { DPRINTFN(11, "'asf1d' descriptor is too short\n"); asf1d = NULL; continue; @@ -1046,13 +1005,6 @@ UAUDIO_MAX_CHAN(chan->p_asf1d->bNrChannels) * chan->p_asf1d->bBitResolution) / 8); - if (ep_dir == UE_DIR_IN && - usbd_get_speed(udev) == USB_SPEED_FULL) { - uaudio_record_fix_fs(ed1, - chan->sample_size * (rate / 1000), - chan->sample_size * (rate / 4000)); - } - if (sc->sc_sndstat_valid) { sbuf_printf(&sc->sc_sndstat, "\n\t" "mode %d.%d:(%s) %dch, %d/%dbit, %s, %dHz", @@ -1410,14 +1362,14 @@ usbd_errstr(err)); goto error; } - usbd_set_parent_iface(sc->sc_udev, iface_index, - sc->sc_mixer_iface_index); + usbd_set_parent_iface(sc->sc_udev, iface_index, sc->sc_mixer_iface_index); /* - * Only set the sample rate if the channel reports that it - * supports the frequency control. + * If just one sampling rate is supported, + * no need to call "uaudio_set_speed()". + * Roland SD-90 freezes by a SAMPLING_FREQ_CONTROL request. */ - if (ch->p_sed->bmAttributes & UA_SED_FREQ_CONTROL) { + if (ch->p_asf1d->bSamFreqType != 1) { if (uaudio_set_speed(sc->sc_udev, endpoint, ch->sample_rate)) { /* * If the endpoint is adaptive setting the speed may @@ -1626,10 +1578,10 @@ uaudio_mixer_add_ctl_sub(struct uaudio_softc *sc, struct uaudio_mixer_node *mc) { struct uaudio_mixer_node *p_mc_new = - malloc(sizeof(*p_mc_new), M_USBDEV, M_WAITOK); + malloc(sizeof(*p_mc_new), M_USBDEV, M_WAITOK); - if (p_mc_new != NULL) { - memcpy(p_mc_new, mc, sizeof(*p_mc_new)); + if (p_mc_new) { + bcopy(mc, p_mc_new, sizeof(*p_mc_new)); p_mc_new->next = sc->sc_mixer_root; sc->sc_mixer_root = p_mc_new; sc->sc_mixer_count++; @@ -1771,7 +1723,7 @@ DPRINTFN(3, "ichs=%d ochs=%d\n", ichs, ochs); - memset(&mix, 0, sizeof(mix)); + bzero(&mix, sizeof(mix)); mix.wIndex = MAKE_WORD(d0->bUnitId, sc->sc_mixer_iface_no); uaudio_mixer_determine_class(&iot[id], &mix); @@ -1831,7 +1783,7 @@ if (d->bNrInPins == 0) { return; } - memset(&mix, 0, sizeof(mix)); + bzero(&mix, sizeof(mix)); mix.wIndex = MAKE_WORD(d->bUnitId, sc->sc_mixer_iface_no); mix.wValue[0] = MAKE_WORD(0, 0); @@ -1901,7 +1853,7 @@ if (d->bControlSize == 0) { return; } - memset(&mix, 0, sizeof(mix)); + bzero(&mix, sizeof(mix)); nchan = (d->bLength - 7) / d->bControlSize; mmask = uaudio_mixer_feature_get_bmaControls(d, 0); @@ -2035,7 +1987,7 @@ DPRINTF("no mode select\n"); return; } - memset(&mix, 0, sizeof(mix)); + bzero(&mix, sizeof(mix)); mix.wIndex = MAKE_WORD(d0->bUnitId, sc->sc_mixer_iface_no); mix.nchan = 1; @@ -2061,7 +2013,7 @@ struct uaudio_mixer_node mix; uint16_t ptype; - memset(&mix, 0, sizeof(mix)); + bzero(&mix, sizeof(mix)); ptype = UGETW(d0->wProcessType); @@ -2116,7 +2068,7 @@ } if (d1->bmControls[0] & UA_EXT_ENABLE_MASK) { - memset(&mix, 0, sizeof(mix)); + bzero(&mix, sizeof(mix)); mix.wIndex = MAKE_WORD(d0->bUnitId, sc->sc_mixer_iface_no); mix.nchan = 1; @@ -2343,7 +2295,7 @@ } error: DPRINTF("bad data\n"); - memset(&r, 0, sizeof(r)); + bzero(&r, sizeof(r)); done: return (r); } @@ -3333,12 +3285,25 @@ *========================================================================*/ static void +umidi_read_clear_stall_callback(struct usb_xfer *xfer, usb_error_t error) +{ + struct umidi_chan *chan = usbd_xfer_softc(xfer); + struct usb_xfer *xfer_other = chan->xfer[1]; + + if (usbd_clear_stall_callback(xfer, xfer_other)) { + DPRINTF("stall cleared\n"); + chan->flags &= ~UMIDI_FLAG_READ_STALL; + usbd_transfer_start(xfer_other); + } +} + +static void umidi_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error) { struct umidi_chan *chan = usbd_xfer_softc(xfer); struct umidi_sub_chan *sub; struct usb_page_cache *pc; - uint8_t buf[4]; + uint8_t buf[1]; uint8_t cmd_len; uint8_t cn; uint16_t pos; @@ -3356,50 +3321,60 @@ while (actlen >= 4) { - /* copy out the MIDI data */ - usbd_copy_out(pc, pos, buf, 4); - /* command length */ - cmd_len = umidi_cmd_to_len[buf[0] & 0xF]; - /* cable number */ - cn = buf[0] >> 4; - /* - * Lookup sub-channel. The index is range - * checked below. - */ + usbd_copy_out(pc, pos, buf, 1); + + cmd_len = umidi_cmd_to_len[buf[0] & 0xF]; /* command length */ + cn = buf[0] >> 4; /* cable number */ sub = &chan->sub[cn]; - if ((cmd_len != 0) && - (cn < chan->max_cable) && - (sub->read_open != 0)) { - - /* Send data to the application */ - usb_fifo_put_data_linear( - sub->fifo.fp[USB_FIFO_RX], - buf + 1, cmd_len, 1); + if (cmd_len && (cn < chan->max_cable) && sub->read_open) { + usb_fifo_put_data(sub->fifo.fp[USB_FIFO_RX], pc, + pos + 1, cmd_len, 1); + } else { + /* ignore the command */ } + actlen -= 4; pos += 4; } case USB_ST_SETUP: DPRINTF("start\n"); -tr_setup: + + if (chan->flags & UMIDI_FLAG_READ_STALL) { + usbd_transfer_start(chan->xfer[3]); + return; + } usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer)); usbd_transfer_submit(xfer); - break; + return; default: DPRINTF("error=%s\n", usbd_errstr(error)); if (error != USB_ERR_CANCELLED) { /* try to clear stall first */ - usbd_xfer_set_stall(xfer); - goto tr_setup; + chan->flags |= UMIDI_FLAG_READ_STALL; + usbd_transfer_start(chan->xfer[3]); } - break; + return; + } } +static void +umidi_write_clear_stall_callback(struct usb_xfer *xfer, usb_error_t error) +{ + struct umidi_chan *chan = usbd_xfer_softc(xfer); + struct usb_xfer *xfer_other = chan->xfer[0]; + + if (usbd_clear_stall_callback(xfer, xfer_other)) { + DPRINTF("stall cleared\n"); + chan->flags &= ~UMIDI_FLAG_WRITE_STALL; + usbd_transfer_start(xfer_other); + } +} + /* * The following statemachine, that converts MIDI commands to * USB MIDI packets, derives from Linux's usbmidi.c, which @@ -3528,8 +3503,6 @@ sub->temp_cmd = sub->temp_1; sub->state = UMIDI_ST_SYSEX_0; return (1); - default: - break; } } return (0); @@ -3542,7 +3515,7 @@ struct umidi_sub_chan *sub; struct usb_page_cache *pc; uint32_t actlen; - uint16_t nframes; + uint16_t total_length; uint8_t buf; uint8_t start_cable; uint8_t tr_any; @@ -3550,19 +3523,19 @@ usbd_xfer_status(xfer, &len, NULL, NULL, NULL); - /* - * NOTE: Some MIDI devices only accept 4 bytes of data per - * short terminated USB transfer. - */ switch (USB_GET_STATE(xfer)) { case USB_ST_TRANSFERRED: DPRINTF("actlen=%d bytes\n", len); case USB_ST_SETUP: -tr_setup: + DPRINTF("start\n"); - nframes = 0; /* reset */ + if (chan->flags & UMIDI_FLAG_WRITE_STALL) { + usbd_transfer_start(chan->xfer[2]); + return; + } + total_length = 0; /* reset */ start_cable = chan->curr_cable; tr_any = 0; pc = usbd_xfer_get_frame(xfer, 0); @@ -3574,53 +3547,54 @@ sub = &chan->sub[chan->curr_cable]; if (sub->write_open) { - usb_fifo_get_data_linear(sub->fifo.fp[USB_FIFO_TX], - &buf, 1, &actlen, 0); + usb_fifo_get_data(sub->fifo.fp[USB_FIFO_TX], + pc, total_length, 1, &actlen, 0); } else { actlen = 0; } if (actlen) { + usbd_copy_out(pc, total_length, &buf, 1); tr_any = 1; - DPRINTF("byte=0x%02x from FIFO %u\n", buf, - (unsigned int)chan->curr_cable); + DPRINTF("byte=0x%02x\n", buf); if (umidi_convert_to_usb(sub, chan->curr_cable, buf)) { - DPRINTF("sub=0x%02x 0x%02x 0x%02x 0x%02x\n", + DPRINTF("sub= %02x %02x %02x %02x\n", sub->temp_cmd[0], sub->temp_cmd[1], sub->temp_cmd[2], sub->temp_cmd[3]); - usbd_copy_in(pc, nframes * 4, sub->temp_cmd, 4); + usbd_copy_in(pc, total_length, + sub->temp_cmd, 4); - nframes++; + total_length += 4; - if ((nframes >= UMIDI_TX_FRAMES) || (chan->single_command != 0)) + if (total_length >= UMIDI_BULK_SIZE) { break; + } } else { continue; } } - chan->curr_cable++; - if (chan->curr_cable >= chan->max_cable) + if (chan->curr_cable >= chan->max_cable) { chan->curr_cable = 0; - + } if (chan->curr_cable == start_cable) { - if (tr_any == 0) + if (tr_any == 0) { break; + } tr_any = 0; } } - if (nframes != 0) { - DPRINTF("Transferring %d frames\n", (int)nframes); - usbd_xfer_set_frame_len(xfer, 0, 4 * nframes); + if (total_length) { + usbd_xfer_set_frame_len(xfer, 0, total_length); usbd_transfer_submit(xfer); } - break; + return; default: /* Error */ @@ -3628,10 +3602,11 @@ if (error != USB_ERR_CANCELLED) { /* try to clear stall first */ - usbd_xfer_set_stall(xfer); - goto tr_setup; + chan->flags |= UMIDI_FLAG_WRITE_STALL; + usbd_transfer_start(chan->xfer[2]); } - break; + return; + } } @@ -3661,7 +3636,7 @@ { struct umidi_chan *chan = usb_fifo_softc(fifo); - usbd_transfer_start(chan->xfer[UMIDI_RX_TRANSFER]); + usbd_transfer_start(chan->xfer[1]); } static void @@ -3688,7 +3663,7 @@ { struct umidi_chan *chan = usb_fifo_softc(fifo); - usbd_transfer_start(chan->xfer[UMIDI_TX_TRANSFER]); + usbd_transfer_start(chan->xfer[0]); } static void @@ -3703,7 +3678,8 @@ if (--(chan->write_open_refcount) == 0) { DPRINTF("(stopping write transfer)\n"); - usbd_transfer_stop(chan->xfer[UMIDI_TX_TRANSFER]); + usbd_transfer_stop(chan->xfer[2]); + usbd_transfer_stop(chan->xfer[0]); } } @@ -3728,7 +3704,7 @@ } /* clear stall first */ mtx_lock(&chan->mtx); - usbd_xfer_set_stall(chan->xfer[UMIDI_TX_TRANSFER]); + chan->flags |= UMIDI_FLAG_WRITE_STALL; chan->write_open_refcount++; sub->write_open = 1; @@ -3778,7 +3754,7 @@ .basename[0] = "umidi", }; -static int +static int32_t umidi_probe(device_t dev) { struct uaudio_softc *sc = device_get_softc(dev); @@ -3789,16 +3765,12 @@ int error; uint32_t n; - if (usb_test_quirk(uaa, UQ_SINGLE_CMD_MIDI)) - chan->single_command = 1; - if (usbd_set_alt_interface_index(sc->sc_udev, chan->iface_index, chan->iface_alt_index)) { DPRINTF("setting of alternate index failed!\n"); goto detach; } - usbd_set_parent_iface(sc->sc_udev, chan->iface_index, - sc->sc_mixer_iface_index); + usbd_set_parent_iface(sc->sc_udev, chan->iface_index, sc->sc_mixer_iface_index); error = usbd_transfer_setup(uaa->device, &chan->iface_index, chan->xfer, umidi_config, UMIDI_N_TRANSFER, @@ -3828,15 +3800,13 @@ mtx_lock(&chan->mtx); /* clear stall first */ - usbd_xfer_set_stall(chan->xfer[UMIDI_RX_TRANSFER]); + chan->flags |= UMIDI_FLAG_READ_STALL; /* - * NOTE: At least one device will not work properly unless the - * BULK IN pipe is open all the time. This might have to do - * about that the internal queues of the device overflow if we - * don't read them regularly. + * NOTE: at least one device will not work properly unless + * the BULK pipe is open all the time. */ - usbd_transfer_start(chan->xfer[UMIDI_RX_TRANSFER]); + usbd_transfer_start(chan->xfer[1]); mtx_unlock(&chan->mtx); @@ -3846,7 +3816,7 @@ return (ENXIO); /* failure */ } -static int +static int32_t umidi_detach(device_t dev) { struct uaudio_softc *sc = device_get_softc(dev); @@ -3859,7 +3829,8 @@ mtx_lock(&chan->mtx); - usbd_transfer_stop(chan->xfer[UMIDI_RX_TRANSFER]); + usbd_transfer_stop(chan->xfer[3]); + usbd_transfer_stop(chan->xfer[1]); mtx_unlock(&chan->mtx); --3V7upXqbjpZ4EhLz-- From owner-freebsd-multimedia@FreeBSD.ORG Fri May 18 07:31:33 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2882E1065672 for ; Fri, 18 May 2012 07:31:33 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id AE76D8FC0C for ; Fri, 18 May 2012 07:31:32 +0000 (UTC) Received: from [89.204.138.172] (helo=tiny.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1SVHel-0006pB-S7; Fri, 18 May 2012 09:31:25 +0200 Received: from tiny.Sisis.de (localhost [127.0.0.1]) by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q4I7VLYS001371; Fri, 18 May 2012 09:31:21 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q4I7VJac001370; Fri, 18 May 2012 09:31:19 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Fri, 18 May 2012 09:31:19 +0200 From: Matthias Apitz To: Hans Petter Selasky Message-ID: <20120518073118.GA1332@tiny> References: <20120513155939.GA4313@tinyCurrent> <201205131911.18787.hselasky@c2i.net> <20120514051026.GA2711@tinyCurrent> <201205141721.25641.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201205141721.25641.hselasky@c2i.net> X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.138.172 Cc: freebsd-multimedia@freebsd.org 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 Reply-To: Matthias Apitz List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2012 07:31:33 -0000 El día Monday, May 14, 2012 a las 05:21:25PM +0200, Hans Petter Selasky escribió: > Yes, > > hw.usb.uaudio.debug=15 > > If compiled with USB_DEBUG set. > > --HPS Hi Hans, Fortunately I have three different laptops, all compiled out of SVN with the following SVN revisions: r214444 - micro of c910 does not work r220692 - micro of c910 does not work r226986 - micro of c910 works! At the same time a look into SVN for uaudio.c gives: $ pwd /usr/src/sys/dev/sound/usb $ svn info uaudio.c Ruta: uaudio.c Nombre: uaudio.c URL: svn://svn.freebsd.org/base/head/sys/dev/sound/usb/uaudio.c Raíz del repositorio: svn://svn.freebsd.org/base UUID del repositorio: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revisión: 220692 Tipo de nodo: archivo Agendado: normal Autor del último cambio: hselasky Revisión del último cambio: 218988 Fecha de último cambio: 2011-02-24 10:13:47 +0100 (jue 24 de feb de 2011) Texto actualizado por última vez: 2011-04-16 12:04:17 +0200 (sáb 16 de abr de 2011) Suma de verificación: c8364c4243c918bffdf926f5fff3cf03 $ uname -a FreeBSD vm-9Current 9.0-CURRENT FreeBSD 9.0-CURRENT #2 r220692: Sun Apr 17 03:28:12 CEST 2011 guru@tinyCurrent:/usr/obj/usr/src/sys/GENERIC i386 this means: 1. the last change of sys/dev/sound/usb/uaudio.c was done before r220692, a revision in which it does not work; 2. the problem is not in uaudio.c itself, but elsewhere in the kernel and was fixed between r220692 and r226986; matthias -- Matthias Apitz Release Manager - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany tel +49-89-61308 351 - fax +49-89-61308 399 - mobile +49-170-4527211 UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 From owner-freebsd-multimedia@FreeBSD.ORG Sat May 19 09:39:53 2012 Return-Path: Delivered-To: multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30CE4106566B for ; Sat, 19 May 2012 09:39:53 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 61E258FC0C for ; Sat, 19 May 2012 09:39:52 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id MAA01762 for ; Sat, 19 May 2012 12:39:50 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1SVg8c-000BHa-CZ for multimedia@freebsd.org; Sat, 19 May 2012 12:39:50 +0300 Message-ID: <4FB76A64.40706@FreeBSD.org> Date: Sat, 19 May 2012 12:39:48 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120503 Thunderbird/12.0.1 MIME-Version: 1.0 To: multimedia@FreeBSD.org X-Enigmail-Version: 1.5pre Content-Type: text/plain; charset=X-VIET-VPS Content-Transfer-Encoding: 7bit Cc: Subject: multimedia/gpac-libgpac: gcc46: error: unrecognized option '--warn-common' 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: Sat, 19 May 2012 09:39:53 -0000 It seems to be this issue: https://bugs.launchpad.net/ubuntu/+source/gpac/+bug/749110 The patch works. -- Andriy Gapon From owner-freebsd-multimedia@FreeBSD.ORG Sat May 19 15:17:12 2012 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E3C58106564A; Sat, 19 May 2012 15:17:12 +0000 (UTC) (envelope-from kwm@rainbow-runner.nl) Received: from fep14.mx.upcmail.net (fep14.mx.upcmail.net [62.179.121.34]) by mx1.freebsd.org (Postfix) with ESMTP id 0C0F18FC18; Sat, 19 May 2012 15:17:11 +0000 (UTC) Received: from edge03.upcmail.net ([192.168.13.238]) by viefep14-int.chello.at (InterMail vM.8.01.05.04 201-2260-151-105-20111014) with ESMTP id <20120519151704.WINT8105.viefep14-int.chello.at@edge03.upcmail.net>; Sat, 19 May 2012 17:17:04 +0200 Received: from [127.0.0.1] ([178.84.137.57]) by edge03.upcmail.net with edge id BrH41j0021EUzH603rH4K2; Sat, 19 May 2012 17:17:04 +0200 X-SourceIP: 178.84.137.57 Message-ID: <4FB7B96B.7030909@rainbow-runner.nl> Date: Sat, 19 May 2012 17:16:59 +0200 From: Koop Mast User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Andriy Gapon References: <4FB76A64.40706@FreeBSD.org> In-Reply-To: <4FB76A64.40706@FreeBSD.org> Content-Type: text/plain; charset=x-viet-vps; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 120519-0, 19-05-2012), Outbound message X-Antivirus-Status: Clean Cc: multimedia@FreeBSD.org Subject: Re: multimedia/gpac-libgpac: gcc46: error: unrecognized option '--warn-common' 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: Sat, 19 May 2012 15:17:13 -0000 On 19-5-2012 11:39, Andriy Gapon wrote: > It seems to be this issue: > https://bugs.launchpad.net/ubuntu/+source/gpac/+bug/749110 > The patch works. Committed thanks!