Porting the third-party library alsa-lib

Signed-off-by: zenglifeng <zenglifeng2@huawei.com>
This commit is contained in:
zenglifeng 2022-05-18 11:17:05 +08:00
parent 85b3c276d2
commit 39280c6f22
4 changed files with 982 additions and 0 deletions

201
BUILD.gn Normal file
View File

@ -0,0 +1,201 @@
# 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")
config("alsa_lib_config") {
cflags = [
"-Wno-sign-compare",
"-Wno-implicit-function-declaration",
"-Wno-parentheses",
"-Wno-string-conversion",
"-Wno-string-plus-int",
"-Wno-asm-operand-widths",
"-Wno-pointer-sign",
"-Wno-deprecated-declarations",
"-Wno-implicit-int",
"-Wno-switch",
"-Wno-incompatible-pointer-types-discards-qualifiers",
"-Wno-int-conversion",
"-Wno-absolute-value",
"-Wno-unused-function",
"-Wno-unused-label",
"-Wno-unused-const-variable",
"-Wno-visibility",
"-Wno-incompatible-pointer-types",
"-Wno-sometimes-uninitialized",
"-Wno-format",
"-Wno-tautological-constant-out-of-range-compare",
"-Wno-implicit-fallthrough",
"-Wno-error",
"-DHAVE_CONFIG_H",
]
if (use_musl) {
cflags += [ "-Wno-bool-operation" ]
}
}
ohos_source_set("alsa_lib_dynamic") {
sources = [
"//third_party/alsa-lib/src/async.c",
"//third_party/alsa-lib/src/conf.c",
"//third_party/alsa-lib/src/confeval.c",
"//third_party/alsa-lib/src/confmisc.c",
"//third_party/alsa-lib/src/control/cards.c",
"//third_party/alsa-lib/src/control/control.c",
"//third_party/alsa-lib/src/control/control_empty.c",
"//third_party/alsa-lib/src/control/control_ext.c",
"//third_party/alsa-lib/src/control/control_hw.c",
"//third_party/alsa-lib/src/control/control_plugin.c",
"//third_party/alsa-lib/src/control/control_remap.c",
"//third_party/alsa-lib/src/control/control_shm.c",
"//third_party/alsa-lib/src/control/control_symbols.c",
"//third_party/alsa-lib/src/control/ctlparse.c",
"//third_party/alsa-lib/src/control/hcontrol.c",
"//third_party/alsa-lib/src/control/namehint.c",
"//third_party/alsa-lib/src/control/setup.c",
"//third_party/alsa-lib/src/control/tlv.c",
"//third_party/alsa-lib/src/dlmisc.c",
"//third_party/alsa-lib/src/error.c",
"//third_party/alsa-lib/src/hwdep/hwdep.c",
"//third_party/alsa-lib/src/hwdep/hwdep_hw.c",
"//third_party/alsa-lib/src/hwdep/hwdep_symbols.c",
"//third_party/alsa-lib/src/input.c",
"//third_party/alsa-lib/src/mixer/bag.c",
"//third_party/alsa-lib/src/mixer/mixer.c",
"//third_party/alsa-lib/src/mixer/simple.c",
"//third_party/alsa-lib/src/mixer/simple_abst.c",
"//third_party/alsa-lib/src/mixer/simple_none.c",
"//third_party/alsa-lib/src/names.c",
"//third_party/alsa-lib/src/output.c",
"//third_party/alsa-lib/src/pcm/interval.c",
"//third_party/alsa-lib/src/pcm/mask.c",
"//third_party/alsa-lib/src/pcm/pcm.c",
"//third_party/alsa-lib/src/pcm/pcm_adpcm.c",
"//third_party/alsa-lib/src/pcm/pcm_alaw.c",
"//third_party/alsa-lib/src/pcm/pcm_asym.c",
"//third_party/alsa-lib/src/pcm/pcm_copy.c",
"//third_party/alsa-lib/src/pcm/pcm_direct.c",
"//third_party/alsa-lib/src/pcm/pcm_dmix.c",
"//third_party/alsa-lib/src/pcm/pcm_dshare.c",
"//third_party/alsa-lib/src/pcm/pcm_dsnoop.c",
"//third_party/alsa-lib/src/pcm/pcm_empty.c",
"//third_party/alsa-lib/src/pcm/pcm_extplug.c",
"//third_party/alsa-lib/src/pcm/pcm_file.c",
"//third_party/alsa-lib/src/pcm/pcm_generic.c",
"//third_party/alsa-lib/src/pcm/pcm_hooks.c",
"//third_party/alsa-lib/src/pcm/pcm_hw.c",
"//third_party/alsa-lib/src/pcm/pcm_iec958.c",
"//third_party/alsa-lib/src/pcm/pcm_ioplug.c",
"//third_party/alsa-lib/src/pcm/pcm_ladspa.c",
"//third_party/alsa-lib/src/pcm/pcm_lfloat.c",
"//third_party/alsa-lib/src/pcm/pcm_linear.c",
"//third_party/alsa-lib/src/pcm/pcm_meter.c",
"//third_party/alsa-lib/src/pcm/pcm_misc.c",
"//third_party/alsa-lib/src/pcm/pcm_mmap.c",
"//third_party/alsa-lib/src/pcm/pcm_mmap_emul.c",
"//third_party/alsa-lib/src/pcm/pcm_mulaw.c",
"//third_party/alsa-lib/src/pcm/pcm_multi.c",
"//third_party/alsa-lib/src/pcm/pcm_null.c",
"//third_party/alsa-lib/src/pcm/pcm_params.c",
"//third_party/alsa-lib/src/pcm/pcm_plug.c",
"//third_party/alsa-lib/src/pcm/pcm_plugin.c",
"//third_party/alsa-lib/src/pcm/pcm_rate.c",
"//third_party/alsa-lib/src/pcm/pcm_rate_linear.c",
"//third_party/alsa-lib/src/pcm/pcm_route.c",
"//third_party/alsa-lib/src/pcm/pcm_share.c",
"//third_party/alsa-lib/src/pcm/pcm_shm.c",
"//third_party/alsa-lib/src/pcm/pcm_simple.c",
"//third_party/alsa-lib/src/pcm/pcm_softvol.c",
"//third_party/alsa-lib/src/pcm/pcm_symbols.c",
"//third_party/alsa-lib/src/rawmidi/rawmidi.c",
"//third_party/alsa-lib/src/rawmidi/rawmidi_hw.c",
"//third_party/alsa-lib/src/rawmidi/rawmidi_symbols.c",
"//third_party/alsa-lib/src/rawmidi/rawmidi_virt.c",
"//third_party/alsa-lib/src/seq/seq.c",
"//third_party/alsa-lib/src/seq/seq_event.c",
"//third_party/alsa-lib/src/seq/seq_hw.c",
"//third_party/alsa-lib/src/seq/seq_midi_event.c",
"//third_party/alsa-lib/src/seq/seq_old.c",
"//third_party/alsa-lib/src/seq/seq_symbols.c",
"//third_party/alsa-lib/src/seq/seqmid.c",
"//third_party/alsa-lib/src/shmarea.c",
"//third_party/alsa-lib/src/socket.c",
"//third_party/alsa-lib/src/timer/timer.c",
"//third_party/alsa-lib/src/timer/timer_hw.c",
"//third_party/alsa-lib/src/timer/timer_query.c",
"//third_party/alsa-lib/src/timer/timer_query_hw.c",
"//third_party/alsa-lib/src/timer/timer_symbols.c",
"//third_party/alsa-lib/src/ucm/main.c",
"//third_party/alsa-lib/src/ucm/parser.c",
"//third_party/alsa-lib/src/ucm/ucm_cond.c",
"//third_party/alsa-lib/src/ucm/ucm_exec.c",
"//third_party/alsa-lib/src/ucm/ucm_include.c",
"//third_party/alsa-lib/src/ucm/ucm_regex.c",
"//third_party/alsa-lib/src/ucm/ucm_subs.c",
"//third_party/alsa-lib/src/ucm/utils.c",
"//third_party/alsa-lib/src/userfile.c",
]
include_dirs = [
"//third_party/alsa-lib/include",
"//third_party/alsa-lib/include/sound",
"//third_party/alsa-lib/include/uapi",
"//third_party/alsa-lib/src/pcm",
"//third_party/alsa-lib/src/ucm",
"//third_party/alsa-lib/src/mixer",
"//third_party/alsa-lib/src/seq",
"//third_party/alsa-lib/src/hwdep",
"//third_party/alsa-lib/src/rawmidi",
"//third_party/alsa-lib/src/control",
"//third_party/alsa-lib/src/timer",
"{target_gen_dir}/include/",
]
deps = [ ":gen_config_header" ]
configs = [ ":alsa_lib_config" ]
}
action("gen_config_header") {
script = "//third_party/alsa-lib/ohos_build_config.sh"
args = [ rebase_path("//third_party/alsa-lib", root_build_dir) ]
outputs = [
"${target_gen_dir}/include/config.h",
"${target_gen_dir}/include/asoundlib.h",
"${target_gen_dir}/src/control/ctl_symbols_list.c",
"${target_gen_dir}/src/pcm/pcm_symbols_list.c",
"${target_gen_dir}/include/alsa",
]
}
ohos_shared_library("libasound") {
deps = [
":alsa_lib_dynamic",
# conf files
"src/conf:alsa-lib-prebuilt-all",
]
license_file = "./COPYING"
output_extension = "so"
install_images = [
"system",
"updater",
]
install_enable = true
part_name = "audio_device_driver"
subsystem_name = "hdf"
}

34
include/version.h Normal file
View File

@ -0,0 +1,34 @@
/*
* ALSA lib header file include/version.h
* Copyright (c) 2022 by Allen Riemann Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#ifndef __VERSION_H
#define __VERSION_H
#define SND_LIB_MAJOR 1 /**< major number of library version */
#define SND_LIB_MINOR 2 /**< minor number of library version */
#define SND_LIB_SUBMINOR 6 /**< subminor number of library version */
#define SND_LIB_EXTRAVER 1000000 /**< extra version number, used mainly for betas */
/** library version */
#define SND_LIB_VER(maj, min, sub) (((maj)<<16)|((min)<<8)|(sub))
#define SND_LIB_VERSION SND_LIB_VER(SND_LIB_MAJOR, SND_LIB_MINOR, SND_LIB_SUBMINOR)
/** library version (string) */
#define SND_LIB_VERSION_STR "1.2.6"
#endif /* __VERSION_H */

26
ohos_build_config.sh Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
# Allen Riemann
set -e
ALSA_LIB_PATH=$1
modules=
alisp=
prefix=
libdir="/lib"
configdir="/etc/audio/alsa/share"
args="--disable-aload --prefix=$prefix --libdir=$libdir --with-configdir=$configdir"
export LC_ALL=C
cd ${ALSA_LIB_PATH}
touch ltconfig
libtoolize --force --copy --automake
aclocal $ACLOCAL_FLAGS
autoheader
automake --foreign --copy --add-missing
touch depcomp # seems to be missing for old automake
autoconf
echo "./configure $args"
${ALSA_LIB_PATH}/configure $args || exit 1
cd -
cat <<!EOF
!EOF

721
src/conf/BUILD.gn Normal file
View File

@ -0,0 +1,721 @@
# DO NOT EDIT IT
# Author: Allen.Riemann
import("//build/ohos.gni")
alsa_lib_prebuilt_all = []
ohos_prebuilt_etc("alsa-lib-prebuilt-smixer.conf") {
source = "smixer.conf"
install_enable = true
relative_install_dir = "audio/alsa/share"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-smixer.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-alsa.conf") {
source = "alsa.conf"
install_enable = true
relative_install_dir = "audio/alsa/share"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-alsa.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-pcm/modem.conf") {
source = "pcm/modem.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/pcm"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-pcm/modem.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-pcm/dmix.conf") {
source = "pcm/dmix.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/pcm"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-pcm/dmix.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-pcm/surround21.conf") {
source = "pcm/surround21.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/pcm"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-pcm/surround21.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-pcm/dsnoop.conf") {
source = "pcm/dsnoop.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/pcm"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-pcm/dsnoop.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-pcm/side.conf") {
source = "pcm/side.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/pcm"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-pcm/side.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-pcm/dpl.conf") {
source = "pcm/dpl.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/pcm"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-pcm/dpl.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-pcm/surround71.conf") {
source = "pcm/surround71.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/pcm"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-pcm/surround71.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-pcm/surround40.conf") {
source = "pcm/surround40.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/pcm"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-pcm/surround40.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-pcm/rear.conf") {
source = "pcm/rear.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/pcm"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-pcm/rear.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-pcm/surround50.conf") {
source = "pcm/surround50.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/pcm"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-pcm/surround50.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-pcm/hdmi.conf") {
source = "pcm/hdmi.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/pcm"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-pcm/hdmi.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-pcm/surround51.conf") {
source = "pcm/surround51.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/pcm"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-pcm/surround51.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-pcm/front.conf") {
source = "pcm/front.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/pcm"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-pcm/front.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-pcm/iec958.conf") {
source = "pcm/iec958.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/pcm"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-pcm/iec958.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-pcm/surround41.conf") {
source = "pcm/surround41.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/pcm"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-pcm/surround41.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-pcm/center_lfe.conf") {
source = "pcm/center_lfe.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/pcm"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-pcm/center_lfe.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-pcm/default.conf") {
source = "pcm/default.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/pcm"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-pcm/default.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-ctl/default.conf") {
source = "ctl/default.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/ctl"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-ctl/default.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/AU8820.conf") {
source = "cards/AU8820.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/AU8820.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/FireWave.conf") {
source = "cards/FireWave.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/FireWave.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/ENS1371.conf") {
source = "cards/ENS1371.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/ENS1371.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/VX222.conf") {
source = "cards/VX222.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/VX222.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/CMI8788.conf") {
source = "cards/CMI8788.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/CMI8788.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/pistachio-card.conf") {
source = "cards/pistachio-card.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/pistachio-card.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/CMI8338-SWIEC.conf") {
source = "cards/CMI8338-SWIEC.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/CMI8338-SWIEC.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/CMI8338.conf") {
source = "cards/CMI8338.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/CMI8338.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/ATIIXP-MODEM.conf") {
source = "cards/ATIIXP-MODEM.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/ATIIXP-MODEM.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/AU8830.conf") {
source = "cards/AU8830.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/AU8830.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/ATIIXP.conf") {
source = "cards/ATIIXP.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/ATIIXP.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/TRID4DWAVENX.conf") {
source = "cards/TRID4DWAVENX.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/TRID4DWAVENX.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/GUS.conf") {
source = "cards/GUS.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/GUS.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/ATIIXP-SPDMA.conf") {
source = "cards/ATIIXP-SPDMA.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/ATIIXP-SPDMA.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/AU8810.conf") {
source = "cards/AU8810.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/AU8810.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/aliases.conf") {
source = "cards/aliases.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/aliases.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/VIA686A.conf") {
source = "cards/VIA686A.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/VIA686A.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/CMI8738-MC8.conf") {
source = "cards/CMI8738-MC8.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/CMI8738-MC8.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/Aureon51.conf") {
source = "cards/Aureon51.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/Aureon51.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/ENS1370.conf") {
source = "cards/ENS1370.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/ENS1370.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/Loopback.conf") {
source = "cards/Loopback.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/Loopback.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/Maestro3.conf") {
source = "cards/Maestro3.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/Maestro3.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/FWSpeakers.conf") {
source = "cards/FWSpeakers.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/FWSpeakers.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/VIA8233A.conf") {
source = "cards/VIA8233A.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/VIA8233A.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/Audigy.conf") {
source = "cards/Audigy.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/Audigy.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/Echo_Echo3G.conf") {
source = "cards/Echo_Echo3G.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/Echo_Echo3G.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/ICH.conf") {
source = "cards/ICH.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/ICH.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/VIA8237.conf") {
source = "cards/VIA8237.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/VIA8237.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/ES1968.conf") {
source = "cards/ES1968.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/ES1968.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/EMU10K1.conf") {
source = "cards/EMU10K1.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/EMU10K1.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/ICH4.conf") {
source = "cards/ICH4.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/ICH4.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/ICE1712.conf") {
source = "cards/ICE1712.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/ICE1712.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/PC-Speaker.conf") {
source = "cards/PC-Speaker.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/PC-Speaker.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/EMU10K1X.conf") {
source = "cards/EMU10K1X.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/EMU10K1X.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/RME9652.conf") {
source = "cards/RME9652.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/RME9652.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/YMF744.conf") {
source = "cards/YMF744.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/YMF744.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/CA0106.conf") {
source = "cards/CA0106.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/CA0106.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/ICH-MODEM.conf") {
source = "cards/ICH-MODEM.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/ICH-MODEM.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/VXPocket440.conf") {
source = "cards/VXPocket440.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/VXPocket440.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/PMacToonie.conf") {
source = "cards/PMacToonie.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/PMacToonie.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/PMac.conf") {
source = "cards/PMac.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/PMac.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/vc4-hdmi.conf") {
source = "cards/vc4-hdmi.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/vc4-hdmi.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/Audigy2.conf") {
source = "cards/Audigy2.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/Audigy2.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/CS46xx.conf") {
source = "cards/CS46xx.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/CS46xx.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/RME9636.conf") {
source = "cards/RME9636.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/RME9636.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/NFORCE.conf") {
source = "cards/NFORCE.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/NFORCE.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/PS3.conf") {
source = "cards/PS3.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/PS3.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/FM801.conf") {
source = "cards/FM801.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/FM801.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/SI7018.conf") {
source = "cards/SI7018.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/SI7018.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/SB-XFi.conf") {
source = "cards/SB-XFi.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/SB-XFi.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/VXPocket.conf") {
source = "cards/VXPocket.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/VXPocket.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/ICE1724.conf") {
source = "cards/ICE1724.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/ICE1724.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/AACI.conf") {
source = "cards/AACI.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/AACI.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/USB-Audio.conf") {
source = "cards/USB-Audio.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/USB-Audio.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/CMI8738-MC6.conf") {
source = "cards/CMI8738-MC6.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/CMI8738-MC6.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/HDA-Intel.conf") {
source = "cards/HDA-Intel.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/HDA-Intel.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/HdmiLpeAudio.conf") {
source = "cards/HdmiLpeAudio.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/HdmiLpeAudio.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/Aureon71.conf") {
source = "cards/Aureon71.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/Aureon71.conf" ]
ohos_prebuilt_etc("alsa-lib-prebuilt-cards/VIA8233.conf") {
source = "cards/VIA8233.conf"
install_enable = true
relative_install_dir = "audio/alsa/share/cards"
subsystem_name = "hdf"
part_name = "audio_device_driver"
}
alsa_lib_prebuilt_all += [ ":alsa-lib-prebuilt-cards/VIA8233.conf" ]
group("alsa-lib-prebuilt-all") {
deps = alsa_lib_prebuilt_all
}