device-xiaomi-santoni: add pulseaudio support through hybris (!420)
Signed-off-by: Danct12 <danct12@disroot.org>
This commit is contained in:
parent
19c1762248
commit
4499ff72c7
2 changed files with 21 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue