diff --git a/Makefile b/Makefile index b57169b..6e710f7 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/configs/asound.conf b/configs/asound.conf new file mode 100644 index 0000000..b9a014e --- /dev/null +++ b/configs/asound.conf @@ -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 +} diff --git a/configs/default_alsa_sound.conf b/configs/default_alsa_sound.conf index bbdefc6..99a61fc 100644 --- a/configs/default_alsa_sound.conf +++ b/configs/default_alsa_sound.conf @@ -1,3 +1,4 @@ +# Mute speaker, only output to headphones state.sun50ia64audio { control.1 { iface MIXER