summaryrefslogtreecommitdiff
authorTing Wang <ting.wang@amlogic.com>2018-04-11 02:15:03 (GMT)
committer Ting Wang <ting.wang@amlogic.com>2018-04-11 02:15:16 (GMT)
commitcb5b7da9ea1045b600774845f8fb0c67c3219508 (patch)
treedcaaaa693361923cb0e47e49c74429f423a712a4
parent322e4faffe8d90f560c40427695aae091149a5bf (diff)
downloaddarwin-cb5b7da9ea1045b600774845f8fb0c67c3219508.zip
darwin-cb5b7da9ea1045b600774845f8fb0c67c3219508.tar.gz
darwin-cb5b7da9ea1045b600774845f8fb0c67c3219508.tar.bz2
ARC:config audio policy and mixer paths[2/2]
PD# 159184 config audio policy and mixer paths Change-Id: I2ad37f5b25ca86fdc222cbb003a3ac7a46cb715f
Diffstat
-rw-r--r--files/audio_policy.conf4
-rw-r--r--files/mixer_paths.xml18
-rw-r--r--system.prop2
3 files changed, 21 insertions, 3 deletions
diff --git a/files/audio_policy.conf b/files/audio_policy.conf
index a3f8773..08a5b35 100644
--- a/files/audio_policy.conf
+++ b/files/audio_policy.conf
@@ -128,7 +128,7 @@ audio_hw_modules {
sampling_rates 48000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
- devices speaker|hdmi_out|hdmi_arc|SPDIF|wired_headphone|wired_headset|BT_sco|BT_sco_headset
+ devices speaker|hdmi_arc|SPDIF|wired_headphone|wired_headset|BT_sco|BT_sco_headset
flags AUDIO_OUTPUT_FLAG_PRIMARY
}
offload {
@@ -138,7 +138,7 @@ audio_hw_modules {
sampling_rates dynamic
channel_masks dynamic
formats dynamic
- devices speaker|hdmi_out|hdmi_arc|SPDIF|wired_headphone|wired_headset
+ devices speaker|hdmi_arc|SPDIF|wired_headphone|wired_headset
#flags AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_IEC958_NONAUDIO|AUDIO_OUTPUT_FLAG_HW_AV_SYNC
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_HW_AV_SYNC
}
diff --git a/files/mixer_paths.xml b/files/mixer_paths.xml
index ff22845..c8d374e 100644
--- a/files/mixer_paths.xml
+++ b/files/mixer_paths.xml
@@ -1,6 +1,22 @@
<mixer>
- <!-- dummy xml conf, do nothing here -->
+ <ctl name="HDMI ARC Switch" value="0" />
+
<path name="speaker">
+ <ctl name="AMP Ch1 Switch" value="1" />
+ <ctl name="AMP Ch2 Switch" value="1" />
+ </path>
+
+ <path name="speaker_off">
+ <ctl name="AMP Ch1 Switch" value="0" />
+ <ctl name="AMP Ch2 Switch" value="0" />
+ </path>
+
+ <path name="hdmi_arc">
+ <ctl name="HDMI ARC Switch" value="1" />
+ </path>
+
+ <path name="hdmi_arc_off">
+ <ctl name="HDMI ARC Switch" value="0" />
</path>
<path name="headphone">
diff --git a/system.prop b/system.prop
index 6c09fc4..957d50b 100644
--- a/system.prop
+++ b/system.prop
@@ -19,6 +19,8 @@ ro.tvsoc.as.mbox=true
#if wifi Only
ro.radio.noril=false
+ro.config.media_vol_steps=100
+
#if need pppoe
ro.net.pppoe=true