M-Audio Transit USB offers mic but no rec device

SolarCatcher solarcatcher at gmx.de
Tue Sep 13 07:50:27 UTC 2011


Hi Hans Petter,

sorry, your answer was the only mail from this list that was caught by 
the spam filter... therefore, I did not see it until now.

On 07/09/2011 21:29, Hans Petter Selasky wrote:
> On Wednesday 07 September 2011 15:47:33 SolarCatcher wrote:
>> Hi,
>>
>> this is my first post to this mailing list. I hope someone can help me
>> with this question.
>>
>> A few days ago I first tried the new audio/madfufw ports and it works
>> very nicely for playback. But I can't get the mic to work as rec device.
>> With mixer I get the following:
>>
>>
>> #mixer -f /dev/mixer1
>> Mixer vol is currently set to 75:75
>> Mixer pcm is currently set to 75:75
>> Mixer mic is currently set to 100:100l
>
>
> Hi,
>
>> #mixer -f /dev/mixer1 -S =rec mic
>> mixer: unknown recording device: mic
>>
>
> What does "mixer recsrc" output?
>

No output at all.

>>
>> The rest of the output (dmesg, sndstat, sysctl...) all looks like it
>> should have rec capabilities. Is there any variable that I must manually
>> enable to get the device to work for recording?
>
> Try to enable "sysctl hw.usb.uaudio.debug=15". Then replug the device. Maybe
> some error messages are printed. Usually there is a USB command which switches
> the recording source. Also try to set the recording rate to 44100 by using:
>
> sysctl hw.usb.uaudio.default_rate=44100
>

OK, I did set the values accordingly and upon replugging the device I 
get the following dmesg (I could not find any apparent error message and 
rec shows up just like play):

uaudio0: <Transit USB> on usbus2
uaudio_chan_dump_ep_desc: endpoint=0xc92d34e6 bLength=9 bDescriptorType=5
bEndpointAddress=3 bmAttributes=0x5
wMaxPacketSize=196 bInterval=1
bRefresh=0 bSynchAddress=131
uaudio_chan_fill_info_sub: FREQ_CONTROL
uaudio_chan_fill_info_sub: Sample rate = 44100Hz, channels = 2, bits = 
16, format = 16-bit S-LE PCM
uaudio_chan_fill_info_sub: ignored bFormatType = 3
uaudio_chan_fill_info_sub: ignored bFormatType = 3
uaudio_chan_dump_ep_desc: endpoint=0xc92d35de bLength=9 bDescriptorType=5
bEndpointAddress=133 bmAttributes=0x5
wMaxPacketSize=196 bInterval=1
bRefresh=0 bSynchAddress=0
uaudio_chan_fill_info_sub: FREQ_CONTROL
uaudio_chan_fill_info_sub: Sample rate = 44100Hz, channels = 2, bits = 
16, format = 16-bit S-LE PCM
uaudio_chan_fill_info_sub: ignored bFormatType = 3
uaudio_chan_fill_info_sub: ignored bFormatType = 3
uaudio_mixer_fill_info: found AC header, vers=100, len=62
uaudio_mixer_fill_info: Maximum ID=6
uaudio_mixer_fill_info: id 6:
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=4
uaudio_mixer_fill_info: Outputs from this ID are:
uaudio_mixer_fill_info: id 5:
uaudio_mixer_fill_info:  - AC_FEATURE src=4
uaudio_mixer_fill_info: Inputs to this ID are:
uaudio_mixer_fill_info:   -- ID=4
uaudio_mixer_fill_info: Outputs from this ID are:
uaudio_mixer_fill_info: id 4:
uaudio_mixer_fill_info:  - AC_INPUT type=UATI_MICROPHONE
uaudio_mixer_dump_cluster: cluster: bNrChannels=0 iChannelNames=2 
wChannelConfig=0x0003:
uaudio_mixer_dump_cluster:  - LEFT
uaudio_mixer_dump_cluster:  - RIGHT
uaudio_mixer_fill_info: Inputs to this ID are:
uaudio_mixer_fill_info:   -- ID=4
uaudio_mixer_fill_info: Outputs from this ID are:
uaudio_mixer_fill_info:   -- ID=6
uaudio_mixer_fill_info: id 3:
uaudio_mixer_fill_info:  - AC_OUTPUT type=UATO_SPEAKER src=2
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_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 1:
uaudio_mixer_fill_info:  - AC_INPUT type=UAT_STREAM
uaudio_mixer_dump_cluster: cluster: bNrChannels=0 iChannelNames=2 
wChannelConfig=0x0003:
uaudio_mixer_dump_cluster:  - LEFT
uaudio_mixer_dump_cluster:  - RIGHT
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=6 subtype=3
uaudio_mixer_add_output: bTerminalId=6 wTerminalType=0x0101 
bAssocTerminal=0 bSourceId=5 iTerminal=0
uaudio_mixer_fill_info: id=5 subtype=6
uaudio_mixer_add_feature: chan=1 mask=2
uaudio_mixer_add_feature: chan=2 mask=2
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=0500 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=0
uaudio_mixer_get: val=4608
uaudio_mixer_get: val=128
uaudio_mixer_add_ctl: Resolution = 128
uaudio_mixer_add_ctl: [mix] wValue=0201
uaudio_mixer_add_ctl: [mix] wValue=0201
uaudio_mixer_add_ctl: [mix] wIndex=0500 type=2 ctl='7' min=0 max=4608
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=4 subtype=2
uaudio_mixer_add_input: bTerminalId=4 wTerminalType=0x0201 
bAssocTerminal=0 bNrChannels=2 wChannelConfig=3 iChannelNames=0
uaudio_mixer_fill_info: id=3 subtype=3
uaudio_mixer_add_output: bTerminalId=3 wTerminalType=0x0301 
bAssocTerminal=0 bSourceId=2 iTerminal=0
uaudio_mixer_fill_info: id=2 subtype=6
uaudio_mixer_add_feature: chan=1 mask=2
uaudio_mixer_add_feature: chan=2 mask=2
uaudio_mixer_add_feature: ctl=1 fumask=0x0001
uaudio_mixer_feature_name: terminal_type=UAT_STREAM (0x0101) -> 4
uaudio_mixer_add_ctl: adding inputs.25
uaudio_mixer_add_ctl: [mix] wValue=0100
uaudio_mixer_add_ctl: [mix] wIndex=0200 type=1 ctl='25' min=0 max=1
uaudio_mixer_add_feature: ctl=2 fumask=0x0002
uaudio_mixer_feature_name: terminal_type=UAT_STREAM (0x0101) -> 4
uaudio_mixer_add_ctl: adding inputs.4
uaudio_mixer_get: val=32896
uaudio_mixer_get: val=65408
uaudio_mixer_get: val=128
uaudio_mixer_add_ctl: Resolution = 128
uaudio_mixer_add_ctl: [mix] wValue=0201
uaudio_mixer_add_ctl: [mix] wValue=0201
uaudio_mixer_add_ctl: [mix] wIndex=0200 type=2 ctl='4' min=-32640 max=-128
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=1 subtype=2
uaudio_mixer_add_input: bTerminalId=1 wTerminalType=0x0101 
bAssocTerminal=0 bNrChannels=2 wChannelConfig=3 iChannelNames=0
uaudio_attach: audio rev 1.00
uaudio_attach: 4 mixer controls
uaudio0: Play: 44100 Hz, 2 ch, 16-bit S-LE PCM format
uaudio0: Record: 44100 Hz, 2 ch, 16-bit S-LE PCM format
uaudio0: No midi sequencer
uaudio_attach: doing child attach
pcm1: <USB audio> on uaudio0
uaudio_mixer_init_sub:
uaudio_mixer_bsd2value: type=0x002 val=-32640 min=-32640 max=-128 val=-32640
uaudio_mixer_bsd2value: type=0x002 val=-32640 min=-32640 max=-128 val=-32640
uaudio_mixer_write_cfg_callback:
uaudio_mixer_bsd2value: type=0x002 val=-14536 min=-32640 max=-128 val=-14536
uaudio_mixer_bsd2value: type=0x002 val=-14536 min=-32640 max=-128 val=-14536
uaudio_mixer_bsd2value: type=0x002 val=0 min=0 max=4608 val=0
uaudio_mixer_bsd2value: type=0x002 val=0 min=0 max=4608 val=0
uaudio_mixer_write_cfg_callback:
pcm1: clone manager: deadline=750ms flags=0x8000001e
uaudio_chan_init: endpoint=0x03, speed=44100, iface=1 alt=3
uaudio_mixer_write_cfg_callback:
uaudio_set_speed: endpt=3 speed=44100
uaudio_mixer_write_cfg_callback:
uaudio_chan_init: fps=1000 sample_rem=100
sndbuf_resize(): b=0xc887c800 0 -> 0xc931e000 [0 -> 4096 : 2880]
uaudio_chan_init: endpoint=0x85, speed=44100, iface=2 alt=3
uaudio_mixer_write_cfg_callback:
uaudio_set_speed: endpt=133 speed=44100
uaudio_mixer_write_cfg_callback:
uaudio_chan_init: fps=1000 sample_rem=100
sndbuf_resize(): b=0xc8bae300 0 -> 0xc931c000 [0 -> 4096 : 2880]
sndbuf_remalloc(): b=0xc9178300 0 -> 4096 [4096]
pcm1: chn_resizebuf(): PCMDIR_PLAY (hardware) timeout=16 b[2880/1440/2] 
bs[4096/2048/2] limit=0
pcm1: chn_resizebuf(): PCMDIR_PLAY (hardware) timeout=16 b[2880/1440/2] 
bs[4096/2048/2] limit=0
sndbuf_remalloc(): b=0xc887e600 0 -> 4096 [4096]
pcm1: chn_resizebuf(): PCMDIR_REC (hardware) timeout=16 b[2880/1440/2] 
bs[4096/2048/2] limit=0
pcm1: chn_resizebuf(): PCMDIR_REC (hardware) timeout=16 b[2880/1440/2] 
bs[4096/2048/2] limit=0


>>
>> Here is the output of the different commands:
>>
>> dmesg:
>> uaudio0:<Transit USB>  on usbus2
>> uaudio0: Play: 48000 Hz, 2 ch, 16-bit S-LE PCM format
>> uaudio0: Record: 48000 Hz, 2 ch, 16-bit S-LE PCM format
>> uaudio0: No midi sequencer pcm1:<USB audio>  on uaudio0
>>
>> cat /dev/sndstat
>> FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
>> Installed devices:
>> pcm0:<HDA Analog Devices AD1981HD PCM #0 Analog>  (play/rec) default
>> pcm1:<USB audio>  (play/rec)
>>
>> sysctl
>> dev.pcm.0.rec.vchans: 2 dev.pcm.0.rec.vchanmode: fixed
>> dev.pcm.0.rec.vchanrate: 48000 dev.pcm.0.rec.vchanformat: s16le:2.0
>> dev.pcm.1.rec.vchans: 1 dev.pcm.1.rec.vchanmode: fixed
>> dev.pcm.1.rec.vchanrate: 48000 dev.pcm.1.rec.vchanformat: s16le:2.0
>>
>>
>> Does anybody have an idea of how to get the Transit to work as rec
>> device (or how what else to do with the mic device so that I can record
>> something).
>
> --HPS
>

Thanks for your help!
SolarCatcher



More information about the freebsd-multimedia mailing list