From bc6f0640e02a27e7a05b6e9d14b13fe17620515d Mon Sep 17 00:00:00 2001 From: PythonLimited Date: Wed, 6 Mar 2019 21:11:18 +0100 Subject: [PATCH] fix headphone 4 sure this is the only samsung phone with qcom chipset + treble so far which means we need to revert the usage of /dev/input for headset instead of the normal h2w in /sys/devices/virtual/switch/h2w --- board/audio.mk | 5 +++-- rootdir/init.qcom.rc | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/board/audio.mk b/board/audio.mk index 8b0d388..7e1d697 100644 --- a/board/audio.mk +++ b/board/audio.mk @@ -1,4 +1,5 @@ # Audio -AUDIO_FEATURE_ENABLED_LOW_LATENCY_CAPTURE := true +#AUDIO_FEATURE_ENABLED_LOW_LATENCY_CAPTURE := true BOARD_USES_ALSA_AUDIO := true -USE_CUSTOM_AUDIO_POLICY := 1 +#USE_CUSTOM_AUDIO_POLICY := 1 +#USE_XML_AUDIO_POLICY_CONF := 1 diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc index e8afe3e..3f1441f 100644 --- a/rootdir/init.qcom.rc +++ b/rootdir/init.qcom.rc @@ -77,6 +77,9 @@ on fs start debug_log on post-fs-data + # Fix headset h2w switch not recognized (theres no sammy phone with qcom + treble yet #FIRST #WINNER :D ) + setprop persist.sys.overlay.devinputjack false + # Create the directories used by CnE subsystem mkdir /data/connectivity 0771 system system chown system system /data/connectivity