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
This commit is contained in:
PythonLimited 2019-03-06 21:11:18 +01:00
parent 2c3225a51f
commit bc6f0640e0
2 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,5 @@
# Audio # Audio
AUDIO_FEATURE_ENABLED_LOW_LATENCY_CAPTURE := true #AUDIO_FEATURE_ENABLED_LOW_LATENCY_CAPTURE := true
BOARD_USES_ALSA_AUDIO := true BOARD_USES_ALSA_AUDIO := true
USE_CUSTOM_AUDIO_POLICY := 1 #USE_CUSTOM_AUDIO_POLICY := 1
#USE_XML_AUDIO_POLICY_CONF := 1

View file

@ -77,6 +77,9 @@ on fs
start debug_log start debug_log
on post-fs-data 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 # Create the directories used by CnE subsystem
mkdir /data/connectivity 0771 system system mkdir /data/connectivity 0771 system system
chown system system /data/connectivity chown system system /data/connectivity