Skip to content

Commit 049c850

Browse files
committed
C10: Initial upload
0 parents  commit 049c850

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2919
-0
lines changed

Diff for: AndroidProducts.mk

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
PRODUCT_MAKEFILES := $(LOCAL_DIR)/full_c10.mk \
2+
$(LOCAL_DIR)/vnd_c10.mk
3+

Diff for: BoardConfig.mk

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Use the non-open-source part, if present
2+
-include vendor/wiite/c10/BoardConfigVendor.mk
3+
4+
# Use the 6739 common part
5+
include device/mediatek/mt6739/BoardConfig.mk
6+
7+
MTK_INTERNAL_CDEFS := $(foreach t,$(AUTO_ADD_GLOBAL_DEFINE_BY_NAME),$(if $(filter-out no NO none NONE false FALSE,$($(t))),-D$(t)))
8+
MTK_INTERNAL_CDEFS += $(foreach t,$(AUTO_ADD_GLOBAL_DEFINE_BY_VALUE),$(if $(filter-out no NO none NONE false FALSE,$($(t))),$(foreach v,$(shell echo $($(t)) | tr '[a-z]' '[A-Z]'),-D$(v))))
9+
MTK_INTERNAL_CDEFS += $(foreach t,$(AUTO_ADD_GLOBAL_DEFINE_BY_NAME_VALUE),$(if $(filter-out no NO none NONE false FALSE,$($(t))),-D$(t)=\"$(strip $($(t)))\"))
10+
11+
MTK_GLOBAL_CFLAGS += $(MTK_INTERNAL_CDEFS)
12+
13+
ifneq ($(MTK_K64_SUPPORT), yes)
14+
BOARD_KERNEL_CMDLINE = bootopt=64S3,32S1,32S1
15+
else
16+
BOARD_KERNEL_CMDLINE = bootopt=64S3,32N2,64N2
17+
endif
18+
19+
#W1923 Android Q new feature UDC
20+
BOARD_ROOT_EXTRA_FOLDERS += metadata
21+
BOARD_USES_METADATA_PARTITION := true
22+
23+
# ptgen
24+
MTK_PTGEN_CHIP := $(shell echo $(TARGET_BOARD_PLATFORM) | tr '[a-z]' '[A-Z]')
25+
-include device/mediatek/build/build/tools/ptgen/$(MTK_PTGEN_CHIP)/ptgen.mk
26+
27+
#Config partition size
28+
-include $(MTK_PTGEN_OUT)/partition_size.mk
29+
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
30+
BOARD_FLASH_BLOCK_SIZE := 4096
31+
32+
-include device/mediatek/build/core/soong_config.mk
33+

Diff for: ProjectConfig.mk

+524
Large diffs are not rendered by default.

Diff for: RuntimeSwitchConfig.mk

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#For customer to configure RSC, internal keep this only default
2+
#when remove all RSC, please also remove this line
3+
PRODUCT_CUSTOMER_RSC_NAMES := default
4+
5+
#For internal RSC configuration
6+
PRODUCT_MTK_RSC_NAMES := default
7+
8+
PRODUCT_MTK_RSC_NAMES += op01
9+
PRODUCT_MTK_RSC_NAMES += op02_lwctg
10+
PRODUCT_MTK_RSC_NAMES += op02_lwtg
11+
PRODUCT_MTK_RSC_NAMES += op09

Diff for: WMT_SOC.cfg

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
coex_wmt_ant_mode=1
2+
3+
wmt_gps_lna_pin=0
4+
wmt_gps_lna_enable=0
5+
6+
co_clock_flag=1

Diff for: android.hardware.camera.xml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (C) 2009 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+
<!-- This is the standard set of features for an camera. -->
18+
<permissions>
19+
<feature name="android.hardware.camera" />
20+
<!-- unmark following line if the hardware supports autofocus -->
21+
<feature name="android.hardware.camera.autofocus" />
22+
<feature name="android.hardware.camera.flash" />
23+
<feature name="android.hardware.camera.front" />
24+
<feature name="android.hardware.camera.any" />
25+
</permissions>

Diff for: android.hardware.microphone.xml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (C) 2009 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+
<!-- This is the standard feature indicating that the device includes microphone. -->
18+
<permissions>
19+
<feature name="android.hardware.microphone" />
20+
</permissions>

Diff for: android.hardware.telephony.gsm.xml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (C) 2009 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+
<!-- This is the standard set of telephony features for a GSM phone. -->
18+
<permissions>
19+
<feature name="android.hardware.telephony" />
20+
<feature name="android.hardware.telephony.gsm" />
21+
</permissions>

Diff for: android.hardware.usb.host.xml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (C) 2011 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+
<!-- This is the standard feature indicating that the device can communicate
18+
with USB devices as the USB host. -->
19+
<permissions>
20+
<feature name="android.hardware.usb.host" />
21+
</permissions>

Diff for: audio_policy.conf

+186
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
#
2+
# Audio policy configuration for generic device builds (goldfish audio HAL - emulator)
3+
#
4+
5+
# Global configuration section: lists input and output devices always present on the device
6+
# as well as the output device selected by default.
7+
# Devices are designated by a string that corresponds to the enum in audio.h
8+
9+
#global_configuration {
10+
# attached_output_devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE
11+
# default_output_device AUDIO_DEVICE_OUT_SPEAKER
12+
# attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_REMOTE_SUBMIX|AUDIO_DEVICE_IN_FM_TUNER
13+
#}
14+
15+
# audio hardware module section: contains descriptors for all audio hw modules present on the
16+
# device. Each hw module node is named after the corresponding hw module library base name.
17+
# For instance, "primary" corresponds to audio.primary.<device>.so.
18+
# The "primary" module is mandatory and must include at least one output with
19+
# AUDIO_OUTPUT_FLAG_PRIMARY flag.
20+
# Each module descriptor contains one or more output profile descriptors and zero or more
21+
# input profile descriptors. Each profile lists all the parameters supported by a given output
22+
# or input stream category.
23+
# The "channel_masks", "formats", "devices" and "flags" are specified using strings corresponding
24+
# to enums in audio.h and audio_policy.h. They are concatenated by use of "|" without space or "\n".
25+
26+
audio_hw_modules {
27+
primary {
28+
global_configuration {
29+
attached_output_devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE
30+
default_output_device AUDIO_DEVICE_OUT_SPEAKER
31+
attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_FM_TUNER|AUDIO_DEVICE_IN_VOICE_CALL
32+
audio_hal_version 3.0
33+
}
34+
devices {
35+
headset {
36+
type AUDIO_DEVICE_OUT_WIRED_HEADSET
37+
gains {
38+
gain_1 {
39+
mode AUDIO_GAIN_MODE_JOINT
40+
channel_mask AUDIO_CHANNEL_OUT_STEREO
41+
min_value_mB -6400
42+
max_value_mB 0
43+
default_value_mB 0
44+
step_value_mB 100
45+
min_ramp_ms 0
46+
max_ramp_ms 0
47+
}
48+
}
49+
}
50+
headphone {
51+
type AUDIO_DEVICE_OUT_WIRED_HEADPHONE
52+
gains {
53+
gain_1 {
54+
mode AUDIO_GAIN_MODE_JOINT
55+
channel_mask AUDIO_CHANNEL_OUT_STEREO
56+
min_value_mB -6400
57+
max_value_mB 0
58+
default_value_mB 0
59+
step_value_mB 100
60+
min_ramp_ms 0
61+
max_ramp_ms 0
62+
}
63+
}
64+
}
65+
}
66+
outputs {
67+
primary {
68+
sampling_rates 44100|48000|96000|192000
69+
channel_masks AUDIO_CHANNEL_OUT_STEREO
70+
formats AUDIO_FORMAT_PCM_32_BIT|AUDIO_FORMAT_PCM_16_BIT
71+
devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET|AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_FM|AUDIO_DEVICE_OUT_DEFAULT
72+
flags AUDIO_OUTPUT_FLAG_PRIMARY
73+
gains {
74+
gain_1 {
75+
mode AUDIO_GAIN_MODE_JOINT
76+
channel_mask AUDIO_CHANNEL_OUT_STEREO
77+
min_value_mB -6400
78+
max_value_mB 0
79+
default_value_mB 0
80+
step_value_mB 100
81+
min_ramp_ms 0
82+
max_ramp_ms 0
83+
}
84+
}
85+
}
86+
hdmi_stereo {
87+
sampling_rates 44100
88+
channel_masks AUDIO_CHANNEL_OUT_STEREO
89+
formats AUDIO_FORMAT_PCM_32_BIT|AUDIO_FORMAT_PCM_16_BIT
90+
devices AUDIO_DEVICE_OUT_AUX_DIGITAL
91+
}
92+
hdmi_multi_channel {
93+
sampling_rates 32000|44100|48000
94+
channel_masks AUDIO_CHANNEL_OUT_5POINT1|AUDIO_CHANNEL_OUT_7POINT1
95+
formats AUDIO_FORMAT_PCM_32_BIT|AUDIO_FORMAT_PCM_8_24_BIT|AUDIO_FORMAT_PCM_16_BIT
96+
devices AUDIO_DEVICE_OUT_AUX_DIGITAL
97+
flags AUDIO_OUTPUT_FLAG_DIRECT
98+
}
99+
fast {
100+
sampling_rates 44100|48000|96000|192000
101+
channel_masks AUDIO_CHANNEL_OUT_STEREO
102+
formats AUDIO_FORMAT_PCM_32_BIT|AUDIO_FORMAT_PCM_16_BIT
103+
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_EARPIECE
104+
flags AUDIO_OUTPUT_FLAG_FAST
105+
}
106+
}
107+
inputs {
108+
primary {
109+
sampling_rates 8000|16000|32000|44100|48000
110+
channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO|AUDIO_CHANNEL_IN_VOICE_UPLINK|AUDIO_CHANNEL_IN_VOICE_DNLINK
111+
formats AUDIO_FORMAT_PCM_16_BIT
112+
devices AUDIO_DEVICE_IN_COMMUNICATION|AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_AMBIENT|AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_AUX_DIGITAL|AUDIO_DEVICE_IN_MATV|AUDIO_DEVICE_IN_VOICE_CALL|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_ALL_SCO|AUDIO_DEVICE_IN_FM_TUNER|AUDIO_DEVICE_IN_DEFAULT
113+
}
114+
}
115+
}
116+
a2dp {
117+
global_configuration {
118+
audio_hal_version 2.0
119+
}
120+
outputs {
121+
a2dp {
122+
sampling_rates 44100
123+
channel_masks AUDIO_CHANNEL_OUT_STEREO
124+
formats AUDIO_FORMAT_PCM_16_BIT
125+
devices AUDIO_DEVICE_OUT_ALL_A2DP
126+
}
127+
}
128+
inputs {
129+
a2dp {
130+
sampling_rates 44100
131+
channel_masks AUDIO_CHANNEL_IN_STEREO
132+
formats AUDIO_FORMAT_PCM_16_BIT
133+
devices AUDIO_DEVICE_IN_BLUETOOTH_A2DP
134+
}
135+
}
136+
}
137+
usb {
138+
global_configuration {
139+
audio_hal_version 2.0
140+
}
141+
outputs {
142+
usb_accessory {
143+
sampling_rates 44100
144+
channel_masks AUDIO_CHANNEL_OUT_STEREO
145+
formats AUDIO_FORMAT_PCM_16_BIT
146+
devices AUDIO_DEVICE_OUT_USB_ACCESSORY
147+
}
148+
usb_device {
149+
sampling_rates dynamic
150+
channel_masks dynamic
151+
formats dynamic
152+
devices AUDIO_DEVICE_OUT_USB_DEVICE
153+
}
154+
}
155+
inputs {
156+
usb_device {
157+
sampling_rates dynamic
158+
channel_masks AUDIO_CHANNEL_IN_STEREO
159+
formats AUDIO_FORMAT_PCM_16_BIT
160+
devices AUDIO_DEVICE_IN_USB_DEVICE
161+
}
162+
}
163+
}
164+
r_submix {
165+
global_configuration {
166+
attached_input_devices AUDIO_DEVICE_IN_REMOTE_SUBMIX
167+
audio_hal_version 2.0
168+
}
169+
outputs {
170+
r_submix {
171+
sampling_rates 48000
172+
channel_masks AUDIO_CHANNEL_OUT_STEREO
173+
formats AUDIO_FORMAT_PCM_16_BIT
174+
devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX
175+
}
176+
}
177+
inputs {
178+
r_submix {
179+
sampling_rates 48000
180+
channel_masks AUDIO_CHANNEL_IN_STEREO
181+
formats AUDIO_FORMAT_PCM_16_BIT
182+
devices AUDIO_DEVICE_IN_REMOTE_SUBMIX
183+
}
184+
}
185+
}
186+
}

0 commit comments

Comments
 (0)