summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDylan Reid <dgreid@chromium.org>2012-06-18 17:37:11 -0700
committerDylan Reid <dgreid@chromium.org>2012-06-22 12:37:31 -0700
commitbeae5e4e289efb01c21d958f707d578a4c9e02a3 (patch)
treecb88eca97443a00e01128b15de9b4063e5aadfc5 /Makefile
parent0534603ac205e739953e3d100d09d3a93ae93c3d (diff)
downloadadhd-beae5e4e289efb01c21d958f707d578a4c9e02a3.tar.gz
CRAS: Add custom volume curve for stumpy/lumpy.
Add a volume curve for Stumpy and Lumpy that provides a wider range of useful volumes. This provides higher volume at lower slider levels. BUG=chromium-os:25412 TEST=Boot stumpy/lumpy and watch "alsamixer -c0" volume slider relative to the system volume. Change-Id: Iaf1d41103ab6aad38c3dae256253c9a37356563f
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7da5c121..56e6e660 100644
--- a/Makefile
+++ b/Makefile
@@ -52,6 +52,20 @@ install: $(DESTDIR)/etc/modprobe.d/alsa-$(BOARD).conf
endif
+optional_cras_conf := $(wildcard $(ADHD_DIR)/cras-config/$(BOARD)/*)
+
+ifneq ($(strip $(optional_cras_conf)),)
+
+.PHONY: cras-config-files
+cras-config-files:
+ $(ECHO) "Installing cras config files"
+ $(INSTALL) --mode 755 -d $(DESTDIR)etc/cras/
+ $(INSTALL) --mode 644 -D "$(optional_cras_conf)" $(DESTDIR)etc/cras/
+
+install: cras-config-files
+
+endif
+
install: $(DESTDIR)/etc/init/cras.conf \
$(DESTDIR)/etc/asound.state \
$(DESTDIR)/usr/bin/gavd \