Sxmo+SDM845: working calls out of the box and add pulseaudio bluetooth package
This MR seeks to fix call audio on sdm845 devices out of the box when running Sxmo (https://gitlab.com/postmarketOS/pmaports/-/issues/1821), clean up packaging, and add a bluetooth package for pulseaudio on Sxmo+pulseaudio.
Currently, this MR:
- Adds a bluetooth package that installs everything needed for working bluetooth on Sxmo running pulseaudio
- configures
call_audio_idle_suspend_workaround
service so that it uses Sxmo'sXDG_RUNTIME_DIR
path
I have marked this MR as WIP because I need help to accomplish the following things:
- I want the
call_audio_idle_suspend_workaround
service in openrc to restart when the service crashes. Ifcall_audio_idle_suspend_workaround
crashes, calls dont work and it is crucial for phosh (not just Sxmo). Is there an example of a service that is automatically restarted by openRC when the service crashes? - On SDM845 devices, I want
sxmo-common-audio-pulse
to be installed rather thansxmo-common-audio-pipewire
. I was able to install my custom config for thecall_audio_idle_suspend_workaround
service using theinstall_if
variable: https://gitlab.com/anjandev/pmaports/-/commit/410eed300908ea1828f7fe46a98c9d50aef2150d
However, when I tried to add install_if=$pkgname=$pkgver-r$pkgrel soc-qcom-sdm845-nonfree-firmware
to the sxmo-common-audio-pulse
subpackage, the sxmo-common-audio-pulse
package is not automatically installed on my oneplus 6. I must manually run: doas apk add sxmo-common-audio-pulse
to get pulseaudio installed and running on my oneplus 6.
This MR should be merged into v22.12 once it installs pulseaudio automatically to SDM845 devices.