use card id to identify cards
This commit is contained in:
parent
3d56af9d3c
commit
9a9f4368b4
|
@ -1,6 +1,10 @@
|
||||||
# The IPC key of dmix or dsnoop plugin must be unique
|
# The IPC key of dmix or dsnoop plugin must be unique
|
||||||
# If 555555 or 666666 is used by other processes, use another one
|
# If 555555 or 666666 is used by other processes, use another one
|
||||||
|
|
||||||
|
|
||||||
|
# use samplerate to resample as speexdsp resample is bad
|
||||||
|
defaults.pcm.rate_converter "samplerate"
|
||||||
|
|
||||||
pcm.!default {
|
pcm.!default {
|
||||||
type asym
|
type asym
|
||||||
playback.pcm "playback"
|
playback.pcm "playback"
|
||||||
|
@ -19,14 +23,14 @@ pcm.capture {
|
||||||
|
|
||||||
pcm.dmixed {
|
pcm.dmixed {
|
||||||
type dmix
|
type dmix
|
||||||
slave.pcm "hw:0,0"
|
slave.pcm "hw:seeed2micvoicec"
|
||||||
ipc_key 555555
|
ipc_key 555555
|
||||||
}
|
}
|
||||||
|
|
||||||
pcm.array {
|
pcm.array {
|
||||||
type dsnoop
|
type dsnoop
|
||||||
slave {
|
slave {
|
||||||
pcm "hw:0,0"
|
pcm "hw:seeed2micvoicec"
|
||||||
channels 2
|
channels 2
|
||||||
}
|
}
|
||||||
ipc_key 666666
|
ipc_key 666666
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
# The IPC key of dmix or dsnoop plugin must be unique
|
# The IPC key of dmix or dsnoop plugin must be unique
|
||||||
# If 555555 or 666666 is used by other processes, use another one
|
# If 555555 or 666666 is used by other processes, use another one
|
||||||
|
|
||||||
|
# use samplerate to resample as speexdsp resample is bad
|
||||||
|
defaults.pcm.rate_converter "samplerate"
|
||||||
|
|
||||||
pcm.!default {
|
pcm.!default {
|
||||||
type asym
|
type asym
|
||||||
playback.pcm "playback"
|
playback.pcm "playback"
|
||||||
|
@ -9,22 +12,22 @@ pcm.!default {
|
||||||
|
|
||||||
pcm.playback {
|
pcm.playback {
|
||||||
type plug
|
type plug
|
||||||
slave.pcm "hw:0,0"
|
slave.pcm "hw:ALSA"
|
||||||
}
|
}
|
||||||
|
|
||||||
pcm.dmixed {
|
# pcm.dmixed {
|
||||||
type dmix
|
# type dmix
|
||||||
slave.pcm "hw:0,0"
|
# slave.pcm "hw:0,0"
|
||||||
ipc_key 555555
|
# ipc_key 555555
|
||||||
}
|
# }
|
||||||
|
|
||||||
pcm.ac108 {
|
pcm.ac108 {
|
||||||
type plug
|
type plug
|
||||||
slave.pcm "multiapps"
|
slave.pcm "hw:seeed4micvoicec"
|
||||||
}
|
}
|
||||||
|
|
||||||
pcm.multiapps {
|
# pcm.multiapps {
|
||||||
type dsnoop
|
# type dsnoop
|
||||||
ac108-slavepcm "hw:1,0"
|
# ac108-slavepcm "hw:1,0"
|
||||||
ipc_key 666666
|
# ipc_key 666666
|
||||||
}
|
# }
|
||||||
|
|
|
@ -1,68 +1,56 @@
|
||||||
# The IPC key of dmix or dsnoop plugin must be unique
|
# The IPC key of dmix or dsnoop plugin must be unique
|
||||||
# If 555555 or 666666 is used by other processes, use another one
|
# If 555555 or 666666 is used by other processes, use another one
|
||||||
|
|
||||||
|
# use samplerate to resample as speexdsp resample is bad
|
||||||
|
defaults.pcm.rate_converter "samplerate"
|
||||||
|
|
||||||
pcm.!default {
|
pcm.!default {
|
||||||
type asym
|
type asym
|
||||||
playback.pcm "playback"
|
playback.pcm "ac101"
|
||||||
capture.pcm "ac108"
|
capture.pcm "ac108"
|
||||||
}
|
}
|
||||||
|
|
||||||
pcm.playback {
|
|
||||||
type plug
|
|
||||||
slave {
|
|
||||||
rate 48000
|
|
||||||
format S32_LE
|
|
||||||
pcm "hw:1,0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pcm.dmixed {
|
|
||||||
type dmix
|
|
||||||
slave.pcm "hw:0,0"
|
|
||||||
ipc_key 555555
|
|
||||||
}
|
|
||||||
|
|
||||||
pcm.ac108 {
|
pcm.ac108 {
|
||||||
type plug
|
type plug
|
||||||
slave.pcm "multiapps"
|
|
||||||
}
|
|
||||||
|
|
||||||
pcm.multiapps {
|
|
||||||
type dsnoop
|
|
||||||
slave {
|
slave {
|
||||||
rate 48000
|
rate 48000
|
||||||
format S32_LE
|
format S32_LE
|
||||||
pcm "hw:1,0"
|
pcm "hw:seeed8micvoicec"
|
||||||
}
|
}
|
||||||
ipc_key 666666
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# pcm.multiapps {
|
||||||
|
# type dsnoop
|
||||||
|
# slave {
|
||||||
|
# rate 48000
|
||||||
|
# format S32_LE
|
||||||
|
# pcm "hw:seeed8micvoicec"
|
||||||
|
# }
|
||||||
|
# ipc_key 666666
|
||||||
|
# }
|
||||||
|
|
||||||
pcm.ac101 {
|
pcm.ac101 {
|
||||||
type plug
|
type plug
|
||||||
slave {
|
slave {
|
||||||
pcm {
|
pcm {
|
||||||
type dmix
|
type route
|
||||||
ipc_key 1048576
|
slave {
|
||||||
slave {
|
pcm "hw:seeed8micvoicec"
|
||||||
pcm "hw:1,0"
|
|
||||||
format S32_LE
|
format S32_LE
|
||||||
# rate 16000
|
|
||||||
channels 8
|
channels 8
|
||||||
}
|
}
|
||||||
bindings {
|
ttable.0.0 1
|
||||||
# map 2 channels input to
|
ttable.1.1 1
|
||||||
# first 2 channels of 8 output
|
ttable.0.2 1
|
||||||
0 0
|
ttable.1.3 1
|
||||||
1 1
|
ttable.0.4 1
|
||||||
0 2
|
ttable.1.5 1
|
||||||
1 3
|
ttable.0.6 1
|
||||||
0 4
|
ttable.1.7 1
|
||||||
1 5
|
|
||||||
0 6
|
|
||||||
1 7
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
channels 2
|
channels 2
|
||||||
|
rate 48000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue