blob: 3a66e68549ab7ddee7897b4f33a3d78200796c03
1 | # |
2 | # Copyright (C) 2012 The Android Open Source Project |
3 | # |
4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
5 | # you may not use this file except in compliance with the License. |
6 | # You may obtain a copy of the License at |
7 | # |
8 | # http://www.apache.org/licenses/LICENSE-2.0 |
9 | # |
10 | # Unless required by applicable law or agreed to in writing, software |
11 | # distributed under the License is distributed on an "AS IS" BASIS, |
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 | # See the License for the specific language governing permissions and |
14 | # limitations under the License. |
15 | # |
16 | |
17 | PRODUCT_PACKAGES += \ |
18 | audio_policy.default \ |
19 | audio.primary.amlogic \ |
20 | audio.hdmi.amlogic \ |
21 | audio.r_submix.default \ |
22 | acoustics.default \ |
23 | audio_firmware \ |
24 | libparameter \ |
25 | libamadec_omx_api \ |
26 | libfaad \ |
27 | libape \ |
28 | libmad \ |
29 | libflac \ |
30 | libcook \ |
31 | libraac \ |
32 | libamr \ |
33 | libpcm \ |
34 | libadpcm \ |
35 | libpcm_wfd \ |
36 | libaac_helix \ |
37 | libamadec_wfd_out |
38 | |
39 | #PRODUCT_COPY_FILES += \ |
40 | # $(TARGET_PRODUCT_DIR)/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \ |
41 | # $(TARGET_PRODUCT_DIR)/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf |
42 | |
43 | #arm audio decoder lib |
44 | soft_adec_libs := $(shell ls hardware/amlogic/LibAudio/amadec/acodec_lib_android_n) |
45 | PRODUCT_COPY_FILES += $(foreach file, $(soft_adec_libs), \ |
46 | hardware/amlogic/LibAudio/amadec/acodec_lib_android_n/$(file):$(TARGET_COPY_OUT_VENDOR)/lib/$(file)) |
47 | |
48 | #audio data ko |
49 | PRODUCT_COPY_FILES += device/amlogic/common/audio/audio_data.ko:$(PRODUCT_OUT)/obj/lib_vendor/audio_data.ko |
50 | |
51 | #configurable audio policy |
52 | #USE_CONFIGURABLE_AUDIO_POLICY := 1 |
53 | #USE_XML_AUDIO_POLICY_CONF := 1 |
54 | configurable_audiopolicy_xmls := device/amlogic/common/audio/ |
55 | PRODUCT_COPY_FILES += \ |
56 | $(configurable_audiopolicy_xmls)audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ |
57 | $(configurable_audiopolicy_xmls)usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \ |
58 | $(configurable_audiopolicy_xmls)a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ |
59 | $(configurable_audiopolicy_xmls)r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ |
60 | $(configurable_audiopolicy_xmls)dia_remote_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/dia_remote_audio_policy_configuration.xml \ |
61 | $(configurable_audiopolicy_xmls)audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ |
62 | $(configurable_audiopolicy_xmls)default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml |
63 | |
64 | ################################################################################## alsa |
65 | |
66 | ifeq ($(BOARD_ALSA_AUDIO),legacy) |
67 | |
68 | PRODUCT_COPY_FILES += \ |
69 | $(TARGET_PRODUCT_DIR)/asound.conf:$(TARGET_COPY_OUT_VENDOR)/etc/asound.conf \ |
70 | $(TARGET_PRODUCT_DIR)/asound.state:$(TARGET_COPY_OUT_VENDOR)/etc/asound.state |
71 | |
72 | BUILD_WITH_ALSA_UTILS := true |
73 | |
74 | PRODUCT_PACKAGES += \ |
75 | alsa.default \ |
76 | libasound \ |
77 | alsa_aplay \ |
78 | alsa_ctl \ |
79 | alsa_amixer \ |
80 | alsainit-00main \ |
81 | alsalib-alsaconf \ |
82 | alsalib-pcmdefaultconf \ |
83 | alsalib-cardsaliasesconf |
84 | endif |
85 | |
86 | ################################################################################## tinyalsa |
87 | |
88 | ifeq ($(BOARD_ALSA_AUDIO),tiny) |
89 | |
90 | BUILD_WITH_ALSA_UTILS := false |
91 | |
92 | # Audio |
93 | PRODUCT_PACKAGES += \ |
94 | audio.usb.default \ |
95 | libtinyalsa \ |
96 | tinyplay \ |
97 | tinycap \ |
98 | tinymix \ |
99 | audio.usb.amlogic |
100 | endif |
101 | |
102 | ################################################################################## |
103 | ifneq ($(wildcard $(TARGET_PRODUCT_DIR)/mixer_paths.xml),) |
104 | PRODUCT_COPY_FILES += \ |
105 | $(TARGET_PRODUCT_DIR)/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml |
106 | else |
107 | ifeq ($(BOARD_AUDIO_CODEC),rt5631) |
108 | PRODUCT_COPY_FILES += \ |
109 | hardware/amlogic/audio/rt5631_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml |
110 | endif |
111 | |
112 | ifeq ($(BOARD_AUDIO_CODEC),rt5616) |
113 | PRODUCT_COPY_FILES += \ |
114 | hardware/amlogic/audio/rt5616_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml |
115 | endif |
116 | |
117 | ifeq ($(BOARD_AUDIO_CODEC),wm8960) |
118 | PRODUCT_COPY_FILES += \ |
119 | hardware/amlogic/audio/wm8960_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml |
120 | endif |
121 | |
122 | ifeq ($(BOARD_AUDIO_CODEC),dummy) |
123 | PRODUCT_COPY_FILES += \ |
124 | hardware/amlogic/audio/dummy_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml |
125 | endif |
126 | |
127 | ifeq ($(BOARD_AUDIO_CODEC),m8_codec) |
128 | PRODUCT_COPY_FILES += \ |
129 | hardware/amlogic/audio/m8codec_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml |
130 | endif |
131 | |
132 | ifeq ($(BOARD_AUDIO_CODEC),amlpmu3) |
133 | PRODUCT_COPY_FILES += \ |
134 | hardware/amlogic/audio/amlpmu3_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml |
135 | endif |
136 | endif |
137 |