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:
> 
> Hi,
> 
> Have a look at /sys/dev/sound/usb/uaudio.c .
> 
> USB Mixer control's range are part of the audio descriptors in the 
> configuration descriptor. If 0 does not mean off, then maybe some bias value 
> is computed wrong.
> 
> Compile kernel with options USB_DEBUG and enable hw.usb.uaudio.debug=15
> 
> Then look in dmesg for minimum and maximum mixer ctl. values.
> 
> --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,

-- 

Richard Kolkovich
http://www.sigil.org
PGP Key: 0x9E54EF59 (http://pgp.mit.edu)
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=0xffffff031b663589 bLength=9 
bDescriptorType=5 
bEndpointAddress=134 bmAttributes=0x5 
wMaxPacketSize=36 bInterval=4 
bRefresh=0 bSynchAddress=0
uaudio_chan_fill_info_sub: FREQ_CONTROL
uaudio_chan_fill_info_sub: Sample rate = 16000Hz, channels = 1, bits = 16, 
format = 16-bit S-LE PCM
uaudio_mixer_fill_info: found AC header, vers=100, len=29
uaudio_mixer_fill_info: Maximum ID=5
uaudio_mixer_fill_info: id 5:
uaudio_mixer_fill_info:  - AC_FEATURE src=1
uaudio_mixer_fill_info: Inputs to this ID are:
uaudio_mixer_fill_info:   -- ID=1
uaudio_mixer_fill_info: Outputs from this ID are:
uaudio_mixer_fill_info: id 3:
uaudio_mixer_fill_info:  - AC_OUTPUT type=UAT_STREAM src=5
uaudio_mixer_fill_info: Inputs to this ID are:
uaudio_mixer_fill_info:   -- ID=1
uaudio_mixer_fill_info: Outputs from this ID are:
uaudio_mixer_fill_info: id 1:
uaudio_mixer_fill_info:  - AC_INPUT type=UATI_MICROPHONE
uaudio_mixer_dump_cluster: cluster: bNrChannels=0 iChannelNames=1 
wChannelConfig=0x0000:
uaudio_mixer_fill_info: Inputs to this ID are:
uaudio_mixer_fill_info:   -- ID=1
uaudio_mixer_fill_info: Outputs from this ID are:
uaudio_mixer_fill_info:   -- ID=3
uaudio_mixer_fill_info: id=5 subtype=6
uaudio_mixer_add_feature: ctl=1 fumask=0x0001
uaudio_mixer_feature_name: terminal_type=UATI_MICROPHONE (0x0201) -> 7
uaudio_mixer_add_ctl: adding inputs.25
uaudio_mixer_add_ctl: [mix] wValue=0100
uaudio_mixer_add_ctl: [mix] wIndex=0502 type=1 ctl='25' min=0 max=1
uaudio_mixer_add_feature: ctl=2 fumask=0x0002
uaudio_mixer_feature_name: terminal_type=UATI_MICROPHONE (0x0201) -> 7
uaudio_mixer_add_ctl: adding inputs.7
uaudio_mixer_get: val=4608
uaudio_mixer_get: val=7680
uaudio_mixer_get: val=1
uaudio_mixer_add_ctl: Resolution = 1
uaudio_mixer_add_ctl: [mix] wValue=0200
uaudio_mixer_add_ctl: [mix] wIndex=0502 type=2 ctl='7' min=4608 max=7680
uaudio_mixer_add_feature: ctl=3 fumask=0x0004
uaudio_mixer_add_feature: ctl=4 fumask=0x0008
uaudio_mixer_add_feature: ctl=5 fumask=0x0010
uaudio_mixer_add_feature: ctl=6 fumask=0x0020
uaudio_mixer_add_feature: ctl=7 fumask=0x0040
uaudio_mixer_add_feature: ctl=8 fumask=0x0080
uaudio_mixer_add_feature: ctl=9 fumask=0x0100
uaudio_mixer_add_feature: ctl=10 fumask=0x0200
uaudio_mixer_fill_info: id=3 subtype=3
uaudio_mixer_add_output: bTerminalId=3 wTerminalType=0x0101 bAssocTerminal=1 
bSourceId=5 iTerminal=0
uaudio_mixer_fill_info: id=1 subtype=2
uaudio_mixer_add_input: bTerminalId=1 wTerminalType=0x0201 bAssocTerminal=0 
bNrChannels=1
wChannelConfig=0 iChannelNames=0
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: 
uaudio_mixer_bsd2value: type=0x002 val=4608 min=4608 max=7680 val=4608
uaudio_mixer_write_cfg_callback: 
uaudio_chan_init: endpoint=0x86, speed=16000, iface=3 alt=1
uaudio_mixer_write_cfg_callback: 
uaudio_chan_init: fps=1000 sample_rem=0
ugen3.6: <vendor 0x046d> at usbus3 (disconnected)
uaudio0: at uhub3, port 1, addr 6 (disconnected)
uaudio_mixer_bsd2value: type=0x002 val=4608 min=4608 max=7680 val=4608
uaudio_mixer_uninit_sub: uaudio_mixer_write_cfg_callback: 

uaudio_mixer_write_cfg_callback: 
uaudio_mixer_write_cfg_callback: error=USB_ERR_CANCELLED
pcm8: detached

pcm8: detached
ugen7.5: <vendor 0x0556> at usbus7
uaudio0: <vendor 0x0556 product 0x0001, class 0/0, rev 1.10/0.01, addr 5> on 
usbus7
uaudio_chan_dump_ep_desc: endpoint=0xffffff000d2a1268 bLength=7 
bDescriptorType=5 
bEndpointAddress=129 bmAttributes=0x1 
wMaxPacketSize=100 bInterval=1 
bRefresh=0 bSynchAddress=0
uaudio_chan_fill_info_sub: FREQ_CONTROL
uaudio_chan_fill_info_sub: Sample rate = 48000Hz, channels = 1, bits = 16, 
format = 16-bit S-LE PCM
uaudio_mixer_fill_info: found AC header, vers=100, len=29
uaudio_mixer_fill_info: Maximum ID=3
uaudio_mixer_fill_info: id 3:
uaudio_mixer_fill_info:  - AC_FEATURE src=1
uaudio_mixer_fill_info: Inputs to this ID are:
uaudio_mixer_fill_info:   -- ID=1
uaudio_mixer_fill_info: Outputs from this ID are:
uaudio_mixer_fill_info: id 2:
uaudio_mixer_fill_info:  - AC_OUTPUT type=UAT_STREAM src=3
uaudio_mixer_fill_info: Inputs to this ID are:
uaudio_mixer_fill_info:   -- ID=1
uaudio_mixer_fill_info: Outputs from this ID are:
uaudio_mixer_fill_info: id 1:
uaudio_mixer_fill_info:  - AC_INPUT type=UATI_MICROPHONE
uaudio_mixer_dump_cluster: cluster: bNrChannels=0 iChannelNames=1 
wChannelConfig=0x0000:
uaudio_mixer_fill_info: Inputs to this ID are:
uaudio_mixer_fill_info:   -- ID=1
uaudio_mixer_fill_info: Outputs from this ID are:
uaudio_mixer_fill_info:   -- ID=2
uaudio_mixer_fill_info: id=3 subtype=6
uaudio_mixer_add_feature: ctl=1 fumask=0x0001
uaudio_mixer_feature_name: terminal_type=UATI_MICROPHONE (0x0201) -> 7
uaudio_mixer_add_ctl: adding inputs.25
uaudio_mixer_add_ctl: [mix] wValue=0100
uaudio_mixer_add_ctl: [mix] wIndex=0300 type=1 ctl='25' min=0 max=1
uaudio_mixer_add_feature: ctl=2 fumask=0x0002
uaudio_mixer_feature_name: terminal_type=UATI_MICROPHONE (0x0201) -> 7
uaudio_mixer_add_ctl: adding inputs.7
uaudio_mixer_get: val=50688
uaudio_mixer_get: val=5120
uaudio_mixer_get: val=256
uaudio_mixer_add_ctl: Resolution = 256
uaudio_mixer_add_ctl: [mix] wValue=0200
uaudio_mixer_add_ctl: [mix] wIndex=0300 type=2 ctl='7' min=-14848 max=5120
uaudio_mixer_add_feature: ctl=3 fumask=0x0004
uaudio_mixer_add_feature: ctl=4 fumask=0x0008
uaudio_mixer_add_feature: ctl=5 fumask=0x0010
uaudio_mixer_add_feature: ctl=6 fumask=0x0020
uaudio_mixer_add_feature: ctl=7 fumask=0x0040
uaudio_mixer_add_feature: ctl=8 fumask=0x0080
uaudio_mixer_add_feature: ctl=9 fumask=0x0100
uaudio_mixer_add_feature: ctl=10 fumask=0x0200
uaudio_mixer_fill_info: id=2 subtype=3
uaudio_mixer_add_output: bTerminalId=2 wTerminalType=0x0101 bAssocTerminal=1 
bSourceId=3 iTerminal=0
uaudio_mixer_fill_info: id=1 subtype=2
uaudio_mixer_add_input: bTerminalId=1 wTerminalType=0x0201 bAssocTerminal=2 
bNrChannels=1 wChannelConfig=0 iChannelNames=0
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: 
uaudio_mixer_bsd2value: type=0x002 val=-14848 min=-14848 max=5120 val=-14848
uaudio_mixer_write_cfg_callback: 
uaudio_mixer_write_cfg_callback: 
uaudio_chan_init: endpoint=0x81, speed=48000, iface=1 alt=1
uaudio_set_speed: endpt=129 speed=48000
uaudio_chan_init: fps=1000 sample_rem=0

Attachment: pgpOVfSBp93lq.pgp
Description: PGP signature

Reply via email to