Desperate times calls for desperate commits -> try fixing audio
This commit is contained in:
@@ -73,7 +73,8 @@ BOARD_MKBOOTIMG_INIT_ARGS += --header_version $(BOARD_INIT_BOOT_HEADER_VERSION)
|
|||||||
|
|
||||||
# Kernel
|
# Kernel
|
||||||
BOARD_KERNEL_CMDLINE := \
|
BOARD_KERNEL_CMDLINE := \
|
||||||
# ignore_loglevel \
|
printk.devkmsg=on \
|
||||||
|
ignore_loglevel \
|
||||||
debug \
|
debug \
|
||||||
androidboot.hardware=qcom \
|
androidboot.hardware=qcom \
|
||||||
androidboot.memcg=1 \
|
androidboot.memcg=1 \
|
||||||
|
21
device.mk
21
device.mk
@@ -45,24 +45,18 @@ PRODUCT_PACKAGES += \
|
|||||||
tinyplay
|
tinyplay
|
||||||
|
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
libsoundtrigger \
|
|
||||||
vendor.qti.hardware.pal@1.0-impl \
|
|
||||||
android.hardware.audio@7.1-impl.samsung-sm8650 \
|
android.hardware.audio@7.1-impl.samsung-sm8650 \
|
||||||
android.hardware.audio.effect@7.0-impl \
|
android.hardware.audio.effect@7.0-impl \
|
||||||
android.hardware.audio.service \
|
android.hardware.audio.service \
|
||||||
android.hardware.audio.service_64 \
|
|
||||||
pm-proxy \
|
|
||||||
secaudiohalaidl \
|
|
||||||
android.hardware.bluetooth.audio-impl \
|
android.hardware.bluetooth.audio-impl \
|
||||||
android.hardware.soundtrigger@2.3-impl \
|
android.hardware.soundtrigger@2.3-impl \
|
||||||
audio.bluetooth.default \
|
audio.bluetooth.default \
|
||||||
audio.r_submix.default \
|
audio.r_submix.default \
|
||||||
audio.usb.default \
|
audio.usb.default \
|
||||||
libagmmixer \
|
audioadsprpcd \
|
||||||
libagm_compress_plugin \
|
libagm_compress_plugin \
|
||||||
libagm_mixer_plugin \
|
libagm_mixer_plugin \
|
||||||
libagm_pcm_plugin \
|
libagm_pcm_plugin \
|
||||||
libaudiochargerlistener \
|
|
||||||
libbatterylistener \
|
libbatterylistener \
|
||||||
libfmpal \
|
libfmpal \
|
||||||
libhfp_pal \
|
libhfp_pal \
|
||||||
@@ -70,10 +64,8 @@ PRODUCT_PACKAGES += \
|
|||||||
libqcomvisualizer \
|
libqcomvisualizer \
|
||||||
libqcomvoiceprocessing \
|
libqcomvoiceprocessing \
|
||||||
libsndcardparser \
|
libsndcardparser \
|
||||||
libtinycompress \
|
|
||||||
libvolumelistener \
|
libvolumelistener \
|
||||||
sound_trigger.primary.pineapple \
|
sound_trigger.primary.pineapple
|
||||||
vendor.qti.hardware.AGMIPC@1.0-impl
|
|
||||||
|
|
||||||
AUDIO_HAL_DIR := hardware/qcom-caf/sm8650/audio/primary-hal
|
AUDIO_HAL_DIR := hardware/qcom-caf/sm8650/audio/primary-hal
|
||||||
AUDIO_PAL_DIR := hardware/qcom-caf/sm8650/audio/pal
|
AUDIO_PAL_DIR := hardware/qcom-caf/sm8650/audio/pal
|
||||||
@@ -96,6 +88,11 @@ PRODUCT_COPY_FILES += \
|
|||||||
frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml
|
frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml
|
||||||
|
|
||||||
# Bluetooth
|
# Bluetooth
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
lib_bt_aptx \
|
||||||
|
lib_bt_ble \
|
||||||
|
lib_bt_bundle
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
|
frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
|
||||||
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
|
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
|
||||||
@@ -110,6 +107,9 @@ PRODUCT_PACKAGES += \
|
|||||||
TARGET_SCREEN_HEIGHT := 3120
|
TARGET_SCREEN_HEIGHT := 3120
|
||||||
TARGET_SCREEN_WIDTH := 1440
|
TARGET_SCREEN_WIDTH := 1440
|
||||||
|
|
||||||
|
# Bootloader
|
||||||
|
TARGET_BOOTLOADER_BOARD_NAME := pineapple
|
||||||
|
|
||||||
# Camera
|
# Camera
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
android.hardware.graphics.common-V4-ndk.vendor \
|
android.hardware.graphics.common-V4-ndk.vendor \
|
||||||
@@ -144,7 +144,6 @@ PRODUCT_PACKAGES += \
|
|||||||
vendor.qti.hardware.display.composer-service \
|
vendor.qti.hardware.display.composer-service \
|
||||||
vendor.qti.hardware.display.composer-service.rc \
|
vendor.qti.hardware.display.composer-service.rc \
|
||||||
vendor.qti.hardware.display.composer-service.xml \
|
vendor.qti.hardware.display.composer-service.xml \
|
||||||
vendor.qti.hardware.display.config-V2-ndk.vendor \
|
|
||||||
vendor.qti.hardware.display.demura-service
|
vendor.qti.hardware.display.demura-service
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
|
@@ -156,7 +156,7 @@ on early-boot
|
|||||||
verity_update_state
|
verity_update_state
|
||||||
|
|
||||||
on boot
|
on boot
|
||||||
write /dev/cpuset/audio-app/cpus 0-1
|
write /dev/cpuset/audio-app/cpus 1-2
|
||||||
# Add a cpuset for the camera daemon
|
# Add a cpuset for the camera daemon
|
||||||
# We want all cores for camera
|
# We want all cores for camera
|
||||||
mkdir /dev/cpuset/camera-daemon
|
mkdir /dev/cpuset/camera-daemon
|
||||||
@@ -214,6 +214,19 @@ on charger
|
|||||||
# group system wakelock
|
# group system wakelock
|
||||||
# capabilities BLOCK_SUSPEND
|
# capabilities BLOCK_SUSPEND
|
||||||
|
|
||||||
|
service vendor.audio-hal /vendor/bin/hw/android.hardware.audio.service
|
||||||
|
override
|
||||||
|
class hal
|
||||||
|
user audioserver
|
||||||
|
# media gid needed for /dev/fm (radio) and for /data/misc/media (tee)
|
||||||
|
group audio camera drmrpc inet media mediadrm net_bt net_bt_admin net_bw_acct oem_2901 wakelock oem_2912
|
||||||
|
capabilities BLOCK_SUSPEND SYS_NICE
|
||||||
|
# setting RLIMIT_RTPRIO allows binder RT priority inheritance
|
||||||
|
rlimit rtprio 10 10
|
||||||
|
ioprio rt 4
|
||||||
|
task_profiles ProcessCapacityHigh HighPerformance
|
||||||
|
onrestart restart audioserver
|
||||||
|
|
||||||
#pd-mapper
|
#pd-mapper
|
||||||
service vendor.pd_mapper /vendor/bin/pd-mapper
|
service vendor.pd_mapper /vendor/bin/pd-mapper
|
||||||
class core
|
class core
|
||||||
|
Reference in New Issue
Block a user