From owner-freebsd-questions@FreeBSD.ORG Fri Dec 14 22:01:48 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7754316A419 for ; Fri, 14 Dec 2007 22:01:48 +0000 (UTC) (envelope-from crapsh@monkeybrains.net) Received: from ape.monkeybrains.net (ape.monkeybrains.net [208.69.40.11]) by mx1.freebsd.org (Postfix) with ESMTP id 515E913C4D3 for ; Fri, 14 Dec 2007 22:01:48 +0000 (UTC) (envelope-from crapsh@monkeybrains.net) Received: from monchichi.monkeybrains.net (adsl-76-221-207-113.dsl.pltn13.sbcglobal.net [76.221.207.113]) (authenticated bits=0) by ape.monkeybrains.net (8.14.1/8.14.1) with ESMTP id lBEM1lXA099369 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 14 Dec 2007 14:01:48 -0800 (PST) (envelope-from crapsh@monkeybrains.net) Message-ID: <4762FD82.8070108@monkeybrains.net> Date: Fri, 14 Dec 2007 14:02:42 -0800 From: Rudy User-Agent: Thunderbird 2.0.0.9 (X11/20071122) MIME-Version: 1.0 To: Watanabe Kazuhiro References: <4761932D.7030106@monkeybrains.net> <20071214131601.40AEA51309@mail.asahi-net.or.jp> In-Reply-To: <20071214131601.40AEA51309@mail.asahi-net.or.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on pita.monkeybrains.net X-Virus-Status: Clean Cc: freebsd-questions Subject: Re: How do I use my USB microphone and motherboard audio out? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2007 22:01:48 -0000 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: at memory 0xfe024000 irq 21 kld snd_hda [20071129_0050] [MPSAFE] (1p:2v/1r:1v channels duplex default) pcm1: 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