aboutsummaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen2/recipes-multimedia/alsa/alsa-utils-config.bb
diff options
context:
space:
mode:
authorManuel Bachmann <mbc@iot.bzh>2015-11-12 13:00:50 +0000
committerManuel Bachmann <mbc@iot.bzh>2015-11-13 07:31:58 +0000
commitb5134746d323326a270a22e60112f21043ec6f7f (patch)
tree4d1acb5c4b025aaf5636f5921e09db36cdbc3b16 /meta-rcar-gen2/recipes-multimedia/alsa/alsa-utils-config.bb
parent137657697ec82d388c1ac4459c50b2da9e9ee59e (diff)
r-car m2: preconfigure Porter/Koelsch sound mixer
Sound is inaudible when starting a Porter/Koelsch board, because default state of their sound mixer is muted. Add a "alsa-utils-config" recipe which will be commented out, but available in local.conf, to preconfigure their mixer. Sound volume will be approximately 25% of maximum. Change-Id: Iaf60f612f8e01e7aa51f8a0558de00f26d36aee8 Signed-off-by: Manuel Bachmann <mbc@iot.bzh>
Diffstat (limited to 'meta-rcar-gen2/recipes-multimedia/alsa/alsa-utils-config.bb')
-rw-r--r--meta-rcar-gen2/recipes-multimedia/alsa/alsa-utils-config.bb27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-rcar-gen2/recipes-multimedia/alsa/alsa-utils-config.bb b/meta-rcar-gen2/recipes-multimedia/alsa/alsa-utils-config.bb
new file mode 100644
index 0000000..c7ecfea
--- /dev/null
+++ b/meta-rcar-gen2/recipes-multimedia/alsa/alsa-utils-config.bb
@@ -0,0 +1,27 @@
+SUMMARY = "ALSA sound configuration"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=3d5968ae2c5badd70c24075cfe58cc1e"
+
+RDEPENDS_${PN} = "alsa-utils"
+
+COMPATIBLE_MACHINE = "(porter|koelsch)"
+
+FILESEXTRAPATHS_prepend := ":${THISDIR}/alsa-utils-config:"
+
+SRC_URI = "file://COPYING \
+ "
+SRC_URI_append_porter = "file://asound.state-porter"
+SRC_URI_append_koelsch = "file://asound.state-porter"
+# SRC_URI_append_silk = "file://asound.state-silk"
+
+do_configure() {
+ cp ${WORKDIR}/COPYING ${S}
+ cp ${WORKDIR}/asound.state* ${S}/asound.state
+}
+
+do_install() {
+ install -d ${D}/${localstatedir}/lib/alsa
+ install -m 0644 asound.state ${D}/${localstatedir}/lib/alsa
+}
+
+FILES_${PN} += "${localstatedir}"