From 21aa8a4f6e6f0ee43aaaa9a6485056cc8a21cc66 Mon Sep 17 00:00:00 2001 From: crescent Date: Thu, 8 Sep 2022 06:37:52 +0000 Subject: [PATCH] add codec docs Signed-off-by: crescent --- zh-cn/device-dev/driver/Readme-CN.md | 1 + .../driver/driver-peripherals-codec-des.md | 22 +++++++++---------- zh-cn/device-dev/website.md | 1 + 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/zh-cn/device-dev/driver/Readme-CN.md b/zh-cn/device-dev/driver/Readme-CN.md index 3924e8b397..795f2ff1de 100755 --- a/zh-cn/device-dev/driver/Readme-CN.md +++ b/zh-cn/device-dev/driver/Readme-CN.md @@ -45,6 +45,7 @@ - 外设驱动使用 - [Audio](driver-peripherals-audio-des.md) - [Camera](driver-peripherals-camera-des.md) + - [Codec](driver-peripherals-codec-des.md) - [Face_auth](driver-peripherals-face_auth-des.md) - [Fingerprint_auth](driver-peripherals-fingerprint_auth-des.md) - [LCD](driver-peripherals-lcd-des.md) diff --git a/zh-cn/device-dev/driver/driver-peripherals-codec-des.md b/zh-cn/device-dev/driver/driver-peripherals-codec-des.md index 0c8bccc0a2..8e9730933d 100644 --- a/zh-cn/device-dev/driver/driver-peripherals-codec-des.md +++ b/zh-cn/device-dev/driver/driver-peripherals-codec-des.md @@ -180,18 +180,18 @@ vendor/hihope/rk3568/hdf_config/uhdf/ 在device_info.hcs的codec_host中增加codec_omx_service配置,具体配置如下: ```c codec :: host { - hostName = "codec_host"; - priority = 50; - gid = ["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";// 属性配置 - } + hostName = "codec_host"; + priority = 50; + gid = ["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"; // 属性配置 } + } } ``` diff --git a/zh-cn/device-dev/website.md b/zh-cn/device-dev/website.md index aafc776b9d..66ee0f29e3 100644 --- a/zh-cn/device-dev/website.md +++ b/zh-cn/device-dev/website.md @@ -492,6 +492,7 @@ - 外设驱动使用 - [Audio](driver/driver-peripherals-audio-des.md) - [Camera](driver/driver-peripherals-camera-des.md) + - [Codec](driver/driver-peripherals-codec-des.md) - [Face_auth](driver/driver-peripherals-face_auth-des.md) - [Fingerprint_auth](driver/driver-peripherals-fingerprint_auth-des.md) - [LCD](driver/driver-peripherals-lcd-des.md) -- GitLab