Date: Wed, 20 Apr 2011 23:31:21 -0500 From: Richard Kolkovich <richard@sigil.org> To: freebsd-usb@freebsd.org Subject: Re: Logitech QuickCam Pro 9000 Audio Message-ID: <20110421043121.GA4279@magus.portal.sigil.org> In-Reply-To: <201104202147.43914.hselasky@c2i.net> References: <20110217185328.GB3583@magus.portal.sigil.org> <20110420191257.GA7095@magus.portal.sigil.org> <201104202147.43914.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--K8nIJk4ghYZn606h Content-Type: multipart/mixed; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline --17pEHd4RhPHOinZp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 20, 2011 at 09:47:43PM +0200, Hans Petter Selasky wrote: > On Wednesday 20 April 2011 21:12:57 Richard Kolkovich wrote: >=20 > Hi, >=20 > Have a look at /sys/dev/sound/usb/uaudio.c . >=20 > USB Mixer control's range are part of the audio descriptors in the=20 > configuration descriptor. If 0 does not mean off, then maybe some bias va= lue=20 > is computed wrong. >=20 > Compile kernel with options USB_DEBUG and enable hw.usb.uaudio.debug=3D15 >=20 > Then look in dmesg for minimum and maximum mixer ctl. values. >=20 > --HPS I've attached the dmesg from plugging the camera in. I also have a Logitech USB microphone which has proper volume control. The = min/max values are an order of magnitude apart (50688 and 5120), and the resulting resolution is = 256. Not sure if that helps, but I've attached the dmesg from the mic as well. Cheers, --=20 Richard Kolkovich http://www.sigil.org PGP Key: 0x9E54EF59 (http://pgp.mit.edu) --17pEHd4RhPHOinZp Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=camera Content-Transfer-Encoding: quoted-printable ugen3.6: <vendor 0x046d> at usbus3 uaudio0: <vendor 0x046d product 0x0990, class 239/2, rev 2.00/0.08, addr 6>= on usbus3 uaudio_chan_dump_ep_desc: endpoint=3D0xffffff031b663589 bLength=3D9 bDescri= ptorType=3D5=20 bEndpointAddress=3D134 bmAttributes=3D0x5=20 wMaxPacketSize=3D36 bInterval=3D4=20 bRefresh=3D0 bSynchAddress=3D0 uaudio_chan_fill_info_sub: FREQ_CONTROL uaudio_chan_fill_info_sub: Sample rate =3D 16000Hz, channels =3D 1, bits = =3D 16, format =3D 16-bit S-LE PCM uaudio_mixer_fill_info: found AC header, vers=3D100, len=3D29 uaudio_mixer_fill_info: Maximum ID=3D5 uaudio_mixer_fill_info: id 5: uaudio_mixer_fill_info: - AC_FEATURE src=3D1 uaudio_mixer_fill_info: Inputs to this ID are: uaudio_mixer_fill_info: -- ID=3D1 uaudio_mixer_fill_info: Outputs from this ID are: uaudio_mixer_fill_info: id 3: uaudio_mixer_fill_info: - AC_OUTPUT type=3DUAT_STREAM src=3D5 uaudio_mixer_fill_info: Inputs to this ID are: uaudio_mixer_fill_info: -- ID=3D1 uaudio_mixer_fill_info: Outputs from this ID are: uaudio_mixer_fill_info: id 1: uaudio_mixer_fill_info: - AC_INPUT type=3DUATI_MICROPHONE uaudio_mixer_dump_cluster: cluster: bNrChannels=3D0 iChannelNames=3D1 wChan= nelConfig=3D0x0000: uaudio_mixer_fill_info: Inputs to this ID are: uaudio_mixer_fill_info: -- ID=3D1 uaudio_mixer_fill_info: Outputs from this ID are: uaudio_mixer_fill_info: -- ID=3D3 uaudio_mixer_fill_info: id=3D5 subtype=3D6 uaudio_mixer_add_feature: ctl=3D1 fumask=3D0x0001 uaudio_mixer_feature_name: terminal_type=3DUATI_MICROPHONE (0x0201) -> 7 uaudio_mixer_add_ctl: adding inputs.25 uaudio_mixer_add_ctl: [mix] wValue=3D0100 uaudio_mixer_add_ctl: [mix] wIndex=3D0502 type=3D1 ctl=3D'25' min=3D0 max= =3D1 uaudio_mixer_add_feature: ctl=3D2 fumask=3D0x0002 uaudio_mixer_feature_name: terminal_type=3DUATI_MICROPHONE (0x0201) -> 7 uaudio_mixer_add_ctl: adding inputs.7 uaudio_mixer_get: val=3D4608 uaudio_mixer_get: val=3D7680 uaudio_mixer_get: val=3D1 uaudio_mixer_add_ctl: Resolution =3D 1 uaudio_mixer_add_ctl: [mix] wValue=3D0200 uaudio_mixer_add_ctl: [mix] wIndex=3D0502 type=3D2 ctl=3D'7' min=3D4608 max= =3D7680 uaudio_mixer_add_feature: ctl=3D3 fumask=3D0x0004 uaudio_mixer_add_feature: ctl=3D4 fumask=3D0x0008 uaudio_mixer_add_feature: ctl=3D5 fumask=3D0x0010 uaudio_mixer_add_feature: ctl=3D6 fumask=3D0x0020 uaudio_mixer_add_feature: ctl=3D7 fumask=3D0x0040 uaudio_mixer_add_feature: ctl=3D8 fumask=3D0x0080 uaudio_mixer_add_feature: ctl=3D9 fumask=3D0x0100 uaudio_mixer_add_feature: ctl=3D10 fumask=3D0x0200 uaudio_mixer_fill_info: id=3D3 subtype=3D3 uaudio_mixer_add_output: bTerminalId=3D3 wTerminalType=3D0x0101 bAssocTermi= nal=3D1 bSourceId=3D5 iTerminal=3D0 uaudio_mixer_fill_info: id=3D1 subtype=3D2 uaudio_mixer_add_input: bTerminalId=3D1 wTerminalType=3D0x0201 bAssocTermin= al=3D0 bNrChannels=3D1 wChannelConfig=3D0 iChannelNames=3D0 uaudio_attach: audio rev 1.00 uaudio_attach: 2 mixer controls uaudio0: No playback! uaudio0: Record: 16000 Hz, 1 ch, 16-bit S-LE PCM format uaudio0: No midi sequencer uaudio_attach: doing child attach pcm8: <USB audio> on uaudio0 uaudio_attach_sub: emulating master volume uaudio_mixer_init_sub:=20 uaudio_mixer_bsd2value: type=3D0x002 val=3D4608 min=3D4608 max=3D7680 val= =3D4608 uaudio_mixer_write_cfg_callback:=20 uaudio_chan_init: endpoint=3D0x86, speed=3D16000, iface=3D3 alt=3D1 uaudio_mixer_write_cfg_callback:=20 uaudio_chan_init: fps=3D1000 sample_rem=3D0 ugen3.6: <vendor 0x046d> at usbus3 (disconnected) uaudio0: at uhub3, port 1, addr 6 (disconnected) uaudio_mixer_bsd2value: type=3D0x002 val=3D4608 min=3D4608 max=3D7680 val= =3D4608 uaudio_mixer_uninit_sub: uaudio_mixer_write_cfg_callback:=20 uaudio_mixer_write_cfg_callback:=20 uaudio_mixer_write_cfg_callback: error=3DUSB_ERR_CANCELLED pcm8: detached --17pEHd4RhPHOinZp Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=mic Content-Transfer-Encoding: quoted-printable pcm8: detached ugen7.5: <vendor 0x0556> at usbus7 uaudio0: <vendor 0x0556 product 0x0001, class 0/0, rev 1.10/0.01, addr 5> o= n usbus7 uaudio_chan_dump_ep_desc: endpoint=3D0xffffff000d2a1268 bLength=3D7 bDescri= ptorType=3D5=20 bEndpointAddress=3D129 bmAttributes=3D0x1=20 wMaxPacketSize=3D100 bInterval=3D1=20 bRefresh=3D0 bSynchAddress=3D0 uaudio_chan_fill_info_sub: FREQ_CONTROL uaudio_chan_fill_info_sub: Sample rate =3D 48000Hz, channels =3D 1, bits = =3D 16, format =3D 16-bit S-LE PCM uaudio_mixer_fill_info: found AC header, vers=3D100, len=3D29 uaudio_mixer_fill_info: Maximum ID=3D3 uaudio_mixer_fill_info: id 3: uaudio_mixer_fill_info: - AC_FEATURE src=3D1 uaudio_mixer_fill_info: Inputs to this ID are: uaudio_mixer_fill_info: -- ID=3D1 uaudio_mixer_fill_info: Outputs from this ID are: uaudio_mixer_fill_info: id 2: uaudio_mixer_fill_info: - AC_OUTPUT type=3DUAT_STREAM src=3D3 uaudio_mixer_fill_info: Inputs to this ID are: uaudio_mixer_fill_info: -- ID=3D1 uaudio_mixer_fill_info: Outputs from this ID are: uaudio_mixer_fill_info: id 1: uaudio_mixer_fill_info: - AC_INPUT type=3DUATI_MICROPHONE uaudio_mixer_dump_cluster: cluster: bNrChannels=3D0 iChannelNames=3D1 wChan= nelConfig=3D0x0000: uaudio_mixer_fill_info: Inputs to this ID are: uaudio_mixer_fill_info: -- ID=3D1 uaudio_mixer_fill_info: Outputs from this ID are: uaudio_mixer_fill_info: -- ID=3D2 uaudio_mixer_fill_info: id=3D3 subtype=3D6 uaudio_mixer_add_feature: ctl=3D1 fumask=3D0x0001 uaudio_mixer_feature_name: terminal_type=3DUATI_MICROPHONE (0x0201) -> 7 uaudio_mixer_add_ctl: adding inputs.25 uaudio_mixer_add_ctl: [mix] wValue=3D0100 uaudio_mixer_add_ctl: [mix] wIndex=3D0300 type=3D1 ctl=3D'25' min=3D0 max= =3D1 uaudio_mixer_add_feature: ctl=3D2 fumask=3D0x0002 uaudio_mixer_feature_name: terminal_type=3DUATI_MICROPHONE (0x0201) -> 7 uaudio_mixer_add_ctl: adding inputs.7 uaudio_mixer_get: val=3D50688 uaudio_mixer_get: val=3D5120 uaudio_mixer_get: val=3D256 uaudio_mixer_add_ctl: Resolution =3D 256 uaudio_mixer_add_ctl: [mix] wValue=3D0200 uaudio_mixer_add_ctl: [mix] wIndex=3D0300 type=3D2 ctl=3D'7' min=3D-14848 m= ax=3D5120 uaudio_mixer_add_feature: ctl=3D3 fumask=3D0x0004 uaudio_mixer_add_feature: ctl=3D4 fumask=3D0x0008 uaudio_mixer_add_feature: ctl=3D5 fumask=3D0x0010 uaudio_mixer_add_feature: ctl=3D6 fumask=3D0x0020 uaudio_mixer_add_feature: ctl=3D7 fumask=3D0x0040 uaudio_mixer_add_feature: ctl=3D8 fumask=3D0x0080 uaudio_mixer_add_feature: ctl=3D9 fumask=3D0x0100 uaudio_mixer_add_feature: ctl=3D10 fumask=3D0x0200 uaudio_mixer_fill_info: id=3D2 subtype=3D3 uaudio_mixer_add_output: bTerminalId=3D2 wTerminalType=3D0x0101 bAssocTermi= nal=3D1 bSourceId=3D3 iTerminal=3D0 uaudio_mixer_fill_info: id=3D1 subtype=3D2 uaudio_mixer_add_input: bTerminalId=3D1 wTerminalType=3D0x0201 bAssocTermin= al=3D2 bNrChannels=3D1 wChannelConfig=3D0 iChannelNames=3D0 uaudio_attach: audio rev 1.00 uaudio_attach: 2 mixer controls uaudio0: No playback! uaudio0: Record: 48000 Hz, 1 ch, 16-bit S-LE PCM format uaudio0: No midi sequencer uaudio_attach: doing child attach pcm8: <USB audio> on uaudio0 uaudio_attach_sub: emulating master volume uaudio_mixer_init_sub:=20 uaudio_mixer_bsd2value: type=3D0x002 val=3D-14848 min=3D-14848 max=3D5120 v= al=3D-14848 uaudio_mixer_write_cfg_callback:=20 uaudio_mixer_write_cfg_callback:=20 uaudio_chan_init: endpoint=3D0x81, speed=3D48000, iface=3D1 alt=3D1 uaudio_set_speed: endpt=3D129 speed=3D48000 uaudio_chan_init: fps=3D1000 sample_rem=3D0 --17pEHd4RhPHOinZp-- --K8nIJk4ghYZn606h Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iEYEARECAAYFAk2vsxUACgkQfXtD1KVAIbB0TQCg5KdzmqiJRDynJejL0dkChQ/b eIEAnjxgiJr6Ekj9Cv5KQo+6sHcgw948 =JurH -----END PGP SIGNATURE----- --K8nIJk4ghYZn606h--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110421043121.GA4279>