[ALPS04237702] Audio: Add permission for audio scp device

Add permission for audio scp device, instead of only
SCP SmartPA.

MTK-Commit-Id: 479293f8195469648aba65860920128fe85fa3f0

Change-Id: Ic33320ae0c8f36217da2aae0afba763609608af3
CR-Id: ALPS04237702
Feature: DSP SmartPA
(cherry picked from commit 1dfd94a4058c3d960539066bfe61d5032ca95c9d)
This commit is contained in:
Shane Chien 2020-01-18 10:08:26 +08:00 committed by Shane Chien
parent 197aeeb5d1
commit 25fb796fea
3 changed files with 3 additions and 0 deletions

View File

@ -161,6 +161,7 @@ type mdlog_device, dev_type;
type md32_device, dev_type;
type scp_device, dev_type;
type adsp_device, dev_type;
type audio_scp_device, dev_type;
type sspm_device, dev_type;
type etb_device, dev_type;
type MT_pmic_adc_cali_device, dev_type;

View File

@ -328,6 +328,7 @@
/dev/ancservice(/.*)? u:object_r:ancservice_device:s0
/dev/offloadservice(/.*)? u:object_r:offloadservice_device:s0
/dev/audio_ipi(/.*)? u:object_r:audio_ipi_device:s0
/dev/audio_scp(/.*)? u:object_r:audio_scp_device:s0
/dev/irtx u:object_r:irtx_device:s0
/dev/spm(/.*)? u:object_r:spm_device:s0
/dev/xt_qtaguid(/.*)? u:object_r:xt_qtaguid_device:s0

View File

@ -218,6 +218,7 @@ binder_call(mtk_hal_audio, mtk_hal_power)
binder_call(mtk_hal_audio, merged_hal_service)
# cm4 smartpa
allow mtk_hal_audio audio_ipi_device:chr_file { read write ioctl open };
allow mtk_hal_audio audio_scp_device:chr_file r_file_perms;
# Date : WK18.21
# Operation: P migration