Last active
March 13, 2023 11:27
-
-
Save hikiko/156c378750e3a96577615dcc1a71d0fc to your computer and use it in GitHub Desktop.
.asoundrc for jabra in build machine and other settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################# | |
# in /etc/udev/rules.d/10-usb-sound.rules: | |
############################################################################# | |
SUBSYSTEM=="sound", ATTRS{idVendor}=="<foo>", ATTRS{idProduct}=="<bar>" MODE="0666", GROUP="users" | |
################ actual .asoundrc ########################################### | |
pcm.plugdmix { | |
type plug | |
slave.pcm "dmix" | |
} | |
## ############### | |
## before jabra: | |
## ############### | |
## | |
#defaults.ctl.card 2; | |
#defaults.pcm.card 2; | |
# | |
#pcm.plugdmix { | |
# type plug | |
# | |
# slave.pcm "dmix" | |
# card "PCH" | |
# device 0 | |
# | |
# format "S32_LE"; | |
# channels 2; | |
# min_dB -5.0 | |
# max_dB 40.0 | |
# resolution 6 | |
#} | |
# | |
## | |
## with jabra: | |
## | |
#pcm.jabra { | |
# type hw; | |
# card "J380" ; | |
# device 0 ; | |
# rate 48000; | |
# format "S16_LE"; | |
# channels 2; | |
#} | |
# | |
#ctl.jabra { | |
# type hw; | |
# card "J380"; | |
#} | |
# | |
#pcm.ReSpeaker { | |
# type hw | |
# card "J380" | |
# device 0 | |
#} | |
# | |
#ctl.ReSpeaker { | |
# type hw | |
# card "J380" | |
# device 0 | |
#} | |
# | |
#pcm.!sysdefault { | |
# type asym | |
# playback.pcm { | |
# type plug | |
# slave.pcm "jabra" | |
# } | |
# capture.pcm { | |
# type plug | |
# slave.pcm "ReSpeaker" | |
# } | |
#} | |
# | |
## to set jabra as default: | |
## | |
#pcm.!default { | |
# type asym | |
# playback.pcm { | |
# type plug | |
# slave.pcm "jabra" | |
# } | |
# capture.pcm { | |
# type plug | |
# slave.pcm "ReSpeaker" | |
# } | |
#} | |
# | |
##pcm.!default pcm.intel | |
##ctl.!default ctl.intel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sources: reddit, jabra sdk documentation, alsa documentation
also: the user needs to be in audio group