author | yang.xu <yang.xu@amlogic.com> | 2018-04-02 06:19:23 (GMT) |
---|---|---|
committer | yang.xu <yang.xu@amlogic.com> | 2018-04-02 06:19:23 (GMT) |
commit | c1cbe11d4daf56c39845963102136dabb4b95055 (patch) | |
tree | 7641c6805e54a2412ae56b8bf94233f35caf9000 | |
parent | 9ed2d46ddaf583226e57220ab83f32009c9b1c2b (diff) | |
download | einstein-c1cbe11d4daf56c39845963102136dabb4b95055.zip einstein-c1cbe11d4daf56c39845963102136dabb4b95055.tar.gz einstein-c1cbe11d4daf56c39845963102136dabb4b95055.tar.bz2 |
ARC:config audio policy and mixer paths[2/2]
PD# 159184
config audio policy and mixer paths
Change-Id: Ie2de3aa6b8b1e772206b12546fee89d17cc0772f
-rw-r--r-- | files/audio_policy.conf | 4 | ||||
-rw-r--r-- | files/mixer_paths.xml | 17 | ||||
-rw-r--r-- | system.prop | 5 |
3 files changed, 20 insertions, 6 deletions
diff --git a/files/audio_policy.conf b/files/audio_policy.conf index ce9b407..b5da428 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..fb9f819 100644 --- a/files/mixer_paths.xml +++ b/files/mixer_paths.xml @@ -1,6 +1,21 @@ <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 084f201..d018618 100644 --- a/system.prop +++ b/system.prop @@ -14,12 +14,11 @@ ro.autoconnectbt.macprefix=00:CD:FF ro.autoconnectbt.btclass=50c ro.autoconnectbt.nameprefix=Amlogic_RC -+#if TV SOC as mbox -+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 |