sm8250-common: Use ueventd to load aw882xx calibration file

* Avoid direct filesystem access from the kernel
 * Switch to CAF-defined label while at it

Change-Id: Id9571e0cfb635b536eb4927fb4b2bed042917306
This commit is contained in:
dianlujitao 2022-02-02 23:33:07 +08:00 committed by SGCMarkus
parent a6fb204f84
commit 7ef070111c

View File

@ -136,4 +136,13 @@ $(EXPAT_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
ALL_DEFAULT_INSTALLED_MODULES += $(EXPAT_SYMLINKS)
AW882XX_CAL_SYMLINKS := $(TARGET_OUT_VENDOR)/firmware/aw_cali.bin
$(AW882XX_CAL_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "Creating aw882xx firmware symlinks: $@"
@rm -rf $@
@mkdir -p $(dir $@)
$(hide) ln -sf /mnt/vendor/persist/factory/audio/aw_cali.bin $@
ALL_DEFAULT_INSTALLED_MODULES += $(AW882XX_CAL_SYMLINKS)
endif