GloDroid / glodroid_manifest

Android port that aims to bring both user- and developer-friendly experience in using AOSP with a set of single-board computers (SBC), phones and other devices.
471 stars 67 forks source link

audio jack switching not working on pinephone #138

Closed squidink7 closed 1 year ago

squidink7 commented 3 years ago

the pinephone has had some issues with switching to the headphones automatically when plugged in, but using the latest 5.12 kernel on Manjaro this has been fixed. I noticed in the 0.6.1 builds this isn't working yet it's still running linux 5.12. Would you know why that may be?

rsglobal commented 3 years ago

As far as I know plug/unplug events are successfully translated to Android framework. What is missing is configuration sets for routing audio in this file https://github.com/GloDroid/glodroid_device/blob/00b1d1fd3a521fe04cec1ba56e6b017a4dc2b8f9/pinephone/audio.pinephone.xml

rsglobal commented 3 years ago

From Linux side it usually implemented by alsa-ucm-conf: Example for different hardware: https://github.com/Srinivas-Kandagatla/alsa-ucm-conf/commit/c84edaf5afaaea45d0347863d7f868b3a95de915

rsglobal commented 3 years ago

143 should address this issue.

madrxx commented 2 years ago

Should this issue be reopened now, while #143 wasn't sufficient?

QushyQushy commented 2 years ago

This issue should be reopened, it's the only thing not working apart from the camera.

ghost commented 2 years ago

I second this, auto jack switching is not working on my PinePhone either.

herbsmn commented 1 year ago

I just tested this on v0.8.1 with the pinephone and it is still an issue. Please reopen this issue.

herbsmn commented 1 year ago

Would updating the glodroid tinyhal fork potentially help? It doesn't seem to have been updated since September 2020: https://github.com/GloDroid/glodroid_forks/tree/tinyhal-next

It looks like it is regularly updated here: https://github.com/CirrusLogic/tinyhal

rsglobal commented 1 year ago

Fixed in 2023w16 release: https://github.com/GloDroidCommunity/pine64-pinephone/releases/tag/2023w16