blob: 9c42fd425a3f5c259c8e6fe397e193583a29153d
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 | |
26 | #PRODUCT_COPY_FILES += \ |
27 | # $(TARGET_PRODUCT_DIR)/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \ |
28 | # $(TARGET_PRODUCT_DIR)/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf |
29 | |
30 | #arm audio decoder lib |
31 | soft_adec_libs := $(shell ls hardware/amlogic/LibAudio/amadec/acodec_lib_android_n) |
32 | PRODUCT_COPY_FILES += $(foreach file, $(soft_adec_libs), \ |
33 | hardware/amlogic/LibAudio/amadec/acodec_lib_android_n/$(file):$(TARGET_COPY_OUT_VENDOR)/lib/$(file)) |
34 | |
35 | #audio data ko |
36 | PRODUCT_COPY_FILES += device/amlogic/common/audio/audio_data.ko:$(PRODUCT_OUT)/obj/lib_vendor/audio_data.ko |
37 | |
38 | #configurable audio policy |
39 | #USE_CONFIGURABLE_AUDIO_POLICY := 1 |
40 | #USE_XML_AUDIO_POLICY_CONF := 1 |
41 | configurable_audiopolicy_xmls := device/amlogic/common/audio/ |
42 | PRODUCT_COPY_FILES += \ |
43 | $(configurable_audiopolicy_xmls)audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ |
44 | $(configurable_audiopolicy_xmls)usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \ |
45 | $(configurable_audiopolicy_xmls)a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ |
46 | $(configurable_audiopolicy_xmls)r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ |
47 | $(configurable_audiopolicy_xmls)dia_remote_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/dia_remote_audio_policy_configuration.xml \ |
48 | $(configurable_audiopolicy_xmls)audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ |
49 | $(configurable_audiopolicy_xmls)default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml |
50 | |
51 | ################################################################################## alsa |
52 | |
53 | ifeq ($(BOARD_ALSA_AUDIO),legacy) |
54 | |
55 | PRODUCT_COPY_FILES += \ |
56 | $(TARGET_PRODUCT_DIR)/asound.conf:$(TARGET_COPY_OUT_VENDOR)/etc/asound.conf \ |
57 | $(TARGET_PRODUCT_DIR)/asound.state:$(TARGET_COPY_OUT_VENDOR)/etc/asound.state |
58 | |
59 | BUILD_WITH_ALSA_UTILS := true |
60 | |
61 | PRODUCT_PACKAGES += \ |
62 | alsa.default \ |
63 | libasound \ |
64 | alsa_aplay \ |
65 | alsa_ctl \ |
66 | alsa_amixer \ |
67 | alsainit-00main \ |
68 | alsalib-alsaconf \ |
69 | alsalib-pcmdefaultconf \ |
70 | alsalib-cardsaliasesconf |
71 | endif |
72 | |
73 | ################################################################################## tinyalsa |
74 | |
75 | ifeq ($(BOARD_ALSA_AUDIO),tiny) |
76 | |
77 | BUILD_WITH_ALSA_UTILS := false |
78 | |
79 | # Audio |
80 | PRODUCT_PACKAGES += \ |
81 | audio.usb.default \ |
82 | libtinyalsa \ |
83 | tinyplay \ |
84 | tinycap \ |
85 | tinymix \ |
86 | audio.usb.amlogic |
87 | endif |
88 | |
89 | ################################################################################## |
90 | ifneq ($(wildcard $(TARGET_PRODUCT_DIR)/mixer_paths.xml),) |
91 | PRODUCT_COPY_FILES += \ |
92 | $(TARGET_PRODUCT_DIR)/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml |
93 | else |
94 | ifeq ($(BOARD_AUDIO_CODEC),rt5631) |
95 | PRODUCT_COPY_FILES += \ |
96 | hardware/amlogic/audio/rt5631_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml |
97 | endif |
98 | |
99 | ifeq ($(BOARD_AUDIO_CODEC),rt5616) |
100 | PRODUCT_COPY_FILES += \ |
101 | hardware/amlogic/audio/rt5616_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml |
102 | endif |
103 | |
104 | ifeq ($(BOARD_AUDIO_CODEC),wm8960) |
105 | PRODUCT_COPY_FILES += \ |
106 | hardware/amlogic/audio/wm8960_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml |
107 | endif |
108 | |
109 | ifeq ($(BOARD_AUDIO_CODEC),dummy) |
110 | PRODUCT_COPY_FILES += \ |
111 | hardware/amlogic/audio/dummy_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml |
112 | endif |
113 | |
114 | ifeq ($(BOARD_AUDIO_CODEC),m8_codec) |
115 | PRODUCT_COPY_FILES += \ |
116 | hardware/amlogic/audio/m8codec_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml |
117 | endif |
118 | |
119 | ifeq ($(BOARD_AUDIO_CODEC),amlpmu3) |
120 | PRODUCT_COPY_FILES += \ |
121 | hardware/amlogic/audio/amlpmu3_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml |
122 | endif |
123 | endif |
124 |