From 99fed9a3d2a2bcd44e873b4e85f087f8c6123b97 Mon Sep 17 00:00:00 2001 From: Jun Yu Date: Tue, 27 Oct 2015 01:44:44 -0700 Subject: Added the Audio HAL module source code BUG=25486837 Change-Id: I2d76e190a0acbe7ad432639a7ca96e58c11b594c --- peripheral/audio/audio_policy.conf | 87 + .../apu/map-lite/audio_basic_element_apu.xml | 2714 ++++++++++++++++++++ .../apu/map-lite/audio_path_config_apu.xml | 683 +++++ .../codec/ibiza2plus/audio_basic_element_codec.xml | 1004 ++++++++ .../codec/ibiza2plus/audio_path_config_codec.xml | 675 +++++ peripheral/audio/audio_xml/iap140.mk | 35 + .../audio_xml/platform/ulc/audio_gain_config.xml | 1067 ++++++++ .../platform/ulc/audio_virtualpath_config.xml | 903 +++++++ peripheral/audio/platform_audio_config.xml | 63 + soc/iap140/modules/audio_hal_module.mk | 30 + 10 files changed, 7261 insertions(+) create mode 100755 peripheral/audio/audio_policy.conf create mode 100644 peripheral/audio/audio_xml/apu/map-lite/audio_basic_element_apu.xml create mode 100644 peripheral/audio/audio_xml/apu/map-lite/audio_path_config_apu.xml create mode 100644 peripheral/audio/audio_xml/codec/ibiza2plus/audio_basic_element_codec.xml create mode 100644 peripheral/audio/audio_xml/codec/ibiza2plus/audio_path_config_codec.xml create mode 100755 peripheral/audio/audio_xml/iap140.mk create mode 100644 peripheral/audio/audio_xml/platform/ulc/audio_gain_config.xml create mode 100644 peripheral/audio/audio_xml/platform/ulc/audio_virtualpath_config.xml create mode 100644 peripheral/audio/platform_audio_config.xml create mode 100644 soc/iap140/modules/audio_hal_module.mk diff --git a/peripheral/audio/audio_policy.conf b/peripheral/audio/audio_policy.conf new file mode 100755 index 0000000..55819f3 --- /dev/null +++ b/peripheral/audio/audio_policy.conf @@ -0,0 +1,87 @@ +# +# Copyright (C) 2005. Marvell International 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. +# + +# Global configuration section: lists input and output devices always present on the device +# as well as the output device selected by default. +# Devices are designated by a string that corresponds to the enum in audio.h + + +global_configuration { + attached_output_devices AUDIO_DEVICE_OUT_SPEAKER + default_output_device AUDIO_DEVICE_OUT_SPEAKER + attached_input_devices AUDIO_DEVICE_IN_WIRED_HEADSET +} + +# Audio hardware module section: contains descriptors for all audio hw modules present on the +# device. Each hw module node is named after the corresponding hw module library base name. +# For instance, "primary" corresponds to audio.primary..so. +# The "primary" module is mandatory and must include at least one output with +# AUDIO_OUTPUT_FLAG_PRIMARY flag. +# Each module descriptor contains one or more output profile descriptors and zero or more +# input profile descriptors. Each profile lists all the parameters supported by a given output +# or input stream category. +# The "channel_masks", "formats", "devices" and "flags" are specified using strings corresponding +# to enums in audio.h and audio_policy.h. They are concatenated by use of "|" without space or "\n". + +audio_hw_modules { + primary { + outputs { + primary { + sampling_rates 44100 + channel_masks AUDIO_CHANNEL_OUT_STEREO + formats AUDIO_FORMAT_PCM_16_BIT + devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET + flags AUDIO_OUTPUT_FLAG_PRIMARY + } + } + inputs { + primary { + sampling_rates 8000|11025|16000|22050|32000|44100|48000 + channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO|AUDIO_CHANNEL_IN_FRONT_BACK + formats AUDIO_FORMAT_PCM_16_BIT + devices AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET + } + } + } + a2dp { + outputs { + a2dp { + sampling_rates 44100 + channel_masks AUDIO_CHANNEL_OUT_STEREO + formats AUDIO_FORMAT_PCM_16_BIT + devices AUDIO_DEVICE_OUT_ALL_A2DP + } + } + } + usb { + outputs { + usb_device { + sampling_rates dynamic + channel_masks dynamic + formats dynamic + devices AUDIO_DEVICE_OUT_USB_DEVICE + } + } + inputs { + usb_device { + sampling_rates dynamic + channel_masks dynamic + formats dynamic + devices AUDIO_DEVICE_IN_USB_DEVICE + } + } + } +} diff --git a/peripheral/audio/audio_xml/apu/map-lite/audio_basic_element_apu.xml b/peripheral/audio/audio_xml/apu/map-lite/audio_basic_element_apu.xml new file mode 100644 index 0000000..bd2df57 --- /dev/null +++ b/peripheral/audio/audio_xml/apu/map-lite/audio_basic_element_apu.xml @@ -0,0 +1,2714 @@ + + + + + + + + + + + + + + + + + 2.0 + + ELBA + USTICA + CLASSD_AMP + BT + FM + GPIO_PORT + DELAY + MODEM + SW + CODEC + PMIC + APU + + + I2C + HCI + GPIO + ACIPC + SLEEP + APB + + + ENABLE + DISABLE + MUTE + SETVOLUME + SWITCH + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/peripheral/audio/audio_xml/apu/map-lite/audio_path_config_apu.xml b/peripheral/audio/audio_xml/apu/map-lite/audio_path_config_apu.xml new file mode 100644 index 0000000..f091c0c --- /dev/null +++ b/peripheral/audio/audio_xml/apu/map-lite/audio_path_config_apu.xml @@ -0,0 +1,683 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/peripheral/audio/audio_xml/codec/ibiza2plus/audio_basic_element_codec.xml b/peripheral/audio/audio_xml/codec/ibiza2plus/audio_basic_element_codec.xml new file mode 100644 index 0000000..f5d8c7a --- /dev/null +++ b/peripheral/audio/audio_xml/codec/ibiza2plus/audio_basic_element_codec.xml @@ -0,0 +1,1004 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +2.0 + +CODEC +ELBA +USTICA +CLASSD_AMP +BT +FM +GPIO_PORT +DELAY +MODEM +SW +CODEC +PMIC +APU + + +I2C +HCI +GPIO +ACIPC +SLEEP +APB + + +ENABLE +DISABLE +MUTE +SETVOLUME +SWITCH + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/peripheral/audio/audio_xml/codec/ibiza2plus/audio_path_config_codec.xml b/peripheral/audio/audio_xml/codec/ibiza2plus/audio_path_config_codec.xml new file mode 100644 index 0000000..a8f26cc --- /dev/null +++ b/peripheral/audio/audio_xml/codec/ibiza2plus/audio_path_config_codec.xml @@ -0,0 +1,675 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/peripheral/audio/audio_xml/iap140.mk b/peripheral/audio/audio_xml/iap140.mk new file mode 100755 index 0000000..23f58f4 --- /dev/null +++ b/peripheral/audio/audio_xml/iap140.mk @@ -0,0 +1,35 @@ +# Copyright (C) 2015 The Android Open Source Project +# +# 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. + +XML_LOCAL_PATH := hardware/bsp/marvell/peripheral/audio/audio_xml +XML_TARGET_PATH := system/etc + +define copy-path +$(foreach file,$(subst \ + $(XML_LOCAL_PATH)/$(1)/,,$(wildcard \ + $(addprefix $(XML_LOCAL_PATH)/$(1)/,$(2)))), \ + $(XML_LOCAL_PATH)/$(1)/$(file):$(XML_TARGET_PATH)/$(file)) +endef + +# APU # +APU_DIR := apu/map-lite +PRODUCT_COPY_FILES += $(call copy-path,$(APU_DIR),*) + +# CODEC # +CODEC_DIR := codec/ibiza2plus +PRODUCT_COPY_FILES += $(call copy-path,$(CODEC_DIR),*) + +# PLATFORM # +PLATFORM_DIR := platform/ulc +PRODUCT_COPY_FILES += $(call copy-path,$(PLATFORM_DIR),*) diff --git a/peripheral/audio/audio_xml/platform/ulc/audio_gain_config.xml b/peripheral/audio/audio_xml/platform/ulc/audio_gain_config.xml new file mode 100644 index 0000000..7d2e653 --- /dev/null +++ b/peripheral/audio/audio_xml/platform/ulc/audio_gain_config.xml @@ -0,0 +1,1067 @@ + + + + + + + + + + + + + + + + + + + + 0x03 + + + 0x03 + + + + + 0xb6 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x03 + + + 0x03 + + + + + 0xb6 + + + 0xb6 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0xb6 + + + 0xb6 + + + + + 0x80 + + + 0xeb + + + 0xeb + + + + + 0x03 + + + 0x03 + + + + + 0xb6 + + + 0xb6 + + + 0xb6 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x03 + + + 0x03 + + + + + 0xb6 + + + 0xb6 + + + 0xb6 + + + 0xb6 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0xb6 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x80 + + + 0xeb + + + 0xeb + + + + + 0x16 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x16 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x16 + + + 0x16 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x16 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x20 + 0x22 + 0x24 + 0x26 + 0x28 + 0x2a + + + 0x23 + 0x25 + 0x27 + 0x29 + 0x2b + 0x2d + + + 0x20 + 0x22 + 0x24 + 0x26 + 0x28 + 0x2a + + + 0x23 + 0x25 + 0x27 + 0x29 + 0x2b + 0x2d + + + + + 0x03 + + + 0x03 + + + + + 0xb6 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x20 + 0x22 + 0x24 + 0x26 + 0x28 + 0x2a + + + 0x23 + 0x25 + 0x27 + 0x29 + 0x2b + 0x2d + + + 0x20 + 0x22 + 0x24 + 0x26 + 0x28 + 0x2a + + + 0x23 + 0x25 + 0x27 + 0x29 + 0x2b + 0x2d + + + + + 0x03 + + + 0x03 + + + + + 0xb6 + + + 0xb6 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x16 + 0x1a + 0x1e + 0x22 + 0x25 + 0x2a + + + 0x16 + 0x1a + 0x1e + 0x22 + 0x25 + 0x2a + + + + + 0xb6 + + + 0xb6 + + + + + 0x80 + + + 0xeb + + + 0xeb + + + + + 0x20 + 0x22 + 0x24 + 0x26 + 0x28 + 0x2a + + + 0x20 + 0x22 + 0x24 + 0x26 + 0x28 + 0x2a + + + + + 0xb6 + + + 0xb6 + + + + + 0x80 + + + 0xeb + + + 0xeb + + + + + 0x20 + 0x22 + 0x24 + 0x26 + 0x28 + 0x2a + + + 0x23 + 0x25 + 0x27 + 0x29 + 0x2b + 0x2d + + + 0x20 + 0x22 + 0x24 + 0x26 + 0x28 + 0x2a + + + 0x23 + 0x25 + 0x27 + 0x29 + 0x2b + 0x2d + + + + + 0xb6 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x20 + 0x22 + 0x24 + 0x26 + 0x28 + 0x2a + + + 0x20 + 0x22 + 0x24 + 0x26 + 0x28 + 0x2a + + + + + 0x80 + + + 0xeb + + + 0xeb + + + + + 0x2f + + + 0x2f + + + 0x2f + + + 0x2f + + + + + 0x2f + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x2f + + + 0x2f + + + 0x2f + + + 0x2f + + + + + 0x16 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x2f + + + 0x2f + + + 0x2f + + + 0x2f + + + + + 0x16 + + + 0x16 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x2f + + + 0x2f + + + + + 0x16 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x2f + + + 0x2f + + + + + 0x10 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x2f + + + 0x2f + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x03 + + + 0x03 + + + + + 0xb6 + + + + + 0x00 + 0x01 + 0x02 + 0x03 + 0x04 + 0x06 + 0x09 + 0x0d + 0x12 + 0x19 + 0x24 + 0x32 + 0x48 + 0x5a + 0x72 + 0x80 + + + 0xff + + + 0xff + + + + + 0x16 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x16 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x03 + + + 0x03 + + + + + 0xb6 + + + + + 0x00 + 0x01 + 0x02 + 0x03 + 0x04 + 0x06 + 0x09 + 0x0d + 0x12 + 0x19 + 0x24 + 0x32 + 0x48 + 0x5a + 0x72 + 0x80 + + + 0xff + + + 0xff + + + + + 0x03 + + + 0x03 + + + + + 0xb6 + + + 0xb6 + + + + + 0x00 + 0x01 + 0x02 + 0x03 + 0x04 + 0x06 + 0x09 + 0x0d + 0x12 + 0x19 + 0x24 + 0x32 + 0x48 + 0x5a + 0x72 + 0x80 + + + 0xff + + + 0xff + + + + + 0xb6 + + + 0xb6 + + + + + 0x00 + 0x01 + 0x02 + 0x03 + 0x04 + 0x06 + 0x09 + 0x0d + 0x12 + 0x19 + 0x24 + 0x32 + 0x48 + 0x5a + 0x72 + 0x80 + + + 0xeb + + + 0xeb + + + + + 0x16 + + + 0x16 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + 0x16 + + + 0x16 + + + + + 0x80 + + + 0xff + + + 0xff + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/peripheral/audio/audio_xml/platform/ulc/audio_virtualpath_config.xml b/peripheral/audio/audio_xml/platform/ulc/audio_virtualpath_config.xml new file mode 100644 index 0000000..c66e7e9 --- /dev/null +++ b/peripheral/audio/audio_xml/platform/ulc/audio_virtualpath_config.xml @@ -0,0 +1,903 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/peripheral/audio/platform_audio_config.xml b/peripheral/audio/platform_audio_config.xml new file mode 100644 index 0000000..189ac9f --- /dev/null +++ b/peripheral/audio/platform_audio_config.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + AMIC1 + AMIC2 + AMIC1_SPK_MODE + AMIC2_SPK_MODE + HSMIC + + + + + AMIC1 + + + + AMIC1 + + + AMIC1 + + + AMIC1 + + + + AMIC1 + + + + + + AMIC1_SPK_MODE + + + AMIC1_SPK_MODE + + + AMIC1_SPK_MODE + + + AMIC1 + + + AMIC1 + + + + diff --git a/soc/iap140/modules/audio_hal_module.mk b/soc/iap140/modules/audio_hal_module.mk new file mode 100644 index 0000000..fa4aef0 --- /dev/null +++ b/soc/iap140/modules/audio_hal_module.mk @@ -0,0 +1,30 @@ +# +# Copyright 2015 The Android Open Source Project +# +# 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. +# + +# audio modules +PRODUCT_COPY_FILES += \ + $(TOP)/vendor/bsp/marvell/device/abox/hal/audio/libacm.so:system/lib/libacm.so \ + $(TOP)/vendor/bsp/marvell/device/abox/hal/audio/libxml2.so:system/lib/libxml2.so \ + $(TOP)/vendor/bsp/marvell/device/abox/hal/audio/audio.primary.mrvl.so:system/lib/hw/audio.primary.mrvl.so + +PRODUCT_COPY_FILES += \ + $(TOP)/hardware/bsp/marvell/peripheral/audio/audio_policy.conf:/system/etc/audio_policy.conf \ + $(TOP)/hardware/bsp/marvell/peripheral/audio/platform_audio_config.xml:/system/etc/platform_audio_config.xml + +PRODUCT_PACKAGES += \ + libaudioutils + +-include hardware/bsp/marvell/peripheral/audio/audio_xml/iap140.mk -- cgit v1.2.3