Re: using USB based micro and speaker with FreeBSD / Skype
El día Saturday, February 20, 2010 a las 01:05:50PM +0100, Hans Petter Selasky escribió: Hans, Is there a way to down port this fix to my 8-CURRENT? I can't update my business laptop now (and even more, only to get an external micro working with Skype when me and my group are calling other colleagues). Thanks for a pointer matthias Try to fetch uaudio*[ch] from 9-current. /usr/src/sys/dev/sound/usb . I did and I have had to fetch 2 header files more: sys/dev/usb/usbdi_util.h sys/dev/usb/usbdi.h but a buildkernel complains about: # make buildkernel KERNCONF=GENERIC ... mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq -I/usr/obj/usr/src/sys/GENERIC /usr/src/sys/modules/sound/driver/uaudio/../../../../dev/sound/usb/uaudio.c /usr/src/sys/modules/sound/driver/uaudio/../../../../dev/sound/usb/uaudio_pcm.c /usr/src/sys/modules/sound/driver/uaudio/../../../../dev/sound/usb/uaudio.c:81:21: error: opt_snd.h: No such file or directory /usr/src/sys/modules/sound/driver/uaudio/../../../../dev/sound/usb/uaudio_pcm.c:31:21: error: opt_snd.h: No such file or directory mkdep: compile failed *** Error code 1 Stop in /usr/src/sys/modules/sound/driver/uaudio. *** Error code 1 and opt_snd.h is not at all in SVN of head... I'm puzzled a bit The reference is in both C sources like this #ifdef HAVE_KERNEL_OPTION_HEADERS #include opt_snd.h #endif but the file is not in head at the end, it does not compile for conflicst like dev/sound/usb/uaudio.c:3628: error: too many arguments to function 'usbd_copy_in' I have to wait until update all to 9-CURRENT; Thx matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e g...@unixarea.de - w http://www.unixarea.de/ Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: using USB based micro and speaker with FreeBSD / Skype
On Sunday 21 February 2010 09:37:04 Matthias Apitz wrote: El día Saturday, February 20, 2010 a las 01:05:50PM +0100, Hans Petter Selasky escribió: Hans, Is there a way to down port this fix to my 8-CURRENT? I can't update my business laptop now (and even more, only to get an external micro working with Skype when me and my group are calling other colleagues). Thanks for a pointer matthias Try to fetch uaudio*[ch] from 9-current. /usr/src/sys/dev/sound/usb . I did and I have had to fetch 2 header files more: sys/dev/usb/usbdi_util.h sys/dev/usb/usbdi.h but a buildkernel complains about: # make buildkernel KERNCONF=GENERIC ... mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq -I/usr/obj/usr/src/sys/GENERIC /usr/src/sys/modules/sound/driver/uaudio/../../../../dev/sound/usb/uaudio.c /usr/src/sys/modules/sound/driver/uaudio/../../../../dev/sound/usb/uaudio_p cm.c /usr/src/sys/modules/sound/driver/uaudio/../../../../dev/sound/usb/uaudio. c:81:21: error: opt_snd.h: No such file or directory /usr/src/sys/modules/sound/driver/uaudio/../../../../dev/sound/usb/uaudio_p cm.c:31:21: error: opt_snd.h: No such file or directory mkdep: compile failed *** Error code 1 Stop in /usr/src/sys/modules/sound/driver/uaudio. *** Error code 1 and opt_snd.h is not at all in SVN of head... I'm puzzled a bit The reference is in both C sources like this #ifdef HAVE_KERNEL_OPTION_HEADERS #include opt_snd.h #endif but the file is not in head at the end, it does not compile for conflicst like dev/sound/usb/uaudio.c:3628: error: too many arguments to function 'usbd_copy_in' I have to wait until update all to 9-CURRENT; Thx matthias You could maybe build the 9-current kernel and boot it, then revert to the 8- stable kernel after testing. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: using USB based micro and speaker with FreeBSD / Skype
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 wheel0, 146 18 feb 16:20 /dev/dsp0.0 crw-rw-rw- 1 root wheel0, 150 18 feb 10:23 /dev/dsp1.0 crw-rw-rw- 1 root wheel0, 151 18 feb 10:23 /dev/dsp2.0 crw-rw-rw- 1 root wheel0, 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 g...@unixarea.de - w http://www.unixarea.de/ Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: using USB based micro and speaker with FreeBSD / Skype
On Saturday 20 February 2010 09:44:54 Matthias Apitz wrote: btw: why it says uaudio1: No recording! This issue should be fixed in 9-current. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: using USB based micro and speaker with FreeBSD / Skype
El día Saturday, February 20, 2010 a las 11:36:23AM +0100, Hans Petter Selasky escribió: On Saturday 20 February 2010 09:44:54 Matthias Apitz wrote: btw: why it says uaudio1: No recording! This issue should be fixed in 9-current. --HPS Hans, Is there a way to down port this fix to my 8-CURRENT? I can't update my business laptop now (and even more, only to get an external micro working with Skype when me and my group are calling other colleagues). Thanks for a pointer matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e g...@unixarea.de - w http://www.unixarea.de/ Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: using USB based micro and speaker with FreeBSD / Skype
El día Wednesday, February 17, 2010 a las 11:55:17AM +0100, Matthias Apitz escribió: Hello, I'm running a 8-CURRENT on a Dell M4400 laptop, which has an internal micro and loudspeaker which work fine with Skype. For meetings I'd like to have better sound on my side, i.e. would like to use external loudspeaker and microphone. I've got from our support these two USB devices: microphone: Feb 17 11:47:46 current root: Unknown USB device: vendor 0x0556 product 0x0001 bus uhub0 Feb 17 11:47:46 current kernel: ugen5.2: Asahi Kasei Microsystems at usbus5 loudspeaker: Feb 17 11:48:36 current kernel: ugen5.2: Logitech at usbus5 Feb 17 11:48:36 current kernel: uhid0: Logitech Logitech Speaker, class 0/0, rev 1.10/1.00, addr 2 on usbus5 Feb 17 11:48:36 current root: Unknown USB device: vendor 0x046d product 0x0a10 bus uhub0 Is there any way to map them to the audio system of my FreeBSD or should I aim for devices with normal audio jacks? Follow-up: the microphone problem perhaps is related to this bug report: http://www.freebsd.org/cgi/query-pr.cgi?pr=141664 matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e g...@unixarea.de - w http://www.unixarea.de/ Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org