From owner-freebsd-questions@FreeBSD.ORG Sat Dec 15 14:11:16 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 64B5416A41A for ; Sat, 15 Dec 2007 14:11:16 +0000 (UTC) (envelope-from CQG00620@nifty.ne.jp) Received: from mail.asahi-net.or.jp (mail2.asahi-net.or.jp [202.224.39.198]) by mx1.freebsd.org (Postfix) with ESMTP id F304A13C4CC for ; Sat, 15 Dec 2007 14:11:15 +0000 (UTC) (envelope-from CQG00620@nifty.ne.jp) Received: from asahi-net.jp (b150056.ppp.asahi-net.or.jp [202.213.150.56]) by mail.asahi-net.or.jp (Postfix) with ESMTP id 8D1A14DA56; Sat, 15 Dec 2007 23:11:14 +0900 (JST) Date: Sat, 15 Dec 2007 23:11:14 +0900 From: Watanabe Kazuhiro To: freebsd-questions In-Reply-To: <4762FD82.8070108@monkeybrains.net> References: <4762FD82.8070108@monkeybrains.net> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/20.7 (i386--freebsd) MULE/4.1 (AOI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Message-Id: <20071215141114.8D1A14DA56@mail.asahi-net.or.jp> Cc: Rudy 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: Sat, 15 Dec 2007 14:11:16 -0000 At Fri, 14 Dec 2007 14:02:42 -0800, Rudy wrote: > 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 > > :( Hmm... I don't know what to do any more. Sorry. As a last proposal, how about audacity-devel (ports/audio/audacity-devel)? AFAIK, there is a limitation for the stable version of Audacity (ports/audio/audacity) to use USB microphones. See the URLs below. USB-microphone in Open Sound System http://audacityteam.org/wiki/index.php?title=USB_mic_on_Linux#USB-microphone_in_Open_Sound_System [Portaudio] Prompting for all output and input devices separately http://techweb.rfa.org/pipermail/portaudio/2006-February/005237.html I don't know whether the limitation is applied to FreeBSD or not. --- Watanabe Kazuhiro (CQG00620@nifty.ne.jp)