summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gta04.mk5
-rw-r--r--tinyalsa-audio.xml26
2 files changed, 30 insertions, 1 deletions
diff --git a/gta04.mk b/gta04.mk
index 1d763d3..c8668c8 100644
--- a/gta04.mk
+++ b/gta04.mk
@@ -24,9 +24,12 @@ PRODUCT_PACKAGES += \
libaudio \
libaudiopolicy
+PRODUCT_COPY_FILES += \
+ device/goldelico/gta04/tinyalsa-audio.xml:system/etc/tinyalsa-audio.xml
+
# APNS
PRODUCT_COPY_FILES += \
- vendor/replicant/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml
+ vendor/replicant/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml
# Dalvik
PRODUCT_PROPERTY_OVERRIDES += \
diff --git a/tinyalsa-audio.xml b/tinyalsa-audio.xml
new file mode 100644
index 0000000..d6d0ea8
--- /dev/null
+++ b/tinyalsa-audio.xml
@@ -0,0 +1,26 @@
+<tinyalsa-audio device="GTA04">
+ <device type="init">
+ <path name="enable">
+ <ctl name="DAC1 Digital Fine Playback Volume" value="60" />
+ <ctl name="DAC2 Digital Fine Playback Volume" value="60" />
+ <ctl name="DAC1 Digital Coarse Playback Volume" value="0" />
+ <ctl name="DAC2 Digital Coarse Playback Volume" value="0" />
+
+ <ctl name="DAC1 Analog Playback Volume" value="16" />
+ <ctl name="DAC2 Analog Playback Volume" value="16" />
+ </path>
+ </device>
+ <device type="output" name="speaker">
+ <path name="enable">
+ <ctl name="HandsfreeL Mux" value="AudioL2" />
+ <ctl name="HandsfreeR Mux" value="AudioR2" />
+ <ctl name="HandsfreeL Switch" value="on" />
+ <ctl name="HandsfreeR Switch" value="on" />
+ </path>
+ <path name="disable">
+ <ctl name="HandsfreeL Switch" value="off" />
+ <ctl name="HandsfreeR Switch" value="off" />
+ </path>
+ </device>
+</tinyalsa-audio>
+