diff options
| author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2012-12-11 10:38:26 -0800 |
|---|---|---|
| committer | Tom Zanussi <tom.zanussi@intel.com> | 2012-12-14 10:50:41 -0600 |
| commit | 6408a390559d1d6a86441de6f4f56d49afd313c6 (patch) | |
| tree | 8d39d91faa4e29e4ba7d617fd8fcb7cc33975957 /meta-nuc | |
| parent | 3907096db9f2124a77d666c0d12fa583eece5da0 (diff) | |
| download | meta-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>
Diffstat (limited to 'meta-nuc')
| -rw-r--r-- | meta-nuc/recipes-bsp/alsa-state/alsa-state.bbappend | 1 | ||||
| -rw-r--r-- | meta-nuc/recipes-bsp/alsa-state/alsa-state/nuc/asound.conf | 24 |
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 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 @@ | |||
| 1 | pcm.!default { | ||
| 2 | type plug | ||
| 3 | slave.pcm "dmixer" | ||
| 4 | } | ||
| 5 | |||
| 6 | pcm.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 | |||
| 20 | ctl.dmixer { | ||
| 21 | type hw | ||
| 22 | card 0 | ||
| 23 | } | ||
| 24 | |||
