aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-bsp
diff options
context:
space:
mode:
authorDrew Moseley <drew_moseley@mentor.com>2014-08-05 16:03:42 -0400
committerDrew Moseley <drew_moseley@mentor.com>2014-08-05 21:40:58 -0400
commitb620f91398cea6d2b63d462b9c2c84fd2919b9e1 (patch)
tree9a5a8acb90589ac21310d8b6729d4f60db785a1c /common/recipes-bsp
parent52de17499c1241630a9a5c653b44123687605e74 (diff)
downloadmeta-amd-b620f91398cea6d2b63d462b9c2c84fd2919b9e1.tar.gz
meta-amd-b620f91398cea6d2b63d462b9c2c84fd2919b9e1.tar.bz2
meta-amd-b620f91398cea6d2b63d462b9c2c84fd2919b9e1.zip
alsa-state: Setup a better asound.conf file
This uses a combination of the asym, dmix and dsnoop plugins to allow concurrent access to the alsa device using the Default device. Primarily this is a convenience as it is a lowest common denominator but it makes things mostly "just work" out of the box. Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
Diffstat (limited to 'common/recipes-bsp')
-rw-r--r--common/recipes-bsp/alsa-state/alsa-state/asound.conf44
1 files changed, 39 insertions, 5 deletions
diff --git a/common/recipes-bsp/alsa-state/alsa-state/asound.conf b/common/recipes-bsp/alsa-state/alsa-state/asound.conf
index b8683a56..4ca52c99 100644
--- a/common/recipes-bsp/alsa-state/alsa-state/asound.conf
+++ b/common/recipes-bsp/alsa-state/alsa-state/asound.conf
@@ -1,8 +1,42 @@
pcm.!default {
- type hw
- card 1
+ type asym
+ playback.pcm "dmixer"
+ capture.pcm "dsnooper"
}
-ctl.!default {
- type hw
- card 1
+
+pcm.dmixer {
+ type dmix
+ ipc_key 1024
+ slave {
+ pcm "hw:1,0"
+ period_time 0
+ period_size 1024
+ buffer_size 4096
+ rate 44100
+ }
+ bindings {
+ 0 0
+ 1 1
+ }
+}
+
+pcm.dsnooper {
+ type dsnoop
+ ipc_key 1025
+ slave {
+ pcm "hw:1,0"
+ period_time 0
+ period_size 1024
+ buffer_size 4096
+ rate 44100
+ }
+ bindings {
+ 0 0
+ 1 1
+ }
+}
+
+ctl.dmixer {
+ type hw
+ card 0
}