Date: Fri, 14 Dec 2007 14:02:42 -0800 From: Rudy <crapsh@monkeybrains.net> To: Watanabe Kazuhiro <CQG00620@nifty.ne.jp> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: How do I use my USB microphone and motherboard audio out? Message-ID: <4762FD82.8070108@monkeybrains.net> In-Reply-To: <20071214131601.40AEA51309@mail.asahi-net.or.jp> References: <4761932D.7030106@monkeybrains.net> <20071214131601.40AEA51309@mail.asahi-net.or.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
Watanabe Kazuhiro wrote: > At Thu, 13 Dec 2007 12:16:45 -0800, > Rudy wrote: >> Watanabe Kazuhiro wrote: >>> Hi. >>> >>> At Tue, 11 Dec 2007 22:16:58 -0800, >>> Rudy wrote: >>>>> After reading some more man pages, I am still stumped but can better >>>>> phrase my question: >>>>> how do I set dsp0.0 as the default OUPUT and dsp1.1 as the default INPUT? >> ... >> >>> Audacity will be able to specify a different dsp device for the >>> recording and playback device via the "Audacity Preferences" panel >>> ("Edit" -> "Preferences" -> "Audio I/O"); e.g. /dev/dsp0 for playback, >>> and /dev/dsp1 for recording. >>> >>> Have you tried such configulation? >>> --- >>> Watanabe Kazuhiro (CQG00620@nifty.ne.jp) >> No luck. I only see '/dev/dsp'. It seems that dsp likes to automatically do stuff, but is not >> smart enough to always do the right thing. > > OK. My understanding is: > > * There is /dev/dsp0 which corresponds to pcm0 (snd_hda). > > * /dev/dsp and /dev/dsp0 are the same. e.g.: > > $ ls -l /dev/dsp /dev/dsp0 > crw-rw-rw- 1 root wheel 0, 83 Dec 14 20:55 /dev/dsp > crw-rw-rw- 1 root wheel 0, 83 Dec 14 20:55 /dev/dsp0 > $ > > * There is no /dev/dsp1. But there is /dev/dsp1.1 which corresponds > to pcm1 (snd_uaudio). > > If these are correct, will you try to make a symlink /dev/dsp1 which > points to /dev/dsp1.1 via devfs.conf(5)? i.e. Add the following line > to /etc/devfs.conf and then reboot the system: > > link dsp1.1 dsp1 > I entered these lines: # attempt to override the dsp0 input with the dsp1 input... doesn't work link dsp1.1 dsp0.1 # this didn't do anything link dsp1.1 dsp1 # this works... wanted to make sure I could do something. :) link dsp1.1 microphone and ran /etc/rc.d/devfs restart # ll /dev/ | grep dsp crw-rw-rw- 1 root wheel 0, 121 Dec 14 13:55 /dev/dsp0.0 crw-rw-rw- 1 root wheel 0, 122 Dec 14 09:33 /dev/dsp0.1 crw-rw-rw- 1 root wheel 0, 126 Dec 14 09:33 /dev/dsp0.2 crw-rw-rw- 1 root wheel 0, 145 Dec 14 09:31 /dev/dsp1.0 crw-rw-rw- 1 root wheel 0, 144 Dec 14 09:31 /dev/dsp1.1 lrwxr-xr-x 1 root wheel 6 Dec 14 13:52 /dev/microphone -> dsp1.1 # cat /dev/sndstat FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386) Installed devices: pcm0: <NVidia MCP51 High Definition Audio Controller> at memory 0xfe024000 irq 21 kld snd_hda [20071129_0050] [MPSAFE] (1p:2v/1r:1v channels duplex default) pcm1: <USB Audio> at ? kld snd_uaudio [GIANT] (0p:0v/1r:1v channels) mode 1:(input) 1ch, 16/16bit, pcm, 8000,11025,22050,44100,48000Hz ######### pcm0 is the motherboard sound/mic/lineout/etc ######### pcm1 is the usb mircophone # cd /dev # ln -s dsp1.1 dsp0.111 # ln -s dsp1.1 dsp0.1 # ll dsp* crw-rw-rw- 1 root wheel 0, 121 Dec 14 14:01 dsp0.0 lrwxr-xr-x 1 root wheel 6 Dec 14 14:01 dsp0.111 -> dsp1.1 crw-rw-rw- 1 root wheel 0, 126 Dec 14 09:33 dsp0.2 crw-rw-rw- 1 root wheel 0, 149 Dec 14 09:31 dsp1.0 crw-rw-rw- 1 root wheel 0, 144 Dec 14 09:31 dsp1.1 I can't seem to force the dsp1.1 to be the dsp0.1 :( Rudy
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4762FD82.8070108>