Audio jack automatic switch between headset and speakers not working in Cyan
I have an Acer Cyan chromebook (R11) and automatic switch between headset and speakers is not working.
I believe it should be easy to add support for this laptop. Here is a session of evtest recording the event when I inserted the headphones and removed it afterwards:
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Lid Switch
/dev/input/event1: Power Button
/dev/input/event2: Power Button
/dev/input/event3: AT Translated Set 2 keyboard
/dev/input/event4: Elan Touchscreen
/dev/input/event5: Elan Touchpad
/dev/input/event6: HDA Intel PCH HDMI/DP,pcm=3
/dev/input/event7: HDA Intel PCH HDMI/DP,pcm=7
/dev/input/event8: HDA Intel PCH HDMI/DP,pcm=8
/dev/input/event9: HD WebCam: HD WebCam
/dev/input/event10: chtmax98090 Headset Jack
Select the device event number [0-10]: 10
Input driver version is 1.0.1
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "chtmax98090 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 code 582 (KEY_VOICECOMMAND)
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 1533418458.627940, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 1
Event: time 1533418458.627940, -------------- SYN_REPORT ------------
Event: time 1533418461.151731, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 0
Event: time 1533418461.151731, -------------- SYN_REPORT ------------
Attached dmidecode.txt to help identify the laptop. Please tell me if you need more information.
RUnning pulseaudio 11.1 on Fedora 18:
Name : pulseaudio
Version : 11.1
Release : 18.fc28.1
Architecture: x86_64
Install Date: mer. 04 juil. 2018 09:20:51 GMT
Group : Unspecified
Size : 3564242
License : LGPLv2+
Signature : RSA/SHA256, mar. 08 mai 2018 19:46:55 GMT, Key ID e08e7e629db62fb1
Source RPM : pulseaudio-11.1-18.fc28.1.src.rpm
Build Date : mar. 08 mai 2018 19:30:16 GMT
Edited by Mildred