Skip to content

Instantly share code, notes, and snippets.

@hikiko
Last active March 13, 2023 11:27
Show Gist options
  • Save hikiko/156c378750e3a96577615dcc1a71d0fc to your computer and use it in GitHub Desktop.
Save hikiko/156c378750e3a96577615dcc1a71d0fc to your computer and use it in GitHub Desktop.
.asoundrc for jabra in build machine and other settings
#############################################################################
# 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
@hikiko
Copy link
Author

hikiko commented Jul 29, 2021

sources: reddit, jabra sdk documentation, alsa documentation
also: the user needs to be in audio group

@hikiko
Copy link
Author

hikiko commented Mar 10, 2023

updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment