10b966c5eSopenharmony_ci# Copyright (C) 2023 HiHope Open Source Organization .
20b966c5eSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
30b966c5eSopenharmony_ci# you may not use this file except in compliance with the License.
40b966c5eSopenharmony_ci# You may obtain a copy of the License at
50b966c5eSopenharmony_ci#
60b966c5eSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
70b966c5eSopenharmony_ci#
80b966c5eSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
90b966c5eSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
100b966c5eSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
110b966c5eSopenharmony_ci# See the License for the specific language governing permissions and
120b966c5eSopenharmony_ci# limitations under the License.
130b966c5eSopenharmony_ci
140b966c5eSopenharmony_ciimport("//build/ohos.gni")
150b966c5eSopenharmony_ci
160b966c5eSopenharmony_ciohos_prebuilt_etc("hdf_alsa_paths_json") {
170b966c5eSopenharmony_ci  source = "alsa_paths.json"
180b966c5eSopenharmony_ci
190b966c5eSopenharmony_ci  relative_install_dir = "hdfconfig"
200b966c5eSopenharmony_ci  install_images = [ chipset_base_dir ]
210b966c5eSopenharmony_ci  subsystem_name = "product_rk3568"
220b966c5eSopenharmony_ci  part_name = "product_rk3568"
230b966c5eSopenharmony_ci}
240b966c5eSopenharmony_ci
250b966c5eSopenharmony_ciohos_prebuilt_etc("hdf_alsa_adapter_json") {
260b966c5eSopenharmony_ci  source = "alsa_adapter.json"
270b966c5eSopenharmony_ci
280b966c5eSopenharmony_ci  relative_install_dir = "hdfconfig"
290b966c5eSopenharmony_ci  install_images = [ chipset_base_dir ]
300b966c5eSopenharmony_ci  subsystem_name = "product_rk3568"
310b966c5eSopenharmony_ci  part_name = "product_rk3568"
320b966c5eSopenharmony_ci}
330b966c5eSopenharmony_ci
340b966c5eSopenharmony_ciohos_prebuilt_etc("hdf_audio_effect_json") {
350b966c5eSopenharmony_ci  source = "audio_effect.json"
360b966c5eSopenharmony_ci
370b966c5eSopenharmony_ci  relative_install_dir = "hdfconfig"
380b966c5eSopenharmony_ci  install_images = [ chipset_base_dir ]
390b966c5eSopenharmony_ci  subsystem_name = "product_rk3568"
400b966c5eSopenharmony_ci  part_name = "product_rk3568"
410b966c5eSopenharmony_ci}
420b966c5eSopenharmony_ci
430b966c5eSopenharmony_ciohos_prebuilt_etc("hdf_audio_path_json") {
440b966c5eSopenharmony_ci  source = "audio_paths.json"
450b966c5eSopenharmony_ci
460b966c5eSopenharmony_ci  relative_install_dir = "hdfconfig"
470b966c5eSopenharmony_ci  install_images = [ chipset_base_dir ]
480b966c5eSopenharmony_ci  subsystem_name = "product_rk3568"
490b966c5eSopenharmony_ci  part_name = "product_rk3568"
500b966c5eSopenharmony_ci}
510b966c5eSopenharmony_ci
520b966c5eSopenharmony_ciohos_prebuilt_etc("hdf_audio_adapter_json") {
530b966c5eSopenharmony_ci  source = "audio_adapter.json"
540b966c5eSopenharmony_ci
550b966c5eSopenharmony_ci  relative_install_dir = "hdfconfig"
560b966c5eSopenharmony_ci  install_images = [ chipset_base_dir ]
570b966c5eSopenharmony_ci  subsystem_name = "product_rk3568"
580b966c5eSopenharmony_ci  part_name = "product_rk3568"
590b966c5eSopenharmony_ci}
600b966c5eSopenharmony_ci
610b966c5eSopenharmony_ciohos_prebuilt_etc("audio_policy_config") {
620b966c5eSopenharmony_ci  if (target_cpu == "arm64") {
630b966c5eSopenharmony_ci    source = "config/arm64/audio_policy_config.xml"
640b966c5eSopenharmony_ci  } else {
650b966c5eSopenharmony_ci    source = "config/arm/audio_policy_config.xml"
660b966c5eSopenharmony_ci  }
670b966c5eSopenharmony_ci  subsystem_name = "product_rk3568"
680b966c5eSopenharmony_ci  relative_install_dir = "audio"
690b966c5eSopenharmony_ci  install_images = [ chipset_base_dir ]
700b966c5eSopenharmony_ci  part_name = "product_rk3568"
710b966c5eSopenharmony_ci}
720b966c5eSopenharmony_ci
730b966c5eSopenharmony_ciohos_prebuilt_etc("audio_policy_config_new") {
740b966c5eSopenharmony_ci  source = "config/audio_policy_config_new.xml"
750b966c5eSopenharmony_ci  subsystem_name = "product_rk3568"
760b966c5eSopenharmony_ci  relative_install_dir = "audio"
770b966c5eSopenharmony_ci  install_images = [ chipset_base_dir ]
780b966c5eSopenharmony_ci  part_name = "product_rk3568"
790b966c5eSopenharmony_ci}
800b966c5eSopenharmony_ci
810b966c5eSopenharmony_cigroup("hdf_audio_config") {
820b966c5eSopenharmony_ci  deps = [
830b966c5eSopenharmony_ci    ":audio_policy_config",
840b966c5eSopenharmony_ci    ":audio_policy_config_new",
850b966c5eSopenharmony_ci    ":hdf_alsa_adapter_json",
860b966c5eSopenharmony_ci    ":hdf_alsa_paths_json",
870b966c5eSopenharmony_ci    ":hdf_audio_adapter_json",
880b966c5eSopenharmony_ci    ":hdf_audio_effect_json",
890b966c5eSopenharmony_ci    ":hdf_audio_path_json",
900b966c5eSopenharmony_ci  ]
910b966c5eSopenharmony_ci}
920b966c5eSopenharmony_ci
930b966c5eSopenharmony_cigroup("hdi_service_st") {
940b966c5eSopenharmony_ci  testonly = true
950b966c5eSopenharmony_ci  deps = [ "//drivers/peripheral/audio/test/systemtest/hdi_service/rk3568:hdi_service_hardwaredependence" ]
960b966c5eSopenharmony_ci}
97