[meta-intel] [PATCH 07/11] meta-nuc: provide a working alsa config for the nuc BSP
nitin.a.kamble at intel.com
nitin.a.kamble at intel.com
Thu Dec 13 14:22:58 PST 2012
From: Nitin A Kamble <nitin.a.kamble at intel.com>
The nuc has audio coming out from HDMI ports. This commit
provides a alsa sound configuration where HDMI0 port is set
as a default sound out device.
Signed-off-by: Nitin A Kamble <nitin.a.kamble at intel.com>
---
.../recipes-bsp/alsa-state/alsa-state.bbappend | 1 +
.../alsa-state/alsa-state/nuc/asound.conf | 24 ++++++++++++++++++++
2 files changed, 25 insertions(+), 0 deletions(-)
create mode 100644 meta-nuc/recipes-bsp/alsa-state/alsa-state.bbappend
create mode 100644 meta-nuc/recipes-bsp/alsa-state/alsa-state/nuc/asound.conf
diff --git a/meta-nuc/recipes-bsp/alsa-state/alsa-state.bbappend b/meta-nuc/recipes-bsp/alsa-state/alsa-state.bbappend
new file mode 100644
index 0000000..72d991c
--- /dev/null
+++ b/meta-nuc/recipes-bsp/alsa-state/alsa-state.bbappend
@@ -0,0 +1 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
diff --git a/meta-nuc/recipes-bsp/alsa-state/alsa-state/nuc/asound.conf b/meta-nuc/recipes-bsp/alsa-state/alsa-state/nuc/asound.conf
new file mode 100644
index 0000000..1defe77
--- /dev/null
+++ b/meta-nuc/recipes-bsp/alsa-state/alsa-state/nuc/asound.conf
@@ -0,0 +1,24 @@
+pcm.!default {
+ type plug
+ slave.pcm "dmixer"
+}
+
+pcm.dmixer {
+ type dmix
+ ipc_key 1024
+ ipc_key_add_uid 0
+ ipc_perm 0666
+ slave {
+ pcm "hw:0,3" # HDMI CARD AND DEVICE
+ period_time 0
+ period_size 1024
+ buffer_size 8192
+ rate 48000 #or 44100
+ }
+}
+
+ctl.dmixer {
+ type hw
+ card 0
+}
+
--
1.7.3.4
More information about the meta-intel
mailing list