mirror of
https://github.com/openharmony/drivers_peripheral.git
synced 2026-08-24 18:15:56 -04:00
7aa69089b3
为audio驱动添加新的配置选项drivers_peripheral_audio_vendor_alsa_path,
允许灵活配置vendor ALSA路径,而不是硬编码为
//device/board/${product_company}/${device_name}/audio_alsa。
修改内容:
- audio.gni:添加drivers_peripheral_audio_vendor_alsa_path配置参数
- bundle.json:将新参数添加到子系统特性列表
- BUILD.gn:添加条件判断支持自定义路径
影响范围:audio驱动HDI服务适配层
测试:在qemu平台上验证通过
Co-Authored-By: Agent <noreply@anthropic.com>
Signed-off-by: handyohos <zhangxiaotian@huawei.com>
Change-Id: I2ccc1d1c492ac9d1207c6e8a2542b0ab81a6bd20
82 lines
3.1 KiB
JSON
Executable File
82 lines
3.1 KiB
JSON
Executable File
{
|
|
"name": "@ohos/drivers_peripheral_audio",
|
|
"description": "audio device driver",
|
|
"version": "4.0",
|
|
"license": "Apache License 2.0",
|
|
"publishAs": "code-segment",
|
|
"segment": {
|
|
"destPath": "drivers/peripheral/audio"
|
|
},
|
|
"dirs": {},
|
|
"scripts": {},
|
|
"component": {
|
|
"name": "drivers_peripheral_audio",
|
|
"subsystem": "hdf",
|
|
"features": [
|
|
"drivers_peripheral_audio_feature_mono_to_stereo",
|
|
"drivers_peripheral_audio_feature_hal_notsupport_pathselect",
|
|
"drivers_peripheral_audio_feature_hdf_proxy_stub",
|
|
"drivers_peripheral_audio_feature_user_mode",
|
|
"drivers_peripheral_audio_feature_full_test_suite",
|
|
"drivers_peripheral_audio_feature_policy_config",
|
|
"drivers_peripheral_audio_feature_alsa_lib",
|
|
"drivers_peripheral_audio_feature_rich_device",
|
|
"drivers_peripheral_audio_feature_community",
|
|
"drivers_peripheral_audio_feature_effect",
|
|
"drivers_peripheral_audio_feature_double_pnp_detect",
|
|
"drivers_peripheral_audio_feature_offload",
|
|
"drivers_peripheral_audio_feature_multichannel",
|
|
"drivers_peripheral_audio_feature_hicollie_enable",
|
|
"drivers_peripheral_audio_feature_hitrace_enable",
|
|
"drivers_peripheral_audio_feature_hisysevent_enable",
|
|
"drivers_peripheral_audio_feature_frame_ec",
|
|
"drivers_peripheral_audio_feature_reclaim_memory",
|
|
"drivers_peripheral_audio_vendor_alsa_path"
|
|
],
|
|
"adapted_system_type": ["standard", "small"],
|
|
"rom": "1035KB",
|
|
"ram": "8600KB",
|
|
"deps": {
|
|
"components": [
|
|
"c_utils",
|
|
"cJSON",
|
|
"hilog",
|
|
"hdf_core",
|
|
"drivers_interface_audio",
|
|
"bounds_checking_function",
|
|
"hitrace",
|
|
"hicollie",
|
|
"alsa-lib",
|
|
"hisysevent",
|
|
"ipc"
|
|
],
|
|
"third_party": []
|
|
},
|
|
"build": {
|
|
"sub_component": [
|
|
"//drivers/peripheral/audio:hdi_audio",
|
|
"//drivers/peripheral/audio/effect:effect_model",
|
|
"//drivers/peripheral/audio:libaudio_header_static"
|
|
],
|
|
"inner_kits": [
|
|
{
|
|
"name": "//drivers/peripheral/audio:libaudio_header_static",
|
|
"header": {
|
|
"header_base": [
|
|
"//drivers/peripheral/audio/interfaces/sound",
|
|
"//drivers/peripheral/audio/interfaces/effect"
|
|
],
|
|
"header_files": []
|
|
}
|
|
}
|
|
],
|
|
"test": [
|
|
"//drivers/peripheral/audio/test:audio_test_entry",
|
|
"//drivers/peripheral/audio/test/sample:idl_audio_sample",
|
|
"//drivers/peripheral/audio/test/audio_utils/audio_mixer:audio_mixer",
|
|
"//drivers/peripheral/audio/effect/test:effect_test"
|
|
]
|
|
}
|
|
}
|
|
}
|