cc689bb4d1
linux-postmarketos-qcom-msm8916 now supports voice call audio. However, at the moment the audio stream needs to be explicitly started by opening some PCM audio devices when the call is started (even though no audio data is written to the PCM device). Eventually this should go away by implementing codec2codec support for q6voice in the kernel. In that case, the stream would be started once the audio routes are set up using ALSA UCM. However, this is a bit complicated actually so for now it's nice to have a workaround: q6voiced listens on dbus for signals from oFono, and opens/closes the PCM device when a call is initiated/ended in oFono. This essentially makes voice call audio work out of the box (provided that the audio routing, e.g. Earpiece and a microphone is set up appropriately). Co-Authored-By: Nikita Travkin <nikitos.tr@gmail.com>
14 lines
366 B
Text
14 lines
366 B
Text
#!/sbin/openrc-run
|
|
supervisor=supervise-daemon
|
|
|
|
name="q6voiced"
|
|
description="Enable q6voice audio when call is performed with oFono"
|
|
|
|
# Note: q6voice_card/q6voice_device need to be set in /etc/conf.d/q6voiced
|
|
command="/usr/bin/q6voiced"
|
|
command_args="hw:${q6voice_card},${q6voice_device}"
|
|
supervise_daemon_args="--user nobody --group audio"
|
|
|
|
depend() {
|
|
need dbus
|
|
}
|