[General Questions and Answers] moizeali:
I installed jellytime beta11 on my Andoird DHD A9191 with updated gapps, full wiped.

When previously i installed Beta 10 i got an issue which is still not solved till now.

My headset toggles on and off and is being detected easily in the link shared below . I flash different roms , icecold sanwitch 8x different versions as well, full wiped and did everything to solve this out but didnt find solution.

Logcat :

V/WiredAccessoryObserver( 1649): Headset UEVENT: {SUBSYSTEM=switch, SWITCH_STATE

=0, DEVPATH=/devices/virtual/switch/h2w, SEQNUM=14406, ACTION=change, SWITCH_NAM

E=Headset}

V/WiredAccessoryObserver( 1649): updateState name: Headset state 0

V/WiredAccessoryObserver( 1649): updateState switchState: 0

I/HeadsetService(17553): Headset=true; Bluetooth=false

V/WiredAccessoryObserver( 1649): newState = 0, headsetState = 0,mHeadsetState =

1

V/WiredAccessoryObserver( 1649): device Headset disconnected

I/HeadsetService(17553): Selected configuration: headset

I/Effect-DRC( 1620): Compression factor set to: 1.000000

I/Effect-BassBoost( 1620): New strength: 0

I/Effect-Equalizer( 1620): Setting band 0 to 0

I/Effect-Equalizer( 1620): Setting band 1 to 0

I/Effect-Equalizer( 1620): Setting band 2 to 0

I/Effect-Equalizer( 1620): Setting band 3 to 0

I/Effect-Equalizer( 1620): Setting band 4 to 0

I/Effect-Equalizer( 1620): Setting loudness correction reference to 100.000000 d

B

I/HeadsetService(17553): Headset=true; Bluetooth=false

V/WiredAccessoryObserver( 1649): Headset UEVENT: {SUBSYSTEM=switch, SWITCH_STATE

=1, DEVPATH=/devices/virtual/switch/h2w, SEQNUM=14407, ACTION=change, SWITCH_NAM

E=Headset}

V/WiredAccessoryObserver( 1649): updateState name: Headset state 1

V/WiredAccessoryObserver( 1649): updateState switchState: 1

V/WiredAccessoryObserver( 1649): newState = 1, headsetState = 1,mHeadsetState =

0

V/WiredAccessoryObserver( 1649): device Headset connected

I/HeadsetService(17553): Headset=false; Bluetooth=false

I/HeadsetService(17553): Selected configuration: speaker

I/Effect-DRC( 1620): Compression factor set to: 1.000000

I/Effect-BassBoost( 1620): New strength: 0

I/Effect-Equalizer( 1620): Setting band 0 to 0

I/Effect-Equalizer( 1620): Setting band 1 to 0

I/Effect-Equalizer( 1620): Setting band 2 to 0

I/Effect-Equalizer( 1620): Setting band 3 to 0

I/Effect-Equalizer( 1620): Setting band 4 to 0

I/Effect-Equalizer( 1620): Setting loudness correction reference to 100.000000 d

B

dmsg :

<6>[12151.716247] [HS_MGR] (insert_detect_work_func) HEADSET_MIC (08-10 16:40:54

.684)

<6>[12151.920501] [HS_MGR] (remove_detect_work_func) Waiting for HPIN stable

<6>[12152.730590] [AUD] htc_acoustic_7x30: enable_mic_bias called 0

<6>[12152.730957] [AUD] board_spade_audio: spade_mic_enable: 0, shift 1

<6>[12152.737792] [HS_MGR] (hs_notify_hpin_irq) HPIN IRQ

<6>[12152.738769] [HS_MGR] (remove_detect_work_func) Remove 3.5mm accessory (08-

10 16:40:55.707)

<6>[12153.231750] [AUD] htc_acoustic_7x30: enable_mic_bias called 1

<6>[12153.232421] [AUD] board_spade_audio: spade_mic_enable: 1, shift 1

<6>[12153.233673] [HS_MGR] (hs_notify_hpin_irq) HPIN IRQ

<6>[12153.445617] [HS_MICROP] (headset_microp_remote_adc) Remote ADC 874 (0x36A)

<6>[12151.716247] [HS_MGR] (insert_detect_work_func) HEADSET_MIC (08-10 16:40:54

.684)

<6>[12151.920501] [HS_MGR] (remove_detect_work_func) Waiting for HPIN stable

<6>[12152.730590] [AUD] htc_acoustic_7x30: enable_mic_bias called 0

<6>[12152.730957] [AUD] board_spade_audio: spade_mic_enable: 0, shift 1

<6>[12152.737792] [HS_MGR] (hs_notify_hpin_irq) HPIN IRQ

<6>[12152.738769] [HS_MGR] (remove_detect_work_func) Remove 3.5mm accessory (08-

10 16:40:55.707)

<6>[12153.231750] [AUD] htc_acoustic_7x30: enable_mic_bias called 1

<6>[12153.232421] [AUD] board_spade_audio: spade_mic_enable: 1, shift 1

<6>[12153.233673] [HS_MGR] (hs_notify_hpin_irq) HPIN IRQ

<6>[12153.445617] [HS_MICROP] (headset_microp_remote_adc) Remote ADC 874 (0x36A)

<6>[12151.716247] [HS_MGR] (insert_detect_work_func) HEADSET_MIC (08-10 16:40:54

.684)

<6>[12151.920501] [HS_MGR] (remove_detect_work_func) Waiting for HPIN stable

<6>[12152.730590] [AUD] htc_acoustic_7x30: enable_mic_bias called 0

<6>[12152.730957] [AUD] board_spade_audio: spade_mic_enable: 0, shift 1

<6>[12152.737792] [HS_MGR] (hs_notify_hpin_irq) HPIN IRQ

<6>[12152.738769] [HS_MGR] (remove_detect_work_func) Remove 3.5mm accessory (08-

10 16:40:55.707)

<6>[12153.231750] [AUD] htc_acoustic_7x30: enable_mic_bias called 1

<6>[12153.232421] [AUD] board_spade_audio: spade_mic_enable: 1, shift 1

<6>[12153.233673] [HS_MGR] (hs_notify_hpin_irq) HPIN IRQ

<6>[12153.445617] [HS_MICROP] (headset_microp_remote_adc) Remote ADC 874 (0x36A)

<6>[12151.716247] [HS_MGR] (insert_detect_work_func) HEADSET_MIC (08-10 16:40:54

.684)

<6>[12151.920501] [HS_MGR] (remove_detect_work_func) Waiting for HPIN stable

<6>[12152.730590] [AUD] htc_acoustic_7x30: enable_mic_bias called 0

<6>[12152.730957] [AUD] board_spade_audio: spade_mic_enable: 0, shift 1

<6>[12152.737792] [HS_MGR] (hs_notify_hpin_irq) HPIN IRQ

<6>[12152.738769] [HS_MGR] (remove_detect_work_func) Remove 3.5mm accessory (08-

10 16:40:55.707)

<6>[12153.231750] [AUD] htc_acoustic_7x30: enable_mic_bias called 1

<6>[12153.232421] [AUD] board_spade_audio: spade_mic_enable: 1, shift 1

<6>[12153.233673] [HS_MGR] (hs_notify_hpin_irq) HPIN IRQ

<6>[12153.445617] [HS_MICROP] (headset_microp_remote_adc) Remote ADC 874 (0x36A)

Thanks for support and help