ubports / ubuntu-touch

Ubuntu Touch's issue inbox is now migrated to GitLab.
https://gitlab.com/ubports/ubuntu-touch
1.28k stars 110 forks source link

Xperia X: wired headphone does not stay connected #1518

Open Danfro opened 4 years ago

Danfro commented 4 years ago

Running devel on Xperia X 32 bit.

Plug a wired headphone into the phone. The popup for headphone with the volume appears. Expected: headphone stays active Actual behaviour: after a while (?)/when starting morph or music app (?) headphone gets disconnected and speaker is used Confirmed by other users: yes

After replugging and e.g. playing a video headphone seems to stay active. It might be connected to some services being started?

Danfro commented 4 years ago

And here some logs:

https://pastebin.com/igCPq9fd

Everything after the "synced" line is right after plugging in the headphones until shortly after the phone switched to speaker again.

UniversalSuperBox commented 4 years ago

I can confirm this. As soon as the audio codec goes into suspend (presumably), the audio output switches back to speakers.

mateosalta commented 4 years ago

same here on xperia xp

RomBuch commented 3 years ago

I have Ubuntu Touch (stable, 64-bit, OTA-14) flashed on my Xperia X.

I have a wired in-ear headset (headphones with microphone). With my old Fairphone, in Android and UT the microphone never worked (only at the PC), but the headphones were fine with UT. Now with my Xperia X, there is a short pop-up when I connect the headphones with the device: volume for headphones. Then after half a second (or less) the popup changes in volume for speaker.

Sound output is always via the speaker, also when I plug in my headset during e.g. music playing.

Some old, half broken headphones without microphone do work.

lduboeuf commented 2 years ago

confirmed still there (Devel). Headphone minijack plug will not appreciate ^ ^

lduboeuf commented 2 years ago

Interesting, with headphone without a mic it seems there is no issues

fredldotme commented 2 years ago

I have an idea what could be wrong, suzu is still using the H2W kernel driver hack. The PulseAudio module can already use non-H2W events, which should work with suzu as well. I'll try setting CONFIG_SWITCH_H2W=n in the kernel config and see how it behaves.

EDIT: I've since changed the config, please test tomorrow's devel image to verify its functionality.

fredldotme commented 2 years ago

Oh wait a second, the config was still there but the driver itself has been reverted. I could try building a H2W-enabled driver again for you to compare functionality with. Anyone interested?

lduboeuf commented 2 years ago

@fredldotme yes, instruction please :)