From owner-freebsd-multimedia@FreeBSD.ORG Sun Jul 17 11:10:12 2011 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 DF0B61065673 for ; Sun, 17 Jul 2011 11:10:12 +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 CDC308FC0A for ; Sun, 17 Jul 2011 11:10:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p6HBACM8055791 for ; Sun, 17 Jul 2011 11:10:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p6HBACqZ055789; Sun, 17 Jul 2011 11:10:12 GMT (envelope-from gnats) Date: Sun, 17 Jul 2011 11:10:12 GMT Message-Id: <201107171110.p6HBACqZ055789@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: kern/158979: [snd_uadio] snd_uaudio fails to initialize built-in microphone in Logitech Webcam C160 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jul 2011 11:10:12 -0000 The following reply was made to PR kern/158979; it has been noted by GNATS. From: Hans Petter Selasky To: Dmytro Pryanyshnikov Cc: bug-followup@freebsd.org Subject: Re: kern/158979: [snd_uadio] snd_uaudio fails to initialize built-in microphone in Logitech Webcam C160 Date: Sun, 17 Jul 2011 13:01:57 +0200 On Sunday 17 July 2011 12:33:24 Dmytro Pryanyshnikov wrote: > On Sun, Jul 17, 2011 at 12:48 PM, Hans Petter Selasky wrote: > > HI, > > > > If you are running this in a VM, then try using usbdump to figure out > > which control endpoint requests are issued for this device. > > > > Probably you can make a similar usbconfig do_request line to change the > > microphone volume back to normal! > > Yes, I've recorded packet interchange on the USB bus during the > (device) <-> (Linux kernel in the VirtualBox) data exchange with the > command: > > usbdump -i usbus4 -s 0 -w 20110717_1320.dmp > > and placed the resulting file at > > https://sites.google.com/site/lynxripe/freebsd/pr/158979/20110717_1320.dmp > > Alas, I haven't got sufficient USB protocol knowlege in order to > comprehend this data ;( > Hi, I think one of the following requests should do the trick. Please let me know the test result: usbconfig -d X.Y do_request 0x21 0x01 0x0200 0x0502 0x0002 0x01 0x1b usbconfig -d X.Y do_request 0x21 0x01 0x0200 0x0502 0x0002 0x00 0x1b --HPS