Autoenable dmix by adding basic dmix conf to /etc/asound.conf

master
Miles Alan 5 years ago
parent be3fbd72c4
commit 309ba5679b
  1. 1
      Makefile
  2. 26
      configs/asound.conf
  3. 1
      configs/default_alsa_sound.conf

@ -9,6 +9,7 @@ programs/sxmo_setpinebacklight:
install: programs/sxmo_setpineled programs/sxmo_setpinebacklight
mkdir -p $(PREFIX)/share/sxmo
cp configs/* $(PREFIX)/share/sxmo
cp configs/asound.conf /etc/
mkdir -p $(PREFIX)/bin
cp scripts/* $(PREFIX)/bin

@ -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 {
control.1 {
iface MIXER

Loading…
Cancel
Save