summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2012-12-11 18:38:26 (GMT)
committerTom Zanussi <tom.zanussi@intel.com>2012-12-14 16:50:41 (GMT)
commit6408a390559d1d6a86441de6f4f56d49afd313c6 (patch)
tree8d39d91faa4e29e4ba7d617fd8fcb7cc33975957
parent3907096db9f2124a77d666c0d12fa583eece5da0 (diff)
downloadmeta-intel-6408a390559d1d6a86441de6f4f56d49afd313c6.tar.gz
meta-nuc: provide a working alsa config for the nuc BSP
The nuc supports audio only via the HDMI ports. This provides an alsa sound configuration where HDMI0 port is set as a default sound out device. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
-rw-r--r--meta-nuc/recipes-bsp/alsa-state/alsa-state.bbappend1
-rw-r--r--meta-nuc/recipes-bsp/alsa-state/alsa-state/nuc/asound.conf24
2 files changed, 25 insertions, 0 deletions
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 @@
1pcm.!default {
2 type plug
3 slave.pcm "dmixer"
4}
5
6pcm.dmixer {
7 type dmix
8 ipc_key 1024
9 ipc_key_add_uid 0
10 ipc_perm 0666
11 slave {
12 pcm "hw:0,3" # HDMI CARD AND DEVICE
13 period_time 0
14 period_size 1024
15 buffer_size 8192
16 rate 48000 #or 44100
17 }
18}
19
20ctl.dmixer {
21 type hw
22 card 0
23}
24