From 6408a390559d1d6a86441de6f4f56d49afd313c6 Mon Sep 17 00:00:00 2001 From: Nitin A Kamble Date: Tue, 11 Dec 2012 10:38:26 -0800 Subject: 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 Signed-off-by: Tom Zanussi --- .../recipes-bsp/alsa-state/alsa-state.bbappend | 1 + .../alsa-state/alsa-state/nuc/asound.conf | 24 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) 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 (limited to 'meta-nuc') 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 00000000..72d991c7 --- /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 00000000..1defe77d --- /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 +} + -- cgit v1.2.3-54-g00ecf