[ALPS04824504] Audio: Add permission for rt5509 SmartPA
Add permission for rt5509 SmartPA to access device node. MTK-Commit-Id: 2dcda2ed6418dc8c60f0e696e31fde0642b53554 Change-Id: I1c08f0aff93f8984a685b70374f434972d5b7c8c CR-Id: ALPS04824504 Feature: Phone Sound
This commit is contained in:
parent
7e16e3c233
commit
1c8313c394
@ -400,3 +400,11 @@ get_prop(factory, exported3_radio_prop)
|
||||
# Operation : Q Migration
|
||||
# Purpose: Allow clear eMMC
|
||||
set_prop(factory, ctl_mdlogger_prop);
|
||||
|
||||
# Date : WK19.41
|
||||
# Operation : Q Migration
|
||||
# Purpose: allow system_server to access rt5509 param and calib node
|
||||
allow factory sysfs_rt_param:file rw_file_perms;
|
||||
allow factory sysfs_rt_calib:file rw_file_perms;
|
||||
allow factory sysfs_rt_param:dir r_dir_perms;
|
||||
allow factory sysfs_rt_calib:dir r_dir_perms;
|
||||
|
@ -90,6 +90,8 @@ type sysfs_vcorefs_pwrctrl, fs_type, sysfs_type;
|
||||
type sysfs_md32, fs_type, sysfs_type;
|
||||
type sysfs_scp, fs_type, sysfs_type;
|
||||
type sysfs_adsp, fs_type, sysfs_type;
|
||||
type sysfs_rt_param, fs_type, sysfs_type;
|
||||
type sysfs_rt_calib, fs_type, sysfs_type;
|
||||
type sysfs_sspm, fs_type, sysfs_type;
|
||||
type sysfs_devinfo, fs_type, sysfs_type, mlstrustedobject;
|
||||
type sysfs_dcm, fs_type, sysfs_type;
|
||||
|
@ -268,3 +268,9 @@ genfscon sysfs /kernel/mm/ksm/pages_volatile u:object_r:sysfs_pages_volatile:s0
|
||||
# Purpose : To avoid using the SELabel of u:object_r:proc:s0 or u:object_r:sysfs:s0
|
||||
# to access /proc/device-tree/chosen/atag,chipid or /sysfs/firmware/devicetree/base/chosen/atag,chipid
|
||||
genfscon sysfs /firmware/devicetree/base/chosen/atag,chipid u:object_r:sysfs_chipid:s0
|
||||
|
||||
# Date : 2019/10/18
|
||||
# Purpose : allow system_server to access rt5509 param and calib node
|
||||
genfscon sysfs /devices/platform/rt5509_param.0 u:object_r:sysfs_rt_param:s0
|
||||
genfscon sysfs /devices/virtual/rt5509_cal/rt5509.0 u:object_r:sysfs_rt_calib:s0
|
||||
|
||||
|
@ -99,6 +99,10 @@ allow mtk_hal_audio graphics_device:chr_file rw_file_perms;
|
||||
# Operation : Migration
|
||||
# Purpose : Smartpa
|
||||
allow mtk_hal_audio smartpa_device:chr_file rw_file_perms;
|
||||
allow mtk_hal_audio sysfs_rt_param:file rw_file_perms;
|
||||
allow mtk_hal_audio sysfs_rt_calib:file rw_file_perms;
|
||||
allow mtk_hal_audio sysfs_rt_param:dir r_dir_perms;
|
||||
allow mtk_hal_audio sysfs_rt_calib:dir r_dir_perms;
|
||||
|
||||
# Date : WK14.41
|
||||
# Operation : Migration
|
||||
|
Loading…
x
Reference in New Issue
Block a user