forked from andweber/j2f
-
Notifications
You must be signed in to change notification settings - Fork 0
.asoundrc WTH?
Chrobi edited this page Aug 5, 2016
·
3 revisions
I have no clue either, but I am putting this up here to give my spin on what I think the deal is.
My information comes from a fellow named Lee in the Slack channel which pointed me to this Jasper Support Google Group.
This is the explanation I have come up for it which is probably all wrong. This code will not work due to my notations. Please let me know for corrections and help to fill in the blanks. Thanks.
pcm.usb <--- Define a device name this time its usb
{
type hw <--- What type of device this time hw (hardware)
card 0 <--- This is the card number from aplay -l
}
pcm.internal <--- Define a device name this time its Internal (the on board sound)
{
type hw <--- What type of device this time hw (hardware)
card 1 <--- This is the card number from aplay -l
}
pcm.!default <--- Umm Looking for help on this one
{
type asym <--- Umm Looking for help on this one
playback.pcm <--- This is to define the default playback device for programs like ALSAMIXER?? Looking for help
{
type plug <--- Umm Looking for help on this one I assuming that its cause its physical
slave.pcm "internal" <--- This is assigning the playback default device to the internal sound card
}
capture.pcm <--- This is to define the default capture device for programs like ALSAMIXER?? Looking for help
{
type plug <--- Umm Looking for help on this one I assuming that its cause its physical
slave.pcm "usb" <--- This is assigning the capture default device to the usb mic
}
}
ctl.!default <--- This is used to pair the CTL device usb and internal together on default ?? Looking for help
{
type asym <--- Umm Looking for help on this one
playback.pcm <--- This is to define the default playback device for programs like ALSAMIXER?? Looking for help
{
type plug <--- Umm Looking for help on this one I assuming that its cause its physical
slave.pcm "internal" <--- This is assigning the playback default device to the internal sound card
}
capture.pcm <--- This is to define the default capture device for programs like ALSAMIXER?? Looking for help
{
type plug <--- Umm Looking for help on this one I assuming that its cause its physical
slave.pcm "usb" <--- This is assigning the capture default device to USB Mic
}
}
###This one you should be able to use as a starting point for your .asoundrc file. This one is for USB mic on card 0 and pi sound on card 1 for output.
Use aplay -l
to determine your settings.
pcm.usb
{
type hw
card 0
}
pcm.internal
{
type hw
card 1
}
pcm.!default
{
type asym
playback.pcm
{
type plug
slave.pcm "internal"
}
capture.pcm
{
type plug
slave.pcm "usb"
}
}
ctl.!default
{
type asym
playback.pcm
{
type plug
slave.pcm "internal"
}
capture.pcm
{
type plug
slave.pcm "usb"
}
}