03-19-2021, 03:42 AM
(This post was last modified: 03-19-2021, 03:51 AM by fernando_c_m.)
(03-18-2021, 10:27 AM)jmorris Wrote: evtest shows microphone detection when the headset is inserted but nothing on headphone insertion.I am not able to reproduce that. Pinephone Community Edition. Mobian running 5.11 kernel:
First two entries are headphones. Last entry a headset.
Code:
Input driver version is 1.0.1
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "PinePhone Headset Jack"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 114 (KEY_VOLUMEDOWN)
Event code 115 (KEY_VOLUMEUP)
Event code 164 (KEY_PLAYPAUSE)
Event type 5 (EV_SW)
Event code 2 (SW_HEADPHONE_INSERT) state 0
Event code 4 (SW_MICROPHONE_INSERT) state 0
Properties:
Testing ... (interrupt to exit)
Event: time 1616146736.894669, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 1
Event: time 1616146736.894669, -------------- SYN_REPORT ------------
Event: time 1616146738.588486, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 0
Event: time 1616146738.588486, -------------- SYN_REPORT ------------
Event: time 1616146741.995267, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 1
Event: time 1616146741.995267, -------------- SYN_REPORT ------------
Event: time 1616146743.477673, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 0
Event: time 1616146743.477673, -------------- SYN_REPORT ------------
Event: time 1616146747.531432, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 1
Event: time 1616146747.531432, -------------- SYN_REPORT ------------
Event: time 1616146748.150480, type 5 (EV_SW), code 4 (SW_MICROPHONE_INSERT), value 1
Event: time 1616146748.150480, -------------- SYN_REPORT ------------
Event: time 1616146749.368830, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 0
Event: time 1616146749.368830, type 5 (EV_SW), code 4 (SW_MICROPHONE_INSERT), value 0
Event: time 1616146749.368830, -------------- SYN_REPORT ------------