From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 18 17:03:21 2005 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4F8E16A4CE for ; Mon, 18 Apr 2005 17:03:21 +0000 (GMT) Received: from drizzle.CC.McGill.CA (drizzle.cc.mcgill.ca [132.206.27.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id F242243D58 for ; Mon, 18 Apr 2005 17:03:20 +0000 (GMT) (envelope-from mat@cnd.mcgill.ca) Received: from mailscan3.cc.mcgill.ca (mailscan3.CC.McGill.CA [132.216.77.250])j3IH2rjK006188; Mon, 18 Apr 2005 13:02:57 -0400 Received: from cube.cnd.mcgill.ca (cube.CND.McGill.CA [132.216.25.196]) j3IH2MDg010816; Mon, 18 Apr 2005 13:02:24 -0400 (EDT) Received: from localhost.localdomain (acid.cnd.mcgill.ca [132.216.11.151]) by cube.cnd.mcgill.ca (8.12.11/8.12.11) with ESMTP id j3IH28Kw014607; Mon, 18 Apr 2005 13:02:09 -0400 Received: from localhost.localdomain (acid [127.0.0.1]) j3IH28Vn008113; Mon, 18 Apr 2005 13:02:08 -0400 Received: (from mat@localhost) by localhost.localdomain (8.12.11/8.12.11/Submit) id j3IH1ubl008112; Mon, 18 Apr 2005 13:01:56 -0400 Date: Mon, 18 Apr 2005 13:01:56 -0400 From: Mathew Kanner To: Julian Elischer Message-ID: <20050418170156.GP2178@cnd.mcgill.ca> References: <20050417172014.GM2178@cnd.mcgill.ca> <42636B1C.3090402@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42636B1C.3090402@elischer.org> User-Agent: Mutt/1.4.2i Organization: I speak for myself, operating in Montreal, CANADA cc: freebsd-multimedia@freebsd.org cc: Mathew Kanner Subject: Re: please test uaudio capabilities patch X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 17:03:22 -0000 On Apr 18, Julian Elischer wrote: > Mathew Kanner wrote: > >Hi All, > > The following patch changes the driver to probe the > > capabilities. With this patch I can run mplayer with a non-native > > speed or format and the internal soft-mixer will get the right > > chain. Without the patch, I get stuck and I have to disconnect. > > > > I'm going to commit this soon. This is is against HEAD post my > > commit to de-dma the driver. > > > > --Mat > > > > > > the code removed below was added by me yesterday to allow my usb microphone > to work. it no longer works with this patch. > > uaudio0: Logitech product 0x08b1, rev 1.10/0.00, addr 2 > uaudio0: audio rev 1.00 > pcm1: on uaudio0 > > jules# cat /dev/sndstat > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: port 0x1400-0x14ff irq 5 at device 8.0 on > pci0 (4p/1r/0v channels duplex default) > pcm1: kld snd_uaudio (mixer only) > jules# > > yesterday (without your change) > it created and audio1.0 device which I could record from > (though I think the format was wrong as it sounded bad) > > today it fails to make any device.. > > note.. the device has only input endpoints and configs.. it's a microphone > it has an audio 'mixer' interface as well but that seems to have been found. Hi Julian, I removed the code on purpose as we should count the number of inputs and outputs and not try and create a play channel if none exist. Does it fail with any message? I'll take a closer look tonight. --Mat