View Single Post
edp17's Avatar
Posts: 607 | Thanked: 736 times | Joined on Jul 2019 @ UK
#887
Originally Posted by mautz View Post
Take a look here for the headphones problem:

https://github.com/mer-hybris/hadk-faq#id36
The hadk-faq says: "replace jack-match and jack-device with values from evdev_trace"

In your repo, there is no jack-device in the accessories.ini file. You have only jack-match.
Do you remember why? Thanks.

Edit:
the evdev_trace on my device (wip0.6) shows:
Code:
----====( /dev/input/event0 )====----
Name: "qpnp_pon"
ID: bus 0x0, vendor, 0x0, product 0x0, version 0x0
Type 0x00 (EV_SYN)
Type 0x01 (EV_KEY)
	 KEY_POWER

----====( /dev/input/event1 )====----
Name: "touch_dev"
ID: bus 0x0, vendor, 0x0, product 0x0, version 0x0
Type 0x00 (EV_SYN)
Type 0x03 (EV_ABS)
	 ABS_MT_SLOT=0 [0,9] ABS_MT_TOUCH_MAJOR=0 [0,15]
	 ABS_MT_POSITION_X=0 [0,1079] ABS_MT_POSITION_Y=0 [0,1919]
	 ABS_MT_TRACKING_ID=0 [0,65535] ABS_MT_PRESSURE=0 [0,255]

----====( /dev/input/event2 )====----
Name: "gpio-keys"
ID: bus 0x19, vendor, 0x1, product 0x1, version 0x100
Type 0x00 (EV_SYN)
Type 0x01 (EV_KEY)
	 KEY_VOLUMEDOWN KEY_VOLUMEUP
Type 0x05 (EV_SW)
	 SW_LID

----====( /dev/input/event3 )====----
Name: "hs_detect"
ID: bus 0x0, vendor, 0x1, product 0x1, version 0x1
Type 0x00 (EV_SYN)
Type 0x01 (EV_KEY)
	 KEY_VOLUMEDOWN KEY_VOLUMEUP KEY_MEDIA
Type 0x05 (EV_SW)
	 SW_HEADPHONE_INSERT SW_MICROPHONE_INSERT

----====( /dev/input/event4 )====----
Name: "msm8974-taiko-mtp-snd-card Button Jack"
ID: bus 0x0, vendor, 0x0, product 0x0, version 0x0
Type 0x00 (EV_SYN)
Type 0x01 (EV_KEY)
	 BTN_MISC BTN_1 BTN_2 BTN_3 BTN_4 BTN_5 BTN_6 BTN_7

----====( /dev/input/event5 )====----
Name: "msm8974-taiko-mtp-snd-card Headset Jack"
ID: bus 0x0, vendor, 0x0, product 0x0, version 0x0
Type 0x00 (EV_SYN)
Type 0x05 (EV_SW)
	 SW_HEADPHONE_INSERT SW_MICROPHONE_INSERT SW_LINEOUT_INSERT
	 SW_HPHL_OVERCURRENT SW_HPHR_OVERCURRENT SW_UNSUPPORT_INSERT
In your repo you set 'jack-match = hs_detect' and the hadk-faq suggest: 'jack-match = msm8974-taiko-mtp-snd-card Button Jack'

The hadk-faq also sets 'jack-device = /dev/input/event4'

In my device I have all three ('hs_detect', 'msm8974-taiko-mtp-snd-card Button Jack' and 'msm8974-taiko-mtp-snd-card Headset Jack'.
So which one I should use in the accessories.ini?

I bet on 'jack-device = /dev/input/event5' and 'jack-match = msm8974-taiko-mtp-snd-card Headset Jack' but I am not sure why you and the hadk-faq has different jack-mach.

I have tested all three and your one is the winner, so the content of accessories.ini:
eci-probe-delay = 2500
disable-incompatible-quirk = true
jack-match = hs_detect
jack-device = /dev/input/event3

Now the jack also works.

Last edited by edp17; 2019-11-20 at 23:40.