using USB based micro and speaker with FreeBSD / Skype

Matthias Apitz guru at unixarea.de
Sat Feb 20 08:45:00 UTC 2010


Hello,

follow-up (and only to freebsd-usb):

With the helping hand of Henry Hu (thanks a lot again) I got a bit
further with the USB microphone.

After loading the snd_uaudio module a plug-in of first the USB video cam and
then the USB micro gives in /var/log/messages:

first the video cam is pluged in:

Feb 19 16:31:11 current kernel: ugen4.2: <Philips> at usbus4
Feb 19 16:31:11 current kernel: pwc0: <Philips product 0x0329, class 0/0, rev 1.10/0.03, addr 2> on usbus4
Feb 19 16:31:11 current root: Unknown USB device: vendor 0x0471 product 0x0329 bus uhub7
Feb 19 16:31:11 current kernel: pwc0: This camera is equipped with a Sony CCD sensor + TDA8787 (32)
Feb 19 16:31:11 current kernel: uaudio0: <Philips product 0x0329, class 0/0, rev 1.10/0.03, addr 2> on usbus4
Feb 19 16:31:11 current kernel: uaudio0: No playback!
Feb 19 16:31:11 current kernel: uaudio0: Record: 8000 Hz, 1 ch, 16-bit S-LE PCM format
Feb 19 16:31:11 current kernel: uaudio0: No midi sequencer
Feb 19 16:31:11 current kernel: pcm3: <USB audio> on uaudio0

(btw: before loading snd_uaudio I wasn't even aware that this cam has a
build in micro too)

now comes the micro in USB:

Feb 19 16:31:27 current root: Unknown USB device: vendor 0x0556 product 0x0001 bus uhub7
Feb 19 16:31:27 current kernel: ugen4.3: <Asahi Kasei Microsystems> at usbus4
Feb 19 16:31:27 current kernel: uaudio1: <Asahi Kasei Microsystems product 0x0001, class 0/0, rev 1.10/0.01, addr 3> on usbus4
Feb 19 16:31:27 current kernel: uaudio1: No playback!
Feb 19 16:31:27 current kernel: uaudio1: No recording!
Feb 19 16:31:27 current kernel: uaudio1: No midi sequencer
Feb 19 16:31:27 current kernel: pcm4: <USB audio> on uaudio1
Feb 19 16:31:27 current root: Unknown USB device: vendor 0x0556 product 0x0001 bus uhub7

btw: why it says uaudio1: No recording! ????

/dev/sndstats shows:

# cat /dev/sndstat 
FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)
Installed devices:
pcm0: <HDA IDT 92HD71B7 PCM #0 Analog> at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:2v/1r:1v channels duplex default)
pcm1: <HDA IDT 92HD71B7 PCM #1 Analog> at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/1r:2v channels duplex)
pcm2: <HDA IDT 92HD71B7 PCM #2 Digital> at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/0r:0v channels)
pcm3: <USB audio> at ? kld snd_uaudio [GIANT] (0p:0v/1r:1v channels)
pcm4: <USB audio> at ? kld snd_uaudio [GIANT] (mixer only)

and devices are there as:

# ls -l /dev/dsp*
crw-rw-rw-  1 root  wheel    0, 146 18 feb 16:20 /dev/dsp0.0
crw-rw-rw-  1 root  wheel    0, 150 18 feb 10:23 /dev/dsp1.0
crw-rw-rw-  1 root  wheel    0, 151 18 feb 10:23 /dev/dsp2.0
crw-rw-rw-  1 root  wheel    0, 157 18 feb 16:20 /dev/dsp3.0

and I'm able to record sound with 'mplayer' from /dev/dsp1.0 (the laptop
build-in micro) and /dev/dsp3.0 (the micro of the Philips cam):

$ mplayer -demuxer rawaudio -rawaudio bitrate=48000:rate=8000:samplesize=1:channels=1 /dev/dsp3.0

but I can't manage to record from the USB micro, which perhaps should be
/dev/dsp4.0. Any ideas what goes wrong?

Thanks in advance

	matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <guru at unixarea.de> - w http://www.unixarea.de/
Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu


More information about the freebsd-usb mailing list