Skip to content

Instantly share code, notes, and snippets.

@uriel1998
Created August 26, 2021 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uriel1998/3c67ae0a96c4d6c58b5a0b26e0b207ea to your computer and use it in GitHub Desktop.
Save uriel1998/3c67ae0a96c4d6c58b5a0b26e0b207ea to your computer and use it in GitHub Desktop.
/etc/asoundrc for Rock64 with Ayufan Kernel
defaults.ctl.card 1
defaults.pcm.card 1
defaults.pcm.device 0
pcm.dmixed {
type dmix
ipc_key 1027
# ipc_key_add_uid 0
ipc_perm 0660
slave {
pcm "hw:1,0"
period_time 0
period_size 2048
buffer_size 16384 # buffer size < 6653, but pow(x, 2)
rate 48000 # 192000 / 4
}
bindings {
0 0
1 1
}
}
#pcm.dmixed2 {
# type dmix
# ipc_key 1028
## ipc_key_add_uid 0
# ipc_perm 0660
# slave {
# pcm "hw:0,0"
# period_time 0
# period_size 2048
# buffer_size 16384 # buffer size < 6653, but pow(x, 2)
# rate 48000 # 192000 / 4
# }
# bindings {
# 0 0
# 1 1
# }
#}
#
#pcm.both {
# type route
# slave.pcm {
# type multi
# slaves.a.pcm "dmixed"
# slaves.b.pcm "dmixed2"
# slaves.a.channels 2;
# slaves.b.channels 2;
# bindings.0.slave a
# bindings.0.channel 0
# bindings.1.slave a
# bindings.1.channel 1
# bindings.2.slave b
# bindings.2.channel 0
# bindings.3.slave b
# bindings.3.channel 1
# }
# ttable.0.0 1
# ttable.1.1 1
# ttable.0.2 1
# ttable.1.3 1
#}
pcm.volume {
type softvol
slave.pcm "dmixed"
control {
name "Master"
card 0
}
}
# Everything shall be dmixed, so redefine "default":
pcm.!default {
type plug
slave.pcm "volume"
hint {
show on
description "ALSA Default card with mixer"
}
}
pcm.!front {
type plug
slave.pcm "volume"
}
# OSS via aoss should d(mix)stroyed:
pcm.dsp0 {
type plug
slave.pcm "volume"
}
#hw:CARD=I2S,DEV=0
#pcm.asymed {
# type asym
# playback.pcm "dmixed"
# capture.pcm "hw:1,0" # ??
#capture.pcm "dsnooped"
#}
#ctl.!default {
# type hw
# card 0
#}
#ctl.mixer0 {
# type hw
# card 0
#}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment