openharmony_ci b8c6fcf54a !8768 merge zg_usb_camera_filter_fallback into master
feat(camera): add USB camera VID/PID filtering via uevent

Created-by: zhouge941
Commit-by: zhouge941
Merged-by: openharmony_ci
Description: ### 相关的 Issue
https://gitcode.com/openharmony/drivers_peripheral/issues/6702

### 功能描述
实现 USB 相机设备 VID/PID 过滤功能,使用 uevent PRODUCT 字段获取设备信息,避免 sysfs 文件访问导致的 SELinux 权限问题。

### 主要特性
- 双层过滤机制:uevent 检查 + sysfs 检查
- USB interface → PRODUCT 映射
- 静态线程安全的 uevent 解析辅助函数
- 系统参数配置:const.camera.setting.usb_device_filter.config

### 测试
已通过编译和热插拔验证。

See merge request: openharmony/drivers_peripheral!8768
2026-05-04 01:35:36 +08:00
2023-10-31 09:42:18 +08:00
2026-04-20 16:23:38 +08:00
2026-01-29 15:08:32 +08:00
2026-04-13 16:27:40 +08:00
2026-04-28 14:49:10 +08:00
2026-02-25 09:50:39 +08:00
2023-04-24 09:15:59 +00:00
2026-01-30 10:51:22 +08:00
api
2025-04-28 19:10:47 +08:00
2026-03-07 16:37:58 +08:00
2026-04-29 14:23:10 +08:00
2025-09-16 15:18:03 +08:00
2026-04-29 11:48:06 +08:00
2026-03-07 16:37:58 +08:00
2026-01-29 15:08:32 +08:00
2026-04-15 11:58:33 +08:00
2026-01-27 16:22:57 +08:00
1
2026-04-29 11:39:32 +08:00
2026-04-29 14:13:31 +08:00
2026-04-13 16:27:40 +08:00
2026-04-25 14:21:23 +08:00
2026-04-28 21:28:53 +08:00
2026-04-01 15:27:01 +08:00
2024-08-14 11:23:23 +08:00
2022-10-26 09:18:26 +08:00
2023-04-24 09:15:59 +00:00

Peripheral

Introduction

This repository stores the hardware driver interfaces (HDIs), hardware abstraction layer (HAL) implementation, driver models, and test cases related to drivers of peripherals. The directory is structured based on the driver modules. For details about each driver module, see the readme file in the sub-directory of each module.

Directory Structure

The code directory of this repository is /drivers/peripheral, which contains the following sub-directories:

  • audio: This sub-directory stores definitions of audio HDIs that can be used to manage loading and unloading of sound card drivers, create audio renderers and capturers, select an audio scene, set audio properties, set the audio volume, and start or stop audio playback and recording. For details, see the readme file in the audio sub-directory.

  • codec: This sub-directory stores definitions of codec HDIs, which allow upper-layer services to perform media codec-related operations. For details, see the readme file in the codec sub-directory.

  • display: This sub-directory stores definitions of display HDIs and their default implementations. These HDIs allow upper-layer graphics services to manage display layers, manage memory of the display module, and implement hardware acceleration. For details, see the readme file in the display sub-directory.

  • format: This sub-directory stores definitions of format HDIs, allowing upper-layer services to multiplex and demultiplex media files. For details, see the readme file in the format sub-directory.

  • input: This sub-directory stores definitions and implementation code of input HDIs, allowing upper-layer input services to perform operations for input devices, including managing input devices, controlling service flows, and reporting input events. For details, see the readme file in the input sub-directory.

  • sensor: This sub-directory stores definitions and implementation code of sensor HDIs, including obtaining sensor information, enabling or disabling a sensor, subscribing to or unsubscribing from sensor data, and setting sensor options. For details, see the readme file in the sensor sub-directory.

  • wlan: This sub-directory stores definitions and implementation code of WLAN HDIs, including creating and stopping a channel between the HAL and the WLAN driver and obtaining the WLAN features supported by the device. For details, see the readme file in the wlan sub-directory.

  • usb: This sub-directory stores definitions and implementation code of the USB DDK, including device management, device configuration, and data read/write on the USB host and USB devices. For details, see the readme file in the usb sub-directory.

  • camera: This sub-directory stores definitions and implementation code of camera HDIs, including HDI implementation for the upper-layer camera service and management of camera hardware devices. For details, see the README file in the camera sub-directory.

  • ril: This sub-directory stores definitions and implementation code of Ril HDIs, including service processing capabilities related to the call, SIM card, SMS/MMS, radio, and cellular data services. For details, see the readme file in the ril sub-directory.

Repositories Involved

Driver subsystem

drivers_framework

drivers_adapter

drivers_adapter_khdf_linux

drivers_peripheral

S
Description
暂无描述
Readme BSD-3-Clause 110 MiB
Languages
C++ 73.7%
C 26.2%