Verified Commit 4499ff72 authored by Danct12's avatar Danct12 Committed by Oliver Smith

device-xiaomi-santoni: add pulseaudio support through hybris (!420)

Signed-off-by: Danct12's avatarDanct12 <danct12@disroot.org>
parent 19c17622
......@@ -77,7 +77,7 @@ nonfree_userland() {
hybris () {
pkgdesc="libhybris (Android) hardware adaptation"
depends="hybris-base"
depends="hybris-base pulseaudio-modules-droid-7.1-caf alsa-plugins-pulse alsa-utils"
install="$pkgname-hybris.post-install"
mkdir "$subpkgdir"
......
......@@ -23,3 +23,23 @@ mkdir -p /firmware
# /vendor symlink (points to nowhere until /system is mounted)
ln -s /system/vendor /vendor
# Since Android audio HAL on this device doesn't like to be unloaded,
# we need to stop PA from exit too.
DEFAULT_PA=/etc/pulse/daemon.conf
L1="exit-idle-time = -1"
append_line() {
FN=$1
LINE=$2
if ! grep -q "${LINE}" "${FN}"; then
echo "Adding $LINE..."
echo "${LINE}" >> "${FN}"
else
echo "Not adding ${LINE}"
fi
}
if [ -f ${DEFAULT_PA} ]; then
append_line "${DEFAULT_PA}" "${L1}"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment