From 80a401dd6eac147df4e6ff2ac27a7228d12f2b5c Mon Sep 17 00:00:00 2001 From: sunchanglong Date: Mon, 15 Jul 2024 19:23:52 +0800 Subject: [PATCH] =?UTF-8?q?TicketNo:#IAD5GD=20Description:=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0vendor=5Fhardmony=20oriole=E4=BA=A7=E5=93=81=E5=9F=BA?= =?UTF-8?q?=E7=BA=BF=E4=BB=A3=E7=A0=81=20=20Signed-off-by:=20sunchanglong?= =?UTF-8?q?=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 8 +- README.md | 11 +- oriole/.gitignore | 7 + oriole/bundle.json | 48 + oriole/config.json | 97 + oriole/default_app_config/BUILD.gn | 24 + oriole/default_app_config/default_app.json | 1 + oriole/dm_config/BUILD.gn | 27 + oriole/dm_config/display_manager_config.xml | 57 + oriole/etc/BUILD.gn | 37 + oriole/etc/para/hardware_oriole.para | 19 + oriole/etc/para/product_oriole.para | 15 + oriole/foundation_config/BUILD.gn | 30 + oriole/foundation_config/foundation.cfg | 114 + oriole/hals/audio/BUILD.gn | 123 + oriole/hals/audio/alsa_adapter.json | 14 + oriole/hals/audio/alsa_paths.json | 2948 +++++++++++++++++ oriole/hals/audio/audio_adapter.json | 73 + oriole/hals/audio/audio_effect.json | 15 + oriole/hals/audio/audio_paths.json | 94 + .../audio/config/arm/audio_policy_config.xml | 71 + .../config/arm64/audio_policy_config.xml | 71 + oriole/hals/audio/param/audio_structure | Bin 0 -> 48934 bytes oriole/hals/audio/param/cvs | Bin 0 -> 55500 bytes oriole/hals/audio/param/dsp_smartamp | Bin 0 -> 29752 bytes oriole/hals/audio/param/dsp_vbc | Bin 0 -> 124728 bytes oriole/hals/audio/product.gni | 21 + oriole/hals/wlan/product.gni | 15 + oriole/hdf_config/khdf/Makefile | 67 + .../khdf/audio/analog_headset_config.hcs | 26 + oriole/hdf_config/khdf/audio/audio_config.hcs | 34 + oriole/hdf_config/khdf/audio/codec_config.hcs | 140 + oriole/hdf_config/khdf/audio/dai_config.hcs | 65 + oriole/hdf_config/khdf/audio/dma_config.hcs | 12 + oriole/hdf_config/khdf/audio/dsp_config.hcs | 19 + .../khdf/device_info/device_info.hcs | 657 ++++ oriole/hdf_config/khdf/hdf.hcs | 26 + oriole/hdf_config/khdf/hdf_test/Makefile | 89 + .../khdf/hdf_test/emmc_test_config.hcs | 10 + .../khdf/hdf_test/gpio_test_config.hcs | 10 + oriole/hdf_config/khdf/hdf_test/hdf.hcs | 14 + .../khdf/hdf_test/hdf_config_test.hcs | 52 + oriole/hdf_config/khdf/hdf_test/hdf_hcs.hcb | Bin 0 -> 45440 bytes .../hdf_test/hdf_test_manager/device_info.hcs | 143 + .../khdf/hdf_test/i2c_test_config.hcs | 13 + .../khdf/hdf_test/pwm_test_config.hcs | 11 + .../khdf/hdf_test/sdio_test_config.hcs | 12 + .../khdf/hdf_test/spi_test_config.hcs | 10 + .../khdf/hdf_test/uart_test_config.hcs | 9 + oriole/hdf_config/khdf/input/input_config.hcs | 262 ++ oriole/hdf_config/khdf/lcd/lcd_config.hcs | 13 + oriole/hdf_config/khdf/light/light_config.hcs | 25 + .../hdf_config/khdf/platform/emmc_config.hcs | 16 + .../hdf_config/khdf/platform/i2c_config.hcs | 36 + .../hdf_config/khdf/platform/pwm_config.hcs | 37 + .../hdf_config/khdf/platform/sdio_config.hcs | 15 + .../khdf/platform/uis7885_spi_config.hcs | 41 + .../khdf/platform/uis7885_uart_config.hcs | 20 + .../khdf/platform/uis7885_watchdog_config.hcs | 16 + .../khdf/sensor/accel/bmi160_config.hcs | 50 + .../khdf/sensor/accel/mxc6655xa_config.hcs | 69 + .../khdf/sensor/accel/sc7a20e_config.hcs | 71 + .../khdf/sensor/als/bh1745_config.hcs | 69 + .../magnetic/magnetic_lsm303_config.hcs | 66 + .../proximity/proximity_apds9960_config.hcs | 48 + .../hdf_config/khdf/sensor/sensor_common.hcs | 32 + .../hdf_config/khdf/sensor/sensor_config.hcs | 6 + .../drv2605l_linear_vibrator_config.hcs | 27 + .../khdf/vibrator/linear_vibrator_config.hcs | 21 + .../khdf/vibrator/vibrator_config.hcs | 24 + .../khdf/wifi/wlan_chip_ap6275s.hcs | 14 + .../hdf_config/khdf/wifi/wlan_chip_hi3881.hcs | 14 + oriole/hdf_config/khdf/wifi/wlan_platform.hcs | 114 + oriole/hdf_config/uhdf/BUILD.gn | 33 + .../camera/hdi_impl/camera_host_config.hcs | 422 +++ .../uhdf/camera/pipeline_core/config.hcs | 1154 +++++++ .../camera/pipeline_core/ipp_algo_config.hcs | 11 + .../uhdf/camera/pipeline_core/params.hcs | 35 + oriole/hdf_config/uhdf/device_info.hcs | 558 ++++ oriole/hdf_config/uhdf/hdf.hcs | 9 + .../codec_adapter_capabilities.hcs | 386 +++ .../codec_component_capabilities.hcs | 64 + .../media_codec/media_codec_capabilities.hcs | 260 ++ oriole/hdf_config/uhdf/usb_ecm_acm.hcs | 421 +++ oriole/hdf_config/uhdf/usb_pnp_device.hcs | 106 + oriole/image_conf/BUILD.gn | 39 + oriole/image_conf/ramdisk_image_conf.txt | 4 + oriole/image_conf/system_image_conf.txt | 5 + .../image_conf/updater_ramdisk_image_conf.txt | 5 + oriole/patch.yml | 2 + .../patches/build/0001-add-soc_platform.patch | 39 + oriole/power_config/power_mode_config.xml | 66 + oriole/preinstall-config/BUILD.gn | 47 + oriole/preinstall-config/install_list.json | 260 ++ .../install_list_capability.json | 257 ++ .../install_list_permissions.json | 344 ++ oriole/preinstall-config/uninstall_list.json | 4 + oriole/product.gni | 17 + oriole/resourceschedule/BUILD.gn | 73 + .../cgroup_sched/cgroup_action_config.json | 26 + .../cgroup_sched/resource_schedule_vendor.cfg | 54 + .../ressched/res_sched_config.xml | 17 + .../ressched/res_sched_plugin_switch.xml | 20 + .../soc_perf/socperf_boost_config.xml | 116 + .../soc_perf/socperf_resource_config.xml | 62 + .../critical_reboot_process_list.json | 12 + .../high_privilege_process_list.json | 108 + .../security_config/sanitizer_check_list.gni | 1439 ++++++++ oriole/updater_config/build_cfg.gni | 14 + oriole/wm_config/BUILD.gn | 29 + oriole/wm_config/window_manager_config.xml | 66 + 111 files changed, 13033 insertions(+), 16 deletions(-) create mode 100755 oriole/.gitignore create mode 100644 oriole/bundle.json create mode 100755 oriole/config.json create mode 100644 oriole/default_app_config/BUILD.gn create mode 100644 oriole/default_app_config/default_app.json create mode 100644 oriole/dm_config/BUILD.gn create mode 100644 oriole/dm_config/display_manager_config.xml create mode 100644 oriole/etc/BUILD.gn create mode 100644 oriole/etc/para/hardware_oriole.para create mode 100644 oriole/etc/para/product_oriole.para create mode 100644 oriole/foundation_config/BUILD.gn create mode 100644 oriole/foundation_config/foundation.cfg create mode 100644 oriole/hals/audio/BUILD.gn create mode 100644 oriole/hals/audio/alsa_adapter.json create mode 100644 oriole/hals/audio/alsa_paths.json create mode 100644 oriole/hals/audio/audio_adapter.json create mode 100644 oriole/hals/audio/audio_effect.json create mode 100644 oriole/hals/audio/audio_paths.json create mode 100644 oriole/hals/audio/config/arm/audio_policy_config.xml create mode 100644 oriole/hals/audio/config/arm64/audio_policy_config.xml create mode 100644 oriole/hals/audio/param/audio_structure create mode 100644 oriole/hals/audio/param/cvs create mode 100644 oriole/hals/audio/param/dsp_smartamp create mode 100644 oriole/hals/audio/param/dsp_vbc create mode 100644 oriole/hals/audio/product.gni create mode 100644 oriole/hals/wlan/product.gni create mode 100644 oriole/hdf_config/khdf/Makefile create mode 100644 oriole/hdf_config/khdf/audio/analog_headset_config.hcs create mode 100644 oriole/hdf_config/khdf/audio/audio_config.hcs create mode 100644 oriole/hdf_config/khdf/audio/codec_config.hcs create mode 100644 oriole/hdf_config/khdf/audio/dai_config.hcs create mode 100644 oriole/hdf_config/khdf/audio/dma_config.hcs create mode 100644 oriole/hdf_config/khdf/audio/dsp_config.hcs create mode 100644 oriole/hdf_config/khdf/device_info/device_info.hcs create mode 100644 oriole/hdf_config/khdf/hdf.hcs create mode 100644 oriole/hdf_config/khdf/hdf_test/Makefile create mode 100644 oriole/hdf_config/khdf/hdf_test/emmc_test_config.hcs create mode 100644 oriole/hdf_config/khdf/hdf_test/gpio_test_config.hcs create mode 100644 oriole/hdf_config/khdf/hdf_test/hdf.hcs create mode 100644 oriole/hdf_config/khdf/hdf_test/hdf_config_test.hcs create mode 100644 oriole/hdf_config/khdf/hdf_test/hdf_hcs.hcb create mode 100644 oriole/hdf_config/khdf/hdf_test/hdf_test_manager/device_info.hcs create mode 100644 oriole/hdf_config/khdf/hdf_test/i2c_test_config.hcs create mode 100644 oriole/hdf_config/khdf/hdf_test/pwm_test_config.hcs create mode 100644 oriole/hdf_config/khdf/hdf_test/sdio_test_config.hcs create mode 100644 oriole/hdf_config/khdf/hdf_test/spi_test_config.hcs create mode 100644 oriole/hdf_config/khdf/hdf_test/uart_test_config.hcs create mode 100644 oriole/hdf_config/khdf/input/input_config.hcs create mode 100644 oriole/hdf_config/khdf/lcd/lcd_config.hcs create mode 100644 oriole/hdf_config/khdf/light/light_config.hcs create mode 100644 oriole/hdf_config/khdf/platform/emmc_config.hcs create mode 100644 oriole/hdf_config/khdf/platform/i2c_config.hcs create mode 100644 oriole/hdf_config/khdf/platform/pwm_config.hcs create mode 100644 oriole/hdf_config/khdf/platform/sdio_config.hcs create mode 100644 oriole/hdf_config/khdf/platform/uis7885_spi_config.hcs create mode 100644 oriole/hdf_config/khdf/platform/uis7885_uart_config.hcs create mode 100644 oriole/hdf_config/khdf/platform/uis7885_watchdog_config.hcs create mode 100644 oriole/hdf_config/khdf/sensor/accel/bmi160_config.hcs create mode 100644 oriole/hdf_config/khdf/sensor/accel/mxc6655xa_config.hcs create mode 100755 oriole/hdf_config/khdf/sensor/accel/sc7a20e_config.hcs create mode 100644 oriole/hdf_config/khdf/sensor/als/bh1745_config.hcs create mode 100644 oriole/hdf_config/khdf/sensor/magnetic/magnetic_lsm303_config.hcs create mode 100644 oriole/hdf_config/khdf/sensor/proximity/proximity_apds9960_config.hcs create mode 100644 oriole/hdf_config/khdf/sensor/sensor_common.hcs create mode 100644 oriole/hdf_config/khdf/sensor/sensor_config.hcs create mode 100644 oriole/hdf_config/khdf/vibrator/drv2605l_linear_vibrator_config.hcs create mode 100644 oriole/hdf_config/khdf/vibrator/linear_vibrator_config.hcs create mode 100644 oriole/hdf_config/khdf/vibrator/vibrator_config.hcs create mode 100644 oriole/hdf_config/khdf/wifi/wlan_chip_ap6275s.hcs create mode 100644 oriole/hdf_config/khdf/wifi/wlan_chip_hi3881.hcs create mode 100644 oriole/hdf_config/khdf/wifi/wlan_platform.hcs create mode 100755 oriole/hdf_config/uhdf/BUILD.gn create mode 100644 oriole/hdf_config/uhdf/camera/hdi_impl/camera_host_config.hcs create mode 100644 oriole/hdf_config/uhdf/camera/pipeline_core/config.hcs create mode 100644 oriole/hdf_config/uhdf/camera/pipeline_core/ipp_algo_config.hcs create mode 100644 oriole/hdf_config/uhdf/camera/pipeline_core/params.hcs create mode 100644 oriole/hdf_config/uhdf/device_info.hcs create mode 100644 oriole/hdf_config/uhdf/hdf.hcs create mode 100644 oriole/hdf_config/uhdf/media_codec/codec_adapter_capabilities.hcs create mode 100644 oriole/hdf_config/uhdf/media_codec/codec_component_capabilities.hcs create mode 100644 oriole/hdf_config/uhdf/media_codec/media_codec_capabilities.hcs create mode 100644 oriole/hdf_config/uhdf/usb_ecm_acm.hcs create mode 100644 oriole/hdf_config/uhdf/usb_pnp_device.hcs create mode 100644 oriole/image_conf/BUILD.gn create mode 100644 oriole/image_conf/ramdisk_image_conf.txt create mode 100644 oriole/image_conf/system_image_conf.txt create mode 100644 oriole/image_conf/updater_ramdisk_image_conf.txt create mode 100644 oriole/patch.yml create mode 100644 oriole/patches/build/0001-add-soc_platform.patch create mode 100644 oriole/power_config/power_mode_config.xml create mode 100644 oriole/preinstall-config/BUILD.gn create mode 100644 oriole/preinstall-config/install_list.json create mode 100644 oriole/preinstall-config/install_list_capability.json create mode 100644 oriole/preinstall-config/install_list_permissions.json create mode 100644 oriole/preinstall-config/uninstall_list.json create mode 100644 oriole/product.gni create mode 100644 oriole/resourceschedule/BUILD.gn create mode 100644 oriole/resourceschedule/cgroup_sched/cgroup_action_config.json create mode 100644 oriole/resourceschedule/cgroup_sched/resource_schedule_vendor.cfg create mode 100644 oriole/resourceschedule/ressched/res_sched_config.xml create mode 100644 oriole/resourceschedule/ressched/res_sched_plugin_switch.xml create mode 100644 oriole/resourceschedule/soc_perf/socperf_boost_config.xml create mode 100644 oriole/resourceschedule/soc_perf/socperf_resource_config.xml create mode 100755 oriole/security_config/critical_reboot_process_list.json create mode 100644 oriole/security_config/high_privilege_process_list.json create mode 100755 oriole/security_config/sanitizer_check_list.gni create mode 100644 oriole/updater_config/build_cfg.gni create mode 100644 oriole/wm_config/BUILD.gn create mode 100644 oriole/wm_config/window_manager_config.xml diff --git a/README.en.md b/README.en.md index 1e61e06..92793bf 100644 --- a/README.en.md +++ b/README.en.md @@ -1,7 +1,7 @@ # vendor_hardmony #### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} + #### Software Architecture Software architecture description @@ -28,9 +28,3 @@ Software architecture description #### Gitee Feature -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md index 0420314..57b8eb2 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,7 @@ # vendor_hardmony #### 介绍 -{**以下是 Gitee 平台说明,您可以替换此简介** -Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} + #### 软件架构 软件架构说明 @@ -31,9 +29,4 @@ Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN #### 特技 -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) + diff --git a/oriole/.gitignore b/oriole/.gitignore new file mode 100755 index 0000000..5b0fe13 --- /dev/null +++ b/oriole/.gitignore @@ -0,0 +1,7 @@ +hdf_config/khdf/.built-in.a.cmd +hdf_config/khdf/.hdf_hcs_hex.o.d +hdf_config/khdf/.modules.order.cmd +hdf_config/khdf/built-in.a +hdf_config/khdf/hdf_hcs.hcb +hdf_config/khdf/hdf_hcs_hex.o +hdf_config/khdf/modules.order diff --git a/oriole/bundle.json b/oriole/bundle.json new file mode 100644 index 0000000..fb3d6f9 --- /dev/null +++ b/oriole/bundle.json @@ -0,0 +1,48 @@ +{ + "name": "@ohos/product_oriole", + "description": "vendor bundle.", + "version": 3.2, + "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "vendor/hardmony/oriole" + }, + "dirs": {}, + "scripts": {}, + "component": { + "name": "product_oriole", + "subsystem": "product_oriole", + "syscap": [], + "features": [], + "adapted_system_type": [ "standard"], + "hisysevent_config": [], + "rom": "", + "ram": "", + "deps": { + "components": [ + "soc_common", + "platform_common", + "init", + "c_utils", + "hilog" + ], + "third_party": [] + }, + "build": { + "sub_component": [ + "//vendor/hardmony/oriole/default_app_config:default_app_config", + "//vendor/hardmony/oriole/image_conf:custom_image_conf", + "//vendor/hardmony/oriole/preinstall-config:preinstall-config", + "//vendor/hardmony/oriole/resourceschedule:resourceschedule", + "//vendor/hardmony/oriole/foundation_config:foundation_config", + "//vendor/hardmony/oriole/dm_config:dm_config", + "//vendor/hardmony/oriole/wm_config:wm_config", + "//vendor/hardmony/oriole/etc:product_etc_conf", + "//vendor/hardmony/oriole/hdf_config/uhdf:hdf_config", + "//vendor/hardmony/oriole/hals/audio:hdf_audio_config" + ], + "inner_kits":[], + "test": [] + } + } +} diff --git a/oriole/config.json b/oriole/config.json new file mode 100755 index 0000000..0014d15 --- /dev/null +++ b/oriole/config.json @@ -0,0 +1,97 @@ +{ + "product_name": "oriole", + "device_company": "hardmony", + "device_build_path": "device/board/hardmony/oriole", + "target_cpu": "arm64", + "type": "standard", + "version": "3.0", + "board": "oriole", + "api_version": 8, + "enable_ramdisk": true, + "build_selinux": false, + "build_seccomp": false, + "device_stack_size": 8388608, + "inherit": [ "productdefine/common/inherit/rich.json", "productdefine/common/inherit/chipset_common.json" ], + "subsystems": [ + { + "subsystem": "security", + "components": [ + { + "component": "selinux_adapter", + "features": [ + "selinux_enforce = false" + ] + } + ] + }, + { + "subsystem": "device_oriole", + "components": [ + { + "component": "device_oriole", + "features": [] + } + ] + }, + { + "subsystem": "arkui", + "components": [ + { + "component": "ace_engine", + "features": [ + "ace_engine_feature_enable_accessibility = true", + "ace_engine_feature_enable_web = true" + ] + }, + { + "component": "ui_appearance", + "features": [] + } + ] + }, + { + "subsystem": "thirdparty", + "components": [ + { + "component": "wpa_supplicant", + "features": [ + "wpa_supplicant_driver_nl80211 = true", + "wpa_supplicant_driver_nl80211_sprd = true" + ] + } + ] + }, + { + "subsystem": "startup", + "components": [ + { + "component": "init", + "features": [ + "enable_ohos_startup_init_feature_ab_partition = true", + "enable_ohos_startup_init_feature_loader = true" + ] + } + ] + }, + { + "subsystem": "product_oriole", + "components": [ + { + "component": "product_oriole", + "features": [] + } + ] + }, + { + "subsystem": "graphic", + "components": [ + { + "component": "graphic_2d", + "features": [ + "graphic_2d_feature_ace_enable_gpu = true" + ] + } + ] + } + ] +} diff --git a/oriole/default_app_config/BUILD.gn b/oriole/default_app_config/BUILD.gn new file mode 100644 index 0000000..7b1d43e --- /dev/null +++ b/oriole/default_app_config/BUILD.gn @@ -0,0 +1,24 @@ +# Copyright (c) 2022 Huawei Device Co., Ltd. +# 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. + +import("//build/ohos.gni") + +ohos_prebuilt_etc("default_app_detail_config") { + source = "./default_app.json" + relative_install_dir = "app" + part_name = "product_oriole" +} + +group("default_app_config") { + deps = [ ":default_app_detail_config" ] +} diff --git a/oriole/default_app_config/default_app.json b/oriole/default_app_config/default_app.json new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/oriole/default_app_config/default_app.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/oriole/dm_config/BUILD.gn b/oriole/dm_config/BUILD.gn new file mode 100644 index 0000000..ddb8e4c --- /dev/null +++ b/oriole/dm_config/BUILD.gn @@ -0,0 +1,27 @@ +# Copyright (c) 2022 Huawei Device Co., Ltd. +# 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. + +import("//build/ohos.gni") + +ohos_prebuilt_etc("display_manager_config") { + source = "display_manager_config.xml" + install_enable = true + relative_install_dir = "window/resources" + part_name = "product_oriole" +} + +group("dm_config") { + deps = [ + ":display_manager_config" + ] +} diff --git a/oriole/dm_config/display_manager_config.xml b/oriole/dm_config/display_manager_config.xml new file mode 100644 index 0000000..43e9d1e --- /dev/null +++ b/oriole/dm_config/display_manager_config.xml @@ -0,0 +1,57 @@ + + + + + 400 + + + 0 + + + + + + + + + + 0 0 0 0 + + + + + + + + + + + + + + + + + + + 0 + + + + + + 0 + diff --git a/oriole/etc/BUILD.gn b/oriole/etc/BUILD.gn new file mode 100644 index 0000000..3dd3678 --- /dev/null +++ b/oriole/etc/BUILD.gn @@ -0,0 +1,37 @@ +# Copyright (c) 2022 Huawei Device Co., Ltd. +# 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. + +import("//build/ohos.gni") + +ohos_prebuilt_etc("para_for_chip_prod") { + source = "./para/hardware_oriole.para" + install_images = [ chip_prod_base_dir, chipset_base_dir ] + relative_install_dir = "param" + part_name = "product_oriole" + subsystem_name = "product_oriole" +} + +ohos_prebuilt_etc("para_for_sys_prod") { + source = "./para/product_oriole.para" + install_images = [ sys_prod_base_dir ] + relative_install_dir = "param" + part_name = "product_oriole" + subsystem_name = "product_oriole" +} + +group("product_etc_conf") { + deps = [ + ":para_for_chip_prod", + ":para_for_sys_prod", + ] +} diff --git a/oriole/etc/para/hardware_oriole.para b/oriole/etc/para/hardware_oriole.para new file mode 100644 index 0000000..f62bc15 --- /dev/null +++ b/oriole/etc/para/hardware_oriole.para @@ -0,0 +1,19 @@ +# Copyright (c) 2022 Huawei Device Co., Ltd. +# 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. + +const.product.hardwareversion=default +const.product.name="开发者手机" +const.product.model=oriole +const.product.manufacturer=laval.csdn.net +const.product.software.version=OHarm OS 2.0 +const.product.oharm.version=2.0.609 \ No newline at end of file diff --git a/oriole/etc/para/product_oriole.para b/oriole/etc/para/product_oriole.para new file mode 100644 index 0000000..9c5360a --- /dev/null +++ b/oriole/etc/para/product_oriole.para @@ -0,0 +1,15 @@ +# Copyright (c) 2022 Huawei Device Co., Ltd. +# 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. + +const.product.brand=default +const.build.product=default \ No newline at end of file diff --git a/oriole/foundation_config/BUILD.gn b/oriole/foundation_config/BUILD.gn new file mode 100644 index 0000000..b8e487f --- /dev/null +++ b/oriole/foundation_config/BUILD.gn @@ -0,0 +1,30 @@ +# Copyright (c) 2022 Huawei Device Co., Ltd. +# 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. + +import("//build/ohos.gni") + +import("//build/ohos.gni") + +ohos_prebuilt_etc("foundation_service_config") { + source = "foundation.cfg" + install_enable = true + install_images = [ "vendor" ] + module_install_dir = "etc/init" + part_name = "product_oriole" +} + +group("foundation_config") { + deps = [ + ":foundation_service_config" + ] +} diff --git a/oriole/foundation_config/foundation.cfg b/oriole/foundation_config/foundation.cfg new file mode 100644 index 0000000..8fc6132 --- /dev/null +++ b/oriole/foundation_config/foundation.cfg @@ -0,0 +1,114 @@ +{ + "jobs" : [{ + "name" : "services:foundation", + "cmds" : [ + "mkdir /data/service/el1/public/AbilityManagerService 0711 foundation system", + "mkdir /data/storage/el1/bundle 0711 system system", + "mkdir /data/storage/el2/base 0711 system system", + "mkdir /data/storage/el2/database 0711 system system", + "mkdir /data/service/el1/public/notification 0711 foundation system", + "mkdir /data/service/el1/public/database 0711 ddms ddms", + "mkdir /data/service/el1/public/database/bundle_manager_service 02770 foundation ddms", + "mkdir /data/service/el1/public/database/notification_service 02770 foundation ddms", + "mkdir /data/service/el1/public/database/form_storage 02770 foundation ddms", + "mkdir /data/service/el0/stats 0711 foundation system", + "mkdir /data/service/el0/thermal 0755 foundation foundation", + "mkdir /data/service/el0/thermal/config 0711 foundation foundation", + "chmod 0664 /sys/power/wakeup_count", + "mkdir /data/service/el1/public/window 0711 foundation foundation", + "mkdir /data/service/el1/public/database/common_event_service 02770 foundation ddms", + "mkdir /data/service/el1/public/database/auto_startup_service 02770 foundation ddms", + "mkdir /data/service/el1/public/database/app_exit_reason 02770 foundation ddms" + ] + } , { + "name" : "services:restartfoundation", + "cmds" : [ + "reset appspawn", + "reset accountmgr", + "reset bgtaskmgr_service", + "reset resource_schedule_service", + "reset device_usage_stats_service", + "stop dlp_permission_service", + "start bootanimation" + ] + } + ], + "services" : [{ + "name" : "foundation", + "path" : ["/system/bin/sa_main", "/system/profile/foundation.json"], + "critical" : [0, 4, 240], + "importance" : -20, + "uid" : "foundation", + "permission" : [ + "ohos.permission.INPUT_MONITORING", + "ohos.permission.PERMISSION_USED_STATS", + "ohos.permission.DISTRIBUTED_SOFTBUS_CENTER", + "ohos.permission.DISTRIBUTED_DATASYNC", + "ohos.permission.MANAGE_AUDIO_CONFIG", + "ohos.permission.WRITE_CALL_LOG", + "ohos.permission.READ_CONTACTS", + "ohos.permission.READ_DFX_SYSEVENT", + "ohos.permission.GRANT_SENSITIVE_PERMISSIONS", + "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS", + "ohos.permission.MANAGE_SECURE_SETTINGS", + "ohos.permission.START_ABILITIES_FROM_BACKGROUND", + "ohos.permission.ACCESS_SERVICE_DM", + "ohos.permission.STORAGE_MANAGER", + "ohos.permission.PROXY_AUTHORIZATION_URI", + "ohos.permission.ABILITY_BACKGROUND_COMMUNICATION", + "ohos.permission.USE_USER_IDM", + "ohos.permission.MANAGE_LOCAL_ACCOUNTS", + "ohos.permission.LISTEN_BUNDLE_CHANGE", + "ohos.permission.GET_TELEPHONY_STATE", + "ohos.permission.SEND_MESSAGES", + "ohos.permission.CONNECT_CELLULAR_CALL_SERVICE", + "ohos.permission.SET_TELEPHONY_STATE", + "ohos.permission.VIBRATE", + "ohos.permission.SYSTEM_LIGHT_CONTROL", + "ohos.permission.MANAGE_HAP_TOKENID", + "ohos.permission.WRITE_WHOLE_CALENDAR", + "ohos.permission.UPDATE_CONFIGURATION", + "ohos.permission.REPORT_RESOURCE_SCHEDULE_EVENT", + "ohos.permission.START_INVISIBLE_ABILITY", + "ohos.permission.GET_BUNDLE_INFO", + "ohos.permission.GET_SUSPEND_STATE", + "ohos.permission.PUBLISH_SYSTEM_COMMON_EVENT", + "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED", + "ohos.permission.GET_SENSITIVE_PERMISSIONS", + "ohos.permission.CLEAN_APPLICATION_DATA", + "ohos.permission.REMOVE_CACHE_FILES", + "ohos.permission.INSTALL_SANDBOX_BUNDLE", + "ohos.permission.USE_BLUETOOTH", + "ohos.permission.CONNECTIVITY_INTERNAL", + "ohos.permission.GET_RUNNING_INFO", + "ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS", + "ohos.permission.ACCESS_BLUETOOTH", + "ohos.permission.RUNNING_STATE_OBSERVER" + ], + "permission_acls":[ + "ohos.permission.MANAGE_HAP_TOKENID", + "ohos.permission.GRANT_SENSITIVE_PERMISSIONS", + "ohos.permission.INPUT_MONITORING", + "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS", + "ohos.permission.START_INVISIBLE_ABILITY", + "ohos.permission.INSTALL_SANDBOX_BUNDLE" + ], + "gid" : ["system", "appspawn", "update"], + "caps" : ["SYS_PTRACE", "KILL"], + "bootevents": [ + "bootevent.wms.fullscreen.ready", + "bootevent.appfwk.ready", + "bootevent.lockscreen.ready" + ], + "jobs" : { + "on-start" : "services:foundation", + "on-restart" : "services:restartfoundation" + }, + "secon" : "u:r:foundation:s0", + "writepid" : [ + "/dev/cpuset/foreground/tasks", + "/dev/cpuctl/foreground/tasks" + ] + } + ] +} diff --git a/oriole/hals/audio/BUILD.gn b/oriole/hals/audio/BUILD.gn new file mode 100644 index 0000000..a9c70e7 --- /dev/null +++ b/oriole/hals/audio/BUILD.gn @@ -0,0 +1,123 @@ +# Copyright (C) 2023 HiHope Open Source Organization . +# 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. + +import("//build/ohos.gni") + +ohos_prebuilt_etc("hdf_alsa_paths_json") { + source = "alsa_paths.json" + + relative_install_dir = "hdfconfig" + install_images = [ chipset_base_dir ] + subsystem_name = "hdf" + part_name = "product_oriole" +} + +ohos_prebuilt_etc("hdf_alsa_adapter_json") { + source = "alsa_adapter.json" + + relative_install_dir = "hdfconfig" + install_images = [ chipset_base_dir ] + subsystem_name = "hdf" + part_name = "product_oriole" +} + +ohos_prebuilt_etc("hdf_audio_effect_json") { + source = "audio_effect.json" + + relative_install_dir = "hdfconfig" + install_images = [ chip_prod_base_dir ] + subsystem_name = "hdf" + part_name = "product_oriole" +} + +ohos_prebuilt_etc("hdf_audio_path_json") { + source = "audio_paths.json" + + relative_install_dir = "hdfconfig" + install_images = [ chipset_base_dir ] + subsystem_name = "hdf" + part_name = "product_oriole" +} + +ohos_prebuilt_etc("hdf_audio_adapter_json") { + source = "audio_adapter.json" + + relative_install_dir = "hdfconfig" + install_images = [ chipset_base_dir ] + subsystem_name = "hdf" + part_name = "product_oriole" +} + +ohos_prebuilt_etc("audio_policy_config") { + if (target_cpu == "arm64") { + source = "config/arm64/audio_policy_config.xml" + } else { + source = "config/arm/audio_policy_config.xml" + } + subsystem_name = "hdf" + relative_install_dir = "audio" + install_images = [ chipset_base_dir ] + part_name = "product_oriole" +} + +ohos_prebuilt_etc("audio_param_audio_structure") { + source = "param/audio_structure" + subsystem_name = "hdf" + relative_install_dir = "audio" + install_images = [ chipset_base_dir ] + part_name = "product_oriole" +} + +ohos_prebuilt_etc("audio_param_cvs") { + source = "param/cvs" + subsystem_name = "hdf" + relative_install_dir = "audio" + install_images = [ chipset_base_dir ] + part_name = "product_oriole" +} + +ohos_prebuilt_etc("audio_param_dsp_smartamp") { + source = "param/dsp_smartamp" + subsystem_name = "hdf" + relative_install_dir = "audio" + install_images = [ chipset_base_dir ] + part_name = "product_oriole" +} + +ohos_prebuilt_etc("audio_param_dsp_vbc") { + source = "param/dsp_vbc" + subsystem_name = "hdf" + relative_install_dir = "audio" + install_images = [ chipset_base_dir ] + part_name = "product_oriole" +} + +group("hdf_audio_config") { + deps = [ + ":hdf_alsa_adapter_json", + ":hdf_alsa_paths_json", + ":audio_policy_config", + ":hdf_audio_adapter_json", + ":hdf_audio_effect_json", + ":hdf_audio_path_json", + ":audio_param_audio_structure", + ":audio_param_cvs", + ":audio_param_dsp_smartamp", + ":audio_param_dsp_vbc", + ] +} + +group("hdi_service_st") { + testonly = true + deps = [ "//drivers/peripheral/audio/test/systemtest/hdi_service/rk3568:hdi_service_hardwaredependence" ] +} diff --git a/oriole/hals/audio/alsa_adapter.json b/oriole/hals/audio/alsa_adapter.json new file mode 100644 index 0000000..0805746 --- /dev/null +++ b/oriole/hals/audio/alsa_adapter.json @@ -0,0 +1,14 @@ +{ + "adapters": [ + { + "name": "primary", + "cardId": 0, + "cardName": "sprdphonesc2730" + }, + { + "name": "hdmi", + "cardId": 1, + "cardName": "rockchiphdmi" + } + ] +} diff --git a/oriole/hals/audio/alsa_paths.json b/oriole/hals/audio/alsa_paths.json new file mode 100644 index 0000000..72218de --- /dev/null +++ b/oriole/hals/audio/alsa_paths.json @@ -0,0 +1,2948 @@ +{ + "hdf_audio_codec_primary_dev0": [ + { + "deep-buffer-playback": [ + { + "headphones": [ + { + "name": "Playback Path", + "value": "2" + } + ], + "Speaker": [ + { + "name": "VBC_IIS_TX0_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_TX1_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_MASTER_ENALBE", + "value": "0" + }, + { + "name": "VBC_IIS_MST_SEL_0_TYPE", + "value": "0" + }, + { + "name": "VBC_MUX_DAC0_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_DAC1_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS3_PORT_DO_SEL", + "value": "2" + }, + { + "name": "VBC_MUX_MST_IIS0_PORT_DO_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS2_PORT_DO_SEL", + "value": "2" + }, + { + "name": "VBC_MUX_IIS0_PORT_DO_SEL", + "value": "0" + }, + { + "name": "VBC_IIS_RX0_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_RX1_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_RX2_WD_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC0_IIS_PORT_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC1_IIS_PORT_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC2_IIS_PORT_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC3_IIS_PORT_SEL", + "value": "3" + }, + { + "name": "VBC_SRC_BT_DAC", + "value": "48000" + }, + { + "name": "VBC_SRC_BT_ADC", + "value": "48000" + }, + { + "name": "VBC_VOLUME", + "value": "0" + }, + { + "name": "ADC_1 Gain ADC_1 Capture Volume", + "value": "7" + }, + { + "name": "ADC_2 Gain ADC_2 Capture Volume", + "value": "7" + }, + { + "name": "ADC_3 Gain ADC_3 Capture Volume", + "value": "6" + }, + { + "name": "DAC Gain DAC Playback Volume", + "value": "2" + }, + { + "name": "ag_iis2_ext_sel_v2", + "value": "0" + }, + { + "name": "VBC DAC0 DSP MDG Set", + "value": "0 0" + }, + { + "name": "VBC DAC1 DSP MDG Set", + "value": "0 0" + }, + { + "name": "VBC DAC0 AUD MDG Set", + "value": "0 0" + }, + { + "name": "VBC DAC0 AUD23 MDG Set", + "value": "0 0" + }, + { + "name": "VBC_UL_MUTE", + "value": "0" + }, + { + "name": "VBC_DL_MUTE", + "value": "0" + }, + { + "name": "VBC_IIS_TX0_LRMOD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_RX2_LRMOD_SEL", + "value": "0" + }, + { + "name": "DAC LRCLK Select", + "value": "0" + }, + { + "name": "ADC LRCLK Select", + "value": "1" + }, + { + "name": "ADC1 LRCLK Select", + "value": "1" + }, + { + "name": "S_VOICE_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_VOIP_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_LOOP_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_FAST_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_NORMAL_AP01_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_CAPTURE_BT SWITCH", + "value": "0" + }, + { + "name": "S_VOICE_C_BT SWITCH", + "value": "0" + }, + { + "name": "S_VOIP_C_BT SWITCH", + "value": "0" + }, + { + "name": "S_LOOP_C_BT SWITCH", + "value": "0" + }, + { + "name": "S_BTSCO_CAP_DSP_C SWITCH", + "value": "0" + }, + { + "name": "agdsp_access_en", + "value": "1" + }, + { + "name": "agdsp_access_a2dp_en", + "value": "1" + }, + { + "name": "VBC_IIS_TX0_LRMOD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_TX1_WD_SEL", + "value": "1" + }, + { + "name": "DAC Gain DAC Playback Volume", + "value": "2" + }, + { + "name": "Speaker Function", + "value": "1" + }, + { + "name": "S_NORMAL_AP01_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP23_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_OFFLOAD_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOIP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_LOOP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_DSP_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_PCM_P SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_SMART_AMP SWITCH", + "value": "1" + }, + { + "name": "VBC_MUX_DAC0_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_DAC1_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS0_PORT_DO_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS2_PORT_DO_SEL", + "value": "2" + }, + { + "name": "VBC_MUX_IIS3_PORT_DO_SEL", + "value": "2" + }, + { + "name": "SmartAmp Boost", + "value": "0" + }, + { + "name": "DAC LRCLK Select", + "value": "0" + }, + { + "name": "AO Gain AO Playback Volume", + "value": "4" + }, + { + "name": "HPL Gain HPL Playback Volume", + "value": "12" + }, + { + "name": "HPR Gain HPR Playback Volume", + "value": "12" + }, + { + "name": "EAR Gain EAR Playback Volume", + "value": "12" + }, + { + "name": "AO Mixer AOL Switch", + "value": "1" + }, + { + "name": "AO Mixer AOR Switch", + "value": "1" + }, + { + "name": "AOL EAR Sel", + "value": "1" + }, + { + "name": "DA AOR Switch", + "value": "1" + }, + { + "name": "IVSENCE_FUNC_DSP", + "value": "1" + }, + { + "name": "ag_iis0_ext_sel_v2", + "value": "1" + }, + { + "name": "ag_iis1_ext_sel_v2", + "value": "1" + }, + { + "name": "VBC ADC0 DG Set", + "value": "127 127" + }, + { + "name": "aw87xxx_profile_switch_0", + "value": "0" + } + ], + "Mic": [ + { + "name": "agdsp_access_en", + "value": "1" + }, + { + "name": "agdsp_access_a2dp_en", + "value": "1" + }, + { + "name": "VBC_IIS_RX2_WD_SEL", + "value": "1" + }, + { + "name": "ag_iis0_ext_sel_v2", + "value": "1" + }, + { + "name": "ag_iis1_ext_sel_v2", + "value": "1" + }, + { + "name": "VBC_IIS_INF_SYS_SEL", + "value": "1" + }, + { + "name": "ADC LRCLK Select", + "value": "1" + }, + { + "name": "ADC1 LRCLK Select", + "value": "1" + }, + { + "name": "Speaker Function", + "value": "1" + }, + { + "name": "Mic Function", + "value": "1" + }, + { + "name": "S_NORMAL_AP01_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP01_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP23_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP23_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_CAPTURE_DSP_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_OFFLOAD_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOIP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOIP_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_LOOP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_LOOP_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_DSP_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_PCM_P SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_SMART_AMP SWITCH", + "value": "1" + }, + { + "name": "ADC_1 Mixer MIC1PGA_1 Switch", + "value": "1" + }, + { + "name": "AUD ADC0L Switch", + "value": "1" + }, + { + "name": "AUD ADC0R Switch", + "value": "1" + }, + { + "name": "ADC_1 Gain ADC_1 Capture Volume", + "value": "6" + }, + { + "name": "ADC_2 Gain ADC_2 Capture Volume", + "value": "7" + }, + { + "name": "ADC_3 Gain ADC_3 Capture Volume", + "value": "6" + }, + { + "name": "AO Gain AO Playback Volume", + "value": "4" + }, + { + "name": "AO Mixer AOL Switch", + "value": "1" + }, + { + "name": "AO Mixer AOR Switch", + "value": "1" + }, + { + "name": "AOL EAR Sel", + "value": "1" + }, + { + "name": "DA AOR Switch", + "value": "1" + }, + { + "name": "HPL Gain HPL Playback Volume", + "value": "12" + }, + { + "name": "HPR Gain HPR Playback Volume", + "value": "12" + }, + { + "name": "EAR Gain EAR Playback Volume", + "value": "12" + }, + { + "name": "ADC_3 Mixer MIC3PGA_3 Switch", + "value": "0" + }, + { + "name": "Aux Mic2 Function", + "value": "0" + } + ], + "Bluetooth": [ + { + "name": "VBC_IIS_TX0_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_TX1_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_MASTER_ENALBE", + "value": "0" + }, + { + "name": "VBC_IIS_MST_SEL_0_TYPE", + "value": "0" + }, + { + "name": "VBC_MUX_DAC0_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_DAC1_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS3_PORT_DO_SEL", + "value": "2" + }, + { + "name": "VBC_MUX_MST_IIS0_PORT_DO_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS2_PORT_DO_SEL", + "value": "2" + }, + { + "name": "VBC_MUX_IIS0_PORT_DO_SEL", + "value": "0" + }, + { + "name": "VBC_IIS_RX0_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_RX1_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_RX2_WD_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC0_IIS_PORT_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC1_IIS_PORT_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC2_IIS_PORT_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC3_IIS_PORT_SEL", + "value": "3" + }, + { + "name": "VBC_SRC_BT_DAC", + "value": "16000" + }, + { + "name": "VBC_SRC_BT_ADC", + "value": "16000" + }, + { + "name": "VBC_VOLUME", + "value": "0" + }, + { + "name": "ADC_1 Gain ADC_1 Capture Volume", + "value": "7" + }, + { + "name": "ADC_2 Gain ADC_2 Capture Volume", + "value": "7" + }, + { + "name": "ADC_3 Gain ADC_3 Capture Volume", + "value": "6" + }, + { + "name": "DAC Gain DAC Playback Volume", + "value": "2" + }, + { + "name": "ag_iis2_ext_sel_v2", + "value": "0" + }, + { + "name": "VBC DAC0 DSP MDG Set", + "value": "0 0" + }, + { + "name": "VBC DAC1 DSP MDG Set", + "value": "0 0" + }, + { + "name": "VBC DAC0 AUD MDG Set", + "value": "0 0" + }, + { + "name": "VBC DAC0 AUD23 MDG Set", + "value": "0 0" + }, + { + "name": "VBC_UL_MUTE", + "value": "0" + }, + { + "name": "VBC_DL_MUTE", + "value": "0" + }, + { + "name": "VBC_IIS_TX0_LRMOD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_RX2_LRMOD_SEL", + "value": "0" + }, + { + "name": "DAC LRCLK Select", + "value": "0" + }, + { + "name": "ADC LRCLK Select", + "value": "1" + }, + { + "name": "ADC1 LRCLK Select", + "value": "1" + }, + { + "name": "S_VOICE_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_VOIP_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_LOOP_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_FAST_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_NORMAL_AP01_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_CAPTURE_BT SWITCH", + "value": "0" + }, + { + "name": "S_VOICE_C_BT SWITCH", + "value": "0" + }, + { + "name": "S_VOIP_C_BT SWITCH", + "value": "0" + }, + { + "name": "S_LOOP_C_BT SWITCH", + "value": "0" + }, + { + "name": "S_BTSCO_CAP_DSP_C SWITCH", + "value": "0" + }, + { + "name": "agdsp_access_en", + "value": "1" + }, + { + "name": "agdsp_access_a2dp_en", + "value": "1" + }, + { + "name": "VBC_IIS_TX0_LRMOD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_TX1_WD_SEL", + "value": "1" + }, + { + "name": "DAC Gain DAC Playback Volume", + "value": "2" + }, + { + "name": "Speaker Function", + "value": "1" + }, + { + "name": "S_NORMAL_AP01_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP23_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_OFFLOAD_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOIP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_LOOP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_DSP_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_PCM_P SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_SMART_AMP SWITCH", + "value": "1" + }, + { + "name": "VBC_MUX_DAC0_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_DAC1_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS0_PORT_DO_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS2_PORT_DO_SEL", + "value": "2" + }, + { + "name": "VBC_MUX_IIS3_PORT_DO_SEL", + "value": "2" + }, + { + "name": "SmartAmp Boost", + "value": "0" + }, + { + "name": "DAC LRCLK Select", + "value": "0" + }, + { + "name": "AO Gain AO Playback Volume", + "value": "4" + }, + { + "name": "HPL Gain HPL Playback Volume", + "value": "12" + }, + { + "name": "HPR Gain HPR Playback Volume", + "value": "12" + }, + { + "name": "EAR Gain EAR Playback Volume", + "value": "12" + }, + { + "name": "AO Mixer AOL Switch", + "value": "1" + }, + { + "name": "AO Mixer AOR Switch", + "value": "1" + }, + { + "name": "AOL EAR Sel", + "value": "1" + }, + { + "name": "DA AOR Switch", + "value": "1" + }, + { + "name": "IVSENCE_FUNC_DSP", + "value": "1" + }, + { + "name": "ag_iis0_ext_sel_v2", + "value": "1" + }, + { + "name": "ag_iis1_ext_sel_v2", + "value": "1" + }, + { + "name": "VBC ADC0 DG Set", + "value": "127 127" + }, + { + "name": "aw87xxx_profile_switch_0", + "value": "0" + } + ], + "Bluetooth_SCO_Headset": [ + { + "name": "agdsp_access_en", + "value": "1" + }, + { + "name": "agdsp_access_a2dp_en", + "value": "1" + }, + { + "name": "VBC_IIS_RX2_WD_SEL", + "value": "1" + }, + { + "name": "ag_iis0_ext_sel_v2", + "value": "1" + }, + { + "name": "ag_iis1_ext_sel_v2", + "value": "1" + }, + { + "name": "VBC_IIS_INF_SYS_SEL", + "value": "1" + }, + { + "name": "ADC LRCLK Select", + "value": "1" + }, + { + "name": "ADC1 LRCLK Select", + "value": "1" + }, + { + "name": "Speaker Function", + "value": "1" + }, + { + "name": "Mic Function", + "value": "1" + }, + { + "name": "S_NORMAL_AP01_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP01_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP23_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP23_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_CAPTURE_DSP_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_OFFLOAD_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOIP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOIP_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_LOOP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_LOOP_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_DSP_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_PCM_P SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_SMART_AMP SWITCH", + "value": "1" + }, + { + "name": "ADC_1 Mixer MIC1PGA_1 Switch", + "value": "1" + }, + { + "name": "AUD ADC0L Switch", + "value": "1" + }, + { + "name": "AUD ADC0R Switch", + "value": "1" + }, + { + "name": "ADC_1 Gain ADC_1 Capture Volume", + "value": "6" + }, + { + "name": "ADC_2 Gain ADC_2 Capture Volume", + "value": "7" + }, + { + "name": "ADC_3 Gain ADC_3 Capture Volume", + "value": "6" + }, + { + "name": "AO Gain AO Playback Volume", + "value": "4" + }, + { + "name": "AO Mixer AOL Switch", + "value": "1" + }, + { + "name": "AO Mixer AOR Switch", + "value": "1" + }, + { + "name": "AOL EAR Sel", + "value": "1" + }, + { + "name": "DA AOR Switch", + "value": "1" + }, + { + "name": "HPL Gain HPL Playback Volume", + "value": "12" + }, + { + "name": "HPR Gain HPR Playback Volume", + "value": "12" + }, + { + "name": "EAR Gain EAR Playback Volume", + "value": "12" + }, + { + "name": "ADC_3 Mixer MIC3PGA_3 Switch", + "value": "0" + }, + { + "name": "Aux Mic2 Function", + "value": "0" + } + ] + } + ], + "low-latency-communication": [ + { + "Speaker": [ + { + "name": "agdsp_access_en", + "value": "1" + }, + { + "name": "agdsp_access_a2dp_en", + "value": "1" + }, + { + "name": "VBC_IIS_TX0_LRMOD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_TX1_WD_SEL", + "value": "1" + }, + { + "name": "DAC Gain DAC Playback Volume", + "value": "2" + }, + { + "name": "Speaker Function", + "value": "1" + }, + { + "name": "S_NORMAL_AP01_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP23_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_OFFLOAD_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOIP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_LOOP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_DSP_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_PCM_P SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_SMART_AMP SWITCH", + "value": "1" + }, + { + "name": "VBC_MUX_DAC0_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_DAC1_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS0_PORT_DO_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS2_PORT_DO_SEL", + "value": "2" + }, + { + "name": "VBC_MUX_IIS3_PORT_DO_SEL", + "value": "2" + }, + { + "name": "SmartAmp Boost", + "value": "0" + }, + { + "name": "DAC LRCLK Select", + "value": "0" + }, + { + "name": "AO Gain AO Playback Volume", + "value": "4" + }, + { + "name": "HPL Gain HPL Playback Volume", + "value": "12" + }, + { + "name": "HPR Gain HPR Playback Volume", + "value": "12" + }, + { + "name": "EAR Gain EAR Playback Volume", + "value": "12" + }, + { + "name": "AO Mixer AOL Switch", + "value": "1" + }, + { + "name": "AO Mixer AOR Switch", + "value": "1" + }, + { + "name": "AOL EAR Sel", + "value": "1" + }, + { + "name": "DA AOR Switch", + "value": "1" + }, + { + "name": "IVSENCE_FUNC_DSP", + "value": "1" + }, + { + "name": "ag_iis0_ext_sel_v2", + "value": "1" + }, + { + "name": "ag_iis1_ext_sel_v2", + "value": "1" + }, + { + "name": "VBC ADC0 DG Set", + "value": "127 127" + }, + { + "name": "aw87xxx_profile_switch_0", + "value": "0" + }, + { + "name": "VBC_VOLUME", + "value": "0" + } + ], + "Headphones": [ + { + "name": "agdsp_access_en", + "value": "1" + } + ], + "Mic": [ + { + "name": "agdsp_access_en", + "value": "1" + }, + { + "name": "agdsp_access_a2dp_en", + "value": "1" + }, + { + "name": "VBC_IIS_RX2_WD_SEL", + "value": "1" + }, + { + "name": "ag_iis0_ext_sel_v2", + "value": "1" + }, + { + "name": "ag_iis1_ext_sel_v2", + "value": "1" + }, + { + "name": "VBC_IIS_INF_SYS_SEL", + "value": "1" + }, + { + "name": "ADC LRCLK Select", + "value": "1" + }, + { + "name": "ADC1 LRCLK Select", + "value": "1" + }, + { + "name": "Speaker Function", + "value": "1" + }, + { + "name": "Mic Function", + "value": "1" + }, + { + "name": "S_NORMAL_AP01_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP01_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP23_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP23_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_CAPTURE_DSP_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_OFFLOAD_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOIP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOIP_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_LOOP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_LOOP_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_DSP_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_PCM_P SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_SMART_AMP SWITCH", + "value": "1" + }, + { + "name": "ADC_1 Mixer MIC1PGA_1 Switch", + "value": "1" + }, + { + "name": "AUD ADC0L Switch", + "value": "1" + }, + { + "name": "AUD ADC0R Switch", + "value": "1" + }, + { + "name": "ADC_1 Gain ADC_1 Capture Volume", + "value": "6" + }, + { + "name": "ADC_2 Gain ADC_2 Capture Volume", + "value": "7" + }, + { + "name": "ADC_3 Gain ADC_3 Capture Volume", + "value": "6" + }, + { + "name": "AO Gain AO Playback Volume", + "value": "4" + }, + { + "name": "AO Mixer AOL Switch", + "value": "1" + }, + { + "name": "AO Mixer AOR Switch", + "value": "1" + }, + { + "name": "AOL EAR Sel", + "value": "1" + }, + { + "name": "DA AOR Switch", + "value": "1" + }, + { + "name": "HPL Gain HPL Playback Volume", + "value": "12" + }, + { + "name": "HPR Gain HPR Playback Volume", + "value": "12" + }, + { + "name": "EAR Gain EAR Playback Volume", + "value": "12" + } + ] + } + ], + "ringtone-playback": [ + { + "Speaker": [ + { + "name": "VBC_IIS_TX0_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_TX1_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_MASTER_ENALBE", + "value": "0" + }, + { + "name": "VBC_IIS_MST_SEL_0_TYPE", + "value": "0" + }, + { + "name": "VBC_MUX_DAC0_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_DAC1_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS3_PORT_DO_SEL", + "value": "2" + }, + { + "name": "VBC_MUX_MST_IIS0_PORT_DO_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS2_PORT_DO_SEL", + "value": "2" + }, + { + "name": "VBC_MUX_IIS0_PORT_DO_SEL", + "value": "0" + }, + { + "name": "VBC_IIS_RX0_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_RX1_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_RX2_WD_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC0_IIS_PORT_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC1_IIS_PORT_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC2_IIS_PORT_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC3_IIS_PORT_SEL", + "value": "3" + }, + { + "name": "VBC_SRC_BT_DAC", + "value": "48000" + }, + { + "name": "VBC_SRC_BT_ADC", + "value": "48000" + }, + { + "name": "VBC_VOLUME", + "value": "0" + }, + { + "name": "ADC_1 Gain ADC_1 Capture Volume", + "value": "7" + }, + { + "name": "ADC_2 Gain ADC_2 Capture Volume", + "value": "7" + }, + { + "name": "ADC_3 Gain ADC_3 Capture Volume", + "value": "6" + }, + { + "name": "DAC Gain DAC Playback Volume", + "value": "2" + }, + { + "name": "ag_iis2_ext_sel_v2", + "value": "0" + }, + { + "name": "VBC DAC0 DSP MDG Set", + "value": "0 0" + }, + { + "name": "VBC DAC1 DSP MDG Set", + "value": "0 0" + }, + { + "name": "VBC DAC0 AUD MDG Set", + "value": "0 0" + }, + { + "name": "VBC DAC0 AUD23 MDG Set", + "value": "0 0" + }, + { + "name": "VBC_UL_MUTE", + "value": "0" + }, + { + "name": "VBC_DL_MUTE", + "value": "0" + }, + { + "name": "VBC_IIS_TX0_LRMOD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_RX2_LRMOD_SEL", + "value": "0" + }, + { + "name": "DAC LRCLK Select", + "value": "0" + }, + { + "name": "ADC LRCLK Select", + "value": "1" + }, + { + "name": "ADC1 LRCLK Select", + "value": "1" + }, + { + "name": "S_VOICE_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_VOIP_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_LOOP_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_FAST_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_NORMAL_AP01_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_CAPTURE_BT SWITCH", + "value": "0" + }, + { + "name": "S_VOICE_C_BT SWITCH", + "value": "0" + }, + { + "name": "S_VOIP_C_BT SWITCH", + "value": "0" + }, + { + "name": "S_LOOP_C_BT SWITCH", + "value": "0" + }, + { + "name": "S_BTSCO_CAP_DSP_C SWITCH", + "value": "0" + }, + { + "name": "agdsp_access_en", + "value": "1" + }, + { + "name": "agdsp_access_a2dp_en", + "value": "1" + }, + { + "name": "VBC_IIS_TX0_LRMOD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_TX1_WD_SEL", + "value": "1" + }, + { + "name": "DAC Gain DAC Playback Volume", + "value": "2" + }, + { + "name": "Speaker Function", + "value": "1" + }, + { + "name": "S_NORMAL_AP01_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP23_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_OFFLOAD_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOIP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_LOOP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_DSP_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_PCM_P SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_SMART_AMP SWITCH", + "value": "1" + }, + { + "name": "VBC_MUX_DAC0_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_DAC1_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS0_PORT_DO_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS2_PORT_DO_SEL", + "value": "2" + }, + { + "name": "VBC_MUX_IIS3_PORT_DO_SEL", + "value": "2" + }, + { + "name": "SmartAmp Boost", + "value": "0" + }, + { + "name": "DAC LRCLK Select", + "value": "0" + }, + { + "name": "AO Gain AO Playback Volume", + "value": "4" + }, + { + "name": "HPL Gain HPL Playback Volume", + "value": "12" + }, + { + "name": "HPR Gain HPR Playback Volume", + "value": "12" + }, + { + "name": "EAR Gain EAR Playback Volume", + "value": "12" + }, + { + "name": "AO Mixer AOL Switch", + "value": "1" + }, + { + "name": "AO Mixer AOR Switch", + "value": "1" + }, + { + "name": "AOL EAR Sel", + "value": "1" + }, + { + "name": "DA AOR Switch", + "value": "1" + }, + { + "name": "IVSENCE_FUNC_DSP", + "value": "1" + }, + { + "name": "ag_iis0_ext_sel_v2", + "value": "1" + }, + { + "name": "ag_iis1_ext_sel_v2", + "value": "1" + }, + { + "name": "VBC ADC0 DG Set", + "value": "127 127" + }, + { + "name": "aw87xxx_profile_switch_0", + "value": "0" + } + ], + "Mic": [ + { + "name": "agdsp_access_en", + "value": "1" + }, + { + "name": "agdsp_access_a2dp_en", + "value": "1" + }, + { + "name": "VBC_IIS_RX2_WD_SEL", + "value": "1" + }, + { + "name": "ag_iis0_ext_sel_v2", + "value": "1" + }, + { + "name": "ag_iis1_ext_sel_v2", + "value": "1" + }, + { + "name": "VBC_IIS_INF_SYS_SEL", + "value": "1" + }, + { + "name": "ADC LRCLK Select", + "value": "1" + }, + { + "name": "ADC1 LRCLK Select", + "value": "1" + }, + { + "name": "Speaker Function", + "value": "1" + }, + { + "name": "Mic Function", + "value": "1" + }, + { + "name": "S_NORMAL_AP01_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP01_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP23_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP23_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_CAPTURE_DSP_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_OFFLOAD_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOIP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOIP_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_LOOP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_LOOP_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_DSP_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_PCM_P SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_SMART_AMP SWITCH", + "value": "1" + }, + { + "name": "ADC_1 Mixer MIC1PGA_1 Switch", + "value": "1" + }, + { + "name": "AUD ADC0L Switch", + "value": "1" + }, + { + "name": "AUD ADC0R Switch", + "value": "1" + }, + { + "name": "ADC_1 Gain ADC_1 Capture Volume", + "value": "6" + }, + { + "name": "ADC_2 Gain ADC_2 Capture Volume", + "value": "7" + }, + { + "name": "ADC_3 Gain ADC_3 Capture Volume", + "value": "6" + }, + { + "name": "AO Gain AO Playback Volume", + "value": "4" + }, + { + "name": "AO Mixer AOL Switch", + "value": "1" + }, + { + "name": "AO Mixer AOR Switch", + "value": "1" + }, + { + "name": "AOL EAR Sel", + "value": "1" + }, + { + "name": "DA AOR Switch", + "value": "1" + }, + { + "name": "HPL Gain HPL Playback Volume", + "value": "12" + }, + { + "name": "HPR Gain HPR Playback Volume", + "value": "12" + }, + { + "name": "EAR Gain EAR Playback Volume", + "value": "12" + } + ] + } + ], + "voice-call": [ + { + "Speaker": [ + { + "name": "VBC_IIS_TX0_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_TX1_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_MASTER_ENALBE", + "value": "0" + }, + { + "name": "VBC_IIS_MST_SEL_0_TYPE", + "value": "0" + }, + { + "name": "VBC_MUX_DAC0_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_DAC1_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS3_PORT_DO_SEL", + "value": "2" + }, + { + "name": "VBC_MUX_MST_IIS0_PORT_DO_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS2_PORT_DO_SEL", + "value": "2" + }, + { + "name": "VBC_MUX_IIS0_PORT_DO_SEL", + "value": "0" + }, + { + "name": "VBC_IIS_RX0_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_RX1_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_RX2_WD_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC0_IIS_PORT_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC1_IIS_PORT_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC2_IIS_PORT_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC3_IIS_PORT_SEL", + "value": "3" + }, + { + "name": "VBC_SRC_BT_DAC", + "value": "48000" + }, + { + "name": "VBC_SRC_BT_ADC", + "value": "48000" + }, + { + "name": "VBC_VOLUME", + "value": "6" + }, + { + "name": "DAC Gain DAC Playback Volume", + "value": "2" + }, + { + "name": "ag_iis2_ext_sel_v2", + "value": "0" + }, + { + "name": "VBC_DL_MUTE", + "value": "0" + }, + { + "name": "VBC_IIS_TX0_LRMOD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_RX2_LRMOD_SEL", + "value": "0" + }, + { + "name": "DAC LRCLK Select", + "value": "0" + }, + { + "name": "ADC LRCLK Select", + "value": "1" + }, + { + "name": "ADC1 LRCLK Select", + "value": "1" + }, + { + "name": "S_VOICE_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_VOIP_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_LOOP_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_FAST_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_NORMAL_AP01_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_CAPTURE_BT SWITCH", + "value": "0" + }, + { + "name": "S_VOICE_C_BT SWITCH", + "value": "0" + }, + { + "name": "S_VOIP_C_BT SWITCH", + "value": "0" + }, + { + "name": "S_LOOP_C_BT SWITCH", + "value": "0" + }, + { + "name": "S_BTSCO_CAP_DSP_C SWITCH", + "value": "0" + }, + { + "name": "agdsp_access_en", + "value": "1" + }, + { + "name": "agdsp_access_a2dp_en", + "value": "1" + }, + { + "name": "VBC ADC3 DG Set", + "value": "24 24" + }, + { + "name": "VBC_MUX_ADC1_IIS_PORT_SEL", + "value": "2" + }, + { + "name": "VBC_MUX_ADC3_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_IIS_RX2_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_TX0_LRMOD_SEL", + "value": "1" + }, + { + "name": "ag_iis0_ext_sel_v2", + "value": "1" + }, + { + "name": "ag_iis1_ext_sel_v2", + "value": "1" + }, + { + "name": "VBC_CUSTM_DEV_CHANGE", + "value": "3" + }, + { + "name": "VBC_SYSTEM_DEV_CHANGE", + "value": "3" + }, + { + "name": "aw87xxx_profile_switch_0", + "value": "0" + }, + { + "name": "ADC LRCLK Select", + "value": "1" + }, + { + "name": "ADC1 LRCLK Select", + "value": "1" + }, + { + "name": "DAHP OS D", + "value": "5" + }, + { + "name": "ADD0 DATA SEL", + "value": "1" + }, + { + "name": "Speaker Function", + "value": "1" + }, + { + "name": "S_NORMAL_AP01_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP01_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP23_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP23_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_CAPTURE_DSP_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_OFFLOAD_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOIP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOIP_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_LOOP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_LOOP_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_DSP_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_PCM_P SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_CAP_C SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_SMART_AMP SWITCH", + "value": "1" + }, + { + "name": "ADC_1 Mixer MIC1PGA_1 Switch", + "value": "1" + }, + { + "name": "AUD ADC0L Switch", + "value": "1" + }, + { + "name": "AUD ADC0R Switch", + "value": "1" + }, + { + "name": "AO Mixer AOL Switch", + "value": "1" + }, + { + "name": "AO Mixer AOR Switch", + "value": "1" + }, + { + "name": "AOL EAR Sel", + "value": "1" + }, + { + "name": "DA AOR Switch", + "value": "1" + }, + { + "name": "HPL EAR Sel", + "value": "1" + }, + { + "name": "VBC_MUX_ADC3", + "value": "4" + }, + { + "name": "NXP Profile Select", + "value": "151584773" + }, + { + "name": "DSP VBC Profile Select", + "value": "1078657024" + }, + { + "name": "Audio Structure Profile Select", + "value": "151584773" + }, + { + "name": "VBC DAC1 DG Set", + "value": "24 24" + }, + { + "name": "VBC ST DG Set", + "value": "24 24" + }, + { + "name": "VBC ADC2 DG Set", + "value": "35 35" + } + ], + "Earpiece": [ + { + "name": "VBC_IIS_TX0_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_TX1_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_MASTER_ENALBE", + "value": "0" + }, + { + "name": "VBC_IIS_MST_SEL_0_TYPE", + "value": "0" + }, + { + "name": "VBC_MUX_DAC0_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_DAC1_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS3_PORT_DO_SEL", + "value": "2" + }, + { + "name": "VBC_MUX_MST_IIS0_PORT_DO_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS2_PORT_DO_SEL", + "value": "2" + }, + { + "name": "VBC_MUX_IIS0_PORT_DO_SEL", + "value": "0" + }, + { + "name": "VBC_IIS_RX0_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_RX1_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_RX2_WD_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC0_IIS_PORT_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC1_IIS_PORT_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC2_IIS_PORT_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_ADC3_IIS_PORT_SEL", + "value": "3" + }, + { + "name": "VBC_SRC_BT_DAC", + "value": "48000" + }, + { + "name": "VBC_SRC_BT_ADC", + "value": "48000" + }, + { + "name": "VBC_VOLUME", + "value": "6" + }, + { + "name": "DAC Gain DAC Playback Volume", + "value": "2" + }, + { + "name": "ag_iis2_ext_sel_v2", + "value": "0" + }, + { + "name": "VBC_DL_MUTE", + "value": "0" + }, + { + "name": "VBC_IIS_TX0_LRMOD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_RX2_LRMOD_SEL", + "value": "0" + }, + { + "name": "DAC LRCLK Select", + "value": "0" + }, + { + "name": "ADC LRCLK Select", + "value": "1" + }, + { + "name": "ADC1 LRCLK Select", + "value": "1" + }, + { + "name": "S_VOICE_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_VOIP_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_LOOP_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_FAST_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_NORMAL_AP01_P_BT SWITCH", + "value": "0" + }, + { + "name": "S_CAPTURE_BT SWITCH", + "value": "0" + }, + { + "name": "S_VOICE_C_BT SWITCH", + "value": "0" + }, + { + "name": "S_VOIP_C_BT SWITCH", + "value": "0" + }, + { + "name": "S_LOOP_C_BT SWITCH", + "value": "0" + }, + { + "name": "S_BTSCO_CAP_DSP_C SWITCH", + "value": "0" + }, + { + "name": "agdsp_access_en", + "value": "1" + }, + { + "name": "agdsp_access_a2dp_en", + "value": "1" + }, + { + "name": "VBC ADC3 DG Set", + "value": "24 24" + }, + { + "name": "VBC_MUX_ADC1_IIS_PORT_SEL", + "value": "2" + }, + { + "name": "VBC_MUX_ADC3_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_IIS_RX2_WD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_TX0_LRMOD_SEL", + "value": "1" + }, + { + "name": "ag_iis0_ext_sel_v2", + "value": "1" + }, + { + "name": "ag_iis1_ext_sel_v2", + "value": "1" + }, + { + "name": "VBC_CUSTM_DEV_CHANGE", + "value": "3" + }, + { + "name": "VBC_SYSTEM_DEV_CHANGE", + "value": "3" + }, + { + "name": "aw87xxx_profile_switch_0", + "value": "0" + }, + { + "name": "DAC LRCLK Select", + "value": "0" + }, + { + "name": "ADC LRCLK Select", + "value": "1" + }, + { + "name": "ADC1 LRCLK Select", + "value": "1" + }, + { + "name": "DAHP OS D", + "value": "5" + }, + { + "name": "ADD0 DATA SEL", + "value": "1" + }, + { + "name": "Earpiece Function", + "value": "1" + }, + { + "name": "S_NORMAL_AP01_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP01_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP23_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP23_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_CAPTURE_DSP_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_OFFLOAD_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOIP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOIP_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_LOOP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_LOOP_C_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_DSP_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_PCM_P SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_CAP_C SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_SMART_AMP SWITCH", + "value": "1" + }, + { + "name": "ADC_1 Mixer MIC1PGA_1 Switch", + "value": "1" + }, + { + "name": "AUD ADC0L Switch", + "value": "1" + }, + { + "name": "AUD ADC0R Switch", + "value": "1" + }, + { + "name": "AO Mixer AOL Switch", + "value": "0" + }, + { + "name": "AO Mixer AOR Switch", + "value": "0" + }, + { + "name": "AOL EAR Sel", + "value": "0" + }, + { + "name": "DA AOR Switch", + "value": "0" + }, + { + "name": "EAR_HPL Mixer DACHPL Switch", + "value": "1" + }, + { + "name": "HPL EAR Sel", + "value": "0" + }, + { + "name": "VBC_MUX_ADC3", + "value": "4" + }, + { + "name": "NXP Profile Select", + "value": "33685509" + }, + { + "name": "DSP VBC Profile Select", + "value": "33685509" + }, + { + "name": "Audio Structure Profile Select", + "value": "33685509" + }, + { + "name": "VBC DAC1 DG Set", + "value": "24 24" + }, + { + "name": "VBC ST DG Set", + "value": "24 24" + }, + { + "name": "VBC ADC2 DG Set", + "value": "35 35" + }, + { + "name": "EAR Gain EAR Playback Volume", + "value": "0" + } + ], + "Bluetooth": [ + { + "name": "agdsp_access_en", + "value": "1" + }, + { + "name": "agdsp_access_a2dp_en", + "value": "1" + }, + { + "name": "VBC_IIS_TX0_WD_SEL", + "value": "0" + }, + { + "name": "VBC_IIS_TX1_WD_SEL", + "value": "0" + }, + { + "name": "VBC_IIS_MASTER_ENALBE", + "value": "1" + }, + { + "name": "VBC_IIS_MST_SEL_0_TYPE", + "value": "1" + }, + { + "name": "VBC_MUX_DAC0_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_DAC1_IIS_PORT_SEL", + "value": "3" + }, + { + "name": "VBC_MUX_IIS3_PORT_DO_SEL", + "value": "1" + }, + { + "name": "VBC_MUX_MST_IIS0_PORT_DO_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS2_PORT_DO_SEL", + "value": "2" + }, + { + "name": "VBC_MUX_IIS0_PORT_DO_SEL", + "value": "2" + }, + { + "name": "VBC_IIS_RX0_WD_SEL", + "value": "0" + }, + { + "name": "VBC_IIS_RX1_WD_SEL", + "value": "0" + }, + { + "name": "VBC_IIS_RX2_WD_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_ADC0_IIS_PORT_SEL", + "value": "3" + }, + { + "name": "VBC_MUX_ADC1_IIS_PORT_SEL", + "value": "3" + }, + { + "name": "VBC_MUX_ADC2_IIS_PORT_SEL", + "value": "3" + }, + { + "name": "VBC_MUX_ADC3_IIS_PORT_SEL", + "value": "3" + }, + { + "name": "VBC_SRC_BT_DAC", + "value": "8000" + }, + { + "name": "VBC_SRC_BT_ADC", + "value": "8000" + }, + { + "name": "VBC_VOLUME", + "value": "8" + }, + { + "name": "DAC Gain DAC Playback Volume", + "value": "0" + }, + { + "name": "ag_iis1_ext_sel_v2", + "value": "1" + }, + { + "name": "ag_iis2_ext_sel_v2", + "value": "0" + }, + { + "name": "SYS_IIS0", + "value": "3" + }, + { + "name": "VBC_DL_MUTE", + "value": "0" + }, + { + "name": "VBC_IIS_TX0_LRMOD_SEL", + "value": "0" + }, + { + "name": "VBC_IIS_RX2_LRMOD_SEL", + "value": "0" + }, + { + "name": "DAC LRCLK Select", + "value": "0" + }, + { + "name": "ADC LRCLK Select", + "value": "0" + }, + { + "name": "ADC1 LRCLK Select", + "value": "0" + }, + { + "name": "S_VOICE_P_BT SWITCH", + "value": "1" + }, + { + "name": "S_VOIP_P_BT SWITCH", + "value": "1" + }, + { + "name": "S_LOOP_P_BT SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_BT SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP01_P_BT SWITCH", + "value": "1" + }, + { + "name": "S_CAPTURE_BT SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_PCM_P SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_SMART_AMP SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_C_BT SWITCH", + "value": "1" + }, + { + "name": "S_VOIP_C_BT SWITCH", + "value": "1" + }, + { + "name": "S_LOOP_C_BT SWITCH", + "value": "1" + }, + { + "name": "S_BTSCO_CAP_DSP_C SWITCH", + "value": "1" + } + ], + "Mic": [ + { + "name": "ADC_3 Mixer MIC3PGA_3 Switch", + "value": "1" + }, + { + "name": "Aux Mic2 Function", + "value": "1" + } + ], + "Bluetooth_SCO_Headset": [ + { + "name": "agdsp_access_en", + "value": "1" + } + ] + } + ], + "low-latency-noirq-playback": [ + { + "Speaker": [ + { + "name": "agdsp_access_en", + "value": "1" + }, + { + "name": "agdsp_access_a2dp_en", + "value": "1" + }, + { + "name": "VBC_IIS_TX0_LRMOD_SEL", + "value": "1" + }, + { + "name": "VBC_IIS_TX1_WD_SEL", + "value": "1" + }, + { + "name": "DAC Gain DAC Playback Volume", + "value": "2" + }, + { + "name": "Speaker Function", + "value": "1" + }, + { + "name": "S_NORMAL_AP01_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_NORMAL_AP23_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_OFFLOAD_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOIP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_LOOP_P_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_FM_DSP_CODEC SWITCH", + "value": "1" + }, + { + "name": "S_VOICE_PCM_P SWITCH", + "value": "1" + }, + { + "name": "S_FAST_P_SMART_AMP SWITCH", + "value": "1" + }, + { + "name": "VBC_MUX_DAC0_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_DAC1_IIS_PORT_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS0_PORT_DO_SEL", + "value": "0" + }, + { + "name": "VBC_MUX_IIS2_PORT_DO_SEL", + "value": "2" + }, + { + "name": "VBC_MUX_IIS3_PORT_DO_SEL", + "value": "2" + }, + { + "name": "SmartAmp Boost", + "value": "0" + }, + { + "name": "DAC LRCLK Select", + "value": "0" + }, + { + "name": "AO Gain AO Playback Volume", + "value": "4" + }, + { + "name": "HPL Gain HPL Playback Volume", + "value": "12" + }, + { + "name": "HPR Gain HPR Playback Volume", + "value": "12" + }, + { + "name": "EAR Gain EAR Playback Volume", + "value": "12" + }, + { + "name": "AO Mixer AOL Switch", + "value": "1" + }, + { + "name": "AO Mixer AOR Switch", + "value": "1" + }, + { + "name": "AOL EAR Sel", + "value": "1" + }, + { + "name": "DA AOR Switch", + "value": "1" + }, + { + "name": "IVSENCE_FUNC_DSP", + "value": "1" + }, + { + "name": "ag_iis0_ext_sel_v2", + "value": "1" + }, + { + "name": "ag_iis1_ext_sel_v2", + "value": "1" + }, + { + "name": "VBC ADC0 DG Set", + "value": "127 127" + }, + { + "name": "aw87xxx_profile_switch_0", + "value": "0" + }, + { + "name": "VBC_VOLUME", + "value": "0" + } + ], + "Headphones": [ + { + "name": "agdsp_access_en", + "value": "1" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/oriole/hals/audio/audio_adapter.json b/oriole/hals/audio/audio_adapter.json new file mode 100644 index 0000000..5285871 --- /dev/null +++ b/oriole/hals/audio/audio_adapter.json @@ -0,0 +1,73 @@ +{ + "adapterNum": 5, + "adapters": [{ + "name": "primary", + "portnum": 2, + "port": [{ + "dir": "PORT_OUT", + "id": 0, + "name": "AOP" + }, + { + "dir": "PORT_IN", + "id": 0, + "name": "AIP" + }] + }, + { + "name": "primary1", + "portnum": 3, + "port": [{ + "dir": "PORT_OUT", + "id": 0, + "name": "AOP" + }, + { + "dir": "PORT_IN", + "id": 0, + "name": "AIP" + }, + { + "dir": "PORT_OUT_IN", + "id": 0, + "name": "AIOP" + }] + }, + { + "name": "primary_ext", + "portnum": 1, + "port": [{ + "dir": "PORT_OUT", + "id": 11, + "name": "AOP" + }] + }, + { + "name": "usb", + "portnum": 3, + "port": [{ + "dir": "PORT_OUT", + "id": 21, + "name": "AOP" + }, + { + "dir": "PORT_IN", + "id": 21, + "name": "AIP" + }, + { + "dir": "PORT_OUT_IN", + "id": 21, + "name": "AIOP" + }] + }, + { + "name": "a2dp", + "portnum": 1, + "port": [{ + "dir": "PORT_OUT", + "id": 31, + "name": "AOP" + }] + }] +} diff --git a/oriole/hals/audio/audio_effect.json b/oriole/hals/audio/audio_effect.json new file mode 100644 index 0000000..c176049 --- /dev/null +++ b/oriole/hals/audio/audio_effect.json @@ -0,0 +1,15 @@ +{ + "effects":[ + { + "name":"mock_effect", + "library":"libmock_effect_lib", + "effectId":"aaaabbbb-8888-9999-6666-aabbccdd9966ff" + } + ], + "libraries":[ + { + "name":"libmock_effect_lib", + "path":"libmock_effect_lib" + } + ] +} \ No newline at end of file diff --git a/oriole/hals/audio/audio_paths.json b/oriole/hals/audio/audio_paths.json new file mode 100644 index 0000000..c9ce43d --- /dev/null +++ b/oriole/hals/audio/audio_paths.json @@ -0,0 +1,94 @@ +{ + "hdf_audio_codec_primary_dev0": [ + { + "deep-buffer-playback Speaker": [ + { + "name": "DACL Left Speaker Mixer", + "value": 1 + }, + { + "name": "DACR Left Speaker Mixer", + "value": 1 + } + ], + "headphones": [ + { + "name": "Speaker1 Switch", + "value": 1 + }, + { + "name": "Headphone1 Switch", + "value": 0 + }, + { + "name": "Headphone2 Switch", + "value": 0 + } + ], + "Speaker": [ + { + "name": "Speaker1 Switch", + "value": 0 + }, + { + "name": "Headphone1 Switch", + "value": 1 + }, + { + "name": "Headphone2 Switch", + "value": 1 + } + ], + "deep-buffer-playback headphones": [ + { + "name": "DACL Left Speaker Mixer", + "value": 1 + }, + { + "name": "DACR Left Speaker Mixer", + "value": 1 + } + ], + "deep-buffer-playback mic": [ + { + "name": "DACL Left Speaker Mixer", + "value": 1 + }, + { + "name": "DACR Left Speaker Mixer", + "value": 1 + } + ], + "deep-buffer-playback micHs": [ + { + "name": "DACL Left Speaker Mixer", + "value": 1 + }, + { + "name": "DACR Left Speaker Mixer", + "value": 1 + } + ], + "mic": [ + { + "name": "LPGA MIC Switch", + "value": 0 + }, + { + "name": "RPGA MIC Switch", + "value": 1 + } + ], + "micHs": [ + { + "name": "LPGA MIC Switch", + "value": 1 + }, + { + "name": "RPGA MIC Switch", + "value": 0 + } + ] + } + ] +} diff --git a/oriole/hals/audio/config/arm/audio_policy_config.xml b/oriole/hals/audio/config/arm/audio_policy_config.xml new file mode 100644 index 0000000..6f3eb8d --- /dev/null +++ b/oriole/hals/audio/config/arm/audio_policy_config.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + false + 50 + + + + + + + + + + + + + + + diff --git a/oriole/hals/audio/config/arm64/audio_policy_config.xml b/oriole/hals/audio/config/arm64/audio_policy_config.xml new file mode 100644 index 0000000..4f44737 --- /dev/null +++ b/oriole/hals/audio/config/arm64/audio_policy_config.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + true + 90 + + + + + + + + + + + + + + + diff --git a/oriole/hals/audio/param/audio_structure b/oriole/hals/audio/param/audio_structure new file mode 100644 index 0000000000000000000000000000000000000000..307ee40973fbe576a8a6ced5ac8ca0b666030b68 GIT binary patch literal 48934 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 literal 0 HcmV?d00001 diff --git a/oriole/hals/audio/param/cvs b/oriole/hals/audio/param/cvs new file mode 100644 index 0000000000000000000000000000000000000000..7f6744e153795162bf49ff18381a1419cd86dd8a GIT binary patch literal 55500 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 literal 0 HcmV?d00001 diff --git a/oriole/hals/audio/param/dsp_smartamp b/oriole/hals/audio/param/dsp_smartamp new file mode 100644 index 0000000000000000000000000000000000000000..a47b78513ca4a118827631fe9764522daad8b823 GIT binary patch literal 29752 zcmeHQX;4&G7XIGpZqNn=q$7=N-74b3;DUfV?TQN~8I5ZRCJ}q0xFTYv&;bFBhSHfB zmxwc(xQ(fbQAbBJK_hAsjY>ug<*sOq#<<4?!+Pdj+DRpvR0%cnXXc!)`_8-f-L>EC z`}J4n$M?$2qzO~UPD`2UoG@uTfO>k$X{cX-l+1knYW4B4!U;6ZGigvCWd=+$0BiKS zNMm6jYzJ&+_ayAMSy9jknBLutyp=0W`eUO?k&%&xeElww07qNkr}s{$8w!tl!uY$< zxb#JJO^bqrNcd=9;N&{s^q0);XoanVEw~yBwA4FX(9xk!w2x+j1ApIgn0qfw#XFBW zVNY5vZy(tWQ8N#4RLX4Rb_l`synU?vI=_1yv$TZG%L3rrItI$${_8iqAZieX-SWU6 zU%J2>FNXfu))CtSnRByQ`KL`E|0(;=m5nTA9<3)e1o;3Pf&oi_Yrw@Pnd9@B+kWnP z?*AgtA_tf|$@M&PDsyLxo*b^{k@{Eq+8PbkVXiml*Rq-eFI4i}epNO7U)W*9e5)Bb zW7SLduJJ0b%9W{ls=jKc@~R)zpXyhc8b^(%##MPW4>cb(FJ)?;YQAdTDzDa|)}z*? zOs!L`H^x!G;d?W1r6d-`j!ahm1!Dmp|2_k!s$6Yb>ig$zixV{qIo9C3=65Fqxv&4A z^_doo6SuEw(`UBA+kGpwp8hddzv`A2y{I3$_A-(CZ^xoEl*oA|3!`#7(1M)zG2m1Z z4P9%~ss`RRlqHrUe#<4p;YGKqD~Bf0yz?ikgSjIO^Nr)1lTDO-d!p4e5E4T1 zJ$%vbj+OE^KZo0Y3ZP9ff!J0YL=)}=;e|bRdgZtsXZMBD>cr;wG%13-62tJpw^20j zLMS>Jds9mDW;k)CA9eCIS%RdZ@k&lo^p%ABaDA zkl)!g3vo7Ju>&=}Ea@w)Ob z*{poY>jnJb{0yWXh=u>}Gg*0k*Xt)M!|&poe=!k{z@F5NoBbC$Q!TRv%yCkynv zL!HgG4n>D}%o}OQo!k{SnlEJK0VnMybu#Lwa=lX45Uv$dIlJLvM6v#D>8G`y%Dc*c zq3d5MGT@kdF;%hw?|Lc!WVL!~^)1b)ue`+qGY+AcT<6S_b^jmpf}et)f}et)f}et) zf}eHz2Ou0&IH+(?;h@4ng@XzQtpkJ#2Nez~98@@{a8Ti(!a?f*pb`g_IHpn{)*pMsx)pMsyY$4|Y5 z#6cwvDjZbepb`g_IH<%y>j0s`L4|_~2Nez~98@@{aL_scsBln;gX-HxFjO#9FjO#9 zFtqjxAkIk+(l69{$7`7MJ%Z#O&P0N>6}$C#pSXw)Z%TNcG4Yv_KS_1+v* z9rS`}+C^6W)Rz0~o7)Y&JNn~R>H)qIpermqWsavx)ZCu7|8ALRv;4X?%al<^YQ!I6 z?02*?mm*-@YoNP5Lb3O9m9~3mB$E9-XwjxV7}C1|U3qyl7Ux8e(>oisg=45=?mBE; z_K@u7KEn>rHx13sUf`~&N9l848>ixVDxWl#2Pe0okt3H4=vp@O zTGu15I1{F)ndxe>8%{6rAj=*zeD-J?_3`Ex^B@rf7G&EC|}*Z?hTUKBCI7h`++ zQpQ>zMD+6}=bGnm&F)Jd>A%aqsTT5&2}0)*D>ZE&1pkLtD%@>H%$LDby|@`-qU}_% zq6Iv*h0#iTE1dhb9d+?(gNx(4(51=Ea4M(=?R`EFZeHD}Y?2oenslHcx!#Cw+<}IN z`XHnzf<|RokX6-=*1l+gy*ix!VYecvs2!yb55%$j4zzTx4Jo0W=~Q}C{9#8ADohDQ z(djtq($0>M76WMSMJ24ZK(grTEanvg9--~4k{c}IH+*Y+C%)m00=DvKmY&$ literal 0 HcmV?d00001 diff --git a/oriole/hals/audio/param/dsp_vbc b/oriole/hals/audio/param/dsp_vbc new file mode 100644 index 0000000000000000000000000000000000000000..403cd114cc3747b20b18a6a7902542a3bf6e7738 GIT binary patch literal 124728 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 literal 0 HcmV?d00001 diff --git a/oriole/hdf_config/khdf/hdf_test/hdf_test_manager/device_info.hcs b/oriole/hdf_config/khdf/hdf_test/hdf_test_manager/device_info.hcs new file mode 100644 index 0000000..a772d59 --- /dev/null +++ b/oriole/hdf_config/khdf/hdf_test/hdf_test_manager/device_info.hcs @@ -0,0 +1,143 @@ +root { + device_info { + test_host :: host { + hostName = "test_host"; + priority = 180; + device_hdf_test :: device { + device0 :: deviceNode { + policy = 2; + priority = 10; + preload = 0; + permission = 0644; + moduleName = "khdf_ut"; + serviceName = "khdf_ut"; + } + device1 :: deviceNode { + policy = 2; + priority = 10; + preload = 0; + permission = 0644; + moduleName = "sample_driver"; + serviceName = "sample_service"; + } + device2 :: deviceNode { + policy = 2; + priority = 10; + preload = 0; + permission = 0644; + moduleName = "pm_test_driver"; + serviceName = "pm_ut_service"; + } + device3 :: deviceNode { + policy = 2; + priority = 10; + preload = 2; + permission = 0644; + moduleName = "hdf_test_helper"; + serviceName = "hdf_test_helper"; + } + device_uevent_ut :: deviceNode { + policy = 2; + priority = 10; + preload = 0; + permission = 0644; + moduleName = "uevent_ut_driver"; + serviceName = "hdf_uevent_ut"; + } + } + device_platform_test :: device { + gpio_tester :: deviceNode { + policy = 1; + priority = 101; + preload = 0; + permission = 0644; + moduleName = "PLATFORM_GPIO_TEST"; + deviceMatchAttr = "GPIO_TEST"; + serviceName = "GPIO_TEST"; + } + i2c_tester :: deviceNode { + policy = 2; + priority = 101; + preload = 0; + permission = 0644; + moduleName = "PLATFORM_I2C_TEST"; + deviceMatchAttr = "I2C_TEST"; + serviceName = "I2C_TEST"; + } + pwm_test :: deviceNode { + policy = 1; + priority = 110; + preload = 0; + permission = 0644; + moduleName = "PLATFORM_PWM_TEST"; + serviceName = "PWM_TEST"; + deviceMatchAttr = "PWM_TEST"; + } + spi_test :: deviceNode { + policy = 1; + priority = 100; + preload = 0; + permission = 0644; + moduleName = "PLATFORM_SPI_TEST"; + serviceName = "SPI_TEST"; + deviceMatchAttr = "SPI_TEST"; + } + emmc_tester :: deviceNode { + policy = 1; + priority = 100; + preload = 0; + permission = 0644; + moduleName = "PLATFORM_EMMC_TEST"; + serviceName = "EMMC_TEST"; + deviceMatchAttr = "EMMC_TEST"; + } + sdio_tester :: deviceNode { + policy = 1; + priority = 100; + preload = 0; + permission = 0644; + moduleName = "PLATFORM_SDIO_TEST"; + serviceName = "SDIO_TEST"; + deviceMatchAttr = "SDIO_TEST"; + } + watchdog_test :: deviceNode { + policy = 1; + priority = 110; + preload = 0; + permission = 0660; + moduleName = "PLATFORM_WATCHDOG_TEST"; + serviceName = "WATCHDOG_TEST"; + deviceMatchAttr = "WATCHDOG_TEST"; + } + mipi_dsi_test :: deviceNode { + policy = 1; + priority = 100; + preload = 0; + permission = 0644; + moduleName = "PLATFORM_MIPI_DSI_TEST"; + serviceName = "PLATFORM_MIPI_DSI_TEST"; + deviceMatchAttr = "PLATFORM_MIPI_DSI_TEST"; + } + uart_tester :: deviceNode { + policy = 1; + priority = 100; + preload = 0; + permission = 0644; + moduleName = "PLATFORM_UART_TEST"; + serviceName = "UART_TEST"; + deviceMatchAttr = "UART_TEST"; + } + } + device_sensor_test :: device { + sensor_tester :: deviceNode { + policy = 0; + priority = 100; + preload = 0; + permission = 0644; + moduleName = "HDF_SENSOR_TEST_DRIVER"; + } + } + } + } +} + diff --git a/oriole/hdf_config/khdf/hdf_test/i2c_test_config.hcs b/oriole/hdf_config/khdf/hdf_test/i2c_test_config.hcs new file mode 100644 index 0000000..9d70624 --- /dev/null +++ b/oriole/hdf_config/khdf/hdf_test/i2c_test_config.hcs @@ -0,0 +1,13 @@ +root { + module = "i2c"; + i2c_config { + i2c_controller_tester { + match_attr = "I2C_TEST"; + bus_num = 1; + dev_addr = 0x5d; + reg_addr = 0xd0; + reg_len = 2; + buf_size = 7; + } + } +} diff --git a/oriole/hdf_config/khdf/hdf_test/pwm_test_config.hcs b/oriole/hdf_config/khdf/hdf_test/pwm_test_config.hcs new file mode 100644 index 0000000..d29d8ce --- /dev/null +++ b/oriole/hdf_config/khdf/hdf_test/pwm_test_config.hcs @@ -0,0 +1,11 @@ +root { + pwm_test { + module = "pwm_test"; + match_attr = "PWM_TEST"; + num = 0; + period = 999; + duty = 333; + polarity = 0; + status = 1; + } +} diff --git a/oriole/hdf_config/khdf/hdf_test/sdio_test_config.hcs b/oriole/hdf_config/khdf/hdf_test/sdio_test_config.hcs new file mode 100644 index 0000000..9f1835a --- /dev/null +++ b/oriole/hdf_config/khdf/hdf_test/sdio_test_config.hcs @@ -0,0 +1,12 @@ +root { + module = "sdio"; + sdio_config { + sdio_controller_tester { + match_attr = "SDIO_TEST"; + busNum = 2; + funcNum = 1; + vendorId = 0x296; + deviceId = 0x5347; + } + } +} diff --git a/oriole/hdf_config/khdf/hdf_test/spi_test_config.hcs b/oriole/hdf_config/khdf/hdf_test/spi_test_config.hcs new file mode 100644 index 0000000..028707e --- /dev/null +++ b/oriole/hdf_config/khdf/hdf_test/spi_test_config.hcs @@ -0,0 +1,10 @@ +root { + spi_test { + module = "spi_test"; + match_attr = "SPI_TEST"; + bus = 0; + cs = 0; + len = 8; + wbuf = [0xa1, 0xb2, 0xc3, 0xd4, 0xe5, 0xf6, 0x78, 0x90]; + } +} diff --git a/oriole/hdf_config/khdf/hdf_test/uart_test_config.hcs b/oriole/hdf_config/khdf/hdf_test/uart_test_config.hcs new file mode 100644 index 0000000..54ae69c --- /dev/null +++ b/oriole/hdf_config/khdf/hdf_test/uart_test_config.hcs @@ -0,0 +1,9 @@ +root { + uart_test { + module = "uart_test"; + match_attr = "UART_TEST"; + port = 1; + len = 8; + wbuf = [0xa1, 0xb2, 0xc3, 0xd4, 0xe5, 0xf6, 0x78, 0x90]; + } +} \ No newline at end of file diff --git a/oriole/hdf_config/khdf/input/input_config.hcs b/oriole/hdf_config/khdf/input/input_config.hcs new file mode 100644 index 0000000..4954bfe --- /dev/null +++ b/oriole/hdf_config/khdf/input/input_config.hcs @@ -0,0 +1,262 @@ +root { + input_config { + touchConfig { + touch0 { + boardConfig { + match_attr = "touch_device1"; + inputAttr { + /* 0:touch 1:key 2:keyboard 3:mouse 4:button 5:crown 6:encoder */ + inputType = 0; + solutionX = 1080; + solutionY = 2408; + devName = "main_touch"; + } +//NVT_NT36XXX + busConfig { + busType = 1; // 0:i2c 1:spi + busNum = 1; // spi1 + clkGpio = 0; + csGpio = 0; + misoGpio = 1; + mosiGpio = 1; + busAddr = 0; + regWidth = 2; // 2 bytes + spiClkReg = [0, 0]; + spiCsReg = [0, 0]; + spiMisoReg = [0, 0]; + spiMosiReg = [0, 0]; + } + + pinConfig { + rstGpio = 60; + intGpio = 61; + rstRegCfg = [0x112f0094, 0x400]; + intRegCfg = [0x112f0098, 0x400]; + } +// Hi3516DV300-Runhe gt911--5p5 & 4p0 +/* + busConfig { + // 0:i2c 1:spi + busType = 0; + busNum = 1; + clkGpio = 86; + dataGpio = 87; + i2cClkIomux = [0x114f0048, 0x403]; + i2cDataIomux = [0x114f004c, 0x403]; + } + + pinConfig { + rstGpio = 14; + intGpio = 13; + rstRegCfg = [0x112f0094, 0x400]; + intRegCfg = [0x112f0098, 0x400]; + } +*/ +// Hi3516DV300-Ruishi gt911--7p0 +/* + busConfig { + // 0:i2c 1:spi + busType = 0; + busNum = 6; + clkGpio = 26; + dataGpio = 27; + i2cClkIomux = [0x114f0048, 0x403]; + i2cDataIomux = [0x114f004c, 0x403]; + } + + pinConfig { + rstGpio = 13; + intGpio = 12; + rstRegCfg = [0x10ff0030, 0x400]; + intRegCfg = [0x10ff002C, 0x400]; + } +*/ +// Hi3516DV300-Demo board: ft6336--2p35 +/* + busConfig { + // 0:i2c 1:spi + busType = 0; + busNum = 3; + clkGpio = 2; + dataGpio = 1; + i2cClkIomux = [0x112f0090, 0x5f1]; + i2cDataIomux = [0x112f008c, 0x5f1]; + } + + pinConfig { + rstGpio = 3; + intGpio = 4; + rstRegCfg = [0x0, 0x0]; + intRegCfg = [0x112f0098, 0x5f0]; + } +*/ + powerConfig { + /* 0:unused 1:ldo 2:gpio 3:pmic */ + vccType = 2; + vccNum = 175; // gpio175 + vccValue = 1800; + vciType = 1; + vciNum = 12; // ldo12 + vciValue = 3300; + } + + featureConfig { + capacitanceTest = 0; + gestureMode = 0; + gloverMOde = 0; + coverMode = 0; + chargerMode = 0; + knuckleMode = 0; + } + } + + chipConfig { + template touchChip { + match_attr = ""; + chipName = "gt911"; + vendorName = "zsj"; + chipInfo = "AAAA11222"; // 4-ProjectName, 2-TP IC, 3-TP Module + /* 0:i2c 1:spi*/ + busType = 0; + deviceAddr = 0x5D; + /* 0:None 1:Rising 2:Failing 4:High-level 8:Low-level */ + irqFlag = 2; + maxSpeed = 400; + chipVersion = 0; //parse Coord TypeA + powerSequence { + /* [type, status, dir , delay] + 0:none 1:vcc-1.8v 2:vci-3.3v 3:reset 4:int + 0:off or low 1:on or high 2:no ops + 0:input 1:output 2:no ops + meanings delay xms, 20: delay 20ms + */ + powerOnSeq = [4, 0, 1, 5, + 3, 0, 1, 10, + 3, 1, 1, 60, + 4, 2, 0, 50]; + suspendSeq = [3, 0, 2, 10]; + resumeSeq = [3, 1, 2, 10]; + powerOffSeq = [3, 0, 2, 10, + 1, 0, 2, 20]; + } + } + + chip0 :: touchChip { + match_attr = "zsj_gt911_5p5"; + chipInfo = "ZIDN45100"; // 4-ProjectName, 2-TP IC, 3-TP Module + chipVersion = 0; //parse point by TypeA + } + + chip1 :: touchChip { + match_attr = "zsj_gt911_4p0"; + chipInfo = "ZIDN45101"; + chipVersion = 1; //parse point by TypeB + } + + chip2 :: touchChip { + match_attr = "tg_gt911_7p0"; + vendorName = "tg"; + chipInfo = "ZIDN45102"; + chipVersion = 2; //parse point by TypeC + } + + chip3 :: touchChip { + match_attr = "st_ft6336_2p35"; + chipName = "ft6336"; + vendorName = "st"; + chipInfo = "ZIDN53200"; + deviceAddr = 0x38; + irqFlag = 1; // Rising + powerSequence { + /* [type, status, dir , delay] + 0:none 1:vcc-1.8v 2:vci-3.3v 3:reset 4:int + 0:off or low 1:on or high 2:no ops + 0:input 1:output 2:no ops + meanings delay xms, 20: delay 20ms + */ + powerOnSeq = [4, 2, 0, 0, + 3, 1, 1, 2, + 3, 0, 2, 5, + 3, 1, 2, 200]; + suspendSeq = [3, 0, 2, 10]; + resumeSeq = [3, 1, 2, 10]; + powerOffSeq = [3, 0, 2, 10, + 1, 0, 2, 20]; + } + } + chip4 :: touchChip { + match_attr = "novatek_nt36xxx_nvt"; + chipName = "nt36xxx"; + vendorName = "novatek"; + chipInfo = "NT36xxx"; + busType = 1; + irqFlag = 1; // Rising + wordMode = 8; + commMode = 3; + transferMode = 3; + maxSpeed = 8000000; + csSetupTime = 25; + csHoldTime = 25; + csRecoveryTime = 2; + + //deviceAddr = 0x38; + + powerSequence { + /* [type, status, dir , delay] + 0:none 1:vcc-1.8v 2:vci-3.3v 3:reset 4:int + 0:off or low 1:on or high 2:no ops + 0:input 1:output 2:no ops + meanings delay xms, 20: delay 20ms + */ + powerOnSeq = [3, 0, 1, 10, + 3, 1, 1, 1000]; + suspendSeq = [3, 0, 2, 10]; + resumeSeq = [3, 0, 1, 1000, + 3, 1, 1, 20]; + powerOffSeq = [3, 0, 2, 10, + 1, 0, 2, 20]; + } + } + } + } + } + + keyConfig { + keyList = ["power", "VolUp", "VolDown", "Up", "Down", "Left", "Right"]; + keyInfoList { + key1 { + match_attr = "key_device0"; + /* 0:touch 1:key 2:keyboard 3:mouse 4:button 5:crown 6:encoder */ + inputType = 1; + keyName = "power"; + gpioNum = 1; + irqFlag = 3; + debounceTime = 80; + } + + key2 { + keyName = "volUp"; + gpioNum = 31; + irqFlag = 1; + debounceTime = 80; + } + + key3 { + keyName = "volDown"; + gpioNum = 32; + irqFlag = 1; + debounceTime = 80; + } + } + } + infraredConfig { + infrared1 { + match_attr = "Infrared_device0"; + infraredName = "raspberryInfrared"; + inputType = 1; + gpioNum = 29; + irqFlag = 1; + } + } + } +} diff --git a/oriole/hdf_config/khdf/lcd/lcd_config.hcs b/oriole/hdf_config/khdf/lcd/lcd_config.hcs new file mode 100644 index 0000000..dd1ea37 --- /dev/null +++ b/oriole/hdf_config/khdf/lcd/lcd_config.hcs @@ -0,0 +1,13 @@ +root { + backlightConfig { + pwmBacklightConfig { + match_attr = "pwm_bl_dev"; + pwmDevNum = 1; + pwmMaxPeriod = 25000; + backlightDevName = "hdf_pwm"; + minBrightness = 0; + defBrightness = 127; + maxBrightness = 255; + } + } +} \ No newline at end of file diff --git a/oriole/hdf_config/khdf/light/light_config.hcs b/oriole/hdf_config/khdf/light/light_config.hcs new file mode 100644 index 0000000..1f74409 --- /dev/null +++ b/oriole/hdf_config/khdf/light/light_config.hcs @@ -0,0 +1,25 @@ +root { + lightConfig { + boardConfig { + match_attr = "hdf_light_driver"; + lightAttr { + light01 { + lightId = [1]; /* Lightid can contain multiple logical light ID, for example: + 1 indicates the power indicator. These logic lights work on + the same physical light light01. */ + lightName = "battery"; + lightNumber = 1; + busRNum = 147; // Red corresponding GPIO. + busGNum = 146; // Green corresponding GPIO. + busBNum = 149; // Blue corresponding GPIO. + defaultBrightness = 0X00FFFFFF; /* System default brightness value. + B: 0-7bit, R: 8-15bit, G: 16-23, extended bit: 24-31bit. */ + onTime = 50; /* The minimum duration (in milliseconds) that the system supports + when the light is on during flashing */ + offTime = 50; /* The minimum duration (in milliseconds) that the system supports + when the light is off during flashing */ + } + } + } + } +} \ No newline at end of file diff --git a/oriole/hdf_config/khdf/platform/emmc_config.hcs b/oriole/hdf_config/khdf/platform/emmc_config.hcs new file mode 100644 index 0000000..3351c0c --- /dev/null +++ b/oriole/hdf_config/khdf/platform/emmc_config.hcs @@ -0,0 +1,16 @@ +root { + platform { + emmc_config { + template emmc_controller { + match_attr = ""; + hostId = 0; + devType = 0; + } + + controller_0x00 :: emmc_controller { + match_attr = "hisilicon_hi35xx_emmc_0"; + } + } + } +} + diff --git a/oriole/hdf_config/khdf/platform/i2c_config.hcs b/oriole/hdf_config/khdf/platform/i2c_config.hcs new file mode 100644 index 0000000..7bc3d00 --- /dev/null +++ b/oriole/hdf_config/khdf/platform/i2c_config.hcs @@ -0,0 +1,36 @@ +root { + platform { + i2c_config { + match_attr = "linux_i2c_adapter"; + + template i2c_controller { + bus = 0; + } + + controller_0x120b0000 :: i2c_controller { + bus = 0; + } + controller_0x120b1000 :: i2c_controller { + bus = 1; + } + controller_0x120b2000 :: i2c_controller { + bus = 2; + } + controller_0x120b3000 :: i2c_controller { + bus = 3; + } + controller_0x120b4000 :: i2c_controller { + bus = 4; + } + controller_0x120b5000 :: i2c_controller { + bus = 5; + } + controller_0x120b6000 :: i2c_controller { + bus = 6; + } + controller_0x120b7000 :: i2c_controller { + bus = 7; + } + } + } +} diff --git a/oriole/hdf_config/khdf/platform/pwm_config.hcs b/oriole/hdf_config/khdf/platform/pwm_config.hcs new file mode 100644 index 0000000..ac7cba0 --- /dev/null +++ b/oriole/hdf_config/khdf/platform/pwm_config.hcs @@ -0,0 +1,37 @@ +root { + platform { + pwm_config { + template pwm_device { + serviceName = ""; + match_attr = ""; + num = 0; + } + + device_pwm_0x00000000 :: pwm_device { + num = 0; + match_attr = "linux_pwm_adapter_0"; + } + + device_pwm_0x00000001 :: pwm_device { + num = 1; + match_attr = "linux_pwm_adapter_1"; + } + + device_pwm_0x00000002 :: pwm_device { + num = 2; + match_attr = "linux_pwm_adapter_2"; + } + + device_pwm_0x00000003 :: pwm_device { + num = 3; + match_attr = "linux_pwm_adapter_3"; + } + + device_pwm_0x00000004 :: pwm_device { + num = 4; + match_attr = "linux_pwm_adapter_4"; + } + } + } +} + diff --git a/oriole/hdf_config/khdf/platform/sdio_config.hcs b/oriole/hdf_config/khdf/platform/sdio_config.hcs new file mode 100644 index 0000000..5e1018f --- /dev/null +++ b/oriole/hdf_config/khdf/platform/sdio_config.hcs @@ -0,0 +1,15 @@ +root { + platform { + sdio_config { + template sdio_controller { + match_attr = ""; + hostId = 2; + devType = 2; + } + controller_0x2dd1 :: sdio_controller { + match_attr = "hisilicon_hi35xx_sdio_0"; + } + } + } +} + diff --git a/oriole/hdf_config/khdf/platform/uis7885_spi_config.hcs b/oriole/hdf_config/khdf/platform/uis7885_spi_config.hcs new file mode 100644 index 0000000..a7f4089 --- /dev/null +++ b/oriole/hdf_config/khdf/platform/uis7885_spi_config.hcs @@ -0,0 +1,41 @@ +root { + platform { + spi_config { + template spi_controller { + serviceName = ""; + match_attr = ""; + busNum = 0; + numCs = 0; + } + + controller_0xfe610000 :: spi_controller { + busNum = 0; + numCs = 1; + match_attr = "rockchip_uis7885_spi_0"; + } + + controller_0xfe620000 :: spi_controller { + match_attr = "rockchip_uis7885_spi_1"; + busNum = 1; + numCs = 1; + mode = 0; + bitsPerWord = 8; + speed = 8000000; + isSlave = 0; + } + + controller_0xfe630000 :: spi_controller { + match_attr = "rockchip_uis7885_spi_2"; + busNum = 2; + numCs = 1; + } + controller_0xfe640000 :: spi_controller { + match_attr = "rockchip_uis7885_spi_3"; + busNum = 3; + numCs = 1; + } + } + } +} + + diff --git a/oriole/hdf_config/khdf/platform/uis7885_uart_config.hcs b/oriole/hdf_config/khdf/platform/uis7885_uart_config.hcs new file mode 100644 index 0000000..d350127 --- /dev/null +++ b/oriole/hdf_config/khdf/platform/uis7885_uart_config.hcs @@ -0,0 +1,20 @@ +root { + platform { + uart_config { + template uart_device { + serviceName = ""; + match_attr = ""; + driver_name = "ttyS"; + num = 0; + } + + device_uart_0x0000 :: uart_device { + match_attr = "rockchip_uis7885_uart_0"; + } + device_uart_0x0001 :: uart_device { + num = 1; + match_attr = "rockchip_uis7885_uart_1"; + } + } + } +} diff --git a/oriole/hdf_config/khdf/platform/uis7885_watchdog_config.hcs b/oriole/hdf_config/khdf/platform/uis7885_watchdog_config.hcs new file mode 100644 index 0000000..506e579 --- /dev/null +++ b/oriole/hdf_config/khdf/platform/uis7885_watchdog_config.hcs @@ -0,0 +1,16 @@ +root { + platform { + watchdog_config { + template watchdog_device { + serviceName = "HDF_PLATFORM_WATCHDOG_0"; + match_attr = ""; + id = 0; + } + + device_0x12050000 :: watchdog_device { + id = 0; + match_attr = "rockchip_uis7885_watchdog_0"; + } + } + } +} \ No newline at end of file diff --git a/oriole/hdf_config/khdf/sensor/accel/bmi160_config.hcs b/oriole/hdf_config/khdf/sensor/accel/bmi160_config.hcs new file mode 100644 index 0000000..62ca0c5 --- /dev/null +++ b/oriole/hdf_config/khdf/sensor/accel/bmi160_config.hcs @@ -0,0 +1,50 @@ +#include "../sensor_common.hcs" +root { + accel_bmi160_chip_config : sensorConfig { + match_attr = "hdf_sensor_accel_driver"; + sensorInfo :: sensorDeviceInfo { + sensorName = "accelerometer"; + vendorName = "borsh_bmi160"; // max string length is 16 bytes + sensorTypeId = 1; // enum SensorTypeTag + sensorId = 1; // user define sensor id + power = 230; + } + sensorBusConfig :: sensorBusInfo { + busType = 0; // 0:i2c 1:spi + busNum = 6; + busAddr = 0x68; + regWidth = 1; // 1byte + } + sensorIdAttr :: sensorIdInfo { + chipName = "bmi160"; + chipIdRegister = 0x00; + chipIdValue = 0xd1; + } + sensorRegConfig { + /* regAddr: register address + value: config register value + len: size of value + mask: mask of value + delay: config register delay time (ms) + opsType: enum SensorOpsType 0-none 1-read 2-write 3-read_check 4-update_bit + calType: enum SensorBitCalType 0-none 1-set 2-revert 3-xor 4-left shift 5-right shift + shiftNum: shift bits + debug: 0-no debug 1-debug + save: 0-no save 1-save + */ + /* regAddr, value, mask, len, delay, opsType, calType, shiftNum, debug, save */ + initSeqConfig = [ + 0x7e, 0xb6, 0xff, 1, 5, 2, 0, 0, 0, 0, + 0x7e, 0x10, 0xff, 1, 5, 2, 0, 0, 0, 0 + ]; + enableSeqConfig = [ + 0x7e, 0x11, 0xff, 1, 5, 2, 0, 0, 0, 0, + 0x41, 0x03, 0xff, 1, 0, 2, 0, 0, 0, 0, + 0x40, 0x08, 0xff, 1, 0, 2, 0, 0, 0, 0 + ]; + disableSeqConfig = [ + 0x7e, 0x10, 0xff, 1, 5, 2, 0, 0, 0, 0 + ]; + } + } +} \ No newline at end of file diff --git a/oriole/hdf_config/khdf/sensor/accel/mxc6655xa_config.hcs b/oriole/hdf_config/khdf/sensor/accel/mxc6655xa_config.hcs new file mode 100644 index 0000000..7497fe8 --- /dev/null +++ b/oriole/hdf_config/khdf/sensor/accel/mxc6655xa_config.hcs @@ -0,0 +1,69 @@ +#include "../sensor_common.hcs" +root { + accel_mxc6655xa_chip_config : sensorConfig { + match_attr = "hdf_sensor_accel_mxc6655xa_driver"; + sensorInfo :: sensorDeviceInfo { + sensorName = "accelerometer"; + vendorName = "memsi_mxc6655xa"; // max string length is 16 bytes + sensorTypeId = 1; // enum SensorTypeTag + sensorId = 1; // user define sensor id + power = 230; + minDelay = 5000000; // nanosecond + maxDelay = 200000000; // nanosecond + } + sensorBusConfig :: sensorBusInfo { + busType = 0; // 0:i2c 1:spi + busNum = 5; + busAddr = 0x15; + regWidth = 1; // 1byte + } + sensorIdAttr :: sensorIdInfo { + chipName = "mxc6655xa"; + chipIdRegister = 0x0f; + chipIdValue = 0x05; + } + sensorDirection { + direction = 1; // chip direction range of value:0-7 + /* 1:negative 0:positive + 0:AXIS_X 1:AXIS_Y 2:AXIS_Z + */ + /* sign[AXIS_X], sign[AXIS_Y], sign[AXIS_Z], map[AXIS_X], map[AXIS_Y], map[AXIS_Z] */ + convert = [ + 0, 0, 0, 0, 1, 2, + 1, 0, 0, 1, 0, 2, + 0, 0, 1, 0, 1, 2, + 0, 1, 0, 1, 0, 2, + 1, 0, 1, 0, 1, 2, + 0, 0, 1, 1, 0, 2, + 0, 1, 1, 0, 1, 2, + 1, 1, 1, 1, 0, 2 + ]; + } + sensorRegConfig { + /* regAddr: register address + value: config register value + len: size of value + mask: mask of value + delay: config register delay time (ms) + opsType: enum SensorOpsType 0-none 1-read 2-write 3-read_check 4-update_bit + calType: enum SensorBitCalType 0-none 1-set 2-revert 3-xor 4-left shift 5-right shift + shiftNum: shift bits + debug: 0-no debug 1-debug + save: 0-no save 1-save + */ + /* regAddr, value, mask, len, delay, opsType, calType, shiftNum, debug, save */ + initSeqConfig = [ + 0x7e, 0xb6, 0xff, 1, 5, 2, 0, 0, 0, 0, + 0x7e, 0x10, 0xff, 1, 5, 2, 0, 0, 0, 0 + ]; + enableSeqConfig = [ + 0x7e, 0x11, 0xff, 1, 5, 2, 0, 0, 0, 0, + 0x41, 0x03, 0xff, 1, 0, 2, 0, 0, 0, 0, + 0x40, 0x08, 0xff, 1, 0, 2, 0, 0, 0, 0 + ]; + disableSeqConfig = [ + 0x7e, 0x10, 0xff, 1, 5, 2, 0, 0, 0, 0 + ]; + } + } +} diff --git a/oriole/hdf_config/khdf/sensor/accel/sc7a20e_config.hcs b/oriole/hdf_config/khdf/sensor/accel/sc7a20e_config.hcs new file mode 100755 index 0000000..8d28d5a --- /dev/null +++ b/oriole/hdf_config/khdf/sensor/accel/sc7a20e_config.hcs @@ -0,0 +1,71 @@ +#include "../sensor_common.hcs" +root { + accel_sc7a20e_chip_config : sensorConfig { + match_attr = "hdf_sensor_accel_sc7a20e_driver"; + sensorInfo :: sensorDeviceInfo { + sensorName = "accelerometer"; + vendorName = "silan"; // max string length is 16 bytes + sensorTypeId = 1; // enum SensorTypeTag + sensorId = 1; // user define sensor id + power = 170; + minDelay = 5000000; // nanosecond + maxDelay = 320000000; // nanosecond + } + sensorBusConfig :: sensorBusInfo { + busType = 0; // 0:i2c 1:spi + busNum = 8; + busAddr = 0x18; + regWidth = 1; // 1byte + } + sensorIdAttr :: sensorIdInfo { + chipName = "lsm6dsl"; + chipIdRegister = 0x0f; + chipIdValue = 0x11; + } + + sensorDirection { + direction = 1; // chip direction range of value:0-7 + /* 1:negative 0:positive + 0:AXIS_X 1:AXIS_Y 2:AXIS_Z + */ + /* sign[AXIS_X], sign[AXIS_Y], sign[AXIS_Z], map[AXIS_X], map[AXIS_Y], map[AXIS_Z] */ + convert = [ + 0, 0, 0, 0, 1, 2, + 1, 0, 0, 1, 0, 2, + 0, 0, 1, 0, 1, 2, + 0, 1, 0, 1, 0, 2, + 1, 0, 1, 0, 1, 2, + 0, 0, 1, 1, 0, 2, + 0, 1, 1, 0, 1, 2, + 1, 1, 1, 1, 0, 2 + ]; + } + + sensorRegConfig { + /* regAddr: register address + value: config register value + len: size of value + mask: mask of value + delay: config register delay time (ms) + opsType: enum SensorOpsType 0-none 1-read 2-write 3-read_check 4-update_bit + calType: enum SensorBitCalType 0-none 1-set 2-revert 3-xor 4-left shift 5-right shift + shiftNum: shift bits + debug: 0-no debug 1-debug + save: 0-no save 1-save + */ + /* regAddr, value, mask, len, delay, opsType, calType, shiftNum, debug, save */ + initSeqConfig = [ + 0x20, 0x07, 0xff, 1, 5, 2, 0, 0, 0, 0, + 0x21, 0x00, 0xff, 1, 5, 2, 0, 0, 0, 0, + 0x22, 0x00, 0xff, 1, 5, 2, 0, 0, 0, 0, + 0x23, 0x80, 0xff, 1, 5, 2, 0, 0, 0, 0 + ]; + enableSeqConfig = [ + 0x20, 0x57, 0xff, 1, 5, 2, 0, 0, 0, 0 + ]; + disableSeqConfig = [ + 0x20, 0x00, 0xff, 1, 5, 2, 0, 0, 0, 0 + ]; + } + } +} diff --git a/oriole/hdf_config/khdf/sensor/als/bh1745_config.hcs b/oriole/hdf_config/khdf/sensor/als/bh1745_config.hcs new file mode 100644 index 0000000..dab1a75 --- /dev/null +++ b/oriole/hdf_config/khdf/sensor/als/bh1745_config.hcs @@ -0,0 +1,69 @@ +#include "../sensor_common.hcs" +root { + als_bh1745_chip_config : sensorConfig { + match_attr = "hdf_sensor_als_bh1745_driver"; + sensorInfo :: sensorDeviceInfo { + sensorName = "als"; + vendorName = "rohm_bh1745"; // max string length is 16 bytes + sensorTypeId = 5; // enum SensorTypeTag + sensorId = 5; // user define sensor id + power = 230; + } + sensorBusConfig :: sensorBusInfo { + busType = 0; // 0:i2c 1:spi + busNum = 3; + busAddr = 0x38; + regWidth = 1; // 1byte + } + sensorIdAttr :: sensorIdInfo { + chipName = "bh1745"; + chipIdRegister = 0x92; + chipIdValue = 0xE0; + } + sensorRegConfig { + /* regAddr: register address + value: config register value + len: size of value + mask: mask of value + delay: config register delay time (ms) + opsType: enum SensorOpsType 0-none 1-read 2-write 3-read_check 4-update_bit + calType: enum SensorBitCalType 0-none 1-set 2-revert 3-xor 4-left shift 5-right shift + shiftNum: shift bits + debug: 0-no debug 1-debug + save: 0-no save 1-save + */ + /* regAddr, value, mask, len, delay, opsType, calType, shiftNum, debug, save */ + initSeqConfig = [ + 0x40, 0xc0, 0xff, 1, 5, 2, 0, 0, 0, 0, + 0x42, 0x90, 0xff, 1, 5, 2, 0, 0, 0, 0, + 0x44, 0x02, 0xff, 1, 5, 2, 0, 0, 0, 0, + 0x41, 0x01, 0xff, 1, 5, 2, 0, 0, 0, 0 + ]; + enableSeqConfig = [ + 0x42, 0x10, 0x10, 1, 5, 4, 0, 0, 0, 0, + 0x44, 0x02, 0xff, 1, 5, 2, 0, 0, 0, 0, + 0x42, 0x02, 0x03, 1, 5, 4, 1, 0, 0, 0 //16X + ]; + disableSeqConfig = [ + 0x42, 0x00, 0x10, 1, 5, 4, 0, 0, 0, 0 + ]; + } + + extendAlsRegConfig { + /* regAddr, value, mask, len, delay, opsType, calType, shiftNum, debug, save */ + time = [ + 0x41, 0x00, 0x07, 1, 5, 0, 1, 0, 0, 0, //160msec + 0x41, 0x01, 0x07, 1, 5, 0, 1, 0, 0, 0, //320msec + 0x41, 0x02, 0x07, 1, 5, 0, 1, 0, 0, 0, //640msec + 0x41, 0x03, 0x07, 1, 5, 0, 1, 0, 0, 0, //1280msec + 0x41, 0x04, 0x07, 1, 5, 0, 1, 0, 0, 0, //2560msec + 0x41, 0x05, 0x07, 1, 5, 0, 1, 0, 0, 0, //5120msec + ]; + gain = [ + 0x42, 0x00, 0x03, 1, 5, 0, 1, 0, 0, 0, //1X + 0x42, 0x01, 0x03, 1, 5, 0, 1, 0, 0, 0, //2X + 0x42, 0x02, 0x03, 1, 5, 0, 1, 0, 0, 0 //16X + ]; + } + } +} diff --git a/oriole/hdf_config/khdf/sensor/magnetic/magnetic_lsm303_config.hcs b/oriole/hdf_config/khdf/sensor/magnetic/magnetic_lsm303_config.hcs new file mode 100644 index 0000000..074d717 --- /dev/null +++ b/oriole/hdf_config/khdf/sensor/magnetic/magnetic_lsm303_config.hcs @@ -0,0 +1,66 @@ +#include "../sensor_common.hcs" +root { + magnetic_lsm303_chip_config : sensorConfig { + match_attr = "hdf_sensor_magnetic_lsm303_driver"; + sensorInfo :: sensorDeviceInfo { + sensorName = "magnetometer"; + vendorName = "st_lsm303"; // max string length is 16 bytes + sensorTypeId = 6; // enum SensorTypeTag + sensorId = 6; // user define sensor id + power = 110; + } + sensorBusConfig :: sensorBusInfo { + busType = 0; // 0:i2c 1:spi + busNum = 3; + busAddr = 0x1e; + regWidth = 1; // 1byte + } + sensorIdAttr :: sensorIdInfo { + chipName = "lsm303"; + chipIdRegister = 0x0a; + chipIdValue = 0x48; + } + sensorDirection { + direction = 0; // chip direction range of value:0-7 + /* 1:negative 0:positive + 0:AXIS_X 1:AXIS_Y 2:AXIS_Z + */ + /* sign[AXIS_X], sign[AXIS_Y], sign[AXIS_Z], map[AXIS_X], map[AXIS_Y], map[AXIS_Z] */ + convert = [ + 0, 0, 0, 0, 1, 2, + 1, 0, 0, 1, 0, 2, + 0, 0, 1, 0, 1, 2, + 0, 1, 0, 1, 0, 2, + 1, 0, 1, 0, 1, 2, + 0, 0, 1, 1, 0, 2, + 0, 1, 1, 0, 1, 2, + 1, 1, 1, 1, 0, 2 + ]; + } + sensorRegConfig { + /* regAddr: register address + value: config register value + len: size of value + mask: mask of value + delay: config register delay time (ms) + opsType: enum SensorOpsType 0-none 1-read 2-write 3-read_check 4-update_bit + calType: enum SensorBitCalType 0-none 1-set 2-revert 3-xor 4-left shift 5-right shift + shiftNum: shift bits + debug: 0-no debug 1-debug + save: 0-no save 1-save + */ + /* regAddr, value, mask, len, delay, opsType, calType, shiftNum, debug, save */ + initSeqConfig = [ + 0x00, 0x14, 0xff, 1, 5, 2, 0, 0, 0, 0, + 0x01, 0xa0, 0xff, 1, 5, 2, 0, 0, 0, 0, + 0x02, 0x00, 0xff, 1, 5, 2, 0, 0, 0, 0 + ]; + enableSeqConfig = [ + 0x02, 0x00, 0xff, 1, 5, 2, 0, 0, 0, 0 + ]; + disableSeqConfig = [ + 0x02, 0x03, 0xff, 1, 5, 2, 0, 0, 0, 0 + ]; + } + } +} \ No newline at end of file diff --git a/oriole/hdf_config/khdf/sensor/proximity/proximity_apds9960_config.hcs b/oriole/hdf_config/khdf/sensor/proximity/proximity_apds9960_config.hcs new file mode 100644 index 0000000..fb4cfc8 --- /dev/null +++ b/oriole/hdf_config/khdf/sensor/proximity/proximity_apds9960_config.hcs @@ -0,0 +1,48 @@ +#include "../sensor_common.hcs" +root { + proximity_apds9960_chip_config : sensorConfig { + match_attr = "hdf_sensor_proximity_adps9960_driver"; + sensorInfo :: sensorDeviceInfo { + sensorName = "proximity"; + vendorName = "adps9960"; // max string length is 16 bytes + sensorTypeId = 12; // enum SensorTypeTag + sensorId = 12; // user define sensor id + power = 230; + } + sensorBusConfig :: sensorBusInfo { + busType = 0; // 0:i2c 1:spi + busNum = 3; + busAddr = 0x39; + regWidth = 1; // 1byte + } + sensorIdAttr :: sensorIdInfo { + chipName = "adps9960"; + chipIdRegister = 0x92; + chipIdValue = 0xAB; + } + sensorRegConfig { + /* regAddr: register address + value: config register value + len: size of value + mask: mask of value + delay: config register delay time (ms) + opsType: enum SensorOpsType 0-none 1-read 2-write 3-read_check 4-update_bit + calType: enum SensorBitCalType 0-none 1-set 2-revert 3-xor 4-left shift 5-right shift + shiftNum: shift bits + debug: 0-no debug 1-debug + save: 0-no save 1-save + */ + /* regAddr, value, mask, len, delay, opsType, calType, shiftNum, debug, save */ + initSeqConfig = [ + 0x80, 0x05, 0xff, 1, 5, 2, 0, 0, 0, 0, + 0x8f, 0x00, 0xff, 1, 5, 2, 0, 0, 0, 0 + ]; + enableSeqConfig = [ + 0x80, 0x05, 0xff, 1, 5, 2, 0, 0, 0, 0 + ]; + disableSeqConfig = [ + 0x80, 0x00, 0xff, 1, 5, 2, 0, 0, 0, 0 + ]; + } + } +} \ No newline at end of file diff --git a/oriole/hdf_config/khdf/sensor/sensor_common.hcs b/oriole/hdf_config/khdf/sensor/sensor_common.hcs new file mode 100644 index 0000000..e93a111 --- /dev/null +++ b/oriole/hdf_config/khdf/sensor/sensor_common.hcs @@ -0,0 +1,32 @@ +// sensor common config template +root { + sensorConfig { + template sensorDeviceInfo { + sensorName = "sensor"; // max string length is 16 bytes + vendorName = "vendorXXX_XXX"; // max string length is 16 bytes + firmwareVersion = "1.0"; + hardwareVersion = "1.0"; + sensorTypeId = 0; // enum SensorTypeTag + sensorId = 0; // user define sensor id, defaultenum SensorTypeTag + maxRange = 8; + accuracy = 0; + power = 0; + minDelay = 0; // nanosecond + maxDelay = 0; // nanosecond + } + + template sensorBusInfo { + busType = 0; // 0:i2c 1:spi + busNum = 6; + busAddr = 0; + regWidth = 1; + regBigEndian = 0; + } + + template sensorIdInfo { + chipName = ""; + chipIdRegister = 0xf; + chipIdValue = 0xd1; + } + } +} diff --git a/oriole/hdf_config/khdf/sensor/sensor_config.hcs b/oriole/hdf_config/khdf/sensor/sensor_config.hcs new file mode 100644 index 0000000..d27c7f7 --- /dev/null +++ b/oriole/hdf_config/khdf/sensor/sensor_config.hcs @@ -0,0 +1,6 @@ +#include "accel/bmi160_config.hcs" +#include "accel/mxc6655xa_config.hcs" +#include "accel/sc7a20e_config.hcs" +#include "als/bh1745_config.hcs" +#include "proximity/proximity_apds9960_config.hcs" +#include "magnetic/magnetic_lsm303_config.hcs" diff --git a/oriole/hdf_config/khdf/vibrator/drv2605l_linear_vibrator_config.hcs b/oriole/hdf_config/khdf/vibrator/drv2605l_linear_vibrator_config.hcs new file mode 100644 index 0000000..ccacd03 --- /dev/null +++ b/oriole/hdf_config/khdf/vibrator/drv2605l_linear_vibrator_config.hcs @@ -0,0 +1,27 @@ +root { + drv2605lConfig { + match_attr = "hdf_drv2605l_linear_vibrator_driver"; + VibratorBusConfig { + busType = 0; // 0:i2c 1:gpio + busNum = 3; + busAddr = 0x5a; + regWidth = 1; // 1 byte + } + VibratorAttr { + chipIdRegister = 0X00; + chipIdValue = 0XE0; + defaultIntensity = 0XAB; + defaultFrequency = 0X33; + } + VibratorChipConfig { + isSupportIntensity = 1; /* setting intensity capability. 1 indicates support, + 0 indicates not support. */ + isSupportFrequency = 1; /* setting frequency capability. 1 indicates support, + 0 indicates not support. */ + intensityMaxValue = 100; // Max intensity + intensityMinValue = 0; // Min intensity + frequencyMaxValue = 500; // Max frequency + frequencyMinValue = 0; // Min frequency + } + } +} \ No newline at end of file diff --git a/oriole/hdf_config/khdf/vibrator/linear_vibrator_config.hcs b/oriole/hdf_config/khdf/vibrator/linear_vibrator_config.hcs new file mode 100644 index 0000000..7662a72 --- /dev/null +++ b/oriole/hdf_config/khdf/vibrator/linear_vibrator_config.hcs @@ -0,0 +1,21 @@ +root { + linearVibratorConfig { + boardConfig { + match_attr = "hdf_linear_vibrator_driver"; + VibratorBusConfig { + busType = 1; // 0:i2c 1:gpio + busNum = 154; + } + VibratorChipConfig { + isSupportIntensity = 0; /* setting intensity capability. 1 indicates support, + 0 indicates not support. */ + isSupportFrequency = 0; /* setting frequency capability. 1 indicates support, + 0 indicates not support. */ + intensityMaxValue = 0; // Max intensity + intensityMinValue = 0; // Min intensity + frequencyMaxValue = 0; // Max frequency + frequencyMinValue = 0; // Min frequency + } + } + } +} diff --git a/oriole/hdf_config/khdf/vibrator/vibrator_config.hcs b/oriole/hdf_config/khdf/vibrator/vibrator_config.hcs new file mode 100644 index 0000000..2f39ba2 --- /dev/null +++ b/oriole/hdf_config/khdf/vibrator/vibrator_config.hcs @@ -0,0 +1,24 @@ +root { + vibratorConfig { + boardConfig { + match_attr = "hdf_vibrator_driver"; + vibratorAttr { + /* 0:rotor 1:linear */ + deviceType = 1; + supportPreset = 1; + } + vibratorHapticConfig { + haptic_clock_timer { + effectName = "haptic.clock.timer"; + type = 1; // 0 means built-in, 1 time series + seq = [600, 600, 200, 600]; // time seq + } + haptic_default_effect { + effectName = "haptic.default.effect"; + type = 0; + seq = [0, 3, 800, 1]; + } + } + } + } +} diff --git a/oriole/hdf_config/khdf/wifi/wlan_chip_ap6275s.hcs b/oriole/hdf_config/khdf/wifi/wlan_chip_ap6275s.hcs new file mode 100644 index 0000000..8e825b7 --- /dev/null +++ b/oriole/hdf_config/khdf/wifi/wlan_chip_ap6275s.hcs @@ -0,0 +1,14 @@ +root { + wlan_config { + ap6275s :& chipList { + chipAp6275s :: chipInst { + match_attr = "hdf_wlan_chips_ap6275s"; + driverName = "ap6275s"; + bus { + vendorId = 0x0296; + deviceId = [0x5347]; + } + } + } + } +} diff --git a/oriole/hdf_config/khdf/wifi/wlan_chip_hi3881.hcs b/oriole/hdf_config/khdf/wifi/wlan_chip_hi3881.hcs new file mode 100644 index 0000000..5ee0005 --- /dev/null +++ b/oriole/hdf_config/khdf/wifi/wlan_chip_hi3881.hcs @@ -0,0 +1,14 @@ +root { + wlan_config { + hi3881 :& chipList { + chipHi3881 :: chipInst { + match_attr = "hdf_wlan_chips_hi3881"; + driverName = "hisi"; + bus { + vendorId = 0x0296; + deviceId = [0x5347]; + } + } + } + } +} \ No newline at end of file diff --git a/oriole/hdf_config/khdf/wifi/wlan_platform.hcs b/oriole/hdf_config/khdf/wifi/wlan_platform.hcs new file mode 100644 index 0000000..7d88358 --- /dev/null +++ b/oriole/hdf_config/khdf/wifi/wlan_platform.hcs @@ -0,0 +1,114 @@ +root { + module = "wlan"; + wlan_config { + match_attr = "hdf_wlan_driver"; + hostChipName = "uis7885"; + moduleConfig { + featureMap = 0xFFFF; + msgName = "WalService"; + Station { + name = "sta"; + mode = true; + } + + HostAp { + name = "ap"; + mode = 0; /* 0-- notsupported; 1--softap-host; 2--soft AP DMAC HOST; 3-IOT 1:DMAC OFFLOAD: IPC */ + vapResNum = 1; /*virtual ap*/ + userResNum = 8; /*max users support each ap*/ + } + + P2P { + name = "p2p"; + mode = false; + } + + Mac80211 { + mode = true; + } + + Phy { + mode = true; + } + } + deviceList { + template deviceInst { + deviceInstId = 0; + powers { + power0 { + powerSeqDelay = 0; + powerType = 1; /* AlwaysON(0);GPIO(1) */ + gpioId = 1; + activeLevel=1; /* High(1); Low(0) */ + } + power1 { + /* to support two-stage power supply */ + powerSeqDelay = 0; + powerType = 0; + gpioId = 1; + activeLevel=1; /* High(1); Low(0) */ + } + } + reset { + resetType = 1; /* NotManaged(0);GPIO(1) */ + gpioId = 2; + activeLevel = 1; /* High(1); Low(0) */ + resetHoldTime = 30; /*In ms*/ + } + bootUpTimeOut = 30; + bus { + busEnable = 0; /* 0-not enable; 1-enable */ + busType = 0; /* 0-sdio 1-usb 2-spi etc. */ + busIdx = 2; + funcNum = [1,2]; + timeout = 1000; + blockSize = 512; + } + } + } + bdh :& deviceList { + device0 :: deviceInst { + deviceInstId = 0; + powers { + power0 { + powerSeqDelay = 0; + powerType = 0; /* AlwaysON(0);GPIO(1) */ + gpioId = 91; + activeLevel=1; /* High(1); Low(0) */ + } + power1 { + powerSeqDelay = 0; + powerType = 0; + gpioId = 1; + activeLevel = 1; /* High(1); Low(0) */ + } + } + reset { + resetType = 0; /* NotManaged(0);GPIO(1) */ + gpioId = 90; + activeLevel = 0; /* High(1); Low(0) */ + resetHoldTime = 16; /*In ms*/ + } + bootUpTimeOut = 32; + bus { + busEnable = 0; /* 0-not enable; 1-enable */ + busType = 0; /* 0-sdio 1-usb 2-spi etc. */ + busIdx = 2; + funcNum = [1]; + timeout = 1000; + blockSize = 512; + } + } + } + chipList { + template chipInst { + match_attr = "hdf_wlan_chips_ap6275s"; + driverName = "ap6275s"; + bus { + vendorId = 0x0296; + deviceId = [0x5347]; + } + } + } + } +} diff --git a/oriole/hdf_config/uhdf/BUILD.gn b/oriole/hdf_config/uhdf/BUILD.gn new file mode 100755 index 0000000..be99969 --- /dev/null +++ b/oriole/hdf_config/uhdf/BUILD.gn @@ -0,0 +1,33 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# 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. + +import("//drivers/hdf_core/adapter/uhdf2/hcs/hcs.gni") + +hdf_hcb("hdf_default.hcb") { + source = "./hdf.hcs" + part_name = "product_oriole" + subsystem_name = "product_oriole" +} + +hdf_cfg("hdf_devhost.cfg") { + source = "./hdf.hcs" + part_name = "product_oriole" + subsystem_name = "product_oriole" +} + +group("hdf_config") { + deps = [ + ":hdf_default.hcb", + ":hdf_devhost.cfg", + ] +} \ No newline at end of file diff --git a/oriole/hdf_config/uhdf/camera/hdi_impl/camera_host_config.hcs b/oriole/hdf_config/uhdf/camera/hdi_impl/camera_host_config.hcs new file mode 100644 index 0000000..701f73b --- /dev/null +++ b/oriole/hdf_config/uhdf/camera/hdi_impl/camera_host_config.hcs @@ -0,0 +1,422 @@ +root { + module="sample"; + vdiLibList = [ + "libcamera_host_vdi_impl_1.0.z.so" + ]; + camera_host_config { + match_attr = "camera_host_interface"; + template ability { + logicCameraId = "lcam001"; + physicsCameraIds = [ + "CAMERA_FIRST", + "CAMERA_SECOND", + "CAMERA_THIRD" + ]; + metadata { + aeAvailableAntiBandingModes = [ + "OHOS_CONTROL_AE_ANTIBANDING_MODE_OFF", + "OHOS_CONTROL_AE_ANTIBANDING_MODE_50HZ", + "OHOS_CONTROL_AE_ANTIBANDING_MODE_60HZ", + "OHOS_CONTROL_AE_ANTIBANDING_MODE_AUTO" + ]; + aeAvailableModes = ["OHOS_CONTROL_AE_MODE_ON"]; + availableFpsRange = [15, 30]; + aeCompensationRange = [0, 0]; + aeCompensationSteps = [0, 1]; + availableAwbModes = [ + "OHOS_CONTROL_AWB_MODE_OFF" + ]; + sceneModesOverrides = [ + "OHOS_CONTROL_AE_MODE_ON", + "OHOS_CONTROL_AWB_MODE_AUTO" + ]; + aeLockAvailable = "OHOS_CONTROL_AE_LOCK_AVAILABLE_FALSE"; + awbLockAvailable = "OHOS_CONTROL_AWB_LOCK_AVAILABLE_FALSE"; + sensitivityRange = [32, 2400]; + exposureTimeRange = [100000, 200000000]; + faceDetectMode = "OHOS_STATISTICS_FACE_DETECT_MODE_OFF"; + maxFaceCount = 0; + flashAvailable = "OHOS_FLASH_INFO_AVAILABLE_FALSE"; + lensFacing = "OHOS_LENS_FACING_FRONT"; + opticalStabilizations = ["OHOS_LENS_OPTICAL_STABILIZATION_MODE_OFF"]; + maxDigitalZoom = "1"; + availableCharacteristicsKeys = [ + "OHOS_COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES", + "OHOS_CONTROL_AE_AVAILABLE_ANTIBANDING_MODES", + "OHOS_CONTROL_AE_AVAILABLE_MODES", + "OHOS_ABILITY_FPS_RANGES", + "OHOS_CONTROL_AE_COMPENSATION_RANGE", + "OHOS_CONTROL_AE_COMPENSATION_STEP", + "OHOS_CONTROL_AVAILABLE_EFFECTS", + "OHOS_CONTROL_AVAILABLE_SCENE_MODES", + "OHOS_CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES", + "OHOS_CONTROL_AWB_AVAILABLE_MODES", + "OHOS_CONTROL_MAX_REGIONS", + "OHOS_CONTROL_SCENE_MODE_OVERRIDES", + "OHOS_CONTROL_AE_LOCK_AVAILABLE", + "OHOS_CONTROL_AWB_LOCK_AVAILABLE", + "OHOS_CONTROL_AVAILABLE_MODES", + "OHOS_JPEG_AVAILABLE_THUMBNAIL_SIZES", + "OHOS_JPEG_MAX_SIZE", + "OHOS_SENSOR_INFO_PIXEL_ARRAY_SIZE", + "OHOS_SENSOR_INFO_ACTIVE_ARRAY_SIZE", + "OHOS_SENSOR_INFO_SENSITIVITY_RANGE", + "OHOS_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT", + "OHOS_SENSOR_INFO_EXPOSURE_TIME_RANGE", + "OHOS_SENSOR_ORIENTATION", + "OHOS_SENSOR_AVAILABLE_TEST_PATTERN_MODES", + "OHOS_SENSOR_INFO_PHYSICAL_SIZE", + "OHOS_SENSOR_INFO_TIMESTAMP_SOURCE", + "OHOS_STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES", + "OHOS_STATISTICS_INFO_MAX_FACE_COUNT", + "OHOS_SYNC_MAX_LATENCY", + "OHOS_FLASH_INFO_AVAILABLE", + "OHOS_LENS_INFO_AVAILABLE_APERTURES", + "OHOS_LENS_FACING", + "OHOS_LENS_INFO_AVAILABLE_FOCAL_LENGTHS", + "OHOS_LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION", + "OHOS_LENS_INFO_HYPERFOCAL_DISTANCE", + "OHOS_LENS_INFO_MINIMUM_FOCUS_DISTANCE", + "OHOS_NOISE_REDUCTION_AVAILABLE_NOISE_REDUCTION_MODES", + "OHOS_SCALER_AVAILABLE_MAX_DIGITAL_ZOOM", + "OHOS_SCALER_AVAILABLE_STREAM_CONFIGURATIONS", + "OHOS_SCALER_AVAILABLE_STALL_DURATIONS", + "OHOS_SCALER_AVAILABLE_MIN_FRAME_DURATIONS", + "OHOS_SCALER_CROPPING_TYPE", + "OHOS_INFO_SUPPORTED_HARDWARE_LEVEL", + "OHOS_REQUEST_PARTIAL_RESULT_COUNT", + "OHOS_REQUEST_PIPELINE_MAX_DEPTH", + "OHOS_REQUEST_MAX_NUM_OUTPUT_STREAMS", + "OHOS_REQUEST_MAX_NUM_INPUT_STREAMS", + "OHOS_REQUEST_AVAILABLE_CAPABILITIES" + ]; + availableRequestKeys = [ + "OHOS_CONTROL_AE_MODE", + "OHOS_CONTROL_AE_EXPOSURE_COMPENSATION", + "OHOS_CONTROL_AE_PRECAPTURE_TRIGGER", + "OHOS_CONTROL_AE_TARGET_FPS_RANGE", + "OHOS_CONTROL_AE_ANTIBANDING_MODE", + "OHOS_CONTROL_AWB_MODE", + "OHOS_CONTROL_AWB_LOCK", + "OHOS_FLASH_MODE", + "OHOS_STATISTICS_FACE_DETECT_MODE", + "OHOS_NOISE_REDUCTION_MODE", + "OHOS_COLOR_CORRECTION_ABERRATION_MODE", + "OHOS_LENS_APERTURE", + "OHOS_LENS_OPTICAL_STABILIZATION_MODE", + "OHOS_CONTROL_MODE", + "OHOS_CONTROL_CAPTURE_INTENT" + ]; + availableResultKeys = [ + "OHOS_CONTROL_AE_STATE", + "OHOS_CONTROL_AE_LOCK", + "OHOS_CONTROL_AWB_STATE", + "OHOS_CONTROL_AWB_LOCK", + "OHOS_LENS_STATE", + "OHOS_REQUEST_PIPELINE_DEPTH", + "OHOS_SCALER_CROP_REGION", + "OHOS_SENSOR_TIMESTAMP", + "OHOS_SENSOR_ROLLING_SHUTTER_SKEW", + "OHOS_SENSOR_EXPOSURE_TIME", + "OHOS_STATISTICS_LENS_SHADING_MAP_MODE", + "OHOS_STATISTICS_SCENE_FLICKER", + "OHOS_JPEG_SIZE", + "OHOS_JPEG_QUALITY", + "OHOS_JPEG_ORIENTATION" + ]; + } + } + ability_01 :: ability { + logicCameraId = "lcam001"; + physicsCameraIds = [ + "CAMERA_FIRST" + ]; + metadata { + aeAvailableAntiBandingModes = [ + "OHOS_CAMERA_AE_ANTIBANDING_MODE_OFF" + ]; + aeAvailableModes = ["OHOS_CAMERA_AE_MODE_OFF"]; + availableFpsRange = [5, 10]; + cameraPosition = "OHOS_CAMERA_POSITION_BACK"; + cameraType = "OHOS_CAMERA_TYPE_WIDE_ANGLE"; + cameraConnectionType ="OHOS_CAMERA_CONNECTION_TYPE_BUILTIN"; + cameraMemoryType ="OHOS_CAMERA_MEMORY_MMAP"; + faceDetectMaxNum = "10"; + aeCompensationRange = [0, 0]; + aeCompensationSteps = [0, 0]; + availableAwbModes = [ + "OHOS_CAMERA_AWB_MODE_OFF" + ]; + sensitivityRange = [32, 2400]; + faceDetectMode = "OHOS_CAMERA_FACE_DETECT_MODE_OFF"; + availableCharacteristicsKeys = [ + "OHOS_CONTROL_AE_AVAILABLE_ANTIBANDING_MODES", + "OHOS_CONTROL_AE_AVAILABLE_MODES", + "OHOS_ABILITY_FPS_RANGES", + "OHOS_CONTROL_AE_COMPENSATION_RANGE", + "OHOS_CONTROL_AE_COMPENSATION_STEP", + "OHOS_CONTROL_AWB_AVAILABLE_MODES", + "OHOS_JPEG_AVAILABLE_THUMBNAIL_SIZES", + "OHOS_JPEG_MAX_SIZE", + "OHOS_SENSOR_INFO_PIXEL_ARRAY_SIZE", + "OHOS_SENSOR_INFO_ACTIVE_ARRAY_SIZE", + "OHOS_SENSOR_INFO_SENSITIVITY_RANGE", + "OHOS_SENSOR_INFO_PHYSICAL_SIZE", + ]; + availableRequestKeys = [ + "OHOS_CONTROL_AE_MODE", + "OHOS_CONTROL_AE_EXPOSURE_COMPENSATION", + "OHOS_CONTROL_AE_TARGET_FPS_RANGE", + "OHOS_CONTROL_AE_ANTIBANDING_MODE", + "OHOS_CONTROL_AWB_MODE", + "OHOS_CONTROL_AWB_LOCK", + "OHOS_STATISTICS_FACE_DETECT_MODE" + ]; + availableResultKeys = [ + "OHOS_CONTROL_AE_LOCK", + "OHOS_CONTROL_AWB_LOCK", + "OHOS_SENSOR_EXPOSURE_TIME", + "OHOS_JPEG_SIZE", + "OHOS_JPEG_QUALITY", + "OHOS_JPEG_ORIENTATION" + ]; + focalLength = "24.0"; + focusAvailableModes = [ + "OHOS_CAMERA_FOCUS_MODE_MANUAL", + "OHOS_CAMERA_FOCUS_MODE_CONTINUOUS_AUTO", + "OHOS_CAMERA_FOCUS_MODE_AUTO", + "OHOS_CAMERA_FOCUS_MODE_LOCKED" + ]; + exposureAvailableModes = [ + "OHOS_CAMERA_EXPOSURE_MODE_MANUAL", + "OHOS_CAMERA_EXPOSURE_MODE_CONTINUOUS_AUTO", + "OHOS_CAMERA_EXPOSURE_MODE_LOCKED", + "OHOS_CAMERA_EXPOSURE_MODE_AUTO" + ]; + meterAvailableModes = [ + "OHOS_CAMERA_SPOT_METERING", + "OHOS_CAMERA_REGION_METERING", + "OHOS_CAMERA_OVERALL_METERING" + ]; + flashAvailableModes = [ + "OHOS_CAMERA_FLASH_MODE_CLOSE", + "OHOS_CAMERA_FLASH_MODE_OPEN", + "OHOS_CAMERA_FLASH_MODE_AUTO", + "OHOS_CAMERA_FLASH_MODE_ALWAYS_OPEN" + ]; + mirrorSupported = "OHOS_CAMERA_MIRROR_OFF"; + basicAvailableConfigurations = [3, 1280, 960, 4, 4096, 3072]; + extendAvailableConfigurations = [0, 0, 1, 640, 480, 0, -1, 1, 1, 640, 480, 30, -1, 2, 4, 1280, 960, 0, -1, -1]; + sensorOrientationSupported = "90"; + videoStabilizationAvailableModes = [ + "OHOS_CAMERA_VIDEO_STABILIZATION_OFF" + ]; + flashAvailable = "OHOS_CAMERA_FLASH_FALSE"; + afAvailable = [ + "OHOS_CAMERA_AF_MODE_OFF" + ]; + zoomRatioRange = [ + "1.0", + "1.0" + ]; + jpegOrientation= "270"; + jpegQuality= "2"; + } + } + ability_02 :: ability { + logicCameraId = "lcam002"; + physicsCameraIds = [ + "CAMERA_SECOND" + ]; + metadata { + aeAvailableAntiBandingModes = [ + "OHOS_CAMERA_AE_ANTIBANDING_MODE_OFF" + ]; + aeAvailableModes = ["OHOS_CAMERA_AE_MODE_OFF"]; + availableFpsRange = [5, 10]; + cameraPosition = "OHOS_CAMERA_POSITION_FRONT"; + cameraType = "OHOS_CAMERA_TYPE_WIDE_ANGLE"; + cameraConnectionType ="OHOS_CAMERA_CONNECTION_TYPE_BUILTIN"; + cameraMemoryType ="OHOS_CAMERA_MEMORY_MMAP"; + faceDetectMaxNum = "10"; + aeCompensationRange = [0, 0]; + aeCompensationSteps = [0, 0]; + availableAwbModes = [ + "OHOS_CAMERA_AWB_MODE_OFF" + ]; + sensitivityRange = [32, 2400]; + faceDetectMode = "OHOS_CAMERA_FACE_DETECT_MODE_OFF"; + availableCharacteristicsKeys = [ + "OHOS_CONTROL_AE_AVAILABLE_ANTIBANDING_MODES", + "OHOS_CONTROL_AE_AVAILABLE_MODES", + "OHOS_ABILITY_FPS_RANGES", + "OHOS_CONTROL_AE_COMPENSATION_RANGE", + "OHOS_CONTROL_AE_COMPENSATION_STEP", + "OHOS_CONTROL_AWB_AVAILABLE_MODES", + "OHOS_JPEG_AVAILABLE_THUMBNAIL_SIZES", + "OHOS_JPEG_MAX_SIZE", + "OHOS_SENSOR_INFO_PIXEL_ARRAY_SIZE", + "OHOS_SENSOR_INFO_ACTIVE_ARRAY_SIZE", + "OHOS_SENSOR_INFO_SENSITIVITY_RANGE", + "OHOS_SENSOR_INFO_PHYSICAL_SIZE", + ]; + availableRequestKeys = [ + "OHOS_CONTROL_AE_MODE", + "OHOS_CONTROL_AE_EXPOSURE_COMPENSATION", + "OHOS_CONTROL_AE_TARGET_FPS_RANGE", + "OHOS_CONTROL_AE_ANTIBANDING_MODE", + "OHOS_CONTROL_AWB_MODE", + "OHOS_CONTROL_AWB_LOCK", + "OHOS_STATISTICS_FACE_DETECT_MODE" + ]; + availableResultKeys = [ + "OHOS_CONTROL_AE_LOCK", + "OHOS_CONTROL_AWB_LOCK", + "OHOS_SENSOR_EXPOSURE_TIME", + "OHOS_JPEG_SIZE", + "OHOS_JPEG_QUALITY", + "OHOS_JPEG_ORIENTATION" + ]; + focalLength = "24.0"; + focusAvailableModes = [ + "OHOS_CAMERA_FOCUS_MODE_MANUAL", + "OHOS_CAMERA_FOCUS_MODE_CONTINUOUS_AUTO", + "OHOS_CAMERA_FOCUS_MODE_AUTO", + "OHOS_CAMERA_FOCUS_MODE_LOCKED" + ]; + exposureAvailableModes = [ + "OHOS_CAMERA_EXPOSURE_MODE_MANUAL", + "OHOS_CAMERA_EXPOSURE_MODE_CONTINUOUS_AUTO", + "OHOS_CAMERA_EXPOSURE_MODE_LOCKED", + "OHOS_CAMERA_EXPOSURE_MODE_AUTO" + ]; + meterAvailableModes = [ + "OHOS_CAMERA_SPOT_METERING", + "OHOS_CAMERA_REGION_METERING", + "OHOS_CAMERA_OVERALL_METERING" + ]; + flashAvailableModes = [ + "OHOS_CAMERA_FLASH_MODE_CLOSE", + "OHOS_CAMERA_FLASH_MODE_OPEN", + "OHOS_CAMERA_FLASH_MODE_AUTO", + "OHOS_CAMERA_FLASH_MODE_ALWAYS_OPEN" + ]; + mirrorSupported = "OHOS_CAMERA_MIRROR_OFF"; + basicAvailableConfigurations = [3, 1280, 960, 4, 2592, 1944]; + extendAvailableConfigurations = [0, 0, 1, 640, 480, 0, -1, 1, 1, 640, 480, 30, -1, 2, 4, 1280, 960, 0, -1, -1]; + sensorOrientationSupported = "90"; + videoStabilizationAvailableModes = [ + "OHOS_CAMERA_VIDEO_STABILIZATION_OFF" + ]; + flashAvailable = "OHOS_CAMERA_FLASH_FALSE"; + afAvailable = [ + "OHOS_CAMERA_AF_MODE_OFF" + ]; + zoomRatioRange = [ + "1.0", + "1.0" + ]; + jpegOrientation= "270"; + jpegQuality= "2"; + } + } + ability_03 :: ability { + logicCameraId = "lcam003"; + physicsCameraIds = [ + "CAMERA_THIRD" + ]; + metadata { + aeAvailableAntiBandingModes = [ + "OHOS_CAMERA_AE_ANTIBANDING_MODE_OFF" + ]; + aeAvailableModes = ["OHOS_CAMERA_AE_MODE_OFF"]; + availableFpsRange = [5, 10]; + cameraPosition = "OHOS_CAMERA_POSITION_OTHER"; + cameraType = "OHOS_CAMERA_TYPE_WIDE_ANGLE"; + cameraConnectionType ="OHOS_CAMERA_CONNECTION_TYPE_BUILTIN"; + cameraMemoryType ="OHOS_CAMERA_MEMORY_MMAP"; + faceDetectMaxNum = "10"; + aeCompensationRange = [0, 0]; + aeCompensationSteps = [0, 0]; + availableAwbModes = [ + "OHOS_CAMERA_AWB_MODE_OFF" + ]; + sensitivityRange = [32, 2400]; + faceDetectMode = "OHOS_CAMERA_FACE_DETECT_MODE_OFF"; + availableCharacteristicsKeys = [ + "OHOS_CONTROL_AE_AVAILABLE_ANTIBANDING_MODES", + "OHOS_CONTROL_AE_AVAILABLE_MODES", + "OHOS_ABILITY_FPS_RANGES", + "OHOS_CONTROL_AE_COMPENSATION_RANGE", + "OHOS_CONTROL_AE_COMPENSATION_STEP", + "OHOS_CONTROL_AWB_AVAILABLE_MODES", + "OHOS_JPEG_AVAILABLE_THUMBNAIL_SIZES", + "OHOS_JPEG_MAX_SIZE", + "OHOS_SENSOR_INFO_PIXEL_ARRAY_SIZE", + "OHOS_SENSOR_INFO_ACTIVE_ARRAY_SIZE", + "OHOS_SENSOR_INFO_SENSITIVITY_RANGE", + "OHOS_SENSOR_INFO_PHYSICAL_SIZE", + ]; + availableRequestKeys = [ + "OHOS_CONTROL_AE_MODE", + "OHOS_CONTROL_AE_EXPOSURE_COMPENSATION", + "OHOS_CONTROL_AE_TARGET_FPS_RANGE", + "OHOS_CONTROL_AE_ANTIBANDING_MODE", + "OHOS_CONTROL_AWB_MODE", + "OHOS_CONTROL_AWB_LOCK", + "OHOS_STATISTICS_FACE_DETECT_MODE" + ]; + availableResultKeys = [ + "OHOS_CONTROL_AE_LOCK", + "OHOS_CONTROL_AWB_LOCK", + "OHOS_SENSOR_EXPOSURE_TIME", + "OHOS_JPEG_SIZE", + "OHOS_JPEG_QUALITY", + "OHOS_JPEG_ORIENTATION" + ]; + focalLength = "24.0"; + focusAvailableModes = [ + "OHOS_CAMERA_FOCUS_MODE_MANUAL", + "OHOS_CAMERA_FOCUS_MODE_CONTINUOUS_AUTO", + "OHOS_CAMERA_FOCUS_MODE_AUTO", + "OHOS_CAMERA_FOCUS_MODE_LOCKED" + ]; + exposureAvailableModes = [ + "OHOS_CAMERA_EXPOSURE_MODE_MANUAL", + "OHOS_CAMERA_EXPOSURE_MODE_CONTINUOUS_AUTO", + "OHOS_CAMERA_EXPOSURE_MODE_LOCKED", + "OHOS_CAMERA_EXPOSURE_MODE_AUTO" + ]; + meterAvailableModes = [ + "OHOS_CAMERA_SPOT_METERING", + "OHOS_CAMERA_REGION_METERING", + "OHOS_CAMERA_OVERALL_METERING" + ]; + flashAvailableModes = [ + "OHOS_CAMERA_FLASH_MODE_CLOSE", + "OHOS_CAMERA_FLASH_MODE_OPEN", + "OHOS_CAMERA_FLASH_MODE_AUTO", + "OHOS_CAMERA_FLASH_MODE_ALWAYS_OPEN" + ]; + mirrorSupported = "OHOS_CAMERA_MIRROR_OFF"; + basicAvailableConfigurations = [3, 1280, 960, 4, 1600, 1200]; + extendAvailableConfigurations = [0, 0, 1, 640, 480, 0, -1, 1, 1, 640, 480, 30, -1, 2, 4, 1280, 960, 0, -1, -1]; + sensorOrientationSupported = "90"; + videoStabilizationAvailableModes = [ + "OHOS_CAMERA_VIDEO_STABILIZATION_OFF" + ]; + flashAvailable = "OHOS_CAMERA_FLASH_FALSE"; + afAvailable = [ + "OHOS_CAMERA_AF_MODE_OFF" + ]; + zoomRatioRange = [ + "1.0", + "1.0" + ]; + jpegOrientation= "270"; + jpegQuality= "2"; + } + } + } +} + diff --git a/oriole/hdf_config/uhdf/camera/pipeline_core/config.hcs b/oriole/hdf_config/uhdf/camera/pipeline_core/config.hcs new file mode 100644 index 0000000..f887ba5 --- /dev/null +++ b/oriole/hdf_config/uhdf/camera/pipeline_core/config.hcs @@ -0,0 +1,1154 @@ +root { + module = "pipeline_specs"; + template pipeline_spec { + name = ""; + template node_spec { + name = ""; + status = ""; + stream_type = ""; + template port_spec { + name = ""; + peer_port_name = ""; + peer_port_node_name = ""; + direction = 0; + width = 0; + height = 0; + format = 0; + usage = 0x10000000000000; + need_allocation = 0; + buffer_count = 0; + } + } + } + normal_preview :: pipeline_spec { + name = "normal_preview"; + v4l2_source :: node_spec { + name = "v4l2_source#0"; + status = "new"; + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "Codec#0"; + direction = 1; + width = 0; + height = 0; + format = 0; + } + } + Codec_1 :: node_spec { + name = "Codec#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "v4l2_source#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#0"; + direction = 1; + } + } + sink :: node_spec { + name = "sink#0"; + status = "new"; + stream_type = "preview"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Codec#0"; + direction = 0; + } + } + } + normal_preview_preview :: pipeline_spec { + name = "normal_preview_preview"; + v4l2_source :: node_spec { + name = "v4l2_source#0"; + status = "new"; + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "fork#0"; + direction = 1; + width = 0; + height = 0; + format = 0; + } + } + fork :: node_spec { + name = "fork#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "v4l2_source#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "Codec#0"; + direction = 1; + } + out_port_1 :: port_spec { + name = "out1"; + peer_port_name = "in0"; + peer_port_node_name = "sink#1"; + direction = 1; + } + } + Codec :: node_spec { + name = "Codec#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "fork#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#0"; + direction = 1; + } + } + sink_1 :: node_spec { + name = "sink#0"; + status = "new"; + stream_type = "preview"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Codec#0"; + direction = 0; + } + } + sink_2 :: node_spec { + name = "sink#1"; + status = "new"; + stream_type = "preview"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out1"; + peer_port_node_name = "fork#0"; + direction = 0; + } + } + } + normal_preview_preview_snapshot :: pipeline_spec { + name = "normal_preview_preview_snapshot"; + v4l2_source :: node_spec { + name = "v4l2_source#0"; + status = "new"; + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "fork#0"; + direction = 1; + width = 0; + height = 0; + format = 0; + } + } + fork_1 :: node_spec { + name = "fork#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "v4l2_source#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "fork#1"; + direction = 1; + } + out_port_1 :: port_spec { + name = "out1"; + peer_port_name = "in0"; + peer_port_node_name = "ipp#0"; + direction = 1; + } + } + fork_2 :: node_spec { + name = "fork#1"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "fork#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "Codec#0"; + direction = 1; + } + out_port_1 :: port_spec { + name = "out1"; + peer_port_name = "in0"; + peer_port_node_name = "sink#1"; + direction = 1; + } + } + ipp :: node_spec { + name = "ipp#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out1"; + peer_port_node_name = "fork#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "Codec#1"; + direction = 1; + } + } + Codec_1 :: node_spec { + name = "Codec#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "fork#1"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#0"; + direction = 1; + } + } + Codec_2 :: node_spec { + name = "Codec#1"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "ou0"; + peer_port_node_name = "ipp#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "Exif#0"; + direction = 1; + } + } + Exif :: node_spec { + name = "Exif#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Codec#1"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#2"; + direction = 1; + } + } + sink_1 :: node_spec { + name = "sink#0"; + status = "new"; + stream_type = "preview"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Codec#0"; + direction = 0; + } + } + sink_2 :: node_spec { + name = "sink#1"; + status = "new"; + stream_type = "preview"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out1"; + peer_port_node_name = "fork#1"; + direction = 0; + } + } + sink_3 :: node_spec { + name = "sink#2"; + status = "new"; + stream_type = "snapshot"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Exif#0"; + direction = 0; + } + } + } + normal_preview_preview_video :: pipeline_spec { + name = "normal_preview_preview_video"; + v4l2_source :: node_spec { + name = "v4l2_source#0"; + status = "new"; + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "fork#0"; + direction = 1; + width = 0; + height = 0; + format = 0; + } + } + fork_1 :: node_spec { + name = "fork#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "v4l2_source#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "fork#1"; + direction = 1; + } + out_port_1 :: port_spec { + name = "out1"; + peer_port_name = "in0"; + peer_port_node_name = "Codec#1"; + direction = 1; + } + } + fork_2 :: node_spec { + name = "fork#1"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "fork#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "Codec#0"; + direction = 1; + } + out_port_1 :: port_spec { + name = "out1"; + peer_port_name = "in0"; + peer_port_node_name = "sink#1"; + direction = 1; + } + } + Codec_1 :: node_spec { + name = "Codec#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "fork#1"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#0"; + direction = 1; + } + } + Codec_2 :: node_spec { + name = "Codec#1"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out1"; + peer_port_node_name = "fork#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#2"; + direction = 1; + } + } + sink_1 :: node_spec { + name = "sink#0"; + status = "new"; + stream_type = "preview"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Codec#0"; + direction = 0; + } + } + sink_2 :: node_spec { + name = "sink#1"; + status = "new"; + stream_type = "preview"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out1"; + peer_port_node_name = "fork#1"; + direction = 0; + } + } + sink_3 :: node_spec { + name = "sink#2"; + status = "new"; + stream_type = "video"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Codec#1"; + direction = 0; + } + } + } + normal_preview_analyze :: pipeline_spec { + name = "normal_preview_analyze"; + v4l2_source :: node_spec { + name = "v4l2_source#0"; + status = "new"; + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "fork#0"; + direction = 1; + width = 0; + height = 0; + format = 0; + } + } + fork :: node_spec { + name = "fork#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "v4l2_source#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "Codec#0"; + direction = 1; + } + out_port_1 :: port_spec { + name = "out1"; + peer_port_name = "in0"; + peer_port_node_name = "Face#0"; + direction = 1; + } + } + Codec_1 :: node_spec { + name = "Codec#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "fork#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#0"; + direction = 1; + } + } + Face :: node_spec { + name = "Face#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out1"; + peer_port_node_name = "fork#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#1"; + direction = 1; + } + } + sink_1 :: node_spec { + name = "sink#0"; + status = "new"; + stream_type = "preview"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Codec#0"; + direction = 0; + } + } + sink_2 :: node_spec { + name = "sink#1"; + status = "new"; + stream_type = "analyze"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Face#0"; + direction = 0; + } + } + } + normal_snapshot :: pipeline_spec { + name = "normal_snapshot"; + v4l2_source :: node_spec { + name = "v4l2_source#0"; + status = "new"; + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#0"; + direction = 1; + } + } + sink :: node_spec { + name = "sink#0"; + status = "new"; + stream_type = "snapshot"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "v4l2_source#0"; + direction = 0; + } + } + } + normal_preview_snapshot :: pipeline_spec { + name = "normal_preview_snapshot"; + v4l2_source :: node_spec { + name = "v4l2_source#0"; + status = "new"; + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "Codec#0"; + direction = 1; + } + out_port_1 :: port_spec { + name = "out1"; + peer_port_name = "in0"; + peer_port_node_name = "ipp#0"; + direction = 1; + } + } + ipp :: node_spec { + name = "ipp#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out1"; + peer_port_node_name = "v4l2_source#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "Codec#1"; + direction = 1; + } + } + Codec_1 :: node_spec { + name = "Codec#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "v4l2_source#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#0"; + direction = 1; + } + } + Codec_2 :: node_spec { + name = "Codec#1"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "ipp#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "Exif#0"; + direction = 1; + } + } + Exif_1 :: node_spec { + name = "Exif#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Codec#1"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#1"; + direction = 1; + } + } + sink_1 :: node_spec { + name = "sink#0"; + status = "new"; + stream_type = "preview"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Codec#0"; + direction = 0; + } + } + sink_2 :: node_spec { + name = "sink#1"; + status = "new"; + stream_type = "snapshot"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Exif#0"; + direction = 0; + } + } + } + normal_preview_snapshot_analyze :: pipeline_spec { + name = "normal_preview_snapshot_analyze"; + v4l2_source :: node_spec { + name = "v4l2_source#0"; + status = "new"; + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "fork#0"; + direction = 1; + } + } + fork_1 :: node_spec { + name = "fork#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "v4l2_source#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "fork#1"; + direction = 1; + } + out_port_1 :: port_spec { + name = "out1"; + peer_port_name = "in0"; + peer_port_node_name = "ipp#0"; + direction = 1; + } + } + fork_2 :: node_spec { + name = "fork#1"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "fork#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "Codec#0"; + direction = 1; + } + out_port_1 :: port_spec { + name = "out1"; + peer_port_name = "in0"; + peer_port_node_name = "Face#0"; + direction = 1; + } + } + ipp :: node_spec { + name = "ipp#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out1"; + peer_port_node_name = "fork#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "Codec#1"; + direction = 1; + } + } + Codec_1 :: node_spec { + name = "Codec#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "fork#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#0"; + direction = 1; + } + } + Codec_2 :: node_spec { + name = "Codec#1"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "ipp#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "Exif#0"; + direction = 1; + } + } + Exif_1 :: node_spec { + name = "Exif#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Codec#1"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#1"; + direction = 1; + } + } + Face :: node_spec { + name = "Face#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out1"; + peer_port_node_name = "fork#1"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#2"; + direction = 1; + } + } + sink_1 :: node_spec { + name = "sink#0"; + status = "new"; + stream_type = "preview"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Codec#0"; + direction = 0; + } + } + sink_2 :: node_spec { + name = "sink#1"; + status = "new"; + stream_type = "snapshot"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Exif#0"; + direction = 0; + } + } + sink_3 :: node_spec { + name = "sink#2"; + status = "new"; + stream_type = "analyze"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Face#0"; + direction = 0; + } + } + } + normal_preview_video :: pipeline_spec { + name = "normal_preview_video"; + v4l2_source :: node_spec { + name = "v4l2_source#0"; + status = "new"; + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "fork#0"; + direction = 1; + } + } + fork :: node_spec { + name = "fork#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "v4l2_source#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "Codec#0"; + direction = 1; + } + out_port_1 :: port_spec { + name = "out1"; + peer_port_name = "in0"; + peer_port_node_name = "Codec#1"; + direction = 1; + } + } + Codec_1 :: node_spec { + name = "Codec#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "fork#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#0"; + direction = 1; + } + } + Codec_2 :: node_spec { + name = "Codec#1"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out1"; + peer_port_node_name = "fork#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#1"; + direction = 1; + } + } + sink_1 :: node_spec { + name = "sink#0"; + status = "new"; + stream_type = "preview"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Codec#0"; + direction = 0; + } + } + sink_2 :: node_spec { + name = "sink#1"; + status = "new"; + stream_type = "video"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Codec#1"; + direction = 0; + } + } + } + normal_preview_video_snapshot :: pipeline_spec { + name = "normal_preview_video_snapshot"; + v4l2_source :: node_spec { + name = "v4l2_source#0"; + status = "new"; + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "fork#0"; + direction = 1; + width = 0; + height = 0; + format = 0; + } + } + fork_1 :: node_spec { + name = "fork#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "v4l2_source#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "fork#1"; + direction = 1; + } + out_port_1 :: port_spec { + name = "out1"; + peer_port_name = "in0"; + peer_port_node_name = "Codec#2"; + direction = 1; + } + } + fork_2 :: node_spec { + name = "fork#1"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "fork#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "Codec#0"; + direction = 1; + } + out_port_1 :: port_spec { + name = "out1"; + peer_port_name = "in0"; + peer_port_node_name = "ipp#0"; + direction = 1; + } + } + ipp :: node_spec { + name = "ipp#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out1"; + peer_port_node_name = "fork#1"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "Codec#1"; + direction = 1; + } + } + Codec_1 :: node_spec { + name = "Codec#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "fork#1"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#0"; + direction = 1; + } + } + Codec_2 :: node_spec { + name = "Codec#1"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "ipp#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "Exif#0"; + direction = 1; + } + } + Codec_3 :: node_spec { + name = "Codec#2"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out1"; + peer_port_node_name = "fork#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#2"; + direction = 1; + } + } + Exif :: node_spec { + name = "Exif#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Codec#1"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#1"; + direction = 1; + } + } + sink_1 :: node_spec { + name = "sink#0"; + status = "new"; + stream_type = "preview"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Codec#0"; + direction = 0; + } + } + sink_2 :: node_spec { + name = "sink#1"; + status = "new"; + stream_type = "snapshot"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Exif#0"; + direction = 0; + } + } + sink_3 :: node_spec { + name = "sink#2"; + status = "new"; + stream_type = "video"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "Codec#2"; + direction = 0; + } + } + } + dual_privew :: pipeline_spec { + name = "dual_preview"; + uvc :: node_spec { + name = "uvc#0"; + status = "new"; + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in1"; + peer_port_node_name = "merge#0"; + direction = 1; + width = 0; + height = 0; + format = 0; + need_allocation = 1; + buffer_count = 8; + } + } + v4l2_source :: node_spec { + name = "v4l2_source#0"; + status = "new"; + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "merge#0"; + direction = 1; + } + } + merge :: node_spec { + name = "merge#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "v4l2_source#0"; + direction = 0; + } + in_port_1 :: port_spec { + name = "in1"; + peer_port_name = "out0"; + peer_port_node_name = "uvc#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "ipp#0"; + direction = 1; + } + } + ipp :: node_spec { + name = "ipp#0"; + status = "new"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "merge#0"; + direction = 0; + } + out_port_0 :: port_spec { + name = "out0"; + peer_port_name = "in0"; + peer_port_node_name = "sink#0"; + direction = 1; + } + } + sink :: node_spec { + name = "sink#0"; + status = "new"; + stream_type = "preview"; + in_port_0 :: port_spec { + name = "in0"; + peer_port_name = "out0"; + peer_port_node_name = "ipp#0"; + direction = 0; + } + } + } +} diff --git a/oriole/hdf_config/uhdf/camera/pipeline_core/ipp_algo_config.hcs b/oriole/hdf_config/uhdf/camera/pipeline_core/ipp_algo_config.hcs new file mode 100644 index 0000000..bb076a6 --- /dev/null +++ b/oriole/hdf_config/uhdf/camera/pipeline_core/ipp_algo_config.hcs @@ -0,0 +1,11 @@ +root { + module="sample"; + ipp_algo_config { + algo1 { + name = "example"; + description = "example algorithm"; + path = "libcamera_ipp_algo_example.z.so"; + mode = "IPP_ALGO_MODE_NORMAL"; + } + } +} diff --git a/oriole/hdf_config/uhdf/camera/pipeline_core/params.hcs b/oriole/hdf_config/uhdf/camera/pipeline_core/params.hcs new file mode 100644 index 0000000..09c4a93 --- /dev/null +++ b/oriole/hdf_config/uhdf/camera/pipeline_core/params.hcs @@ -0,0 +1,35 @@ + root { + module = ""; + template stream_info { + id = 0; + name = ""; + } + template scene_info { + id = 0; + name = ""; + } + preview :: stream_info { + id = 0; + name = "preview"; + } + video :: stream_info { + id = 1; + name = "video"; + } + snapshot :: stream_info { + id = 2; + name = "snapshot"; + } + analyze :: stream_info { + id = 4; + name = "analyze"; + } + normal :: scene_info { + id = 0; + name = "normal"; + } + dual :: scene_info { + id = 1; + name = "dual"; + } +} diff --git a/oriole/hdf_config/uhdf/device_info.hcs b/oriole/hdf_config/uhdf/device_info.hcs new file mode 100644 index 0000000..b9973bf --- /dev/null +++ b/oriole/hdf_config/uhdf/device_info.hcs @@ -0,0 +1,558 @@ + root { + device_info { + match_attr = "hdf_manager"; + template host { + hostName = ""; + priority = 100; + uid = ""; + gid = [""]; + caps = [""]; + critical = []; + template device { + template deviceNode { + policy = 0; + priority = 100; + preload = 0; + permission = 0664; + moduleName = ""; + serviceName = ""; + deviceMatchAttr = ""; + } + } + } + platform :: host { + hostName = "sample_host"; + priority = 50; + gid = ["sample_host", "uhdf_driver"]; + sample_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + preload = 2; + moduleName = "libsample_driver.z.so"; + serviceName = "sample_driver_service"; + } + } + sample1_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + preload = 2; + moduleName = "libsample1_driver.z.so"; + serviceName = "sample1_driver_service"; + } + } + } + bluetooth :: host { + hostName = "blue_host"; + priority = 50; + caps = ["NET_ADMIN"]; + bluetooth_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libbluetooth_hci_hdi_driver.z.so"; + serviceName = "hci_interface_service"; + } + } + } + audio_bluetooth :: host { + hostName = "a2dp_host"; + priority = 50; + bluetooth_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + preload = 2; + moduleName = "libaudio_bluetooth_hdi_adapter_server.z.so"; + serviceName = "audio_bluetooth_hdi_service"; + } + } + } + usb :: host { + hostName = "usb_host"; + priority = 50; + caps = ["DAC_OVERRIDE"]; + usb_pnp_manager_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 70; + moduleName = "libusb_pnp_manager.z.so"; + serviceName = "usb_pnp_manager"; + } + } + usbfn_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 80; + moduleName = "libusbfn_master.z.so"; + serviceName = "usbfn_master"; + deviceMatchAttr = "usbfn_master_driver"; + } + } + ecm_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 81; + moduleName = "libusbfn_cdcecm.z.so"; + serviceName = "usbfn_cdcecm"; + deviceMatchAttr = "usbfn_cdcecm_driver"; + } + } + acm_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libusbfn_cdcacm.z.so"; + serviceName = "usbfn_cdcacm"; + deviceMatchAttr = "usbfn_cdcacm_driver"; + } + } + usb_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libusb_driver.z.so"; + serviceName = "usb_interface_service"; + } + } + ddk_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libusb_ddk_driver.z.so"; + serviceName = "usb_ddk_service"; + } + } + } + power :: host { + hostName = "power_host"; + priority = 50; + uid = "power_host"; + gid = ["power_host", "system", "log"]; + caps = ["BLOCK_SUSPEND"]; + power_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libpower_driver.z.so"; + serviceName = "power_interface_service"; + } + } + battery_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libbattery_driver.z.so"; + serviceName = "battery_interface_service"; + } + } + thermal_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libthermal_driver.z.so"; + serviceName = "thermal_interface_service"; + } + } + } + wlan :: host { + hostName = "wifi_host"; + priority = 50; + gid = ["wifi_host", "wifi_group"]; + wifi_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libwifi_hdi_c_device.z.so"; + serviceName = "wlan_interface_service"; + } + } + } + audio :: host { + hostName = "audio_host"; + priority = 50; + gid = ["audio_host", "uhdf_driver", "root", "audio"]; + audio_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libhdi_audio_primary_server.z.so"; + serviceName = "audio_hdi_service"; + } + } + audio_usb_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libhdi_audio_usb_server.z.so"; + serviceName = "audio_hdi_usb_service"; + } + } + audio_a2dp_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libhdi_audio_a2dp_server.z.so"; + serviceName = "audio_hdi_a2dp_service"; + } + } + audio_pnp_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 110; + moduleName = "libhdi_audio_pnp_server.z.so"; + serviceName = "audio_hdi_pnp_service"; + } + } + idl_audio_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libaudio_primary_driver.z.so"; + serviceName = "audio_manager_service"; + } + } + effect_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libeffect_model_service.z.so"; + serviceName = "effect_model_service"; + } + } + trigger_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libintell_voice_trigger_driver.z.so"; + serviceName = "intell_voice_trigger_manager_service"; + } + } + } + hdi_server :: host { + hostName = "camera_host"; + priority = 50; + gid = ["camera_host", "uhdf_driver", "vendor_mpp_driver"]; + camera_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libcamera_host_service_1.0.z.so"; + serviceName = "camera_service"; + } + } + display_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 120; + moduleName = "libhdi_media_layer_service.z.so"; + serviceName = "hdi_media_layer_service"; + } + } + } + input_hal :: host { + hostName = "input_user_host"; + priority = 50; + gid = ["input_user_host", "uhdf_driver"]; + input_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 150; + moduleName = "libhdf_input_hotplug.z.so"; + serviceName = "input_service"; + } + } + input_hdi_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libinput_driver.z.so"; + serviceName = "input_interfaces_service"; + } + } + } + + display_composer :: host { + hostName = "composer_host"; + priority = 40; + processPriority = -8; + threadPriority = 1; + caps = ["SYS_NICE"]; + uid = ["composer_host"]; + gid = ["composer_host", "graphics", "vendor_mpp_driver"]; + composer_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 160; + moduleName = "libdisplay_composer_driver_1.0.z.so"; + serviceName = "display_composer_service"; + } + } + } + allocator :: host { + hostName = "allocator_host"; + priority = 40; + allocator_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 160; + moduleName = "liballocator_driver_1.0.z.so"; + serviceName = "allocator_service"; + } + } + } + riladapter :: host { + hostName = "riladapter_host"; + priority = 50; + caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"]; + riladapter_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libril_driver.z.so"; + serviceName = "ril_service"; + } + } + } + sensor :: host { + hostName = "sensor_host"; + priority = 50; + gid = ["sensor_host", "uhdf_driver"]; + sensor_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libsensor_driver.z.so"; + serviceName = "sensor_interface_service"; + } + } + } + vibrator :: host { + hostName = "vibrator_host"; + priority = 50; + vibrator_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libvibrator_driver.z.so"; + serviceName = "vibrator_interface_service"; + } + } + } + light :: host { + hostName = "light_host"; + priority = 50; + light_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "liblight_driver.z.so"; + serviceName = "light_interface_service"; + } + } + } + + codec :: host { + hostName = "codec_host"; + priority = 50; + uid = "root"; + gid = ["root", "codec_host", "uhdf_driver", "vendor_mpp_driver"]; + codec_omx_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libcodec_hdi_omx_server.z.so"; + serviceName = "codec_hdi_omx_service"; + deviceMatchAttr = "codec_component_capabilities"; + } + } + codec_omx_idl_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libcodec_driver.z.so"; + serviceName = "codec_component_manager_service"; + deviceMatchAttr = "codec_component_capabilities"; + } + } + codec_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libcodec_server.z.so"; + serviceName = "codec_hdi_service"; + deviceMatchAttr = "media_codec_capabilities"; + } + } + } + + distributed_camera_host :: host { + hostName = "dcamera_host"; + priority = 50; + distributed_camera_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + preload = 2; + moduleName = "libdistributed_camera_host_config.z.so"; + serviceName = "distributed_camera_service"; + } + device1 :: deviceNode { + policy = 2; + priority = 100; + preload = 2; + moduleName = "libdistributed_camera_provider_config.z.so"; + serviceName = "distributed_camera_provider_service"; + } + } + } + + distributed_audio_host :: host { + hostName = "daudio_host"; + priority = 50; + distributed_audio_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + preload = 2; + moduleName = "libdaudio_primary_driver.z.so"; + serviceName = "daudio_primary_service"; + } + device1 :: deviceNode { + policy = 2; + priority = 100; + preload = 2; + moduleName = "libdaudio_ext_driver.z.so"; + serviceName = "daudio_ext_service"; + } + } + } + + face_auth :: host { + hostName = "face_auth_host"; + priority = 50; + uid = "useriam"; + gid = ["useriam"]; + face_auth_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 200; + moduleName = "libface_auth_driver.z.so"; + serviceName = "face_auth_interface_service"; + } + } + } + + pin_auth :: host { + hostName = "pin_auth_host"; + priority = 50; + uid = "pin_auth_host"; + gid = ["pin_auth_host"]; + pin_auth_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 200; + moduleName = "libpin_auth_driver.z.so"; + serviceName = "pin_auth_interface_service"; + } + } + } + + user_auth :: host { + hostName = "user_auth_host"; + priority = 50; + uid = "user_auth_host"; + gid = ["user_auth_host"]; + user_auth_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 200; + moduleName = "libuser_auth_driver.z.so"; + serviceName = "user_auth_interface_service"; + } + } + } + + fingerprint_auth :: host { + hostName = "fingerprint_auth_host"; + priority = 50; + uid = "useriam"; + gid = ["useriam"]; + fingerprint_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 200; + moduleName = "libfingerprint_auth_driver.z.so"; + serviceName = "fingerprint_auth_interface_service"; + } + } + } + + location :: host { + hostName = "location_host"; + priority = 50; + uid = "location_host"; + gid = ["location_host"]; + location_gnss_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + preload = 2; + moduleName = "liblocation_gnss_hdi_driver.z.so"; + serviceName = "gnss_interface_service"; + } + } + location_agnss_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + preload = 2; + moduleName = "liblocation_agnss_hdi_driver.z.so"; + serviceName = "agnss_interface_service"; + } + } + location_geofence_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + preload = 2; + moduleName = "liblocation_geofence_hdi_driver.z.so"; + serviceName = "geofence_interface_service"; + } + } + } + partitionslot :: host { + hostName = "partitionslot_host"; + priority = 100; + uid = "useriam"; + gid = ["useriam", "update"]; + caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"]; + partitionslot_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + preload = 2; + moduleName = "libpartitionslot_driver.z.so"; + serviceName = "partition_slot_service"; + } + } + } + + nnrt :: host { + hostName = "nnrt_host"; + priority = 50; + uid = ""; + gid = ""; + caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"]; + nnrt_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libnnrt_driver.z.so"; + serviceName = "nnrt_device_service"; + } + } + } + } +} diff --git a/oriole/hdf_config/uhdf/hdf.hcs b/oriole/hdf_config/uhdf/hdf.hcs new file mode 100644 index 0000000..89097af --- /dev/null +++ b/oriole/hdf_config/uhdf/hdf.hcs @@ -0,0 +1,9 @@ +#include "device_info.hcs" +#include "usb_pnp_device.hcs" +#include "usb_ecm_acm.hcs" +#include "media_codec/codec_component_capabilities.hcs" +#include "media_codec/media_codec_capabilities.hcs" + +root { + module = "default"; +} diff --git a/oriole/hdf_config/uhdf/media_codec/codec_adapter_capabilities.hcs b/oriole/hdf_config/uhdf/media_codec/codec_adapter_capabilities.hcs new file mode 100644 index 0000000..5196992 --- /dev/null +++ b/oriole/hdf_config/uhdf/media_codec/codec_adapter_capabilities.hcs @@ -0,0 +1,386 @@ +root { + module = "master"; + codec_adapter_config { + match_attr = "codec_adapter_capabilities"; + use_openmax = false; + // capsMask: 0x01, Adaptive playback; 0x02, Secure playback; 0x04, Tunnel playback. + // allocateMask: 0x01, Input buffer allocated within the Codec module; + // allocateMask: 0x02, Input buffer allocated by an external user; + // allocateMask: 0x04, Output buffer allocated within the Codec module; + // allocateMask: 0x08, Output buffer allocated by an external user. + + VideoHwEncoders { + /* node name explaination -- HDF_video_hw_enc_avc_rk: + ** + ** HDF____________video__________________hw____________________enc____________avc_______rk + ** | | | | | | + ** HDF or OMX video or audio hardware or software encoder or decoder mime vendor + */ + HDF_video_hw_enc_avc_rk { + role = 1; + type = 1; + name = "rk.video_encoder.avc"; + supportProfiles = [1, 32768, 2, 32768, 8, 32768]; + maxInst = 4; + isSoftwareCodec = false; + processModeMask = []; + capsMask = [0x01]; + minBitRate = 1; + maxBitRate = 40000000; + bufferSize = 40960; + minWidth = 176; + minHeight = 144; + maxWidth = 1920; + maxHeight = 1088; + widthAlignment = 16; + heightAlignment = 8; + allocateMask = [0x01, 0x04, 0x08]; + minInputBufferNum = 1; + maxInputBufferNum = 20; + minOutputBufferNum = 1; + maxOutputBufferNum = 40; + minBlockCount = 0xFFFFFFFF; + maxBlockCount = 0xFFFFFFFF; + minBlocksPerSecond = 0xFFFFFFFF; + maxBlocksPerSecond = 0xFFFFFFFF; + blockSizeWidth = 0xFFFFFFFF; + blockSizeHeight = 0xFFFFFFFF; + supportPixelFmts = [28, 24, 30, 22, 7, 3, 14, 13, 20, 26, 27, 12]; + measuredFrameRate = [320, 240, 165, 165, 720, 480, 149, 149, 1280, 720, 73, 73, 1920, 1080, 18, 18]; + bitRateMode = [1, 2]; + minFrameRate = 0; + maxFrameRate = 0; + inputBufferCount = 4; + inputBufferSize = 614400; + outputBufferCount = 4; + outputBufferSize = 40960; + } + } + VideoHwDecoders { + HDF_video_hw_dec_avc_rk { + role = 1; + type = 0; + name = "rk.video_decoder.avc"; + supportProfiles = [1, 32768, 2, 32768, 8, 32768]; + maxInst = 6; + isSoftwareCodec = false; + processModeMask = []; + capsMask = [0x01]; + minBitRate = 1; + maxBitRate = 10000000; + bufferSize = 40960; + minWidth = 176; + minHeight = 144; + maxWidth = 4096; + maxHeight = 2160; + widthAlignment = 8; + heightAlignment = 8; + allocateMask = [0x01, 0x04, 0x08]; + minInputBufferNum = 1; + maxInputBufferNum = 20; + minOutputBufferNum = 1; + maxOutputBufferNum = 40; + minBlockCount = 0xFFFFFFFF; + maxBlockCount = 0xFFFFFFFF; + minBlocksPerSecond = 1; + maxBlocksPerSecond = 244800; + blockSizeWidth = 16; + blockSizeHeight = 16; + supportPixelFmts = [24]; + measuredFrameRate = [320, 240, 617, 617, 720, 480, 559, 559, 1280, 720, 276, 276, 1920, 1080, 164, 164, 3840, 2160, 30, 30]; + bitRateMode = []; + minFrameRate = 0; + maxFrameRate = 0; + inputBufferCount = 4; + inputBufferSize = 409600; + outputBufferCount = 10; + outputBufferSize = 614400; + } + HDF_video_hw_dec_mpeg2_rk { + role = 0xFFFFFFFF; + type = 0; + name = "rk.video_decoder.m2v"; + supportProfiles = [0, 3, 1, 3]; + maxInst = 6; + isSoftwareCodec = false; + processModeMask = []; + capsMask = [0x01]; + minBitRate = 1; + maxBitRate = 10000000; + bufferSize = 40960; + minWidth = 176; + minHeight = 144; + maxWidth = 1920; + maxHeight = 1088; + widthAlignment = 8; + heightAlignment = 8; + allocateMask = [0x01, 0x04, 0x08]; + minInputBufferNum = 1; + maxInputBufferNum = 20; + minOutputBufferNum = 1; + maxOutputBufferNum = 40; + minBlockCount = 0xFFFFFFFF; + maxBlockCount = 0xFFFFFFFF; + minBlocksPerSecond = 1; + maxBlocksPerSecond = 244800; + blockSizeWidth = 16; + blockSizeHeight = 8; + supportPixelFmts = [24]; + measuredFrameRate = []; + bitRateMode = []; + minFrameRate = 0; + maxFrameRate = 0; + inputBufferCount = 4; + inputBufferSize = 4096; + outputBufferCount = 10; + outputBufferSize = 614400; + } + HDF_video_hw_dec_v8p_rk { + role = 0xFFFFFFFF; + type = 0; + name = "rk.video_decoder.vp8"; + supportProfiles = []; + maxInst = 6; + isSoftwareCodec = false; + processModeMask = []; + capsMask = [0x01]; + minBitRate = 1; + maxBitRate = 10000000; + bufferSize = 40960; + minWidth = 176; + minHeight = 144; + maxWidth = 1920; + maxHeight = 1088; + widthAlignment = 8; + heightAlignment = 8; + allocateMask = [0x01, 0x04, 0x08]; + minInputBufferNum = 1; + maxInputBufferNum = 20; + minOutputBufferNum = 1; + maxOutputBufferNum = 40; + minBlockCount = 0xFFFFFFFF; + maxBlockCount = 0xFFFFFFFF; + minBlocksPerSecond = 1; + maxBlocksPerSecond = 244800; + blockSizeWidth = 16; + blockSizeHeight = 16; + supportPixelFmts = [24]; + measuredFrameRate = [320, 180, 500, 500, 640, 360, 387, 387, 1280, 720, 112, 112, 1920, 1080, 77, 77]; + bitRateMode = []; + minFrameRate = 0; + maxFrameRate = 0; + inputBufferCount = 4; + inputBufferSize = 4096; + outputBufferCount = 10; + outputBufferSize = 614400; + } + HDF_video_hw_dec_h263_rk { + role = 0xFFFFFFFF; + type = 0; + name = "rk.video_decoder.h263"; + supportProfiles = [1, 1, 1, 2, 1, 4, 1, 16, 8, 1, 8, 2, 8, 4, 8, 16]; + maxInst = 6; + isSoftwareCodec = false; + processModeMask = []; + capsMask = [0x01]; + minBitRate = 1; + maxBitRate = 10000000; + bufferSize = 40960; + minWidth = 176; + minHeight = 144; + maxWidth = 1920; + maxHeight = 1088; + widthAlignment = 8; + heightAlignment = 8; + allocateMask = [0x01, 0x04, 0x08]; + minInputBufferNum = 1; + maxInputBufferNum = 20; + minOutputBufferNum = 1; + maxOutputBufferNum = 40; + minBlockCount = 0xFFFFFFFF; + maxBlockCount = 0xFFFFFFFF; + minBlocksPerSecond = 1; + maxBlocksPerSecond = 244800; + blockSizeWidth = 16; + blockSizeHeight = 16; + supportPixelFmts = [24]; + measuredFrameRate = [176, 144, 600, 600, 352, 288, 600, 600]; + bitRateMode = []; + minFrameRate = 0; + maxFrameRate = 0; + inputBufferCount = 4; + inputBufferSize = 4096; + outputBufferCount = 10; + outputBufferSize = 614400; + } + HDF_video_hw_dec_m4v_rk { + role = 0xFFFFFFFF; + type = 0; + name = "rk.video_decoder.m4v"; + supportProfiles = [1, 1, 1, 2, 1, 4, 1, 8, 1, 16]; + maxInst = 6; + isSoftwareCodec = false; + processModeMask = []; + capsMask = [0x01]; + minBitRate = 1; + maxBitRate = 10000000; + bufferSize = 40960; + minWidth = 176; + minHeight = 144; + maxWidth = 1920; + maxHeight = 1088; + widthAlignment = 8; + heightAlignment = 8; + allocateMask = [0x01, 0x04, 0x08]; + minInputBufferNum = 1; + maxInputBufferNum = 20; + minOutputBufferNum = 1; + maxOutputBufferNum = 40; + minBlockCount = 0xFFFFFFFF; + maxBlockCount = 0xFFFFFFFF; + minBlocksPerSecond = 1; + maxBlocksPerSecond = 244800; + blockSizeWidth = 16; + blockSizeHeight = 16; + supportPixelFmts = [24]; + measuredFrameRate = [176, 144, 600, 600]; + bitRateMode = []; + minFrameRate = 0; + maxFrameRate = 0; + inputBufferCount = 4; + inputBufferSize = 4096; + outputBufferCount = 10; + outputBufferSize = 614400; + } + HDF_video_hw_dec_flv_rk { + role = 0xFFFFFFFF; + type = 0; + name = "rk.video_decoder.flv1"; + supportProfiles = []; + maxInst = 6; + isSoftwareCodec = false; + processModeMask = []; + capsMask = [0x01]; + minBitRate = 1; + maxBitRate = 10000000; + bufferSize = 40960; + minWidth = 176; + minHeight = 144; + maxWidth = 1920; + maxHeight = 1088; + widthAlignment = 8; + heightAlignment = 8; + allocateMask = [0x01, 0x04, 0x08]; + minInputBufferNum = 1; + maxInputBufferNum = 20; + minOutputBufferNum = 1; + maxOutputBufferNum = 40; + minBlockCount = 0xFFFFFFFF; + maxBlockCount = 0xFFFFFFFF; + minBlocksPerSecond = 1; + maxBlocksPerSecond = 244800; + blockSizeWidth = 16; + blockSizeHeight = 16; + supportPixelFmts = [24]; + measuredFrameRate = []; + bitRateMode = []; + minFrameRate = 0; + maxFrameRate = 0; + inputBufferCount = 4; + inputBufferSize = 4096; + outputBufferCount = 10; + outputBufferSize = 614400; + } + HDF_video_hw_dec_mjpeg_rk { + role = 0; + type = 0; + name = "rk.video_decoder.mjpeg"; + supportProfiles = []; + maxInst = 6; + isSoftwareCodec = false; + processModeMask = []; + capsMask = [0x01]; + minBitRate = 1; + maxBitRate = 10000000; + bufferSize = 40960; + minWidth = 176; + minHeight = 144; + maxWidth = 1920; + maxHeight = 1088; + widthAlignment = 8; + heightAlignment = 8; + allocateMask = [0x01, 0x04, 0x08]; + minInputBufferNum = 1; + maxInputBufferNum = 20; + minOutputBufferNum = 1; + maxOutputBufferNum = 40; + minBlockCount = 0xFFFFFFFF; + maxBlockCount = 0xFFFFFFFF; + minBlocksPerSecond = 1; + maxBlocksPerSecond = 244800; + blockSizeWidth = 16; + blockSizeHeight = 16; + supportPixelFmts = [24]; + measuredFrameRate = []; + bitRateMode = []; + minFrameRate = 0; + maxFrameRate = 0; + inputBufferCount = 4; + inputBufferSize = 4096; + outputBufferCount = 10; + outputBufferSize = 614400; + } + HDF_video_hw_dec_hevc_rk { + role = 2; + type = 0; + name = "rk.video_decoder.hevc"; + supportProfiles = [1, 1, 1, 4, 1, 16, 1, 64, 1, 256, 1, 1024, 1, 4096, 1, 16384, 1, 65536, 2, 65536]; + maxInst = 6; + isSoftwareCodec = false; + processModeMask = []; + capsMask = [0x01]; + minBitRate = 1; + maxBitRate = 160000000; + bufferSize = 40960; + minWidth = 176; + minHeight = 144; + maxWidth = 1920; + maxHeight = 1088; + widthAlignment = 2; + heightAlignment = 2; + allocateMask = [0x01, 0x04, 0x08]; + minInputBufferNum = 1; + maxInputBufferNum = 20; + minOutputBufferNum = 1; + maxOutputBufferNum = 40; + minBlockCount = 0xFFFFFFFF; + maxBlockCount = 0xFFFFFFFF; + minBlocksPerSecond = 1; + maxBlocksPerSecond = 244800; + blockSizeWidth = 16; + blockSizeHeight = 16; + supportPixelFmts = [24]; + measuredFrameRate = [352, 288, 700, 700, 720, 480, 700, 700, 640, 360, 980, 980, 1280, 720, 600, 600, 1920, 1080, 130, 130, 3840, 2160, 130, 130]; + bitRateMode = []; + minFrameRate = 0; + maxFrameRate = 0; + inputBufferCount = 4; + inputBufferSize = 4096; + outputBufferCount = 10; + outputBufferSize = 614400; + } + } + VideoSwEncoders { + } + VideoSwDecoders { + } + AudioHwEncoders { + } + AudioHwDecoders { + } + AudioSwEncoders { + } + AudioSwDecoders { + } + } +} diff --git a/oriole/hdf_config/uhdf/media_codec/codec_component_capabilities.hcs b/oriole/hdf_config/uhdf/media_codec/codec_component_capabilities.hcs new file mode 100644 index 0000000..0de0866 --- /dev/null +++ b/oriole/hdf_config/uhdf/media_codec/codec_component_capabilities.hcs @@ -0,0 +1,64 @@ +root { + module = "master"; + codec_config { + match_attr = "codec_component_capabilities"; + use_openmax = true; + // capsMask: 0x01, Adaptive playback; 0x02, Secure playback; 0x04, Tunnel playback. + // allocateMask: 0x01, Input buffer allocated within the Codec module; + // allocateMask: 0x02, Input buffer allocated by an external user; + // allocateMask: 0x04, Output buffer allocated within the Codec module; + // allocateMask: 0x08, Output buffer allocated by an external user. + + VideoHwEncoders { + /* node name explanation -- HDF_video_hw_enc_avc_rk: + ** + ** HDF____________video__________________hw____________________enc____________avc_______rk + ** | | | | | | + ** HDF or OMX video or audio hardware or software encoder or decoder mime vendor + */ + } + VideoHwDecoders { + OMX_video_hw_dec_avc_sprd { + role = 1; + type = 0; + name = "OMX.sprd.h264.decoder"; + supportProfiles = [1, 32768, 2, 32768, 8, 32768]; + maxInst = 6; + isSoftwareCodec = false; + processModeMask = []; + capsMask = [0x01]; + minBitRate = 1; + maxBitRate = 10000000; + minWidth = 176; + minHeight = 144; + maxWidth = 4096; + maxHeight = 2160; + widthAlignment = 8; + heightAlignment = 8; + minBlockCount = 0xFFFFFFFF; + maxBlockCount = 0xFFFFFFFF; + minBlocksPerSecond = 1; + maxBlocksPerSecond = 244800; + blockSizeWidth = 16; + blockSizeHeight = 16; + supportPixelFmts = [24]; + measuredFrameRate = [320, 240, 617, 617, 720, 480, 559, 559, 1280, 720, 276, 276, 1920, 1080, 164, 164, 3840, 2160, 30, 30]; + bitRateMode = []; + minFrameRate = 0; + maxFrameRate = 0; + } + } + VideoSwEncoders { + } + VideoSwDecoders { + } + AudioHwEncoders { + } + AudioHwDecoders { + } + AudioSwEncoders { + } + AudioSwDecoders { + } + } +} diff --git a/oriole/hdf_config/uhdf/media_codec/media_codec_capabilities.hcs b/oriole/hdf_config/uhdf/media_codec/media_codec_capabilities.hcs new file mode 100644 index 0000000..f8ae80c --- /dev/null +++ b/oriole/hdf_config/uhdf/media_codec/media_codec_capabilities.hcs @@ -0,0 +1,260 @@ +root { + module = "master"; + codec_config_hdi_1_0 { + match_attr = "media_codec_capabilities"; + use_openmax = false; + // capsMask: 0x01, Adaptive playback; 0x02, Secure playback; 0x04, Tunnel playback. + // allocateMask: 0x01, Input buffer allocated within the Codec module; + // allocateMask: 0x02, Input buffer allocated by an external user; + // allocateMask: 0x04, Output buffer allocated within the Codec module; + // allocateMask: 0x08, Output buffer allocated by an external user. + + VideoHwEncoders { + /* node name explaination -- HDF_video_hw_enc_avc_rk: + ** + ** HDF____________video__________________hw____________________enc____________avc_______rk + ** | | | | | | + ** HDF or OMX video or audio hardware or software encoder or decoder mime vendor + */ + HDF_video_hw_enc_avc_rk { + mime = 1; + type = 1; + name = "codec.avc.hardware.encoder"; + supportProfiles = [1, 32768, 2, 32768, 8, 32768]; + isSoftwareCodec = false; + processModeMask = []; + capsMask = [0x01]; + allocateMask = [0x010, 0x020]; + minInputBufferNum = 4; + maxInputBufferNum = 20; + minOutputBufferNum = 4; + maxOutputBufferNum = 20; + minBitRate = 1; + maxBitRate = 40000000; + inputBufferSize = 20000000; + outputBufferSize = 20000000; + minWidth = 176; + minHeight = 144; + maxWidth = 1920; + maxHeight = 1088; + widthAlignment = 16; + heightAlignment = 8; + supportPixelFmts = [28, 24, 30, 22, 7, 3, 14, 13, 20, 26, 27, 12]; + } + } + VideoHwDecoders { + HDF_video_hw_dec_avc_rk { + mime = 1; + type = 0; + name = "codec.avc.hardware.decoder"; + supportProfiles = [1, 32768, 2, 32768, 8, 32768]; + isSoftwareCodec = false; + processModeMask = []; + capsMask = [0x01]; + allocateMask = [0x010, 0x020]; + minInputBufferNum = 4; + maxInputBufferNum = 20; + minOutputBufferNum = 4; + maxOutputBufferNum = 20; + minBitRate = 1; + maxBitRate = 10000000; + inputBufferSize = 20000000; + outputBufferSize = 20000000; + minWidth = 176; + minHeight = 144; + maxWidth = 4096; + maxHeight = 2160; + widthAlignment = 8; + heightAlignment = 8; + supportPixelFmts = [24]; + } + HDF_video_hw_dec_mpeg2_rk { + mime = 65531; + type = 0; + name = "HDF_video_hw_dec_mpeg2_rk"; + supportProfiles = [0, 3, 1, 3]; + isSoftwareCodec = false; + processModeMask = []; + capsMask = [0x01]; + allocateMask = [0x010, 0x020]; + minInputBufferNum = 4; + maxInputBufferNum = 20; + minOutputBufferNum = 4; + maxOutputBufferNum = 20; + minBitRate = 1; + maxBitRate = 10000000; + inputBufferSize = 20000000; + outputBufferSize = 20000000; + minWidth = 176; + minHeight = 144; + maxWidth = 1920; + maxHeight = 1088; + widthAlignment = 8; + heightAlignment = 8; + supportPixelFmts = [24]; + } + HDF_video_hw_dec_v8p_rk { + mime = 65532; + type = 0; + name = "HDF_video_hw_dec_v8p_rk"; + supportProfiles = []; + isSoftwareCodec = false; + processModeMask = []; + capsMask = [0x01]; + allocateMask = [0x010, 0x020]; + minInputBufferNum = 4; + maxInputBufferNum = 20; + minOutputBufferNum = 4; + maxOutputBufferNum = 20; + minBitRate = 1; + maxBitRate = 10000000; + inputBufferSize = 20000000; + outputBufferSize = 20000000; + minWidth = 176; + minHeight = 144; + maxWidth = 1920; + maxHeight = 1088; + widthAlignment = 8; + heightAlignment = 8; + supportPixelFmts = [24]; + } + HDF_video_hw_dec_h263_rk { + mime = 65533; + type = 0; + name = "HDF_video_hw_dec_h263_rk"; + supportProfiles = [1, 1, 1, 2, 1, 4, 1, 16, 8, 1, 8, 2, 8, 4, 8, 16]; + isSoftwareCodec = false; + processModeMask = []; + capsMask = [0x01]; + allocateMask = [0x010, 0x020]; + minInputBufferNum = 4; + maxInputBufferNum = 20; + minOutputBufferNum = 4; + maxOutputBufferNum = 20; + minBitRate = 1; + maxBitRate = 10000000; + inputBufferSize = 20000000; + outputBufferSize = 20000000; + minWidth = 176; + minHeight = 144; + maxWidth = 1920; + maxHeight = 1088; + widthAlignment = 8; + heightAlignment = 8; + supportPixelFmts = [24]; + } + HDF_video_hw_dec_m4v_rk { + mime = 65534; + type = 0; + name = "HDF_video_hw_dec_m4v_rk"; + supportProfiles = [1, 1, 1, 2, 1, 4, 1, 8, 1, 16]; + isSoftwareCodec = false; + processModeMask = []; + capsMask = [0x01]; + allocateMask = [0x010, 0x020]; + minInputBufferNum = 4; + maxInputBufferNum = 20; + minOutputBufferNum = 4; + maxOutputBufferNum = 20; + minBitRate = 1; + maxBitRate = 10000000; + inputBufferSize = 20000000; + outputBufferSize = 20000000; + minWidth = 176; + minHeight = 144; + maxWidth = 1920; + maxHeight = 1088; + widthAlignment = 8; + heightAlignment = 8; + supportPixelFmts = [24]; + } + HDF_video_hw_dec_flv_rk { + mime = 65535; + type = 0; + name = "HDF_video_hw_dec_flv_rk"; + supportProfiles = []; + isSoftwareCodec = false; + processModeMask = []; + capsMask = [0x01]; + allocateMask = [0x010, 0x020]; + minInputBufferNum = 4; + maxInputBufferNum = 20; + minOutputBufferNum = 4; + maxOutputBufferNum = 20; + minBitRate = 1; + maxBitRate = 10000000; + inputBufferSize = 20000000; + outputBufferSize = 20000000; + minWidth = 176; + minHeight = 144; + maxWidth = 1920; + maxHeight = 1088; + widthAlignment = 8; + heightAlignment = 8; + supportPixelFmts = [24]; + } + HDF_video_hw_dec_mjpeg_rk { + mime = 0; + type = 0; + name = "HDF_video_hw_dec_mjpeg_rk"; + supportProfiles = []; + isSoftwareCodec = false; + processModeMask = []; + capsMask = [0x01]; + allocateMask = [0x010, 0x020]; + minInputBufferNum = 4; + maxInputBufferNum = 20; + minOutputBufferNum = 4; + maxOutputBufferNum = 20; + minBitRate = 1; + maxBitRate = 10000000; + inputBufferSize = 20000000; + outputBufferSize = 20000000; + minWidth = 176; + minHeight = 144; + maxWidth = 1920; + maxHeight = 1088; + widthAlignment = 8; + heightAlignment = 8; + supportPixelFmts = [24]; + } + HDF_video_hw_dec_hevc_rk { + mime = 2; + type = 0; + name = "codec.hevc.hardware.decoder"; + supportProfiles = [1, 1, 1, 4, 1, 16, 1, 64, 1, 256, 1, 1024, 1, 4096, 1, 16384, 1, 65536, 2, 65536]; + isSoftwareCodec = false; + processModeMask = []; + capsMask = [0x01]; + allocateMask = [0x010, 0x020]; + minInputBufferNum = 4; + maxInputBufferNum = 20; + minOutputBufferNum = 4; + maxOutputBufferNum = 20; + minBitRate = 1; + maxBitRate = 160000000; + inputBufferSize = 20000000; + outputBufferSize = 20000000; + minWidth = 176; + minHeight = 144; + maxWidth = 1920; + maxHeight = 1088; + widthAlignment = 2; + heightAlignment = 2; + supportPixelFmts = [24]; + } + } + VideoSwEncoders { + } + VideoSwDecoders { + } + AudioHwEncoders { + } + AudioHwDecoders { + } + AudioSwEncoders { + } + AudioSwDecoders { + } + } +} diff --git a/oriole/hdf_config/uhdf/usb_ecm_acm.hcs b/oriole/hdf_config/uhdf/usb_ecm_acm.hcs new file mode 100644 index 0000000..b2ea683 --- /dev/null +++ b/oriole/hdf_config/uhdf/usb_ecm_acm.hcs @@ -0,0 +1,421 @@ +root { + module = "master"; + master_config { + match_attr = "usbfn_master_driver"; + use_hcs = 1; + udc_name = "fcc00000.dwc3"; + usb_dev_desc = "UsbDeviceDescriptor"; + usb_dev_string = "UsbDeviceStrings"; + usb_configuration = "UsbConfigs"; + UsbDeviceDescriptor { + bLength = 18; + bDescriptorType = 0x01; + bcdUSB = 0x0200; + bDeviceClass = 0; + bDeviceSubClass = 0; + bDeviceProtocol = 0; + bMaxPacketSize0 = 0x40; + idVendor = 0x2207; + idProduct = 0x0018; + bcdDevice = 0x0223; + manufacturer = 0; + product = 1; + serialnumber = 2; + numConfigurations = 1; + } + UsbDeviceStrings { + stringTabList = ["string_1"]; + string_1 { + language = 0x0409; + stringList = ["str_1", "str_2","str_3", "str_4"]; + str_1 { + id = 0; + str = "HISILICON"; + } + str_2 { + id = 1; + str = "HDC Device"; + } + str_3 { + id = 2; + str = "0123456789POPLAR"; + } + str_4 { + id = 3; + str = "hdc"; + } + } + } + UsbConfigs { + configList = ["config_1"]; + config_1 { + configurationValue = 1; + iConfiguration = 3; + attributes = 0xC0; + maxPower = 500; + functionList = ["func_ecm", "func_acm"]; + func_ecm { + funcName = "f_generic.e"; + stringTabList = ["fnString_1"]; + fnString_1 { + language = 0x0409; + stringList = ["str_1", "str_2", "str_3", "str_4"]; + str_1 { + id = 0; + str = "CDC Ethernet Control Model (ECM)"; + } + str_2 { + id = 1; + str = "0ac75ae91c79"; + } + str_3 { + id = 2; + str = "CDC Ethernet Data"; + } + str_4 { + id = 3; + str = "CDC ECM"; + } + } + fsDescList = ["assoc_interface", "ControlInterface", "cdc_header", + "cdc_union", "cdc_ether", "FsNotify_endpoint", "DataNopInterface", + "DataInterface", "FsIn_endpoint", "FsOut_endpoint"]; + assoc_interface { + bLength = 0x08; + bDescriptorType = 0x0B; + bFirstInterface = 0x00; + bInterfaceCount = 0x02; + bFunctionClass = 0x02; + bFunctionSubClass = 0x06; + bFunctionProtocol = 0x00; + iFunction = 0x04; + } + ControlInterface { + bLength = 0x09; + bDescriptorType = 0x04; + bInterfaceNumber = 0x00; + bAlternateSetting = 0x00; + bNumEndpoints = 0x01; + bInterfaceClass = 0x02; + bInterfaceSubClass = 0x06; + bInterfaceProtocol = 0x00; + iInterface = 0x1; + } + cdc_header { + bLength = 0x05; + bDescriptorType = 0x24; + desc_data = [0x05, 0x24, 0x00, 0x10, 0x01]; + } + cdc_union { + bLength = 0x05; + bDescriptorType = 0x24; + desc_data = [0x05, 0x24, 0x06, 0x00, 0x01]; + } + cdc_ether { + bLength = 0x0D; + bDescriptorType = 0x24; + desc_data = [0x0D, 0x24, 0x0F, 0x06, 0x00, 0x00, 0x00, 0x00, + 0xEA, 0x05, 0x00, 0x00, 0x00]; + } + DataNopInterface { + bLength = 0x09; + bDescriptorType = 0x04; + bInterfaceNumber = 0x01; + bAlternateSetting = 0x00; + bNumEndpoints = 0x00; + bInterfaceClass = 0x0A; + bInterfaceSubClass = 0x00; + bInterfaceProtocol = 0x06; + iInterface = 0x00; + } + DataInterface { + bLength = 0x09; + bDescriptorType = 0x04; + bInterfaceNumber = 0x01; + bAlternateSetting = 0x01; + bNumEndpoints = 0x02; + bInterfaceClass = 0x0A; + bInterfaceSubClass = 0x00; + bInterfaceProtocol = 0x06; + iInterface = 0x03; + } + FsNotify_endpoint { + bLength = 0x07; + bDescriptorType = 0x05; + bEndpointAddress = 0x81; + bmAttributes = 0x03; + wMaxPacketSize = 16; + bInterval = 32; + } + FsIn_endpoint { + bLength = 0x07; + bDescriptorType = 0x05; + bEndpointAddress = 0x82; + bmAttributes = 0x02; + wMaxPacketSize = 0; + bInterval = 0; + } + FsOut_endpoint { + bLength = 0x07; + bDescriptorType = 0x05; + bEndpointAddress = 0x3; + bmAttributes = 0x02; + wMaxPacketSize = 0; + bInterval = 0; + } + hsDescList = ["assoc_interface", "ControlInterface", "cdc_header", + "cdc_union", "cdc_ether", "HsNotify_endpoint", "DataNopInterface", + "DataInterface", "HsIn_endpoint", "HsOut_endpoint"]; + HsNotify_endpoint { + bLength = 0x07; + bDescriptorType = 0x05; + bEndpointAddress = 0x81; + bmAttributes = 0x03; + wMaxPacketSize = 16; + bInterval = 9; + } + HsIn_endpoint { + bLength = 0x07; + bDescriptorType = 0x05; + bEndpointAddress = 0x82; + bmAttributes = 0x02; + wMaxPacketSize = 512; + bInterval = 0; + } + HsOut_endpoint { + bLength = 0x07; + bDescriptorType = 0x05; + bEndpointAddress = 0x3; + bmAttributes = 0x02; + wMaxPacketSize = 512; + bInterval = 0; + } + ssDescList = ["assoc_interface", "ControlInterface", "cdc_header", + "cdc_union", "cdc_ether", "SsNotify_endpoint", "ss_ep_comp_0", + "DataNopInterface", "DataInterface", "SsIn_endpoint", + "ss_ep_comp", "SsOut_endpoint", "ss_ep_comp"]; + SsNotify_endpoint { + bLength = 0x07; + bDescriptorType = 0x05; + bEndpointAddress = 0x81; + bmAttributes = 0x03; + wMaxPacketSize = 16; + bInterval = 9; + } + ss_ep_comp_0 { + bLength = 0x06; + bDescriptorType = 0x30; + bMaxBurst = 0x00; + bmAttributes = 0x00; + wBytesPerInterval = 16; + } + ss_ep_comp { + bLength = 0x06; + bDescriptorType = 0x30; + bMaxBurst = 0x00; + bmAttributes = 0x00; + wBytesPerInterval = 0x00; + } + SsIn_endpoint { + bLength = 0x07; + bDescriptorType = 0x05; + bEndpointAddress = 0x82; + bmAttributes = 0x02; + wMaxPacketSize = 1024; + bInterval = 0; + } + SsOut_endpoint { + bLength = 0x07; + bDescriptorType = 0x05; + bEndpointAddress = 0x3; + bmAttributes = 0x02; + wMaxPacketSize = 1024; + bInterval = 0; + } + } + func_acm { + funcName = "f_generic.a"; + stringTabList = ["fnString_1"]; + fnString_1 { + language = 0x0409; + stringList = ["str_1", "str_2", "str_3"]; + str_1 { + id = 0; + str = "CDC Abstract Control Model (ACM)"; + } + str_2 { + id = 1; + str = "CDC ACM Data"; + } + str_3 { + id = 2; + str = "CDC Serial"; + } + } + fsDescList = ["assoc_interface", "ControlInterface", "cdc_header", + "cdc_call_mgmt", "cdc_acm", "cdc_union", "FsNotify_endpoint", + "DataInterface", "FsIn_endpoint", "FsOut_endpoint"]; + assoc_interface { + bLength = 0x08; + bDescriptorType = 0x0B; + bFirstInterface = 0x02; + bInterfaceCount = 0x02; + bFunctionClass = 0x02; + bFunctionSubClass = 0x02; + bFunctionProtocol = 0x01; + iFunction = 0x03; + } + ControlInterface { + bLength = 0x09; + bDescriptorType = 0x04; + bInterfaceNumber = 0x02; + bAlternateSetting = 0x00; + bNumEndpoints = 0x01; + bInterfaceClass = 0x02; + bInterfaceSubClass = 0x02; + bInterfaceProtocol = 0x01; + iInterface = 0x01; + } + cdc_header { + bLength = 0x05; + bDescriptorType = 0x24; + desc_data = [0x05, 0x24, 0x00, 0x10, 0x01]; + } + cdc_call_mgmt { + bLength = 0x05; + bDescriptorType = 0x24; + desc_data = [0x05, 0x24, 0x01, 0x00, 0x01]; + } + cdc_acm { + bLength = 0x04; + bDescriptorType = 0x24; + desc_data = [0x04, 0x24, 0x02, 0x02]; + } + cdc_union { + bLength = 0x05; + bDescriptorType = 0x24; + desc_data = [0x05, 0x24, 0x06, 0x02, 0x03]; + } + FsNotify_endpoint { + bLength = 0x07; + bDescriptorType = 0x05; + bEndpointAddress = 0x81; + bmAttributes = 0x03; + wMaxPacketSize = 10; + bInterval = 32; + } + DataInterface { + bLength = 0x09; + bDescriptorType = 0x04; + bInterfaceNumber = 0x03; + bAlternateSetting = 0x00; + bNumEndpoints = 0x02; + bInterfaceClass = 0x0A; + bInterfaceSubClass = 0x00; + bInterfaceProtocol = 0x02; + iInterface = 0x02; + } + FsIn_endpoint { + bLength = 0x07; + bDescriptorType = 0x05; + bEndpointAddress = 0x82; + bmAttributes = 0x02; + wMaxPacketSize = 0; + bInterval = 0; + } + FsOut_endpoint { + bLength = 0x07; + bDescriptorType = 0x05; + bEndpointAddress = 0x3; + bmAttributes = 0x02; + wMaxPacketSize = 0; + bInterval = 0; + } + hsDescList = ["assoc_interface", "ControlInterface", "cdc_header", + "cdc_call_mgmt", "cdc_acm", "cdc_union", "HsNotify_endpoint", + "DataInterface", "HsIn_endpoint", "HsOut_endpoint"]; + HsNotify_endpoint { + bLength = 0x07; + bDescriptorType = 0x05; + bEndpointAddress = 0x81; + bmAttributes = 0x03; + wMaxPacketSize = 10; + bInterval = 9; + } + HsIn_endpoint { + bLength = 0x07; + bDescriptorType = 0x05; + bEndpointAddress = 0x82; + bmAttributes = 0x02; + wMaxPacketSize = 512; + bInterval = 0; + } + HsOut_endpoint { + bLength = 0x07; + bDescriptorType = 0x05; + bEndpointAddress = 0x3; + bmAttributes = 0x02; + wMaxPacketSize = 512; + bInterval = 0; + } + ssDescList = ["assoc_interface", "ControlInterface", "cdc_header", + "cdc_call_mgmt", "cdc_acm", "cdc_union", "HsNotify_endpoint", + "ss_ep_comp", "DataInterface", "SsIn_endpoint", + "ss_ep_comp","SsOut_endpoint","ss_ep_comp"]; + ss_ep_comp { + bLength = 0x06; + bDescriptorType = 0x30; + bMaxBurst = 0x00; + bmAttributes = 0x00; + wBytesPerInterval = 0x00; + } + SsIn_endpoint { + bLength = 0x07; + bDescriptorType = 0x05; + bEndpointAddress = 0x82; + bmAttributes = 0x02; + wMaxPacketSize = 1024; + bInterval = 0; + } + SsOut_endpoint { + bLength = 0x07; + bDescriptorType = 0x05; + bEndpointAddress = 0x3; + bmAttributes = 0x02; + wMaxPacketSize = 1024; + bInterval = 0; + } + } + } + } + custom_prop { + propTable = ["propList_1", "propList_2"]; + propList_1 { + configNum = 1; + interfaceNum = 2; + propList = ["prop_1", "prop_2"]; + prop_1 { + name = "testx"; + value = "xxxxxx"; + } + prop_2 { + name = "testy"; + value = "yyyyyy"; + } + } + propList_2 { + configNum = 1; + interfaceNum = 3; + propList = ["prop_1", "prop_2"]; + prop_1 { + name = "testm"; + value = "mmmmm"; + } + prop_2 { + name = "testn"; + value = "nnnnn"; + } + } + } + } +} diff --git a/oriole/hdf_config/uhdf/usb_pnp_device.hcs b/oriole/hdf_config/uhdf/usb_pnp_device.hcs new file mode 100644 index 0000000..e00e638 --- /dev/null +++ b/oriole/hdf_config/uhdf/usb_pnp_device.hcs @@ -0,0 +1,106 @@ +root { + module = "usb_pnp_device"; + usb_pnp_config { + match_attr = "usb_pnp_match"; + usb_pnp_device_id = "UsbPnpDeviceId"; + UsbPnpDeviceId { + idTableList = [ + "sample_table", + "host_acm_table", + "host_acm_rawapi_table", + "host_ecm_table", + "host_acm_test_table" + ]; + sample_table { + moduleName = "usb_pnp_sample_driver"; + serviceName = "usb_pnp_sample_service"; + deviceMatchAttr = "usb_pnp_sample_matchAttr"; + length = 19; + matchFlag = 0x0000; + vendorId = 0xFFF0; + productId = 0xFFF0; + bcdDeviceLow = 0x0000; + bcdDeviceHigh = 0x0000; + deviceClass = 0; + deviceSubClass = 0; + deviceProtocol = 0; + interfaceClass = [0]; + interfaceSubClass = [0]; + interfaceProtocol = [0]; + interfaceNumber = [0, 1]; + } + host_acm_table { + moduleName = "usbhost_acm"; + serviceName = "usbhost_acm_pnp_service"; + deviceMatchAttr = "usbhost_acm_pnp_matchAttr"; + length = 21; + matchFlag = 0x0300; + vendorId = 0x2207; + productId = 0x0018; + bcdDeviceLow = 0x0000; + bcdDeviceHigh = 0x0000; + deviceClass = 0; + deviceSubClass = 0; + deviceProtocol = 0; + interfaceClass = [0]; + interfaceSubClass = [2, 0]; + interfaceProtocol = [1, 2]; + interfaceNumber = [2, 3]; + } + host_acm_rawapi_table { + moduleName = "usbhost_acm_rawapi"; + serviceName = "usbhost_acm_rawapi_service"; + deviceMatchAttr = "usbhost_acm_rawapi_matchAttr"; + length = 21; + matchFlag = 0x0300; + vendorId = 0x2207; + productId = 0x0018; + bcdDeviceLow = 0x0000; + bcdDeviceHigh = 0x0000; + deviceClass = 0; + deviceSubClass = 0; + deviceProtocol = 0; + interfaceClass = [0]; + interfaceSubClass = [2, 0]; + interfaceProtocol = [1, 2]; + interfaceNumber = [2, 3]; + } + host_ecm_table { + moduleName = "usbhost_ecm"; + serviceName = "usbhost_ecm_pnp_service"; + deviceMatchAttr = "usbhost_ecm_pnp_matchAttr"; + length = 21; + matchFlag = 0x0300; + vendorId = 0x2207; + productId = 0x0018; + bcdDeviceLow = 0x0000; + bcdDeviceHigh = 0x0000; + deviceClass = 0; + deviceSubClass = 0; + deviceProtocol = 0; + interfaceClass = [0]; + interfaceSubClass = [6, 0]; + interfaceProtocol = [0, 6]; + interfaceNumber = [0, 1]; + } + host_acm_test_table { + moduleName = "usbhost_acm"; + serviceName = "usbhost_acm_pnp_test_service"; + deviceMatchAttr = "usbhost_acm_pnp_test_matchAttr"; + length = 18; + matchFlag = 0x0000; + vendorId = 0x05E3; + productId = 0x0749; + bcdDeviceLow = 0x0000; + bcdDeviceHigh = 0x0000; + deviceClass = 0; + deviceSubClass = 0; + deviceProtocol = 0; + interfaceClass = [0]; + interfaceSubClass = [0]; + interfaceProtocol = [0]; + interfaceNumber = [0]; + } + } + } +} diff --git a/oriole/image_conf/BUILD.gn b/oriole/image_conf/BUILD.gn new file mode 100644 index 0000000..ef4d861 --- /dev/null +++ b/oriole/image_conf/BUILD.gn @@ -0,0 +1,39 @@ +# Copyright (c) 2022 Huawei Device Co., Ltd. +# 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. + +import("//build/ohos.gni") + +ohos_copy("system_image_conf_for_asan") { + sources = [ "system_image_conf.txt" ] + outputs = [ "${product_output_dir}/imagesconf/{{source_file_part}}" ] +} + +ohos_copy("ramdisk_image_conf_for_asan") { + sources = [ "ramdisk_image_conf.txt" ] + outputs = [ "${product_output_dir}/imagesconf/{{source_file_part}}" ] +} + +ohos_copy("updater_ramdisk_image_conf_for_asan") { + sources = [ "updater_ramdisk_image_conf.txt" ] + outputs = [ "${product_output_dir}/imagesconf/{{source_file_part}}" ] +} + +group("custom_image_conf") { + if (is_asan) { + deps = [ + ":ramdisk_image_conf_for_asan", + ":system_image_conf_for_asan", + ":updater_ramdisk_image_conf_for_asan", + ] + } +} diff --git a/oriole/image_conf/ramdisk_image_conf.txt b/oriole/image_conf/ramdisk_image_conf.txt new file mode 100644 index 0000000..8b45b89 --- /dev/null +++ b/oriole/image_conf/ramdisk_image_conf.txt @@ -0,0 +1,4 @@ +/ramdisk +14194304 +--fs_type=cpio +--dac_config ../../build/ohos/images/mkimage/dac.txt diff --git a/oriole/image_conf/system_image_conf.txt b/oriole/image_conf/system_image_conf.txt new file mode 100644 index 0000000..7a4852f --- /dev/null +++ b/oriole/image_conf/system_image_conf.txt @@ -0,0 +1,5 @@ +/ +2097152000 +--fs_type=ext4 +--dac_config ../../build/ohos/images/mkimage/dac.txt +--file_context obj/base/security/selinux/file_contexts.bin diff --git a/oriole/image_conf/updater_ramdisk_image_conf.txt b/oriole/image_conf/updater_ramdisk_image_conf.txt new file mode 100644 index 0000000..5e04bac --- /dev/null +++ b/oriole/image_conf/updater_ramdisk_image_conf.txt @@ -0,0 +1,5 @@ +/updater +67108864 +--fs_type=cpio +--dac_config ../../build/ohos/images/mkimage/dac.txt +--file_context obj/base/security/selinux/file_contexts.bin diff --git a/oriole/patch.yml b/oriole/patch.yml new file mode 100644 index 0000000..27fc13d --- /dev/null +++ b/oriole/patch.yml @@ -0,0 +1,2 @@ +build: + - vendor/hardmony/oriole/patches/build/0001-add-soc_platform.patch \ No newline at end of file diff --git a/oriole/patches/build/0001-add-soc_platform.patch b/oriole/patches/build/0001-add-soc_platform.patch new file mode 100644 index 0000000..8189fc2 --- /dev/null +++ b/oriole/patches/build/0001-add-soc_platform.patch @@ -0,0 +1,39 @@ +From 4bbf696ce47252573fc7d7168dcd415f7175c3e1 Mon Sep 17 00:00:00 2001 +From: sunchanglong +Date: Mon, 15 Jul 2024 14:06:58 +0800 +Subject: [PATCH] add soc_platform + +Change-Id: I5aee1c8511e0386d804090b6e09f681d0c392eed +--- + ohos/images/build_image.py | 3 ++- + ohos/images/mkimage/dac.txt | 3 +++ + 2 files changed, 5 insertions(+), 1 deletion(-) + +diff --git a/ohos/images/build_image.py b/ohos/images/build_image.py +index 0b0c38fc..3f417f41 100755 +--- a/ohos/images/build_image.py ++++ b/ohos/images/build_image.py +@@ -40,7 +40,8 @@ def _prepare_root(system_path: str, target_cpu: str): + os.makedirs(root_dir, exist_ok=True) + _dir_list = [ + 'config', 'dev', 'proc', 'sys', 'updater', 'system', 'vendor', 'data', 'chip_ckm', +- 'storage', 'mnt', 'tmp', 'sys_prod', 'chip_prod', 'module_update', 'eng_system', 'eng_chipset' ++ 'storage', 'mnt', 'tmp', 'sys_prod', 'chip_prod', 'module_update', 'eng_system', 'eng_chipset', ++ 'soc_platform' + ] + for _dir_name in _dir_list: + os.makedirs(os.path.join(root_dir, _dir_name), exist_ok=True) +diff --git a/ohos/images/mkimage/dac.txt b/ohos/images/mkimage/dac.txt +index bc939aac..888b898b 100644 +--- a/ohos/images/mkimage/dac.txt ++++ b/ohos/images/mkimage/dac.txt +@@ -59,3 +59,6 @@ system/lib/ld-musl-riscv64.so.1,00755, 0, 2000, 0 + updater/lib/ld-musl-riscv64.so.1,00755, 0, 2000, 0 + system/lib/ld-musl-riscv64-asan.so.1,00755, 0, 2000, 0 + updater/lib/ld-musl-riscv64-asan.so.1,00755, 0, 2000, 0 ++soc_platform, 00755, 0, 2000, 0 ++soc_platform/bin, 00751, 0, 2000, 0 ++soc_platform/bin/*, 00755, 0, 2000, 0 +-- +2.25.1 + diff --git a/oriole/power_config/power_mode_config.xml b/oriole/power_config/power_mode_config.xml new file mode 100644 index 0000000..493ad1c --- /dev/null +++ b/oriole/power_config/power_mode_config.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/oriole/preinstall-config/BUILD.gn b/oriole/preinstall-config/BUILD.gn new file mode 100644 index 0000000..207d8e0 --- /dev/null +++ b/oriole/preinstall-config/BUILD.gn @@ -0,0 +1,47 @@ +# Copyright (c) 2022 Huawei Device Co., Ltd. +# 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. + +import("//build/ohos.gni") + +ohos_prebuilt_etc("install_list_config") { + source = "./install_list.json" + relative_install_dir = "app" + part_name = "product_oriole" +} + +ohos_prebuilt_etc("uninstall_list_config") { + source = "./uninstall_list.json" + relative_install_dir = "app" + part_name = "product_oriole" +} + +ohos_prebuilt_etc("install_list_capability_config") { + source = "./install_list_capability.json" + relative_install_dir = "app" + part_name = "product_oriole" +} + +ohos_prebuilt_etc("install_list_permissions_config") { + source = "./install_list_permissions.json" + relative_install_dir = "app" + part_name = "product_oriole" +} + +group("preinstall-config") { + deps = [ + ":install_list_capability_config", + ":install_list_config", + ":install_list_permissions_config", + ":uninstall_list_config", + ] +} diff --git a/oriole/preinstall-config/install_list.json b/oriole/preinstall-config/install_list.json new file mode 100644 index 0000000..fa07778 --- /dev/null +++ b/oriole/preinstall-config/install_list.json @@ -0,0 +1,260 @@ +{ + "install_list" : [ + { + "app_dir" : "/system/app/com.ohos.systemui", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.launcher", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.settings", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.note", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.settingsdata", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.screenshot", + "removable" : false + }, + { + "app_dir" : "/system/app/ohos.samples.clock", + "removable" : false + }, + { + "app_dir" : "/system/app/ohos.samples.airquality", + "removable" : false + }, + { + "app_dir" : "/system/app/com.example.distributedcalc", + "removable" : false + }, + { + "app_dir" : "/system/app/ohos.samples.flashlight", + "removable" : false + }, + { + "app_dir" : "/system/app/ohos.samples.ecg", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.photos", + "removable" : false + }, + { + "app_dir" : "/system/app/ohos.samples.distributedmusicplayer", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.camera", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.devicemanagerui", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.dlpmanager", + "removable" : false + }, + { + "app_dir" : "/system/app/com.example.kikakeyboard", + "removable" : false + }, + { + "app_dir" : "/system/app/com.kika.hmos.inputmethod", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.medialibrary.MediaLibraryData", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.callui", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.mms", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.contacts", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.permissionmanager", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.settings.faceauth", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.useriam.authwidget", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.adminprovisioning", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.filepicker", + "removable" : false + }, + { + "app_dir" : "/system/app/ohos.global.systemres", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.contactsdataability", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.nweb", + "removable" : false + }, + { + "app_dir" : "/system/app/ohos.telephony.resources", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.download", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.telephonydataability", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.UserFile.ExternalFileManager", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.gameperceptio", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.backgroundtaskmgr.resources", + "removable" : false + }, + { + "app_dir" : "/system/app/ohos.sample.shopping", + "removable" : false + }, + { + "app_dir" : "/system/app/com.ohos.wallpaper", + "removable" : true + }, + { + "app_dir" : "/system/app/com.ohos.inputmethodchoosedialog", + "removable" : false + }, + { + "app_dir": "/system/app/com.ohos.sharepickerdialog", + "removable": false + }, + { + "app_dir" : "/system/app/cn.openharmony.pasteboarddialog", + "removable" : true + }, + { + "app_dir": "/system/app/com.ohos.amsdialog", + "removable": false + }, + { + "app_dir": "/system/app/com.usb.right", + "removable": true + }, + { + "app_dir": "/system/app/com.ohos.certificatemanager", + "removable": true + }, + { + "app_dir": "/system/app/com.ohos.powerdialog", + "removable": false + }, + { + "app_dir": "/system/app/com.ohos.notificationdialog", + "removable": true + }, + { + "app_dir": "/system/app/com.ohos.formrenderservice", + "removable": false + }, + { + "app_dir" : "/system/app/com.example.bluetoothopp", + "removable": true + }, + { + "app_dir": "/system/app/com.ohos.updateapp", + "removable": false + }, + { + "app_dir": "/system/app/com.ohos.spooler", + "removable": false + }, + { + "app_dir": "/system/app/com.ohos.calendardata", + "removable": false + }, + { + "app_dir" : "/system/app/com.example.location", + "removable" : false + }, + { + "app_dir": "/system/app/ohos.samples.etsrecorder", + "removable": true + }, + { + "app_dir": "/system/app/com.example.laval", + "removable": true + }, + { + "app_dir": "/system/app/ohos.samples.browser1", + "removable": true + }, + { + "app_dir": "/system/app/com.ohos.demandplayer", + "removable": true + }, + { + "app_dir": "/system/app/com.example.bluetoothopp", + "removable": true + }, + { + "app_dir": "/system/app/ohos.samples.recorder", + "removable": true + }, + { + "app_dir": "/system/app/com.laval.dispatchcenter", + "removable": true + }, + { + "app_dir": "/system/app/com.laval.bi", + "removable": false + }, + { + "app_dir": "/system/app/com.laval.betaclub", + "removable": false + }, + { + "app_dir": "/system/app/com.example.openharmony_7885", + "removable": true + }, + { + "app_dir": "/system/app/com.pengju.minihttpserver", + "removable": true + }, + { + "app_dir": "/system/app/com.ohos.mindspore.ai", + "removable": true + } + ] +} diff --git a/oriole/preinstall-config/install_list_capability.json b/oriole/preinstall-config/install_list_capability.json new file mode 100644 index 0000000..0334cdc --- /dev/null +++ b/oriole/preinstall-config/install_list_capability.json @@ -0,0 +1,257 @@ +{ + "install_list": [ + { + "bundleName": "ohos.samples.distributedmusicplayer", + "app_signature": ["CE457F6ACB11F9406B393AF490E6DEFAA4DD1CA7AB6F694EA6119EE18DDF4BBE"], + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.example.kikakeyboard", + "singleton": true, + "runningResourcesApply": false, + "associatedWakeUp": false, + "app_signature" : ["9AED2A79925ECA050CD2BB9D2A7F694E49E5E135D28EBDCE53836DE76B5080ED"], + "allowCommonEvent": [], + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.kika.hmos.inputmethod", + "singleton": true, + "runningResourcesApply": false, + "associatedWakeUp": false, + "app_signature" : ["D9D23C26F5FF825E47EA7142263CFE50ABE493C5C99B5FF1C7D0FE5EA221150F"], + "allowCommonEvent": [], + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.ohos.systemui", + "singleton": true, + "keepAlive": true, + "runningResourcesApply": false, + "app_signature" : ["8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5"], + "associatedWakeUp": false, + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.ohos.callui", + "app_signature" : ["E64B13B84E6D2167F73B46530C6E02E323DA43C9C2DA251D7C64D20E091B936F"], + "singleton": true, + "keepAlive": false, + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.ohos.contacts", + "app_signature" : ["04AC9C3F045EAB7DB992B7C4E38B59468CA3EABB7D654AE47641471B9785EA04"], + "singleton": true, + "keepAlive": false, + "allowCommonEvent": ["usual.event.INCOMING_CALL_MISSED","contact.event.CANCEL_MISSED"] + }, + { + "bundleName": "com.ohos.mms", + "app_signature" : ["04AC9C3F045EAB7DB992B7C4E38B59468CA3EABB7D654AE47641471B9785EA04"], + "singleton": true, + "keepAlive": false, + "allowCommonEvent": ["usual.event.SMS_RECEIVE_COMPLETED"] + }, + { + "bundleName": "com.ohos.settingsdata", + "app_signature" : ["8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5"], + "singleton": true, + "keepAlive": true, + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.ohos.backgroundtaskmgr.resources", + "app_signature" : ["72BE2C651A9E0C57B4BB67825BA6F8180FC883858434712150A55C17C7E1A6F7"], + "singleton": true, + "allowAppDesktopIconHide": true + }, + { + "bundleName": "ohos.global.systemres", + "app_signature" : ["8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5"], + "singleton": true, + "allowAppDesktopIconHide": true + }, + { + "bundleName": "com.ohos.devicetest", + "app_signature" : ["8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5"], + "runningResourcesApply": true, + "associatedWakeUp": true, + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.ohos.contactsdataability", + "app_signature" : ["D729F438E1EF2E154994E2B077F6C0CD592BA9F9C938BB428FCDA564FF805EE4"], + "associatedWakeUp": true, + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.ohos.telephonydataability", + "app_signature" : ["D729F438E1EF2E154994E2B077F6C0CD592BA9F9C938BB428FCDA564FF805EE4"], + "associatedWakeUp": true, + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.huawei.ohos.hiviewx", + "singleton": true, + "keepAlive": true, + "app_signature" : ["57D4E9DFE7504D12EB6ACAF39876F420BCABCA2F4721989B90FD2E4F1FB7ED2B"], + "allowCommonEvent": [], + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.ohos.inputmethodchoosedialog", + "app_signature" : ["CE4D01EF424B829E13652BB1743E18B8E4542DD5A7BBA7D7D472F727FA6F8A9D"], + "allowAppDesktopIconHide": true, + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "cn.openharmony.pasteboarddialog", + "app_signature": ["8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5"], + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.ohos.amsdialog", + "app_signature": ["8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5"], + "allowAppUsePrivilegeExtension": true, + "allowAppDesktopIconHide": true + }, + { + "bundleName": "com.ohos.devicemanagerui", + "app_signature": ["DFBBF5BC714865FCCCACA69F30BEF951B499329F66C98523795BAD817E49D1A0"], + "allowAppDesktopIconHide": true, + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.ohos.launcher", + "app_signature": ["8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5"], + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.ohos.medialibrary.medialibrarydata", + "app_signature": ["F9431859ED7A3959B5D72EF36FBE8B210A00082B044063E4424F823A01B3B7CA"], + "allowAppUsePrivilegeExtension": true, + "allowAppDesktopIconHide": true + }, + { + "bundleName": "com.ohos.permissionmanager", + "app_signature": ["68079CC9CB1BD69283D70790305645FFF61CD1E46CAFD7AA53B9FA8540432B81"], + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.ohos.dlpmanager", + "app_signature": [ + "E3F4322139E0109BAFAD8DA4096762068E31708C3CF201780E736D377D60B639", + "5FEDFF587F4109E565B96512404D606D539C8DFFCE1424ACBD1B2A7D3E843D4D" + ], + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.ohos.photos", + "app_signature": ["9AED2A79925ECA050CD2BB9D2A7F694E49E5E135D28EBDCE53836DE76B5080ED"], + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.ohos.powerdialog", + "app_signature": ["8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5"], + "allowAppUsePrivilegeExtension": true, + "allowAppDesktopIconHide": true + }, + { + "bundleName": "com.ohos.sharepickerdialog", + "app_signature": ["8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5"], + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.usb.right", + "app_signature": ["8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5"], + "allowAppUsePrivilegeExtension": true, + "allowAppDesktopIconHide": true + }, + { + "bundleName": "com.ohos.screenshot", + "app_signature" : ["8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5"], + "allowAppUsePrivilegeExtension": true, + "allowAppDesktopIconHide": true + }, + { + "bundleName": "com.ohos.notificationdialog", + "app_signature" : ["8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5"], + "allowAppUsePrivilegeExtension": true, + "allowAppDesktopIconHide": true + }, + { + "bundleName": "com.ohos.nweb", + "app_signature" : [ + "49D779C85200D36A00DE63E2D85AEF22FE5C72FB268BE13923E589B49BFAFFDA", + "8AFD891FA100D478BEDB6962B157055F26CDD407ACAAD525CBA9FDE490BD23D9" + ], + "singleton": true, + "allowAppDesktopIconHide": true + }, + { + "bundleName": "com.ohos.settings.faceauth", + "app_signature" : ["8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5"], + "singleton": true, + "allowAppDesktopIconHide": true + }, + { + "bundleName": "com.ohos.useriam.authwidget", + "app_signature" : ["8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5"], + "singleton": true, + "allowAppDesktopIconHide": true + }, + { + "bundleName": "com.ohos.formrenderservice", + "app_signature": ["8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5"], + "singleton": true, + "allowAppUsePrivilegeExtension": true, + "allowAppDesktopIconHide": true + }, + { + "bundleName": "com.ohos.updateapp", + "app_signature": ["BA6EBDF53DD63B7D5616F3789F8C15FD4DE134B2587C577B01DA4D027B44A23C"], + "allowAppUsePrivilegeExtension": true, + "allowAppDesktopIconHide": true, + "allowCommonEvent": ["common.event.SPECIAL_CODE"] + }, + { + "bundleName": "com.ohos.spooler", + "app_signature" : ["B68D7BE6599CA7ADEDBC95CD1CE176AA96D996D3F41588A487E5F5C4E5DC9427"], + "allowAppDesktopIconHide": true + }, + { + "bundleName": "com.ohos.calendardata", + "app_signature" : ["CC249153FA175206B1427C71DB0F2232D91FA4B2ED7955AE1D6EBA4C362D359A"], + "allowAppDesktopIconHide": true, + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.laval.bi", + "app_signature" : ["161B018F761647414D959344141CAD4F48525DD8DA9B9286844ACED06781E879"], + "singleton": true, + "keepAlive": true, + "allowAppDesktopIconHide": true, + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.example.openharmony_7885", + "app_signature" : ["E4C16560CA1A097DA3DD21E272857C2F24FA43183BAB71642FA8A114E2CDAA87"], + "allowCommonEvent": ["usual.event.DIALER_SPECIAL_CODE", "common.event.SPECIAL_CODE"], + "allowAppDesktopIconHide": true, + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.pengju.minihttpserver", + "app_signature" : ["EA70FB970FBE582473F8F05EDD839D12FB61E1EDE62E72EAF33CF1AA5C7D8ED1"], + "allowAppDesktopIconHide": false, + "allowAppUsePrivilegeExtension": true + }, + { + "bundleName": "com.ohos.mindspore.ai", + "app_signature" : ["8F88459172A8BF100A193745E936D5E2AABFC2E294B07A2FFC39939A682C91BA"], + "allowAppDesktopIconHide": false, + "allowAppUsePrivilegeExtension": true + } + ] +} diff --git a/oriole/preinstall-config/install_list_permissions.json b/oriole/preinstall-config/install_list_permissions.json new file mode 100644 index 0000000..5cf3a30 --- /dev/null +++ b/oriole/preinstall-config/install_list_permissions.json @@ -0,0 +1,344 @@ +[ + { + "bundleName" : "com.ohos.screenshot", + "app_signature" : ["8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5"], + "permissions" : [ + { + "name" : "ohos.permission.MEDIA_LOCATION", + "userCancellable" : true + }, + { + "name" : "ohos.permission.READ_MEDIA", + "userCancellable" : true + }, + { + "name" : "ohos.permission.WRITE_MEDIA", + "userCancellable" : true + } + ] + }, + { + "bundleName" : "com.ohos.medialibrary.medialibrarydata", + "app_signature" : ["F9431859ED7A3959B5D72EF36FBE8B210A00082B044063E4424F823A01B3B7CA"], + "permissions" : [ + { + "name" : "ohos.permission.DISTRIBUTED_DATASYNC", + "userCancellable" : false + } + ] + }, + { + "bundleName" : "com.ohos.callui", + "app_signature" : ["E64B13B84E6D2167F73B46530C6E02E323DA43C9C2DA251D7C64D20E091B936F"], + "permissions" : [ + { + "name" : "ohos.permission.READ_CONTACTS", + "userCancellable" : false + }, + { + "name" : "ohos.permission.SEND_MESSAGES", + "userCancellable" : false + }, + { + "name" : "ohos.permission.ANSWER_CALL", + "userCancellable" : false + } + ] + }, + { + "bundleName" : "com.ohos.mms", + "app_signature" : ["04AC9C3F045EAB7DB992B7C4E38B59468CA3EABB7D654AE47641471B9785EA04"], + "permissions" : [ + { + "name" : "ohos.permission.READ_CONTACTS", + "userCancellable" : true + }, + { + "name" : "ohos.permission.READ_MESSAGES", + "userCancellable" : false + }, + { + "name" : "ohos.permission.SEND_MESSAGES", + "userCancellable" : false + }, + { + "name" : "ohos.permission.RECEIVE_SMS", + "userCancellable" : false + } + ] + }, + { + "bundleName": "com.ohos.systemui", + "app_signature" : ["8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5"], + "permissions" : [ + { + "name" : "ohos.permission.DISTRIBUTED_DATASYNC", + "userCancellable" : false + }, + { + "name" : "ohos.permission.GET_INSTALLED_BUNDLE_LIST", + "userCancellable" : false + }, + { + "name" : "ohos.permission.ACCESS_BLUETOOTH", + "userCancellable" : false + } + ] + }, + { + "bundleName": "com.ohos.contacts", + "app_signature" : ["04AC9C3F045EAB7DB992B7C4E38B59468CA3EABB7D654AE47641471B9785EA04"], + "permissions" : [ + { + "name" : "ohos.permission.READ_CONTACTS", + "userCancellable" : false + }, + { + "name" : "ohos.permission.WRITE_CONTACTS", + "userCancellable" : false + }, + { + "name" : "ohos.permission.READ_CALL_LOG", + "userCancellable" : false + }, + { + "name" : "ohos.permission.WRITE_CALL_LOG", + "userCancellable" : false + }, + { + "name" : "ohos.permission.MANAGE_VOICEMAIL", + "userCancellable" : false + } + ] + }, + { + "bundleName": "com.ohos.photos", + "app_signature" : ["9AED2A79925ECA050CD2BB9D2A7F694E49E5E135D28EBDCE53836DE76B5080ED"], + "permissions" : [ + { + "name" : "ohos.permission.READ_IMAGEVIDEO", + "userCancellable" : false + }, + { + "name" : "ohos.permission.WRITE_IMAGEVIDEO", + "userCancellable" : false + }, + { + "name" : "ohos.permission.READ_MEDIA", + "userCancellable" : false + }, + { + "name" : "ohos.permission.WRITE_MEDIA", + "userCancellable" : false + }, + { + "name" : "ohos.permission.MEDIA_LOCATION", + "userCancellable" : false + }, + { + "name" : "ohos.permission.DISTRIBUTED_DATASYNC", + "userCancellable" : false + } + ] + }, + { + "bundleName": "com.ohos.filepicker", + "app_signature" : ["C902DDEE3286715B8BA26175A1EF967985D22AEF44BE747702B604D956A76CFA"], + "permissions" : [ + { + "name" : "ohos.permission.READ_MEDIA", + "userCancellable" : false + }, + { + "name" : "ohos.permission.WRITE_MEDIA", + "userCancellable" : false + }, + { + "name" : "ohos.permission.MEDIA_LOCATION", + "userCancellable" : false + } + ] + }, + { + "bundleName": "com.ohos.camera", + "app_signature" : ["62C298EE70BEEB3D58082FFEFFEAD4F26BE83350B46B75C393281BA6AAED2A91"], + "permissions" : [ + { + "name" : "ohos.permission.READ_IMAGEVIDEO", + "userCancellable" : false + }, + { + "name" : "ohos.permission.WRITE_IMAGEVIDEO", + "userCancellable" : false + }, + { + "name" : "ohos.permission.MEDIA_LOCATION", + "userCancellable" : false + }, + { + "name" : "ohos.permission.DISTRIBUTED_DATASYNC", + "userCancellable" : false + }, + { + "name" : "ohos.permission.CAMERA", + "userCancellable" : false + }, + { + "name" : "ohos.permission.MICROPHONE", + "userCancellable" : false + }, + { + "name" : "ohos.permission.LOCATION", + "userCancellable" : false + }, + { + "name" : "ohos.permission.LOCATION_IN_BACKGROUND", + "userCancellable" : false + }, + { + "name" : "ohos.permission.APPROXIMATELY_LOCATION", + "userCancellable" : false + } + ] + }, + { + "bundleName": "com.ohos.inputmethodchoosedialog", + "app_signature" : ["CE4D01EF424B829E13652BB1743E18B8E4542DD5A7BBA7D7D472F727FA6F8A9D"], + "permissions" : [ + { + "name" : "ohos.permission.CONNECT_IME_ABILITY", + "userCancellable" : false + } + ] + }, + { + "bundleName": "com.huawei.ohos.hiviewx", + "app_signature" : ["57D4E9DFE7504D12EB6ACAF39876F420BCABCA2F4721989B90FD2E4F1FB7ED2B"], + "permissions" : [ + { + "name" : "ohos.permission.sec.ACCESS_UDID", + "userCancellable" : false + }, + { + "name" : "ohos.permission.GET_WIFI_INFO", + "userCancellable" : false + }, + { + "name" : "ohos.permission.GET_NETWORK_INFO", + "userCancellable" : false + }, + { + "name" : "ohos.permission.INTERNET", + "userCancellable" : false + }, + { + "name" : "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED", + "userCancellable" : false + }, + { + "name" : "ohos.permission.READ_DFX_SYSEVENT", + "userCancellable" : false + } + ] + }, + { + "bundleName": "com.ohos.permissionmanager", + "app_signature" : ["68079CC9CB1BD69283D70790305645FFF61CD1E46CAFD7AA53B9FA8540432B81"], + "permissions" : [ + { + "name" : "ohos.permission.GET_INSTALLED_BUNDLE_LIST", + "userCancellable" : false + } + ] + }, + { + "bundleName": "com.ohos.dlpmanager", + "app_signature" : ["E3F4322139E0109BAFAD8DA4096762068E31708C3CF201780E736D377D60B639"], + "permissions" : [ + { + "name": "ohos.permission.READ_MEDIA", + "userCancellable" : false + }, + { + "name": "ohos.permission.WRITE_MEDIA", + "userCancellable" : false + }, + { + "name": "ohos.permission.ACCESS_DLP_FILE", + "userCancellable" : false + }, + { + "name": "ohos.permission.MANAGE_LOCAL_ACCOUNTS", + "userCancellable" : false + }, + { + "name":"ohos.permission.FILE_ACCESS_MANAGER", + "userCancellable" : false + }, + { + "name":"ohos.permission.START_ABILIIES_FROM_BACKGROUND", + "userCancellable" : false + }, + { + "name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED", + "userCancellable" : false + }, + { + "name": "ohos.permission.MEDIA_LOCATION", + "userCancellable" : false + } + ] + }, + { + "bundleName": "com.ohos.useriam.authwidget", + "app_signature" : ["8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5"], + "permissions" : [ + { + "name" : "ohos.permission.ACCESS_PIN_AUTH", + "userCancellable" : false + }, + { + "name" : "ohos.permission.ACCESS_BIOMETRIC", + "userCancellable" : false + }, + { + "name" : "ohos.permission.SUPPORT_USER_AUTH", + "userCancellable" : false + } + ] + }, + { + "bundleName": "com.ohos.settings", + "app_signature" : ["EB5DBE52EE8DD7206DDE612E7484E88CE264E74958704D0712BFA774C87F4DA1"], + "permissions" : [ + { + "name" : "ohos.permission.GET_INSTALLED_BUNDLE_LIST", + "userCancellable" : false + } + ] + }, + { + "bundleName": "com.laval.dispatchcenter", + "app_signature" : ["161B018F761647414D959344141CAD4F48525DD8DA9B9286844ACED06781E879"], + "permissions" : [ + { + "name" : "ohos.permission.GET_INSTALLED_BUNDLE_LIST", + "userCancellable" : false + } + ] + }, + { + "bundleName": "com.laval.betaclub", + "app_signature" : ["161B018F761647414D959344141CAD4F48525DD8DA9B9286844ACED06781E879"], + "permissions" : [ + { + "name" : "ohos.permission.READ_MEDIA", + "userCancellable" : false + }, + { + "name" : "ohos.permission.READ_IMAGEVIDEO", + "userCancellable" : false + } + ] + } +] diff --git a/oriole/preinstall-config/uninstall_list.json b/oriole/preinstall-config/uninstall_list.json new file mode 100644 index 0000000..0e0e778 --- /dev/null +++ b/oriole/preinstall-config/uninstall_list.json @@ -0,0 +1,4 @@ +{ + "uninstall_list" : [], + "recover_list" : [] +} \ No newline at end of file diff --git a/oriole/product.gni b/oriole/product.gni new file mode 100644 index 0000000..e141b7b --- /dev/null +++ b/oriole/product.gni @@ -0,0 +1,17 @@ +# Copyright (c) 2021 Huawei Device Co., Ltd. +# 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. + +import("//device/board/hardmony/${product_name}/device.gni") + +PRODUCT_SUBSYSTEM_NAME="product_laphone" +PRODUCT_PART_NAME="product_laphone" \ No newline at end of file diff --git a/oriole/resourceschedule/BUILD.gn b/oriole/resourceschedule/BUILD.gn new file mode 100644 index 0000000..c4b3b9f --- /dev/null +++ b/oriole/resourceschedule/BUILD.gn @@ -0,0 +1,73 @@ +# Copyright (c) 2022 Huawei Device Co., Ltd. +# 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. + +import("//build/ohos.gni") + +ohos_prebuilt_etc("res_sched_config") { + source = "./ressched/res_sched_config.xml" + install_enable = true + install_images = [ "vendor" ] + module_install_dir = "etc/ressched" + part_name = "product_oriole" +} + +ohos_prebuilt_etc("res_sched_plugin_switch") { + source = "./ressched/res_sched_plugin_switch.xml" + install_enable = true + install_images = [ "vendor" ] + module_install_dir = "etc/ressched" + part_name = "product_oriole" +} + +ohos_prebuilt_etc("cgroup_action_config") { + source = "./cgroup_sched/cgroup_action_config.json" + install_enable = true + install_images = [ "vendor" ] + module_install_dir = "etc/cgroup_sched" + part_name = "product_oriole" +} + +ohos_prebuilt_etc("cgroup_vendor_config") { + source = "./cgroup_sched/resource_schedule_vendor.cfg" + install_enable = true + install_images = [ "vendor" ] + module_install_dir = "etc/init" + part_name = "product_oriole" +} + +ohos_prebuilt_etc("socperf_boost_config") { + source = "./soc_perf/socperf_boost_config.xml" + install_enable = true + install_images = [ "vendor" ] + module_install_dir = "etc/soc_perf" + part_name = "product_oriole" +} + +ohos_prebuilt_etc("socperf_resource_config") { + source = "./soc_perf/socperf_resource_config.xml" + install_enable = true + install_images = [ "vendor" ] + module_install_dir = "etc/soc_perf" + part_name = "product_oriole" +} + +group("resourceschedule") { + deps = [ + ":cgroup_action_config", + ":cgroup_vendor_config", + ":res_sched_config", + ":res_sched_plugin_switch", + ":socperf_boost_config", + ":socperf_resource_config", + ] +} diff --git a/oriole/resourceschedule/cgroup_sched/cgroup_action_config.json b/oriole/resourceschedule/cgroup_sched/cgroup_action_config.json new file mode 100644 index 0000000..62881f3 --- /dev/null +++ b/oriole/resourceschedule/cgroup_sched/cgroup_action_config.json @@ -0,0 +1,26 @@ +{ + "Cgroups": [ + { + "controller": "cpu", + "path": "/dev/cpuctl", + "sched_policy": { + "sp_default": "", + "sp_background": "background", + "sp_foreground": "foreground", + "sp_system_background": "system-background", + "sp_top_app": "top-app" + } + }, + { + "controller": "cpuset", + "path": "/dev/cpuset", + "sched_policy": { + "sp_default": "", + "sp_background": "background", + "sp_foreground": "foreground", + "sp_system_background": "system-background", + "sp_top_app": "top-app" + } + } + ] +} diff --git a/oriole/resourceschedule/cgroup_sched/resource_schedule_vendor.cfg b/oriole/resourceschedule/cgroup_sched/resource_schedule_vendor.cfg new file mode 100644 index 0000000..a7e4e8b --- /dev/null +++ b/oriole/resourceschedule/cgroup_sched/resource_schedule_vendor.cfg @@ -0,0 +1,54 @@ +{ + "jobs" : [ + { + "name" : "init", + "cmds" : [ + "chmod 660 /sys/class/devfreq/scene-frequency/sprd-governor/scenario_dfs", + "chown system system /sys/class/devfreq/scene-frequency/sprd-governor/scenario_dfs", + "chmod 660 /sys/class/devfreq/scene-frequency/sprd-governor/exit_scene", + "chown system system /sys/class/devfreq/scene-frequency/sprd-governor/exit_scene" + ] + }, + { + "name" : "init", + "cmds" : [ + "write /dev/cpuset/cgroup.clone_children 1", + + "chown system system /dev/cpuset", + "mkdir /dev/cpuset/ui", + "chown system system /dev/cpuset/ui", + "chown system system /dev/cpuset/ui/tasks", + "chmod 0664 /dev/cpuset/ui/tasks", + + "mkdir /dev/cpuctl/ui", + "chown system system /dev/cpuctl/ui", + "chown system system /dev/cpuctl/ui/tasks", + "chmod 0664 /dev/cpuctl/ui/tasks", + + "write /dev/cpuset/top-app/cpuset.cpus 0-7", + "write /dev/cpuset/foreground/cpuset.cpus 4-7", + "write /dev/cpuset/system-background/cpuset.cpus 0-3", + "write /dev/cpuset/background/cpuset.cpus 0-1", + "write /dev/cpuset/ui/cpuset.cpus 4-7", + "write /dev/cpuctl/top-app/cpu.uclamp.min 30", + "write /dev/cpuctl/ui/cpu.uclamp.min 30", + + "write /dev/cpuctl/top-app/cpu.shares 1024", + "write /dev/cpuctl/foreground/cpu.shares 1024", + "write /dev/cpuctl/system-background/cpu.shares 768", + "write /dev/cpuctl/background/cpu.shares 512", + "write /dev/cpuset/ui/cpu.shares 1024", + + "write /sys/devices/system/cpu/cpufreq/policy0/scaling_governor uscfreq", + "write /sys/devices/system/cpu/cpufreq/policy4/scaling_governor uscfreq", + "write /sys/devices/system/cpu/cpufreq/policy7/scaling_governor uscfreq", + "write /sys/devices/system/cpu/cpufreq/policy0/uscfreq/freq_margin 30", + "write /sys/devices/system/cpu/cpufreq/policy4/uscfreq/freq_margin 25", + "write /sys/devices/system/cpu/cpufreq/policy7/uscfreq/freq_margin 15", + "write /proc/sys/walt/group_ctl/top-app/boost 10", + "write /proc/sys/walt/group_ctl/top-app/init_task_load_pct 45", + "write /proc/sys/walt/sched_spc_threshold 245" + ] + } + ] +} diff --git a/oriole/resourceschedule/ressched/res_sched_config.xml b/oriole/resourceschedule/ressched/res_sched_config.xml new file mode 100644 index 0000000..336cde1 --- /dev/null +++ b/oriole/resourceschedule/ressched/res_sched_config.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/oriole/resourceschedule/ressched/res_sched_plugin_switch.xml b/oriole/resourceschedule/ressched/res_sched_plugin_switch.xml new file mode 100644 index 0000000..9ba1467 --- /dev/null +++ b/oriole/resourceschedule/ressched/res_sched_plugin_switch.xml @@ -0,0 +1,20 @@ + + + + + + + diff --git a/oriole/resourceschedule/soc_perf/socperf_boost_config.xml b/oriole/resourceschedule/soc_perf/socperf_boost_config.xml new file mode 100644 index 0000000..9b2aba5 --- /dev/null +++ b/oriole/resourceschedule/soc_perf/socperf_boost_config.xml @@ -0,0 +1,116 @@ + + + + + + 1000 + 2002000 + 2210000 + 2548000 + + + 1500 + 384000000 + + + + + 400 + 1228800 + 1228800 + 1820000 + 384000000 + + + + + 400 + 1228800 + 1703000 + 2366000 + 384000000 + + + + + 250 + 1228800 + 1228800 + 1820000 + 384000000 + + + + + 300 + 1228800 + 1703000 + 2366000 + 384000000 + + + + + 500 + 1228800 + 1228800 + 1820000 + + + + + 1000 + 1228800 + 1228800 + 1820000 + 384000000 + + + + + 500 + 1228800 + 1228800 + 1820000 + + + + + 200 + 1228800 + 1378000 + 2002000 + + + + + 800 + 1228800 + 1228800 + 1820000 + 384000000 + + + + + 400 + 1228800 + 1703000 + 2366000 + 384000000 + + + diff --git a/oriole/resourceschedule/soc_perf/socperf_resource_config.xml b/oriole/resourceschedule/soc_perf/socperf_resource_config.xml new file mode 100644 index 0000000..7fa3c7f --- /dev/null +++ b/oriole/resourceschedule/soc_perf/socperf_resource_config.xml @@ -0,0 +1,62 @@ + + + + + + 614400 + /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq + 614400 768000 936000 1105000 1228800 1404000 1560000 1703000 1846000 2002000 + + + 2002000 + /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq + 614400 768000 936000 1105000 1228800 1404000 1560000 1703000 1846000 2002000 + + + + 614400 + /sys/devices/system/cpu/cpufreq/policy4/scaling_min_freq + 614400 768000 936000 1105000 1228800 1378000 1536000 1703000 1872000 2041000 2210000 + + + 2210000 + /sys/devices/system/cpu/cpufreq/policy4/scaling_max_freq + 614400 768000 936000 1105000 1228800 1378000 1536000 1703000 1872000 2041000 2210000 + + + + 614400 + /sys/devices/system/cpu/cpufreq/policy7/scaling_min_freq + 614400 768000 1228800 1536000 1820000 2002000 2132000 2262000 2366000 2457000 2548000 + + + 2548000 + /sys/devices/system/cpu/cpufreq/policy7/scaling_max_freq + 614400 768000 1228800 1536000 1820000 2002000 2132000 2262000 2366000 2457000 2548000 + + + + 26000000 + /sys/class/devfreq/23140000.gpu/min_freq + 26000000 76800000 153600000 384000000 512000000 680000000 850000000 + + + 850000000 + /sys/class/devfreq/23140000.gpu/max_freq + 26000000 76800000 153600000 384000000 512000000 680000000 850000000 + + + \ No newline at end of file diff --git a/oriole/security_config/critical_reboot_process_list.json b/oriole/security_config/critical_reboot_process_list.json new file mode 100755 index 0000000..f7b72dc --- /dev/null +++ b/oriole/security_config/critical_reboot_process_list.json @@ -0,0 +1,12 @@ +{ + "critical_reboot_process_list": [ + { + "name": "samgr", + "critical": [1, 1, 60] + }, + { + "name": "foundation", + "critical": [1, 4, 240] + } + ] +} diff --git a/oriole/security_config/high_privilege_process_list.json b/oriole/security_config/high_privilege_process_list.json new file mode 100644 index 0000000..a09ac7d --- /dev/null +++ b/oriole/security_config/high_privilege_process_list.json @@ -0,0 +1,108 @@ +{ + "high_privilege_process_list": [ + { + "name": "accessibility", + "gid": "root" + }, + { + "name": "appspawn", + "uid": "root", + "gid": "root" + }, + { + "name": "bootanimation", + "gid": "root" + }, + { + "name": "console", + "uid": "root" + }, + { + "name": "dhardware", + "gid": "root" + }, + { + "name": "media_service", + "gid": ["root", "system"] + }, + { + "name": "misc", + "uid": "root", + "gid": "root" + }, + { + "name": "netsysnative", + "uid": "root", + "gid": "root" + }, + { + "name": "nwebspawn", + "uid": "root", + "gid": "root" + }, + { + "name": "render_service", + "uid": "system", + "gid": ["root", "system"] + }, + { + "name": "resource_schedule_service", + "uid": "root", + "gid": "root" + }, + { + "name": "storage_daemon", + "uid": "root", + "gid": "root" + }, + { + "name": "udevd_service", + "uid": "root", + "gid": "system" + }, + { + "name": "ueventd", + "uid": "system", + "gid": "system" + }, + { + "name": "modem_control_service", + "uid": "root", + "gid": [ "root", "system", "radio" ] + }, + { + "name": "cp_diskserver_service", + "uid": "root", + "gid": [ "root", "system", "radio" ] + }, + { + "name": "concurrent_task_service", + "uid": "system", + "gid": "system" + }, + { + "name": "hdcd", + "uid": "root" + }, + { + "name": "key_enable", + "uid": "root", + "gid": "root" + }, + { + "name": "codec_host", + "uid": "root", + "gid": "root" + }, + { + "name": "log_catcher_service", + "uid": "root", + "gid": "root" + }, + { + "name": "mini_http_service", + "uid": "root", + "gid": "root" + } + ] +} \ No newline at end of file diff --git a/oriole/security_config/sanitizer_check_list.gni b/oriole/security_config/sanitizer_check_list.gni new file mode 100755 index 0000000..06087ad --- /dev/null +++ b/oriole/security_config/sanitizer_check_list.gni @@ -0,0 +1,1439 @@ +# Copyright (C) 2023 HiHope Open Source Organization . +# 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. + +# audio_framework : //foundation/multimedia/audio_framework +bypass_audio_framework = [ + "audio_capturer_gateway", + "oh_audio_capturer_test", + "oh_audio_capturer_lowlatency_test", + "audio_opensles_player_test", + "audio_renderer_gateway", + "oh_audio_renderer_test", + "audio_opensles_recorder_test", + "audio_capturer_test", + "audio_renderer_test", + "audio_toneplayer_test", + "audio_latency_accuracy_test", + "audio_render_mode_callback_test", + "audio_process_client_test", + "audio_voip_test", + "audio_hdi_device_test", + "audio_policy_test", + "audio_interrupt_test", + "audio_service_playback_test", + "interrupt_multi_renderer_test", + "audio_faststream_playback_test", + "audio_blendmode_test", + "audio_service_record_test", + "audio_multichannel_test", + "audio_schedule", + "ohaudio", + "opensles", + "audio_common", + "audio_dump", + "audio", + "audio_client", + "audio_policy_service", + "audio_capturer", + "audio_renderer", + "audio_process_service", + "audio_toneplayer", + "audio_service", + "audio_policy_client", + "module-loopback", + "module-inner-capturer-sink", + "module-hdi-sink", + "module-receiver-sink", + "module-hdi-source", + "audio_utils", + "audio_bluetooth_client", + "pulse_audio_service_adapter", + "audio_capturer_source", + "audio_renderer_sink", + "playback_capturer", + "audio_effect", + "fast_audio_capturer_source", + "fast_audio_renderer_sink", + "remote_audio_capturer_source", + "bluetooth_renderer_sink", + "remote_fast_audio_capturer_source", + "remote_audio_renderer_sink", + "audio_capturer_file_source", + "remote_fast_audio_renderer_sink", + "capturer_source_adapter", + "audio_renderer_file_sink", + "renderer_sink_adapter", + "audio_device_manager", +] + +# histreamer : //foundation/multimedia/histreamer +bypass_histreamer = [ + "histreamer_pipeline_base", + "histreamer_plugin_intf", + "plugin_base", + "ffmpeg_convert", + "histreamer_pipeline", + "histreamer_plugin_core", + "std_engine_factory", + "histreamer_foundation", + "codec_filters", + "muxer_filter", + "media_synchronous_sink", + "audio_capture_filter", + "scene_common", + "demuxer_filter", + "audio_sink_filter", + "media_source_filter", + "video_sink_filter", + "video_capture_filter", + "output_sink_filter", + "ffmpeg_adapter_common", + "filesource", + "httpsource", + "std_stream_source", + "ffmpeg_audio_decoders", + "std_audio_capture", + "filefdsource", + "audio_server_sink", + "file_fd_sink", + "std_video_surface_sink", + "ffmpeg_demuxers", + "std_plugin_codec_adapter", + "ffmpeg_audio_encoders", + "histreamer_recorder", + "histreamer_player", + "ffmpeg_video_decoders", + "ffmpeg_video_encoders", + "ffmpeg_muxers", +] + +# av_session : //foundation/multimedia/av_session +bypass_av_session = [ + "avcastpicker", + "mediacontrolextensionability_napi", + "avsession_client", + "mediacontrolextensioncontext_napi", + "media_control_extension", + "media_control_extension_module", + "avsession_item", + "avsession_common", + "avsession_napi", + "avsession_utils", + "avsession_cast_client", + "avsession_service", + "remote_session_source", + "avsession_router", + "remote_session_sink", + "avsession_cast_item", +] + +# huks : //base/security/huks +bypass_huks = [ + "libhukssdk_static", + "cipher_napi", + "cipher_shared", + "huks_modify_old_version_key_util", +] + +# certificate_manager : //base/security/certificate_manager +bypass_certificate_manager = [ "libcert_manager_fuzz_test_common_static" ] + +# image_framework : //foundation/multimedia/image_framework +bypass_image_framework = [ + "pixelconvertadapter_static", + "image_static", + "image_utils_static", + "log_mock_static", + "utils_mock_static", + "pluginmanager_static", + "jpegplugin", + "textureEncoderCL", +] + +# media_library : //foundation/multimedia/media_library +bypass_media_library = [ + "scanner", + "medialibrary_data_extension", +] + +bypass_user_file_service = [] + +# contacts_data_hap : //applications/standard/contacts_data +bypass_contacts_data_hap = [ "contactsdataability" ] + +# crypto_framework : //base/security/crypto_framework +bypass_crypto_framework = [ + "crypto_plugin_common", + "crypto_framework_lib", + "cryptoframework_napi", +] + +# wpa_supplicant : //third_party/wpa_supplicant +bypass_wpa_supplicant = [ + "wpa_cli", + "hostapd_cli", + "wpa_supplicant", + "hostapd", + "wpa_client", + "wpa_client_updater", + "wpa", + "wpa_sys", + "wpa_updater", +] + +# netmanager_base : //foundation/communication/netmanager_base +bypass_netmanager_base = [ + "net_conn_parcel", + "net_policy_parcel", + "net_native_parcel", + "netsys_native_manager_static", + "net_stats_parcel", + "libip4tc", + "libip6tc", + "libxtables", + "libext4", + "libext6", + "net_connection", + "net_conn_manager_if", + "net_conn_manager", + "napi_utils", + "net_policy_manager", + "net_native_manager_if", + "net_stats_manager_if", + "net_policy_manager_if", + "socket_permission", + "netconn_ndk", + "netsys_client", +] + +# camera_framework : //foundation/multimedia/camera_framework +bypass_camera_framework = [ + "camera_video", + "camera_capture", + "camera_capture_video", + "camera_capture_mode", + "camera_framework", + "camera_napi", + "camera_service", + "deferred_processing_service", +] + +# player_framework : //foundation/multimedia/player_framework +bypass_player_framework = [ + "media", + "media_format", + "audio_ringtone_client", + "media_seccomp_filter", + "media_engine_common_avcodeclist", + "media_engine_gst_common", + "media_engine_gst_loader", + "media_engine_gst_recorder", + "media_engine_gst_factory", + "media_gst_dfx", + "media_engine_gst_player", + "media_engine_gst_avcodec", + "media_engine_gst_avmeta", + "gst_subtitle_sink_base", + "gst_subtitle_parse_plugin", + "gst_mem_sink_base", + "gst_mem_src_base", + "media_engine_dfx", + "gst_codec_plugins_common", + "soundpool_client", + "gst_mem_sink", + "gst_codec_bin", + "gst_audio_server_sink", + "gst_subtitle_sink", + "gst_audio_capture_src", + "gst_mem_src", + "gst_media_common", + "gst_codec_plugin_hdi", + "native_avscreen_capture", +] + +bypass_screenlock_mgr = [] +bypass_nfc = [] + +# wifi : //foundation/communication/wifi +bypass_wifi = [ + "crpc_client_updater", + "WifiHalVendorTest", + "crpc_server", + "crpc_client", + "wifi_hal_service", + "wifi_hal_service_updater", + "wifi_scan_service_impl", + "wifi_device_service_impl", + "wifi_utils", + "wifi_hotspot_service_impl", + "wifi_p2p_service_impl", + "wifi_device_proxy_impl", + "wifi_hotspot_proxy_impl", + "wifi_scan_proxy_impl", + "wifi_p2p_proxy_impl", + "rpc_server", + "rpc_client", + "wifi", + "wifiext", + "wifi_native_js", + "wifimanager", + "wifimanagerext", + "wifi_sdk", +] + +# dsoftbus : //foundation/communication/dsoftbus +bypass_dsoftbus = [ "softbus_server" ] + +# hilog : //base/hiviewdfx/hilog +bypass_hilog = [ + "libhilog", + "libhilog_base", + "hilog", + "hilogd", + "libhilognapi_src", + "libhilog_source_ohos", + "libhilog_source_windows", + "libhilog_source_mac", + "libhilog_source_linux", + "libhilog_source_android", + "libhilog_source_ios", + "libhilog_base_source", + "libhilog_source_ohos", + "libhilog_source_windows", + "libhilog_source_mac", + "libhilog_source_linux", + "libhilog_source_android", + "libhilog_source_ios", + "libhilog_base_source", +] + +# bluetooth : //foundation/communication/bluetooth +bypass_bluetooth = [ + "btframework", + "bluetooth", + "bluetoothmanager", + "btcommon", + "a2dp", + "access", + "baseprofile", + "ble", + "connection", + "constant", + "hfp", + "hid", + "pan", + "socket", +] + +# bluetoth_service : //foundation/communication/bluetooth_service +bypass_bluetooth_service = [ + "bluetooth_server", + "btservice", + "btsbc", + "btdummy", + "btstack", + "bluetooth_hdi_adapter", + "btipc_static", + "btipc_service", +] + +#device_security_level : //base/security/device_security_level +bypass_device_security_level = [ + "messenger_static", # blocklist contains test code only + "utils_static", # blocklist contains test code only + "DslmUnitTest", # blocklist contains test code only + "dslm_extension_dfx", # blocklist contains test code only + "service_common_obj", # blocklist contains test code only + "service_sa_static", # blocklist contains test code only + "service_dslm_obj", # blocklist contains test code only + "service_dslm_test_obj", # blocklist contains test code only + "service_msg_obj", # blocklist contains test code only + "oem_common_obj", # blocklist contains test code only + "dslm_sdk", # blocklist contains test code only + "dslm_service", # blocklist contains test code only + "dslm_oem_ext", # blocklist contains test code only + "dslm_ohos_cred_obj", # blocklist contains test code only +] + +# face_auth : //base/useriam/face_auth +bypass_face_auth = [ + "iam_utils", + "faceauth", + "faceauth_framework", + "faceauth_framework_stub", + "faceauthservice_source_set", + "faceauthservice", + "faceauthservice_ex", + "faceauthservice_ex_source_set", + "faceauth_framework_stub_fuzzer", #cfi not configured + "faceauthservice_source_set_fuzzer", #cfi not configured +] + +# fingerprint_auth : //base/useriam/fingerprint_auth +bypass_fingerprint_auth = [ + "fingerprintauthservice_source_set_fuzzer", #cfi not configured +] + +# pin_auth : //base/useriam/pin_auth +bypass_pin_auth = [ + "iam_utils", + "pinauth_framework_source_set", + "pinauth_framework", + "pinauth_ipc", + "pinauthservice_source_set", + "pinauthservice", + "pinauth_ipc_fuzzer", #cfi not configured + "pinauthservice_source_set_fuzzer", #cfi not configured +] + +# user_auth_framework ://base/useriam/user_auth_framework +bypass_user_auth_framework = [ + "iam_thread_pool", + "iam_utils", + "iam_test", + "userauthextensionability_napi", + "user_auth_extension", + "user_auth_extension_module", + "userauth", + "attributes", + "dfx", + "userauth_executors", + "userauth_client", + "userauth_client_ipc", + "userauth_service_ipc", + "userauthservice", + "userauth_service_core", + "userauth_service_base", + "userauth_service_context", + "userauth_services_ipc", + "attributes_fuzzer", #cfi not configured + "dfx_fuzzer", #cfi not configured + "userauth_client_ipc_fuzzer", #cfi not configured + "userauth_service_base_fuzzer", #cfi not configured + "userauth_service_core_fuzzer", #cfi not configured + "userauth_service_context_fuzzer", #cfi not configured + "userauth_service_ipc_fuzzer", #cfi not configured + "userauth_services_ipc_fuzzer", #cfi not configured + "iam_thread_pool_fuzzer", #cfi not configured + "iam_utils_fuzzer", #cfi not configured + "iam_test_fuzzer", #cfi not configured +] + +bypass_enterprise_device_management = [] + +# wallpaper_mgr : //base/theme/wallpaper_mgr +bypass_wallpaper_mgr = [ + "wallpapermanager", #cfi not configured + "wallpapermanager_static", #cfi not configured + "wallpaper_utils", #cfi not configured +] + +# resource_schedule_service : //foundation/resourceschedule/resource_schedule_service +bypass_resource_schedule_service = [ + #"component_sched_plugin", #cfi not configured + "device_standby_plugin", #cfi not configured + + #"resschedsvc", + "ressched_test", #cfi not configured + "process_proup_test", #cfi not configured +] + +# data_object : //foundation/distributeddatamgr/data_object +bypass_data_object = [ "distributeddataobject_static" ] + +# device_auth : //base/security/device_auth +bypass_device_auth = [ + "hichainsdk", #cfi not configured + "hichainsdk_static", #cfi not configured + "device_auth_test_hal", #cfi not configured + "deviceauth_service", + "deviceauth_sdk", +] + +# data_share : //foundation/distributeddatamgr/data_share +bypass_data_share = [ + "datashare_provider", #cfi not configured +] + +# time_service : //base/time/time_service +bypass_time_service = [ + "time_system_ability", + "time_system_ability_static", +] + +bypass_imf = [] + +# location : //base/location +bypass_location = [ + "lbsservice_gnss", + "lbsservice_network", + "lbsservice_passive", + "locator_sdk", + "geolocation", + "lbsservice_common", + "locator_agent", + "geolocation_static", + "lbsservice_geocode", + "geolocationmanager", +] + +bypass_dmsfwk = [] + +# usb_manager : //base/use/usb_manager +bypass_usb_manager = [ + "usbsrv_client", + "usb", + "usbmanager", +] + +# sensor : //base/sensors/sensor +bypass_sensor = [ "sensor_rust_util_ffi" ] + +# battery_manager : //base/powermgr/battery_manager +bypass_battery_manager = [ + "batterysrv_client", + "charger", + "batteryinfo", + "batterysrv_stub", + "battery", +] + +# battery_statistics ://base/powermgr/battery_statistics +bypass_battery_statistics = [ + "batterystatistics", + "batterystats_client", + "batterystats_service", + "batterystats_stub", + "batterystats_utils", #cfi not configured +] + +# display_manager ://base/powermgr/display_manager +bypass_display_manager = [ + "brightness", + "displaymgr", + "displaymgr_stub", +] + +# power_manager : //base/powermgr/power_manager +bypass_power_manager = [ + "power-shell", + "power_sysparam", + "power_permission", + "power_setting", + "powermgr_client", #cfi not configured + "power_ffrt", + "power_vibrator", + "powermgr_stub", #cfi not configured + "power_utils", #cfi not configured + "power", #cfi not configured + "runninglock", #cfi not configured +] + +# thermal_manager : //base/powermgr/thermal_manager +bypass_thermal_manager = [ + "thermalservice", + "mock_thermalsrv_client", + "thermalsrv_client", + "thermalmgr_listener", + "thermal_protector", + "thermal", + "thermal_utils", + "thermalmgr_stub", + "thermalmgr_proxy", +] + +# device_status ://base/msdp/device_status +bypass_device_status = [ + "devicestatus_mock", #cfi not configured + "devicestatus_static_service", #cfi not configured + "devicestatus_vdev", #cfi not configured + "devicestatus_vdev_builders", #cfi not configured + "vdevadm", #cfi not configured +] + +bypass_motion = [] + +bypass_spatial_awareness = [] + +bypass_algorithm = [] + +# window_manager : //foundation/window/window_manager +bypass_window_manager = [ + "setresolution_screen", #cfi not configured + "libsetresolution_util", #cfi not configured + "libwmutil", #cfi not configured + "screensessionmanager_napi", #cfi not configured + "demo_mirror_screen_listener", #cfi not configured + "demo_screenshot_listener", #cfi not configured + "demo_snapshot_virtual_screen", #cfi not configured + "demo_system_sub_window", #cfi not configured + "demo_freeze_display", #cfi not configured + "demo_water_mark_listener", #cfi not configured + "demo_session_manager", #cfi not configured + "ws_unittest_common", #cfi not configured + "utils_unittest_common", #cfi not configured + "window_extension_unittest_common", #cfi not configured + "dm_unittest_common", #cfi not configured + "dms_systemtest_common", #cfi not configured + "dmserver_unittest_common", #cfi not configured + "wm_unittest_common", #cfi not configured + "libtestutil", #cfi not configured + "wms_systemtest_common", #cfi not configured + "libwm_lite", #cfi not configured + "libdm", #cfi not configured +] + +bypass_qos_manager = [] + +bypass_call_manager = [] + +bypass_cellular_call = [] + +# core_service : //base/telephony/core_service +bypass_core_service = [ + "vcard", #cfi not configured + "libtel_vcard", #cfi not configured +] + +bypass_rill_adapter = [] + +bypass_sms_mms = [] + +bypass_state_registry = [] + +bypass_telephony_data = [] + +# common_event_service : //base/notification/common_event_service +bypass_common_event_service = [ + "cesfwk_core", #cfi not configured + "cesfwk_innerkits", + "cesfwk_services_static", #cfi not configured + "tools_cem_source_set", #cfi not configured + "actscesfwk_kits_test", #cfi not configured + "cesfwk_kits_test", #cfi not configured + "cesfwk_services", #cfi not configured +] + +bypass_distributed_notification_service = [] + +# eventhandler : //base/notification/eventhandler +bypass_eventhandler = [ "libeventhandler" ] + +# os_account : //base/account/os_account +bypass_os_account = [ + "accountmgr", + "account_iam_napi", # napi target, not required to enable cfi + "appaccount", # napi target, not required to enable cfi + "account_napi_common", # napi target, not required to enable cfi + "distributedaccount", # napi target, not required to enable cfi + "domain_account_napi", # napi target, not required to enable cfi + "osaccount", # napi target, not required to enable cfi +] + +# access_token : //base/security/access_token +bypass_access_token = [ + "token_sync_manager_service", + "accesstoken_manager_service", + "privacy_manager_service", + "libaccesstoken_sdk", + "libnativetoken", + "libprivacy_sdk", + "libtoken_callback_sdk", + "libtokenid_sdk", + "libtoken_setproc", #cfi not configured + "libcodesignature_analysis", + "atm", #cfi not configured + "libabilityaccessctrl", + "libnapi_common", + "libprivacymanager", + "libtokensync_sdk", + "accesstoken_service_common", + "accesstoken_common_cxx", + "accesstoken_communication_adapter_cxx", + "privacy_communication_adapter_cxx", +] + +bypass_dupdate_engine = [] + +# input : //foundation/multimodalinput/input +bypass_input = [ + "mmi_rust_key_config", #cfi not configured + "mmi_rust", #cfi not configured + "libmmi-common", #cfi not configured + "libmmi-util", #cfi not configured + "libmmi-client", #cfi not configured +] + +bypass_device_attest = [] + +bypass_perferences = [] + +# relational_store : //foundation/distributeddatamgr/relational_store +bypass_relational_store = [ + "commontype_napi", #cfi not configured + "cloudextension", #cfi not configured +] + +bypass_miscdevice = [] + +# app_file_service : //foundation/filemanagement/app_file_service +bypass_app_file_service = [ + "fileuri_native", #cfi not configured + "fileshare", #cfi not configured + "remote_file_share_native", #cfi not configured + "fileuri", #cfi not configured + "sandbox_helper_native", #cfi not configured + "backup", #cfi not configured + "backup_tool", #cfi not configured + "backup_cxx_rust", #cfi not configured +] + +# file_api : //foundation/filemanagement/file_api +bypass_file_api = [ + "rust_file", #cfi not configured +] + +# storage_service : //foundation/filemanagement/storage_service +bypass_storage_service = [ + "blkid", #cfi not configured +] + +bypass_scene_board_ext = [] + +# background_task_mgr : //foundation/resourceschedule/background_task_mgr +bypass_background_task_mgr = [ "bgtaskmgr_service_static" ] + +bypass_device_usage_statistics = [] + +bypass_efficiency_manager = [] + +bypass_efficiency_manager_ext = [] + +bypass_frame_aware_sched = [] + +bypass_memmgr = [] + +bypass_memmgr_plugin = [] + +# work_scheduler : //foundation/resourceschedule/work_scheduler +bypass_work_scheduler = [ "workschedservice_static" ] + +# accessibility : //foundation/barrierfree/accessibility +bypass_accessibility = [ + "accessibility", + "accessibleability", + "accessibilityconfig", + "accessibilityclient", + "config_napi", + "accessibilityextensionability_napi", + "accessibilityextensioncontext_napi", + "accessibility_extension_module", + "gesturepath_napi", + "gesturepoint_napi", +] + +# ffrt : //foundation/resourceschedule/ffrt +bypass_ffrt = [ + "libffrt", #cfi not configured + "ffrt_ndk", #cfi not configured +] + +# advertising : //domains/advertising/advertising +bypass_advertising = [ + "advertising", + "adcomponent", + "adsserviceextensionability_napi", + "autoadcomponent", + "adsserviceextensioncontext_napi", + "libadsservice_extension", + "adsservice_extension_module", + "advertising_common", +] + +# oaid : //domains/advertising/oaid +bypass_oaid = [ + "oaid_client", + "oaid", + "oaid_service", + "oaid_utils", +] + +# init : //base/startup/init +bypass_init = [ + "watchdog_service", #cfi not configured + "libueventd_ramdisk_static", #cfi not configured + "begetctl", #cfi not configured + "loopevent", #cfi not configured + "libbegetutil", #cfi not configured + "libfsmanager_static", #cfi not configured + "seccomp", #cfi not configured + "ueventd", #cfi not configured + "reboot", #cfi not configured + "libbeget_proxy", #cfi not configured + "paramshell", #cfi not configured + "param", #cfi not configured + "libbegetutil_static", #cfi not configured + "deviceinfo_ndk", #cfi not configured + "deviceinfo", #cfi not configured + "init_log", #cfi not configured + "agent_log", #cfi not configured + "systemparameter", #cfi not configured + "bootchart", #cfi not configured + "init_context", #cfi not configured + "init_eng", #cfi not configured + "libiniteng_static", #cfi not configured + "rebootmodule", #cfi not configured + "init_early", #cfi not configured + "init", #cfi not configured + "systemparameterenhance", #cfi not configured + "udidmodule", #cfi not configured + "libudid_static", #cfi not configured + "libudidcomm", #cfi not configured + "selinuxadp", #cfi not configured + "system_filter", #cfi not configured + "appspawn_filter", #cfi not configured + "initcontext_static", #cfi not configured + "nwebspawn_filter", #cfi not configured + "app_filter", #cfi not configured + "inittrace", #cfi not configured + "updater_filter", #cfi not configured + "libseccomp_static", #cfi not configured + "eventmodule", #cfi not configured + "parameterbase_ext", #cfi not configured + "param_init", #cfi not configured + "libinit_utils", #cfi not configured + "param_client", #cfi not configured + "client", #cfi not configured + "fd_holder_test", #cfi not configured + "libfuzz_utils", #cfi not configured + "server", #cfi not configured + "ondemandTest", #cfi not configured + "libparamtestmodule", #cfi not configured + "libsocket", #cfi not configured + "sandbox", #cfi not configured + "libcontrolfd", #cfi not configured + "libfile", #cfi not configured + "fdholder", #cfi not configured + "sh", #cfi not configured + "libcrashhandler", #cfi not configured +] + +# bundle_framework : //foundation/bundlemanager/bundle_framework +bypass_bundle_framework = [ + "appexecfwk_base", #cfi not configured + "appexecfwk_core", #cfi not configured + "bundlemgr_extension", #cfi not configured + "libappexecfwk_common", #cfi not configured + "bundle_napi_common", #cfi not configured + "app_detail_ability", #cfi not configured + "bundlemgr_graphics", #cfi not configured + "parser_common", #cfi not configured + "bms_install_sst_source", #cfi not configured + "rpcid_decode", #cfi not configured + "bundle_ndk", #cfi not configured + "bundle_parser", #cfi not configured + "installs", #cfi not configured + "bundlemanager", #cfi not configured + "bundlemonitor", #cfi not configured + "bundleresourcemanager", #cfi not configured + "bundle", #cfi not configured + "defaultappmanager", #cfi not configured + "freeinstall", #cfi not configured + "installer", #cfi not configured + "launcherbundlemanager", #cfi not configured + "overlay", #cfi not configured + "innerbundlemanager", #cfi not configured + "package", #cfi not configured + "appcontrol", #cfi not configured + "zlib", #cfi not configured + "tool_common", #cfi not configured + "fun", #cfi not configured + "hello", #cfi not configured + "test01", #cfi not configured + "test02", #cfi not configured + "otaUpdateTestAplUpSo1", #cfi not configured + "otaUpdateTestAplUpSo2", #cfi not configured + "otaUpdateTestBasisFt1So1", #cfi not configured + "otaUpdateTestBasisFt2So1", #cfi not configured + "otaUpdateTestBasisFt1So2", #cfi not configured + "otaUpdateTestBasisFt2So2", #cfi not configured + "otaUpdateTestModuleFieldSo1", #cfi not configured + "otaUpdateTestSignaIconSo1", #cfi not configured + "otaUpdateTestModuleFieldSo2", #cfi not configured + "otaUpdateTestSignaIconSo2", #cfi not configured + "otaUpdateTestSoChangedSo1", #cfi not configured + "otaUpdateTestSoChangedSo2", #cfi not configured + "otaUpdateTestSoChangedFt2So1", #cfi not configured + "otaUpdateTestAplDownSo1", #cfi not configured + "otaUpdateTestAplDownSo2", #cfi not configured + "hapso3", #cfi not configured + "hapso17", #cfi not configured + "hapSectionContainso5", #cfi not configured + "hapso4", #cfi not configured + "hapso31", #cfi not configured + "hapso18", #cfi not configured + "hapso15", #cfi not configured + "hapSectionContainso6", #cfi not configured + "hapso32", #cfi not configured + "hapso16", #cfi not configured + "hapso1", #cfi not configured + "hapso37", #cfi not configured + "hapso9", #cfi not configured + "hspast41", #cfi not configured + "hapso2", #cfi not configured + "hapso10", #cfi not configured + "hapso38", #cfi not configured + "hspast42", #cfi not configured + "hapso21", #cfi not configured + "hapSectionContainso3", #cfi not configured + "hapso22", #cfi not configured + "hapso27", #cfi not configured + "hapSectionContainso4", #cfi not configured + "hspast21", #cfi not configured + "hapso28", #cfi not configured + "hspast22", #cfi not configured + "hspast31", #cfi not configured + "hapso7", #cfi not configured + "hapSectionContainso7", #cfi not configured + "hspast32", #cfi not configured + "hapso29", #cfi not configured + "hapso8", #cfi not configured + "hapSectionContainso8", #cfi not configured + "hapso30", #cfi not configured + "hapso19", #cfi not configured + "hapso13", #cfi not configured + "hapso20", #cfi not configured + "hapso14", #cfi not configured + "hapso23", #cfi not configured + "hapso24", #cfi not configured + "hapso33", #cfi not configured + "hapso5", #cfi not configured + "hapso34", #cfi not configured + "hapso11", #cfi not configured + "hapso6", #cfi not configured + "hapso25", #cfi not configured + "hapso12", #cfi not configured + "hapso26", #cfi not configured + "hapso35", #cfi not configured + "hapSectionContainso1", #cfi not configured + "hspast11", #cfi not configured + "hapso36", #cfi not configured + "hapSectionContainso2", #cfi not configured + "hspast12", #cfi not configured +] + +# ability_runtime : //foundation/ability/ability_runtime +bypass_ability_runtime = [ + "quickfixms", #cfi not configured + "abilitykit_utils", #cfi not configured + "quickfixms_static", #cfi not configured + "abilitykit_native", #cfi not configured + "js_environment", #cfi not configured + "extensionkit_native", #cfi not configured + "wantagent_innerkits", #cfi not configured + "ability_context_native", #cfi not configured + "ability_simulator_inner", #cfi not configured + "ability_manager", #cfi not configured + "session_handler", #cfi not configured + "insight_intent_executor", #cfi not configured + "quickfix_manager", #cfi not configured + "mission_info", #cfi not configured + "srms_fwk", #cfi not configured + "napi_base_context", #cfi not configured + "uiabilitykit_native", #cfi not configured + "ability_manager_c", #cfi not configured + "napi_ability_common", #cfi not configured + "ability_start_setting", #cfi not configured + "connection_obs_manager", #cfi not configured + "dialog_request_info", #cfi not configured + "ability_thread", #cfi not configured + "appkit_native", #cfi not configured + "ability_connect_callback_stub", #cfi not configured + "ability_runtime_error_util", #cfi not configured + "tools_aa_source_set", #cfi not configured + "form_extension", #cfi not configured + "extension_manager", #cfi not configured + "auto_fill_manager", #cfi not configured + "app_context", #cfi not configured + "dataobs_manager", #cfi not configured + "aa", #cfi not configured + "form_extension_module", #cfi not configured + "ability_deps_wrapper", #cfi not configured + "runtime", #cfi not configured + "app_context_utils", #cfi not configured + "napi_common", #cfi not configured + "app_manager", #cfi not configured + "service_extension", #cfi not configured + "uri_permission_mgr", #cfi not configured + "appmgr_test_source", #cfi not configured + "appkit_delegator", #cfi not configured + "appkit_manager_helper", #cfi not configured + "continuation_ipc", #cfi not configured + "abilityms_test_source", #cfi not configured + "data_ability_helper", #cfi not configured + "application_context_manager", #cfi not configured + "service_extension_module", #cfi not configured + "ability_business_error", #cfi not configured + "dialog_request_callback", #cfi not configured + "ui_extension", #cfi not configured + "ui_extension_module", #cfi not configured + "share_extension", #cfi not configured + "action_extension", #cfi not configured + "share_extension_module", #cfi not configured + "auto_startup_callback", #cfi not configured + "action_extension_module", #cfi not configured + "auto_fill_extension", #cfi not configured + "auto_fill_extension_module", #cfi not configured + "abilityms", #cfi not configured + "aakit_mock", #cfi not configured + "appexecfwk_appmgr_mock", #cfi not configured + "perm_verification", #cfi not configured + "appexecfwk_bundlemgr_mock", #cfi not configured + "event_report", #cfi not configured + "task_handler_wrap", #cfi not configured + "app_util", #cfi not configured + "dataobsms", #cfi not configured + "libappms", #cfi not configured + "libupms", #cfi not configured + "child_process_manager", #cfi not configured + "dataobsms_static", #cfi not configured + "insightintentcontext", #cfi not configured + "abilitycontext_napi", #cfi not configured + "libupms_static", #cfi not configured + "abilitydelegatorregistry_napi", #cfi not configured + "autofillextensionability_napi", #cfi not configured + "caller_napi", #cfi not configured + "embeddableuiability_napi", #cfi not configured + "featureability", #cfi not configured + "abilitydelegatorregistry", #cfi not configured + "insightintentexecutor_napi", #cfi not configured + "dialogrequest_napi", #cfi not configured + "datauriutils", #cfi not configured + "appmanager_napi", #cfi not configured + "errormanager_napi", #cfi not configured + "particleability", #cfi not configured + "serviceextensioncontext_napi", #cfi not configured + "uripermissionmanager_napi", #cfi not configured + "wantagent", #cfi not configured + "errormanager", #cfi not configured + "abilityconstant_napi", #cfi not configured + "contextconstant_napi", #cfi not configured + "callee_napi", #cfi not configured + "actionextensionability_napi", #cfi not configured + "extensioncontext_napi", #cfi not configured + "insightintentdriver_napi", #cfi not configured + "abilityconstant", #cfi not configured + "missionmanager", #cfi not configured + "childprocessmanager_napi", #cfi not configured + "missionmanager_napi", #cfi not configured + "testrunner_napi", #cfi not configured + "ability_napi", #cfi not configured + "abilitystagecontext_napi", #cfi not configured + "serviceextensionability_napi", #cfi not configured + "uiextensioncontext_napi", #cfi not configured + "distributedmissionmanager", #cfi not configured + "abilitymanager_napi", #cfi not configured + "autofillmanager_napi", #cfi not configured + "uiability", #cfi not configured + "configurationconstant_napi", #cfi not configured + "serviceextensionability", #cfi not configured + "extensionability_napi", #cfi not configured + "insightintent_napi", #cfi not configured + "abilitymanager", #cfi not configured + "childprocess_napi", #cfi not configured + "dialogsession_napi", #cfi not configured + "configurationconstant", #cfi not configured + "autostartupmanager", #cfi not configured + "abilitystage", #cfi not configured + "context_napi", #cfi not configured + "apprecovery_napi", #cfi not configured + "uiextensionability_napi", #cfi not configured + "wantconstant", #cfi not configured + "autofillextensioncontext_napi", #cfi not configured + "embeddableuiabilitycontext_napi", #cfi not configured + "abilitystage_napi", #cfi not configured + "featureability_napi", #cfi not configured + "insightintentcontext_napi", #cfi not configured + "wantconstant_napi", #cfi not configured + "autostartupcallback", #cfi not configured + "applicationcontext_napi", #cfi not configured + "appmanager", #cfi not configured + "quickfixmanager_napi", #cfi not configured + "shareextensionability_napi", #cfi not configured + "libsrms", #cfi not configured + "module_test_dump_util_lib", #cfi not configured + "appmgr_mst_source", #cfi not configured + "freeze_util", #cfi not configured + "appmgr_test_service", #cfi not configured + "arkui_mock", #cfi not configured + "sa_mgr_mock", #cfi not configured + "wantagent_napi", #cfi not configured + "abilitylifecyclecallback", #cfi not configured +] + +# The list contains both part name that need to enable cfi and disable debug mode, and corresponding bypass_xxx list that bypass the cfi check +enable_cfi_part_and_bypass_list = [ + # enabled in OH4.0 + [ + "audio_framework", + bypass_audio_framework, + ], + [ + "media_foundation", + bypass_histreamer, + ], + [ + "av_session", + bypass_av_session, + ], + [ + "huks", + bypass_huks, + ], + [ + "certificate_manager", + bypass_certificate_manager, + ], + [ + "image_framework", + bypass_image_framework, + ], + [ + "media_library", + bypass_media_library, + ], + [ + "user_file_service", + bypass_user_file_service, + ], + [ + "contacts_data_hap", + bypass_contacts_data_hap, + ], + [ + "crypto_framework", + bypass_crypto_framework, + ], + [ + "wpa_supplicant", + bypass_wpa_supplicant, + ], + [ + "netmanager_base", + bypass_netmanager_base, + ], + [ + "camera_framework", + bypass_camera_framework, + ], + [ + "player_framework", + bypass_player_framework, + ], + [ + "screenlock_mgr", + bypass_screenlock_mgr, + ], + [ + "nfc", + bypass_nfc, + ], + [ + "wifi", + bypass_wifi, + ], + [ + "dsoftbus", + bypass_dsoftbus, + ], + [ + "hilog", + bypass_hilog, + ], + [ + "bluetooth", + bypass_bluetooth, + ], + [ + "bluetooth_service", + bypass_bluetooth_service, + ], + + # enabled in OH4.1 + [ + "device_security_level", + bypass_device_security_level, + ], + [ + "face_auth", + bypass_face_auth, + ], + [ + "fingerprint_auth", + bypass_fingerprint_auth, + ], + [ + "pin_auth", + bypass_pin_auth, + ], + [ + "user_auth_framework", + bypass_user_auth_framework, + ], + [ + "enterprise_device_management", + bypass_enterprise_device_management, + ], + [ + "wallpaper_mgr", + bypass_wallpaper_mgr, + ], + [ + "resource_schedule_service", + bypass_resource_schedule_service, + ], + [ + "data_object", + bypass_data_object, + ], + [ + "device_auth", + bypass_device_auth, + ], + [ + "data_share", + bypass_data_share, + ], + [ + "time_service", + bypass_time_service, + ], + [ + "imf", + bypass_imf, + ], + [ + "location", + bypass_location, + ], + [ + "dmsfwk", + bypass_dmsfwk, + ], + [ + "usb_manager", + bypass_usb_manager, + ], + [ + "sensor", + bypass_sensor, + ], + [ + "battery_manager", + bypass_battery_manager, + ], + [ + "battery_statistics", + bypass_battery_statistics, + ], + [ + "display_manager", + bypass_display_manager, + ], + [ + "power_manager", + bypass_power_manager, + ], + [ + "thermal_manager", + bypass_thermal_manager, + ], + [ + "device_status", + bypass_device_status, + ], + [ + "motion", + bypass_motion, + ], + [ + "spatial_awareness", + bypass_spatial_awareness, + ], + [ + "algorithm", + bypass_algorithm, + ], + [ + "window_manager", + bypass_window_manager, + ], + [ + "qos_manager", + bypass_qos_manager, + ], + [ + "call_manager", + bypass_call_manager, + ], + [ + "cellular_call", + bypass_cellular_call, + ], + [ + "core_service", + bypass_core_service, + ], + [ + "rill_adapter", + bypass_rill_adapter, + ], + [ + "sms_mms", + bypass_sms_mms, + ], + [ + "state_registry", + bypass_state_registry, + ], + [ + "telephony_data", + bypass_telephony_data, + ], + [ + "common_event_service", + bypass_common_event_service, + ], + [ + "distributed_notification_service", + bypass_distributed_notification_service, + ], + [ + "eventhandler", + bypass_eventhandler, + ], + [ + "os_account", + bypass_os_account, + ], + [ + "access_token", + bypass_access_token, + ], + [ + "dupdate_engine", + bypass_dupdate_engine, + ], + [ + "input", + bypass_input, + ], + [ + "device_attest", + bypass_device_attest, + ], + [ + "perferences", + bypass_perferences, + ], + [ + "relational_store", + bypass_relational_store, + ], + [ + "miscdevice", + bypass_miscdevice, + ], + [ + "app_file_service", + bypass_app_file_service, + ], + [ + "file_api", + bypass_file_api, + ], + [ + "storage_service", + bypass_storage_service, + ], + [ + "scene_board_ext", + bypass_scene_board_ext, + ], + [ + "background_task_mgr", + bypass_background_task_mgr, + ], + [ + "device_usage_statistics", + bypass_device_usage_statistics, + ], + [ + "efficiency_manager", + bypass_efficiency_manager, + ], + [ + "efficiency_manager_ext", + bypass_efficiency_manager_ext, + ], + [ + "frame_aware_sched", + bypass_frame_aware_sched, + ], + [ + "memmgr", + bypass_memmgr, + ], + [ + "memmgr_plugin", + bypass_memmgr_plugin, + ], + [ + "work_scheduler", + bypass_work_scheduler, + ], + [ + "accessibility", + bypass_accessibility, + ], + [ + "ffrt", + bypass_ffrt, + ], + [ + "advertising", + bypass_advertising, + ], + [ + "oaid", + bypass_oaid, + ], + [ + "init", + bypass_init, + ], + [ + "bundle_framework", + bypass_bundle_framework, + ], + [ + "ability_runtime", + bypass_ability_runtime, + ], +] + +# The list of part name that need to enable intsan +enable_intsan_part_list = [] + +# The list of build target that bypass the intsan check +bypass_intsan_target_list = [] diff --git a/oriole/updater_config/build_cfg.gni b/oriole/updater_config/build_cfg.gni new file mode 100644 index 0000000..dc2948e --- /dev/null +++ b/oriole/updater_config/build_cfg.gni @@ -0,0 +1,14 @@ +# Copyright (c) 2022 Huawei Device Co., Ltd. +# 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. + +import("//build/ohos.gni") diff --git a/oriole/wm_config/BUILD.gn b/oriole/wm_config/BUILD.gn new file mode 100644 index 0000000..c6554d1 --- /dev/null +++ b/oriole/wm_config/BUILD.gn @@ -0,0 +1,29 @@ +# Copyright (c) 2022 Huawei Device Co., Ltd. +# 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. + +import("//build/ohos.gni") + +import("//build/ohos.gni") + +ohos_prebuilt_etc("window_manager_config") { + source = "window_manager_config.xml" + install_enable = true + relative_install_dir = "window/resources" + part_name = "product_oriole" +} + +group("wm_config") { + deps = [ + ":window_manager_config" + ] +} diff --git a/oriole/wm_config/window_manager_config.xml b/oriole/wm_config/window_manager_config.xml new file mode 100644 index 0000000..ab9c035 --- /dev/null +++ b/oriole/wm_config/window_manager_config.xml @@ -0,0 +1,66 @@ + + + + + + + floating fullscreen + + + + + 150 + + + + + 0.7 0.7 + + 0 0 1 0 + + 0 0 + + 0 + + + + + + 150 + + 150 + + 0.2 0.0 0.2 1.0 + + + + + + + 200 + + + + + 1 + + 0 + + -- Gitee