-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
garnet: Add support dolby atmos, music and vision
Ref: https://github.com/FlamingoOS-Devices/hardware_dolby Evolution-X-Devices/device_xiaomi_garnet@9da7d8f Signed-off-by: kleidione <kleidione@gmail.com>
- Loading branch information
Showing
19 changed files
with
232 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<compatibility-matrix version="4.0" type="framework"> | ||
<hal format="hidl" optional="true"> | ||
<name>vendor.dolby.hardware.dms</name> | ||
<version>2.0</version> | ||
<interface> | ||
<name>IDms</name> | ||
<instance>default</instance> | ||
</interface> | ||
</hal> | ||
<hal format="hidl" optional="true"> | ||
<name>android.hardware.media.c2</name> | ||
<version>1.0</version> | ||
<interface> | ||
<name>IComponentStore</name> | ||
<instance>default</instance> | ||
<instance>software</instance> | ||
</interface> | ||
</hal> | ||
</compatibility-matrix> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2016 The Android Open Source Project | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
This file was modified by Dolby Laboratories, Inc. The portions of the | ||
code that are surrounded by "DOLBY..." are copyrighted and | ||
licensed separately, as follows: | ||
(C) 2018 Dolby Laboratories, Inc. | ||
All rights reserved. | ||
This program is protected under international and U.S. Copyright laws as | ||
an unpublished work. This program is confidential and proprietary to the | ||
copyright owners. Reproduction or disclosure, in whole or in part, or the | ||
production of derivative works therefrom without the express permission of | ||
the copyright owners is prohibited. | ||
--> | ||
|
||
<Included> | ||
<Decoders> | ||
<!-- DOLBY_UDC --> | ||
<MediaCodec name="OMX.dolby.ac3.decoder" type="audio/ac3"> | ||
<Limit name="channel-count" max="6" /> | ||
<Limit name="sample-rate" ranges="32000,44100,48000" /> | ||
<Limit name="bitrate" range="32000-640000" /> | ||
</MediaCodec> | ||
<MediaCodec name="OMX.dolby.eac3.decoder" type="audio/eac3"> | ||
<Limit name="channel-count" max="8" /> | ||
<Limit name="sample-rate" ranges="32000,44100,48000" /> | ||
<Limit name="bitrate" range="32000-6144000" /> | ||
</MediaCodec> | ||
<MediaCodec name="OMX.dolby.eac3-joc.decoder" type="audio/eac3-joc"> | ||
<Limit name="channel-count" max="8" /> | ||
<Limit name="sample-rate" ranges="48000" /> | ||
<Limit name="bitrate" range="32000-6144000" /> | ||
</MediaCodec> | ||
<!-- DOLBY_UDC END --> | ||
<!-- DOLBY_AC4 --> | ||
<MediaCodec name="OMX.dolby.ac4.decoder" type="audio/ac4"> | ||
<Limit name="channel-count" max="2" /> | ||
<Limit name="sample-rate" ranges="48000" /> | ||
<Limit name="bitrate" range="16000-2688000" /> | ||
</MediaCodec> | ||
<!-- DOLBY_AC4 END --> | ||
</Decoders> | ||
</Included> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
attribute hal_dms; | ||
attribute hal_dms_client; | ||
attribute hal_dms_server; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
allow hal_audio_default hal_dms_hwservice:hwservice_manager find; | ||
binder_call(hal_audio_default, hal_dms_default) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
binder_call(hal_dms_client, hal_dms_server) | ||
binder_call(hal_dms_server, hal_dms_client) | ||
|
||
add_hwservice(hal_dms_server, hal_dms_hwservice) | ||
allow hal_dms_client hal_dms_hwservice:hwservice_manager find; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
type hal_dms_default, domain; | ||
hal_server_domain(hal_dms_default, hal_dms) | ||
|
||
type hal_dms_default_exec, exec_type, vendor_file_type, file_type; | ||
init_daemon_domain(hal_dms_default) | ||
|
||
allow hal_dms_default vendor_data_file:file { rw_file_perms create unlink }; | ||
allow hal_dms_default vendor_data_file:dir { rw_file_perms add_name remove_name }; | ||
allow hal_dms_default mediacodec:binder call; | ||
binder_call(hal_dms_default, hal_audio_default) | ||
binder_call(hal_dms_default, platform_app) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Dolby | ||
type hal_dms_hwservice, hwservice_manager_type; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
allow mediacodec hal_dms_hwservice:hwservice_manager find; | ||
binder_call(mediacodec, hal_dms_default) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
allow platform_app hal_dms_hwservice:hwservice_manager find; | ||
binder_call(platform_app, hal_dms_default) |