defaults.pcm.rate_converter "speexrate_medium"
pcm.!default
{
type asym
playback.pcm {
type plug
slave.pcm "softvol"
}
capture.pcm {
type plug
slave {
pcm "hw:1,0"
}
}
}
pcm.pa
{
type plug
slave.pcm "hw:0,0"
}
pcm.play_uac2 {
type plug
slave.pcm "hw:3,0"
slave.rate 48000
slave.format S16_LE
slave.channels 18
}
pcm.cap_uac2
{
type plug
slave.pcm "hw:3,0"
slave.channels 2
slave.format S16_LE
slave.rate 48000
}
pcm.play_pa
{
type plug
slave.pcm "hw:0,0"
}
pcm.default_mic
{
type plug
slave.pcm "hw:1,0"
slave.channels 16
slave.format S32_LE
slave.rate 48000
}
pcm.cap_mic
{
type plug
slave.pcm "default_mic"
slave.channels 16
slave.format S16_LE
slave.rate 48000
}
pcm.cap_ref {
type plug
slave.pcm "hw:0,0"
slave.channels 8
slave.format S16_LE
slave.rate 48000
}
#pcm.assemable_to_uac2 {
# type asym
# playback.pcm {
# type plug
# slave.pcm "play_uac2"
# }
# capture.pcm "mic_ref_assemable"
#}
pcm.mic_ref_assemable {
type multi
slaves.a.pcm "cap_mic"
slaves.b.pcm "cap_ref"
slaves.a.channels 16
slaves.b.channels 8
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave a
bindings.2.channel 2
bindings.3.slave a
bindings.3.channel 3
bindings.4.slave a
bindings.4.channel 4
bindings.5.slave a
bindings.5.channel 5
bindings.6.slave a
bindings.6.channel 6
bindings.7.slave a
bindings.7.channel 7
bindings.8.slave a
bindings.8.channel 8
bindings.9.slave a
bindings.9.channel 9
bindings.10.slave a
bindings.10.channel 10
bindings.11.slave a
bindings.11.channel 11
bindings.12.slave a
bindings.12.channel 12
bindings.13.slave a
bindings.13.channel 13
bindings.14.slave a
bindings.14.channel 14
bindings.15.slave a
bindings.15.channel 15
bindings.16.slave b
bindings.16.channel 0
bindings.17.slave b
bindings.17.channel 1
}
pcm.softvol {
type softvol
slave.pcm "playback"
control {
name "Master Playback Volume"
card 0
}
min_dB -40.0
max_dB 0.0
resolution 100
}
pcm.playback {
type dmix
ipc_key 5978293 # must be unique for all dmix plugins!!!!
ipc_key_add_uid yes
slave {
pcm "hw:7,0,0"
channels 2
period_size 1024
buffer_size 4096
}
bindings {
0 0
1 1
}
}
pcm.real_playback {
type dshare
ipc_key 5978293 # must be unique for all dmix plugins!!!!
ipc_key_add_uid yes
slave {
pcm "hw:0,0"
channels 2
rate 48000
period_size 1024
buffer_size 4096
}
bindings {
0 0
1 1
}
}
#aplay -D plug:ladspa /data/test.wav
pcm.ladspa {
type ladspa
slave.pcm "plug:real_playback"
channels 2
path "/usr/lib"
playback_plugins [{
label eq_drc_stereo
input {
controls [4]
}
}]
}
pcm.dsnooped_6_2 {
ipc_key 1027
type dsnoop
slave {
pcm "hw:0,0"
channels 8
rate 16000
period_size 1024
buffer_size 262144
}
}
pcm.6mic_loopback
{
type plug
slave.pcm "dsnooped_6_2"
}
pcm.fake_record {
type plug
slave.pcm "hw:7,1,0"
}
pcm.fake_play {
type plug
slave.pcm "ladspa"
}
# For headset.
pcm.fake_jack {
type plug
slave.pcm "plug:real_playback"
}
asound.conf 模版
于 2024-07-09 16:00:14 首次发布