Autoenable dmix by adding basic dmix conf to /etc/asound.conf
This commit is contained in:
parent
be3fbd72c4
commit
309ba5679b
3 changed files with 28 additions and 0 deletions
1
Makefile
1
Makefile
|
@ -9,6 +9,7 @@ programs/sxmo_setpinebacklight:
|
||||||
install: programs/sxmo_setpineled programs/sxmo_setpinebacklight
|
install: programs/sxmo_setpineled programs/sxmo_setpinebacklight
|
||||||
mkdir -p $(PREFIX)/share/sxmo
|
mkdir -p $(PREFIX)/share/sxmo
|
||||||
cp configs/* $(PREFIX)/share/sxmo
|
cp configs/* $(PREFIX)/share/sxmo
|
||||||
|
cp configs/asound.conf /etc/
|
||||||
|
|
||||||
mkdir -p $(PREFIX)/bin
|
mkdir -p $(PREFIX)/bin
|
||||||
cp scripts/* $(PREFIX)/bin
|
cp scripts/* $(PREFIX)/bin
|
||||||
|
|
26
configs/asound.conf
Normal file
26
configs/asound.conf
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# Setup Dmix
|
||||||
|
pcm.!default {
|
||||||
|
type plug
|
||||||
|
slave.pcm "dmixer"
|
||||||
|
}
|
||||||
|
|
||||||
|
pcm.dmixer {
|
||||||
|
type dmix
|
||||||
|
ipc_key 1024
|
||||||
|
slave {
|
||||||
|
pcm "hw:0,0"
|
||||||
|
period_time 0
|
||||||
|
period_size 1024
|
||||||
|
buffer_size 4096
|
||||||
|
rate 44100
|
||||||
|
}
|
||||||
|
bindings {
|
||||||
|
0 0
|
||||||
|
1 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ctl.dmixer {
|
||||||
|
type hw
|
||||||
|
card 0
|
||||||
|
}
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Mute speaker, only output to headphones
|
||||||
state.sun50ia64audio {
|
state.sun50ia64audio {
|
||||||
control.1 {
|
control.1 {
|
||||||
iface MIXER
|
iface MIXER
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue