Uaudio problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi hackers, I have sent the following to multimedia one month ago, but have had no replies yet. Does anybody have a clue? Thanks in advance! I've seen several people having the same problem I'm having on the lists. However, I couldn't find a solution :-( Here's the facts: Just bought a new USB headset [1]. This one uses snd_uaudio. Playback is great, but recording / mic in doesn't work: uaudio0: vendor 0x0d8c C-Media USB Headphone Set, class 0/0, rev 1.10/1.00, addr 3 on uhub0 uaudio0: audio rev 1.00 pcm0: USB Audio on uaudio0 pcm0:virtual:dsp1.vr0: record interrupt timeout, channel dead pcm0:virtual:dsp1.vp0: play interrupt timeout, channel dead Here are a few debugging information. | uname -a FreeBSD gahrtop.localhost 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Mon Jun 23 09:43:28 CEST 2008 root at gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034 i386 | sysctl hw.snd dev.pcm hw.snd.latency_profile: 1 hw.snd.latency: 5 hw.snd.report_soft_formats: 1 hw.snd.compat_linux_mmap: 0 hw.snd.feeder_buffersize: 16384 hw.snd.feeder_rate_round: 25 hw.snd.feeder_rate_max: 2016000 hw.snd.feeder_rate_min: 1 hw.snd.verbose: 3 hw.snd.maxautovchans: 16 hw.snd.default_unit: 0 hw.snd.version: 2007061600/i386 hw.snd.default_auto: 0 dev.pcm.0.%desc: USB Audio dev.pcm.0.%driver: pcm dev.pcm.0.%parent: uaudio0 dev.pcm.0.play.vchans: 1 dev.pcm.0.play.vchanrate: 48000 dev.pcm.0.play.vchanformat: s16le dev.pcm.0.rec.vchans: 1 dev.pcm.0.rec.vchanrate: 48000 dev.pcm.0.rec.vchanformat: s16le dev.pcm.0.buffersize: 16384 | cat /dev/sndstat FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386) Installed devices: pcm0: USB Audio at ? kld snd_uaudio [GIANT] (1p:1v/1r:1v channels duplex default) ~mode 1:(output) 2ch, 16/16bit, pcm, 48000,44100Hz ~mode 1:(input) 1ch, 16/16bit, pcm, 48000,44100Hz ~[pcm0:play:dsp0.p0]: spd 48000, fmt 0x1010, flags 0x00101000, 0x0020 ~interrupts 0, underruns 0, feed 0, ready 0 [b:16384/2048/8|bs:16384/8192/2] ~{userland} - feeder_vchan(0x1010) - feeder_volume(0x1010) - {hardware} ~pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp0]: spd 0, fmt 0x/0x0008, flags 0x1000, 0x ~interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0] ~{userland} - feeder_root(0x) - {hardware} ~[pcm0:record:dsp0.r0]: spd 48000, fmt 0x1010/0x0010, flags 0x00101000, 0x ~interrupts 0, overruns 0, feed 0, hfree 16384, sfree 32768 [b:16384/1024/16|bs:32768/16384/2] ~{hardware} - feeder_root(0x0010) - feeder_monotostereo16(0x0010 - 0x1010) - feeder_vchan(0x1010) - {userland} ~pcm0:record:dsp0.r0[pcm0:virtual:dsp0.vr0]: spd 0, fmt 0x/0x0008, flags 0x1000, 0x ~interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0] ~{hardware} - feeder_root(0x) - {userland} File Versions: $FreeBSD: src/sys/dev/sound/isa/sndbuf_dma.c,v 1.3 2005/01/06 01:43:17 imp Exp $ $FreeBSD: src/sys/dev/sound/pcm/vchan.c,v 1.36 2007/06/16 03:37:28 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/sound.c,v 1.119 2007/06/17 19:02:05 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/sndstat.c,v 1.28 2007/06/16 03:37:28 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/mixer.c,v 1.61 2007/06/16 03:37:28 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/feeder_volume.c,v 1.6 2007/06/16 20:36:39 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/feeder_rate.c,v 1.23 2007/06/16 03:37:28 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/feeder_fmt.c,v 1.23 2007/06/02 13:07:44 joel Exp $ $FreeBSD: src/sys/dev/sound/pcm/feeder.c,v 1.44 2007/06/17 15:53:11 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/fake.c,v 1.18 2007/03/15 18:19:01 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/dsp.c,v 1.109 2008/05/27 02:16:05 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/channel.c,v 1.122 2007/12/03 14:26:56 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/buffer.c,v 1.37 2007/06/16 03:37:27 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/ac97_patch.c,v 1.11 2007/10/26 20:49:23 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/ac97.c,v 1.74 2007/10/26 20:49:59 ariff Exp $ | usbdevs -v | grep Headphone ~ port 2 addr 3: full speed, power 100 mA, config 1, C-Media USB Headphone Set(0x000c), vendor 0x0d8c(0x0d8c), rev 1.00 I would greatly like to get this headset working, so any hint is appreciatd! [1] http://www.trust.com/products/product_detail.aspx?item=14734 - -- Pietro Cerutti [EMAIL PROTECTED] PGP Public Key: http://gahr.ch/pgp -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) iEYEAREKAAYFAkiO0rIACgkQwMJqmJVx944ARACgpKc/zooxB9muCOPS2FjAkkhv uxoAoL5DYVaDjKqlWuHiqu359q/2cC8x =21HV -END PGP SIGNATURE- ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Problem with an rc script
Hi, I'm trying to deal with a rc script I'm writing to launch a deamon. I wrote it based on the hanbook rc script sample. It works pretty well but I have some (strange to me) warning message. Fisrt a short explanation about what i'm doing : The application is a python script deamon started by a shell script located in /usr/local/sbin/ntlmaps. The shell script launch the application and write the pid file if require So, the rc script (ntlmapsd) calls the shell script with the right arguments to start the application, then performs a 'kill -KILL' to stop it based on the pid file information. The thing is stopping the application I receive a message saying: ./ntlmapsd: WARNING: $command_interpreter -b != /bin/sh I put the two scripts in http:\\www.bebik.net\~rodrigo\rctest\ Thanks for your help Rodrigo ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Symbols in a Module
This is probably a n00b question for -hackers but it seems like the best place to ask. I am compiling an AFS module. The module won't load. Dmesg reports undefined symbol _vn_lock. nm reports that the symbol exists and is undefined. How do I compile (defined) symbols into my module? Thanks, Jason C. Wells ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Symbols in a Module
-On [20080729 17:46], [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: I am compiling an AFS module. The module won't load. Dmesg reports undefined symbol _vn_lock. nm reports that the symbol exists and is undefined. How do I compile (defined) symbols into my module? You add the appropriate source file or library. _vn_lock, sounds like sys/vnode.h, which in turn on 7-STABLE needs sys/kern/vfs_vnops.c. -- Jeroen Ruigrok van der Werven asmodai(-at-)in-nomine.org / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B I am not a teacher but an awakener... ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with an rc script
Rodrigo OSORIO (ros) wrote: Hi, I'm trying to deal with a rc script I'm writing to launch a deamon. I wrote it based on the hanbook rc script sample. It works pretty well but I have some (strange to me) warning message. Your script looks pretty good, but it needs a little work. :) I assume that you wrote this based on the handbook examples for the base. You should probably take a look at the one for ports too: http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/rc-scripts.html Fisrt a short explanation about what i'm doing : The application is a python script deamon started by a shell script located in /usr/local/sbin/ntlmaps. The shell script launch the application and write the pid file if require So, the rc script (ntlmapsd) The name of the script, the $name value, and the REQUIRE: value should all match. So you should either name them all ntlmapsd, or ntlmaps. There is no conflict between the script name and the binary in /usr/local/sbin/, FYI. calls the shell script with the right arguments to start the application, then performs a 'kill -KILL' to stop it based on the pid file information. The thing is stopping the application I receive a message saying: ./ntlmapsd: WARNING: $command_interpreter -b != /bin/sh This is a tricky one because what you did looks totally reasonable since the script you're calling does use /bin/sh. However the command_interpreter value for rc.d needs to be what the _process_ is running, which in this case is /usr/local/bin/python. I've attached an example script that might work for you. Personally I would not make the pidfile stuff optional, in which case you could simplify things to the one in -v2. Whatever you decide, please test it thoroughly first. In addition to the web pages another good resource is to read through the comments in /etc/rc.subr. hth, Doug -- This .signature sanitized for your protection #!/bin/sh # # PROVIDE: ntlmaps # REQUIRE: LOGIN # KEYWORD: shutdown # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # # ntlmaps_enable (bool):Set to NO by default. # Set it to YES to enable ntlmaps. # ntlmaps_nice (string):Set to -5 by default # ntlmaps_pidfile (path): Set to /var/run/ntlmaps.pid by default . /etc/rc.subr name=ntlmaps rcvar=${name}_enable command=/usr/local/sbin/ntlmaps command_interpreter=/usr/local/bin/python load_rc_config $name ntlmaps_enable=${ntlmaps_enable-NO} ntlmaps_nice=${ntlmaps_nice--5} ntlmaps_pidfile=${ntlmaps_pidfile-/var/run/ntlmaps.pid} if [ -n $ntlmaps_pidfile ]; then pidfile=${ntlmaps_pidfile} command_args=-b -p $pidfile else command_args=-b fi run_rc_command $1 #!/bin/sh # # PROVIDE: ntlmaps # REQUIRE: LOGIN # KEYWORD: shutdown # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # # ntlmaps_enable (bool):Set to NO by default. # Set it to YES to enable ntlmaps. # ntlmaps_nice (string):Set to -5 by default . /etc/rc.subr name=ntlmaps rcvar=${name}_enable command=/usr/local/sbin/ntlmaps command_interpreter=/usr/local/bin/python pidfile=/var/run/ntlmaps.pid command_args=-b -p $pidfile load_rc_config $name ntlmaps_enable=${ntlmaps_enable-NO} ntlmaps_nice=${ntlmaps_nice--5} run_rc_command $1 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD Status Reports due August 5th, 2008
Hi Everyone, It is that time again. We would like to remind everybody who has exciting news to share to write a report about their project. This is a good way to improve exposure of your work, receive feedback and help. Looking forward to your reports. As always you can either use the template or the CGI generator and mail the output to monthly@ by Monday April 14th, 2008. http://www.freebsd.org/news/status/ http://www.freebsd.org/cgi/monthly.cgi http://www.freebsd.org/news/status/report-sample.xml Regards, Brad Davis ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Status Reports due August 5th, 2008
Brad Davis wrote: Hi Everyone, It is that time again. We would like to remind everybody who has exciting news to share to write a report about their project. This is a good way to improve exposure of your work, receive feedback and help. Looking forward to your reports. As always you can either use the template or the CGI generator and mail the output to monthly@ by Monday April 14th, 2008. I assume you mean Friday August 5th, 2008? http://www.freebsd.org/news/status/ http://www.freebsd.org/cgi/monthly.cgi http://www.freebsd.org/news/status/report-sample.xml Regards, Brad Davis Regards //Niclas ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Status Reports due August 5th, 2008
Brad Davis schrieb: Hi Everyone, It is that time again. We would like to remind everybody who has exciting news to share to write a report about their project. This is a good way to improve exposure of your work, receive feedback and help. Looking forward to your reports. As always you can either use the template or the CGI generator and mail the output to monthly@ by Monday April 14th, 2008. Could you loan me your time machine? *making puppy dog eyes* Arne ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Laptop suggestions?
On Jul 25, 2008, at 3:23 PM, Jeremy Messenger wrote: On Thu, 24 Jul 2008 09:34:32 -0500, Frank Mayhar [EMAIL PROTECTED] wrote: My old Dell Inspiron 5160 has developed problems that I can't fix, sigh, so it's time to replace it. I'm hoping for some good suggestions from this list (cc'd to hackers for the exposure, I know everyone doesn't read -mobile). My criteria: * 3D acceleration. * MiniPCI wireless (don't care which card, I'll replace it anyway). * At least 15 screen. * Decent power consumption. * Plays well with FreeBSD 7-stable. Nice to have: * Dual core. * 4GB memory. * Working suspend/hibernate mode (and no, I'm not holding my breath). So, suggestions? BTW, if I get a decent response I'll summarize it for the list, along with the one I chose and my experience after ordering/installing it. Maybe you can wait for this: http://www.ixsystems.com/products/bsd-laptop.html Hi everyone! I actually had our prototype of this laptop up at the OSCON show in Portland and it was pretty well received. Everything works for the most part although we're still tweaking some things for ACPI. I'll have one at the FreeBSD booth at LinuxWorld in San Francisco next week, August 5-7. We'll announce as soon as this thing is 100% and we're comfortable bringing the product line up as an item that we're comfortable supporting long term. Most likely, available to the general public in September. best, -matt I didn't compare your requirements in there, thought. Cheers, Mezz -- [EMAIL PROTECTED] - [EMAIL PROTECTED] FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mobile To unsubscribe, send any mail to [EMAIL PROTECTED] -- Matt Olander CTO, iXsystems - Servers for Open Source http://www.iXsystems.com Public Relations, The FreeBSD Project http://www.FreeBSD.org BSD on the Desktop! http://www.pcbsd.org Phone: (408)943-4100 ext. 113Fax: (408)943-4101 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Status Reports due August 5th, 2008
On Tue, Jul 29, 2008 at 01:17:27AM +0200, Niclas Zeising wrote: Brad Davis wrote: Hi Everyone, It is that time again. We would like to remind everybody who has exciting news to share to write a report about their project. This is a good way to improve exposure of your work, receive feedback and help. Looking forward to your reports. As always you can either use the template or the CGI generator and mail the output to monthly@ by Monday April 14th, 2008. I assume you mean Friday August 5th, 2008? Of course you are right, that is what I get for hurrying. Regards, Brad Davis ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Status Reports due August 5th, 2008
-On [20080730 06:22], Brad Davis ([EMAIL PROTECTED]) wrote: On Tue, Jul 29, 2008 at 01:17:27AM +0200, Niclas Zeising wrote: I assume you mean Friday August 5th, 2008? Of course you are right, that is what I get for hurrying. In my part of the world Friday in August is either the 1st or the 8th, but not the 5th. -- Jeroen Ruigrok van der Werven asmodai(-at-)in-nomine.org / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B Stand before it - there is no beginning. Follow it and there is no end. Stay with the Tao, move with the present... ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]