Quantcast

How do I use my USB microphone and motherboard audio out?

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How do I use my USB microphone and motherboard audio out?

Rudy (bulk)


I want to use the "audacity" port to record sound and play it back.
I don't have a mini-jack microphone, but I have a USB microphone.  The system tries to record from
the motherboard sound card (which does not have a microphone attached).

If I run this command:
   sysctl hw.snd.default_unit=1
audacity will not start because my dsp1 does not have any out.


here is the output of /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:1v/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



I am using:
  FreeBSD 7.0-BETA4

For other with a similar situation:  this command:
  kldload snd_uaudio
get FreeBSD to recognize your Logitech USB microphone (from the Playstation).

- RUdy
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I use my USB microphone and motherboard audio out?

Rudy (bulk)

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?

Rudy

> here is the output of /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:1v/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

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I use my USB microphone and motherboard audio out?

Rudy (bulk)


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?
>
> Rudy
>
>> here is the output of /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:1v/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
>



Anyone know how do do this, or should I try freebsd-multimedia or something like that?

... on other OS'es I've seen ways to define a default microphone when a machine has two
microphones.  Can't seem to figure that out in BSD (I can assign a default pcm device, but my pcm1
doesn't have output...

Help still requested,
Rudy
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I use my USB microphone and motherboard audio out?

Watanabe Kazuhiro
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?
> >
> > Rudy
> >
> >> here is the output of /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:1v/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
>
> Anyone know how do do this, or should I try freebsd-multimedia or something like that?
>
> ... on other OS'es I've seen ways to define a default microphone when a machine has two
> microphones.  Can't seem to figure that out in BSD (I can assign a default pcm device, but my pcm1
> doesn't have output...

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 ([hidden email])
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I use my USB microphone and motherboard audio out?

Rudy (bulk)
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 ([hidden email])

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.

Rudy



_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I use my USB microphone and motherboard audio out?

Watanabe Kazuhiro
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 ([hidden email])
>
> 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

---
Watanabe Kazuhiro ([hidden email])
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I use my USB microphone and motherboard audio out?

Rudy (bulk)
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 ([hidden email])
>> 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
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I use my USB microphone and motherboard audio out?

Watanabe Kazuhiro
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 ([hidden email])
> >> 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
>
> :(

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 ([hidden email])
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Loading...