diff options
author | Amit Pundir <amit.pundir@linaro.org> | 2020-02-26 13:28:54 +0530 |
---|---|---|
committer | Todd Kjos <tkjos@google.com> | 2020-04-25 15:24:46 +0000 |
commit | 65502d4b52be218340911dd902d6f068e2924e37 (patch) | |
tree | 0ccfc57d8c212ce350719b7d17611235ed6eb3d1 /sepolicy | |
parent | 1641199f230d7926891a9c6a9d09b6c9b8f411db (diff) | |
download | dragonboard-65502d4b52be218340911dd902d6f068e2924e37.tar.gz |
audio: Set Analog and HDMI mixer controls
Set Analog and HDMI mixer controls for db845c
on boot completion using tinymix.
Put a 1 second sleep in-between pd-mapper and
tinymix to let sound/codecs initialized properly
before setting mixer controls. Also made sure
that audio out interface is ready before
audioserver service get started.
Change-Id: Ib321559815e5d22d224fc36a1fe6c21f52df3eec
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Diffstat (limited to 'sepolicy')
-rw-r--r-- | sepolicy/file_contexts | 1 | ||||
-rw-r--r-- | sepolicy/tinymix.te | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index 3279734..f223cc4 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -27,6 +27,7 @@ /data/vendor/readonly(/.*)? u:object_r:tqftpserv_vendor_data_file:s0 /system/bin/eth_mac_addr\.sh u:object_r:eth_mac_addr_exec:s0 +/system/bin/tinymix u:object_r:tinymix_exec:s0 /vendor/bin/hw/android\.hardware\.gatekeeper@1\.0-service\.software u:object_r:hal_gatekeeper_default_exec:s0 /vendor/bin/pd-mapper u:object_r:pd_mapper_exec:s0 diff --git a/sepolicy/tinymix.te b/sepolicy/tinymix.te new file mode 100644 index 0000000..75dc071 --- /dev/null +++ b/sepolicy/tinymix.te @@ -0,0 +1,7 @@ +type tinymix, domain, coredomain; +type tinymix_exec, exec_type, system_file_type, file_type; + +init_daemon_domain(tinymix) + +allow tinymix audio_device:chr_file { ioctl open read write }; +allow tinymix audio_device:dir search; |