msm8976-common: Initial tree based on xiaomi/msm8956-common
commit
3b78c9adb8
@ -0,0 +1,42 @@
|
||||
#
|
||||
# Copyright (C) 2016 The CyanogenMod 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.
|
||||
#
|
||||
|
||||
# This contains the module build definitions for the hardware-specific
|
||||
# components for this device.
|
||||
#
|
||||
# As much as possible, those components should be built unconditionally,
|
||||
# with device-specific names to avoid collisions, to avoid device-specific
|
||||
# bitrot and build breakages. Building a component unconditionally does
|
||||
# *not* include it on all devices, so it is safe even with hardware-specific
|
||||
# components.
|
||||
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
ifneq ($(filter gts210vewifi,$(TARGET_DEVICE)),)
|
||||
|
||||
include $(call all-makefiles-under,$(LOCAL_PATH))
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
# Create a link for the WCNSS config file, which ends up as a writable
|
||||
# version in /data/misc/wifi
|
||||
$(shell mkdir -p $(TARGET_OUT)/etc/firmware/wlan/prima; \
|
||||
ln -sf /data/misc/wifi/WCNSS_qcom_cfg.ini \
|
||||
$(TARGET_OUT)/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini)
|
||||
|
||||
include device/samsung/msm8976-common/tftp.mk
|
||||
|
||||
endif
|
@ -0,0 +1 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
@ -0,0 +1,203 @@
|
||||
#
|
||||
# Copyright (C) 2016 The CyanogenMod 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.
|
||||
#
|
||||
|
||||
VENDOR_PATH := device/samsung/msm8976-common
|
||||
|
||||
TARGET_SPECIFIC_HEADER_PATH := $(VENDOR_PATH)/include
|
||||
|
||||
# Architecture
|
||||
TARGET_ARCH := arm64
|
||||
TARGET_ARCH_VARIANT := armv8-a
|
||||
TARGET_CPU_ABI := arm64-v8a
|
||||
TARGET_CPU_ABI2 :=
|
||||
TARGET_CPU_VARIANT := generic
|
||||
|
||||
TARGET_2ND_ARCH := arm
|
||||
TARGET_2ND_ARCH_VARIANT := armv7-a-neon
|
||||
TARGET_2ND_CPU_ABI := armeabi-v7a
|
||||
TARGET_2ND_CPU_ABI2 := armeabi
|
||||
TARGET_2ND_CPU_VARIANT := cortex-a53.a57
|
||||
|
||||
TARGET_CPU_CORTEX_A53 := true
|
||||
|
||||
TARGET_BOARD_PLATFORM := msm8952
|
||||
TARGET_BOARD_PLATFORM_GPU := qcom-adreno510
|
||||
|
||||
TARGET_USES_64_BIT_BINDER := true
|
||||
ENABLE_CPUSETS := true
|
||||
|
||||
# Bootloader
|
||||
TARGET_BOOTLOADER_BOARD_NAME := msm8952
|
||||
TARGET_NO_BOOTLOADER := true
|
||||
|
||||
# Kernel
|
||||
BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 earlyprintk androidboot.selinux=permissive
|
||||
BOARD_KERNEL_BASE := 0x80000000
|
||||
BOARD_KERNEL_PAGESIZE := 2048
|
||||
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01000000 --tags_offset 0x00000100
|
||||
BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb
|
||||
TARGET_KERNEL_APPEND_DTB := true
|
||||
TARGET_KERNEL_ARCH := arm64
|
||||
TARGET_KERNEL_HEADER_ARCH := arm64
|
||||
TARGET_KERNEL_SOURCE := kernel/samsung/msm8976
|
||||
TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android-
|
||||
|
||||
# ANT+
|
||||
BOARD_ANT_WIRELESS_DEVICE := "vfs-prerelease"
|
||||
|
||||
# Audio
|
||||
AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
|
||||
#AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
|
||||
AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
|
||||
#AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
|
||||
AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
|
||||
AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
|
||||
AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false
|
||||
AUDIO_FEATURE_ENABLED_HDMI_EDID := true
|
||||
AUDIO_FEATURE_ENABLED_HDMI_SPK := true
|
||||
AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false
|
||||
AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
|
||||
AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
|
||||
AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
|
||||
AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
|
||||
AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
|
||||
AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY := true
|
||||
#AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
|
||||
#AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
|
||||
AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
|
||||
BOARD_USES_ALSA_AUDIO := true
|
||||
USE_CUSTOM_AUDIO_POLICY := 1
|
||||
|
||||
# Bluetooth
|
||||
BOARD_HAVE_BLUETOOTH := true
|
||||
BOARD_HAVE_BLUETOOTH_QCOM := true
|
||||
BLUETOOTH_HCI_USE_MCT := true
|
||||
QCOM_BT_USE_BTNV := true
|
||||
QCOM_BT_USE_SMD_TTY := true
|
||||
|
||||
# Camera
|
||||
BOARD_QTI_CAMERA_32BIT_ONLY := true
|
||||
USE_DEVICE_SPECIFIC_CAMERA := true
|
||||
TARGET_TS_MAKEUP := true
|
||||
|
||||
# Charger
|
||||
BOARD_CHARGER_ENABLE_SUSPEND := true
|
||||
|
||||
# CMHW
|
||||
BOARD_USES_CYANOGEN_HARDWARE := true
|
||||
BOARD_HARDWARE_CLASS += \
|
||||
hardware/cyanogen/cmhw \
|
||||
$(VENDOR_PATH)/cmhw
|
||||
|
||||
# CNE
|
||||
BOARD_USES_QCNE := true
|
||||
TARGET_LDPRELOAD := libNimsWrap.so
|
||||
|
||||
# Display
|
||||
BOARD_USES_ADRENO := true
|
||||
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
|
||||
SF_VSYNC_EVENT_PHASE_OFFSET_NS := 2000000
|
||||
TARGET_CONTINUOUS_SPLASH_ENABLED := true
|
||||
TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
|
||||
TARGET_USES_C2D_COMPOSITION := true
|
||||
TARGET_USES_ION := true
|
||||
TARGET_USES_OVERLAY := true
|
||||
USE_OPENGL_RENDERER := true
|
||||
VSYNC_EVENT_PHASE_OFFSET_NS := 6000000
|
||||
|
||||
MAX_EGL_CACHE_KEY_SIZE := 12*1024
|
||||
MAX_EGL_CACHE_SIZE := 2048*1024
|
||||
MAX_VIRTUAL_DISPLAY_DIMENSION := 2048
|
||||
|
||||
OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so
|
||||
|
||||
# Encryption
|
||||
TARGET_HW_DISK_ENCRYPTION := true
|
||||
|
||||
# Filesystem
|
||||
BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)
|
||||
BOARD_BOOTIMAGE_PARTITION_SIZE := 33554432
|
||||
BOARD_CACHEIMAGE_PARTITION_SIZE := 209715200
|
||||
BOARD_PERSISTIMAGE_PARTITION_SIZE := 33554432
|
||||
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 33554432
|
||||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 4404019200
|
||||
BOARD_USERDATAIMAGE_PARTITION_SIZE := 26268905472
|
||||
|
||||
TARGET_ANDROID_FILESYSTEM_CONFIG_H := $(VENDOR_PATH)/android_filesystem_config.h
|
||||
|
||||
# FM
|
||||
TARGET_QCOM_NO_FM_FIRMWARE := true
|
||||
|
||||
# GPS
|
||||
USE_DEVICE_SPECIFIC_GPS := true
|
||||
USE_DEVICE_SPECIFIC_LOC_API := true
|
||||
TARGET_NO_RPC := true
|
||||
|
||||
# Init
|
||||
TARGET_INIT_VENDOR_LIB := libinit_msm
|
||||
TARGET_PLATFORM_DEVICE_BASE := /devices/soc.0/
|
||||
TARGET_RECOVERY_DEVICE_MODULES := libinit_msm
|
||||
|
||||
# Keymaster
|
||||
TARGET_PROVIDES_KEYMASTER := true
|
||||
|
||||
# Lights
|
||||
BOARD_LIGHTS_VARIANT := aw2013
|
||||
TARGET_PROVIDES_LIBLIGHT := true
|
||||
|
||||
# Media
|
||||
TARGET_USES_MEDIA_EXTENSIONS := true
|
||||
|
||||
# Peripheral manager
|
||||
TARGET_PER_MGR_ENABLED := true
|
||||
|
||||
# Power
|
||||
TARGET_POWERHAL_VARIANT := qcom
|
||||
|
||||
# Properties
|
||||
TARGET_SYSTEM_PROP += $(VENDOR_PATH)/system.prop
|
||||
|
||||
# Qualcomm
|
||||
BOARD_USES_QCOM_HARDWARE := true
|
||||
BOARD_USES_QC_TIME_SERVICES := true
|
||||
|
||||
# Recovery
|
||||
TARGET_RECOVERY_FSTAB := $(VENDOR_PATH)/rootdir/etc/fstab.qcom
|
||||
TARGET_USERIMAGES_USE_EXT4 := true
|
||||
TARGET_USERIMAGES_USE_F2FS := true
|
||||
|
||||
# RIL
|
||||
PROTOBUF_SUPPORTED := true
|
||||
TARGET_RIL_VARIANT := caf
|
||||
|
||||
# SELinux
|
||||
include device/qcom/sepolicy/sepolicy.mk
|
||||
# BOARD_SEPOLICY_DIRS += $(VENDOR_PATH)/sepolicy
|
||||
|
||||
# Sensors
|
||||
USE_SENSOR_MULTI_HAL := true
|
||||
|
||||
# Wifi
|
||||
WPA_SUPPLICANT_VERSION := VER_0_8_X
|
||||
BOARD_HAS_QCOM_WLAN := true
|
||||
BOARD_HAS_QCOM_WLAN_SDK := true
|
||||
BOARD_WLAN_DEVICE := qcwcn
|
||||
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
|
||||
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
|
||||
BOARD_HOSTAPD_DRIVER := NL80211
|
||||
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
|
||||
WIFI_DRIVER_FW_PATH_AP := "ap"
|
||||
WIFI_DRIVER_FW_PATH_STA := "sta"
|
@ -0,0 +1,39 @@
|
||||
/*
|
||||
# Copyright (c) 2016, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following
|
||||
# disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <private/android_filesystem_config.h>
|
||||
|
||||
#define NO_ANDROID_FILESYSTEM_CONFIG_DEVICE_DIRS
|
||||
const struct fs_path_config android_device_files[] = {
|
||||
// { 00755, AID_UID, AID_GID, (1ULL << CAPABILITY), "PATH_TO_BINARY" },
|
||||
{ 00755, AID_SYSTEM, AID_SYSTEM, (1ULL << CAP_NET_BIND_SERVICE), "system/bin/pm-service"},
|
||||
{ 00755, AID_SYSTEM, AID_SYSTEM, (1ULL << CAP_NET_BIND_SERVICE), "system/bin/imsdatadaemon" },
|
||||
{ 00755, AID_SYSTEM, AID_SYSTEM, (1ULL << CAP_NET_BIND_SERVICE), "system/bin/cnss-daemon"},
|
||||
{ 00755, AID_SYSTEM, AID_RADIO, (1ULL << CAP_NET_BIND_SERVICE), "system/bin/ims_rtp_daemon" },
|
||||
};
|
@ -0,0 +1,170 @@
|
||||
# Copyright (c) 2014, 2016, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following
|
||||
# disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#ANC_TEST_P_PATH_MIC_STEREO Capture
|
||||
acdb_dev_id:85
|
||||
!Capture
|
||||
Txdevice:0
|
||||
|
||||
enable
|
||||
TX7 HPF Switch:0
|
||||
TX8 HPF Switch:0
|
||||
AIF1_CAP Mixer SLIM TX7:1
|
||||
AIF1_CAP Mixer SLIM TX8:1
|
||||
SLIM TX7 MUX:DEC9
|
||||
DEC9 MUX:DMIC4
|
||||
SLIM TX8 MUX:DEC10
|
||||
DEC10 MUX:DMIC3
|
||||
SLIM_0_TX Channels:Two
|
||||
MultiMedia1 Mixer SLIM_0_TX:1
|
||||
|
||||
disable
|
||||
MultiMedia1 Mixer SLIM_0_TX:0
|
||||
AIF1_CAP Mixer SLIM TX7:0
|
||||
AIF1_CAP Mixer SLIM TX8:0
|
||||
SLIM TX7 MUX:ZERO
|
||||
SLIM TX8 MUX:ZERO
|
||||
DEC10 MUX:ZERO
|
||||
DEC9 MUX:ZERO
|
||||
TX7 HPF Switch:0
|
||||
TX8 HPF Switch:0
|
||||
|
||||
#ANC_TEST_S_PATH_MIC_STEREO Capture
|
||||
acdb_dev_id:88
|
||||
!Capture
|
||||
Txdevice:0
|
||||
|
||||
enable
|
||||
TX7 HPF Switch:0
|
||||
TX8 HPF Switch:0
|
||||
AIF1_CAP Mixer SLIM TX7:1
|
||||
AIF1_CAP Mixer SLIM TX8:1
|
||||
SLIM TX7 MUX:DEC8
|
||||
DEC7 MUX:ANC2_FB
|
||||
ANC2 MUX:DMIC3
|
||||
SLIM TX8 MUX:DEC7
|
||||
DEC8 MUX:ANC1_FB
|
||||
ANC1 MUX:DMIC3
|
||||
ANC1 FB MUX:EAR_HPH_L
|
||||
SLIM_0_TX Channels:Two
|
||||
MultiMedia1 Mixer SLIM_0_TX:1
|
||||
|
||||
disable
|
||||
MultiMedia1 Mixer SLIM_0_TX:0
|
||||
AIF1_CAP Mixer SLIM TX7:0
|
||||
AIF1_CAP Mixer SLIM TX8:0
|
||||
SLIM TX7 MUX:ZERO
|
||||
SLIM TX8 MUX:ZERO
|
||||
DEC7 MUX:ZERO
|
||||
ANC2 MUX:ZERO
|
||||
ANC1 MUX:ZERO
|
||||
DEC8 MUX:ZERO
|
||||
ANC1 FB MUX:ZERO
|
||||
TX7 HPF Switch:0
|
||||
TX8 HPF Switch:0
|
||||
|
||||
#ANC_TEST_E_PATH_MIC_STEREO Capture
|
||||
acdb_dev_id:91
|
||||
!Capture
|
||||
Txdevice:0
|
||||
|
||||
enable
|
||||
TX7 HPF Switch:0
|
||||
TX8 HPF Switch:0
|
||||
AIF1_CAP Mixer SLIM TX7:1
|
||||
AIF1_CAP Mixer SLIM TX8:1
|
||||
SLIM TX7 MUX:DEC8
|
||||
DEC7 MUX:ANC2_FB
|
||||
ANC2 MUX:DMIC4
|
||||
ANC1 MUX:DMIC4
|
||||
SLIM TX8 MUX:DEC7
|
||||
DEC8 MUX:ANC1_FB
|
||||
ANC1 FB MUX:EAR_HPH_L
|
||||
SLIM_0_TX Channels:Two
|
||||
MultiMedia1 Mixer SLIM_0_TX:1
|
||||
|
||||
disable
|
||||
MultiMedia1 Mixer SLIM_0_TX:0
|
||||
AIF1_CAP Mixer SLIM TX7:0
|
||||
AIF1_CAP Mixer SLIM TX8:0
|
||||
SLIM TX7 MUX:ZERO
|
||||
SLIM TX8 MUX:ZERO
|
||||
DEC7 MUX:ZERO
|
||||
ANC2 MUX:ZERO
|
||||
DEC10 MUX:ZERO
|
||||
ANC1 FB MUX:ZERO
|
||||
TX7 HPF Switch:0
|
||||
TX8 HPF Switch:0
|
||||
|
||||
#ANC_TEST_S_PATH_HANDSET_SPKR_ANC_MONO
|
||||
acdb_dev_id:86
|
||||
!Playback
|
||||
Rxdevice:0
|
||||
|
||||
enable
|
||||
ANC Function:ON
|
||||
SLIM RX1 MUX:AIF1_PB
|
||||
SLIM_0_RX Channels:One
|
||||
RX1 MIX1 INP1:RX1
|
||||
CLASS_H_DSM MUX:DSM_HPHL_RX1
|
||||
RX1 Digital Volume:87
|
||||
DAC1 Switch:1
|
||||
ANC Slot:7
|
||||
SLIMBUS_0_RX Audio Mixer MultiMedia1:1
|
||||
|
||||
disable
|
||||
SLIMBUS_0_RX Audio Mixer MultiMedia1:0
|
||||
ANC Slot:0
|
||||
SLIM RX1 MUX:ZERO
|
||||
RX1 MIX1 INP1:ZERO
|
||||
RX1 Digital Volume:0
|
||||
DAC1 Switch:0
|
||||
ANC Function:OFF
|
||||
|
||||
#ANC_TEST_E_PATH_HANDSET_SPKR_ANC_MONO
|
||||
acdb_dev_id:89
|
||||
!Playback
|
||||
Rxdevice:0
|
||||
|
||||
enable
|
||||
ANC Function:ON
|
||||
SLIM RX1 MUX:AIF1_PB
|
||||
SLIM_0_RX Channels:One
|
||||
RX1 MIX1 INP1:RX1
|
||||
CLASS_H_DSM MUX:DSM_HPHL_RX1
|
||||
RX1 Digital Volume:87
|
||||
DAC1 Switch:1
|
||||
ANC Slot:8
|
||||
SLIMBUS_0_RX Audio Mixer MultiMedia1:1
|
||||
|
||||
disable
|
||||
SLIMBUS_0_RX Audio Mixer MultiMedia1:0
|
||||
ANC Slot:0
|
||||
SLIM RX1 MUX:ZERO
|
||||
RX1 MIX1 INP1:ZERO
|
||||
RX1 Digital Volume:0
|
||||
DAC1 Switch:0
|
||||
ANC Function:OFF
|
@ -0,0 +1,322 @@
|
||||
# Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following
|
||||
# disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# List of effect libraries to load. Each library element must contain a "path" element
|
||||
# giving the full path of the library .so file.
|
||||
# libraries {
|
||||
# <lib name> {
|
||||
# path <lib path>
|
||||
# }
|
||||
# }
|
||||
libraries {
|
||||
bundle {
|
||||
path /system/lib/soundfx/libbundlewrapper.so
|
||||
}
|
||||
reverb {
|
||||
path /system/lib/soundfx/libreverbwrapper.so
|
||||
}
|
||||
qcbassboost {
|
||||
path /vendor/lib/soundfx/libqcbassboost.so
|
||||
}
|
||||
qcvirt {
|
||||
path /vendor/lib/soundfx/libqcvirt.so
|
||||
}
|
||||
qcreverb {
|
||||
path /vendor/lib/soundfx/libqcreverb.so
|
||||
}
|
||||
visualizer_sw {
|
||||
path /system/lib/soundfx/libvisualizer.so
|
||||
}
|
||||
visualizer_hw {
|
||||
path /system/lib/soundfx/libqcomvisualizer.so
|
||||
}
|
||||
downmix {
|
||||
path /system/lib/soundfx/libdownmix.so
|
||||
}
|
||||
loudness_enhancer {
|
||||
path /system/lib/soundfx/libldnhncr.so
|
||||
}
|
||||
proxy {
|
||||
path /system/lib/soundfx/libeffectproxy.so
|
||||
}
|
||||
offload_bundle {
|
||||
path /system/lib/soundfx/libqcompostprocbundle.so
|
||||
}
|
||||
audio_pre_processing {
|
||||
path /system/lib/soundfx/libqcomvoiceprocessing.so
|
||||
}
|
||||
}
|
||||
|
||||
# Default pre-processing library. Add to audio_effect.conf "libraries" section if
|
||||
# audio HAL implements support for default software audio pre-processing effects
|
||||
#
|
||||
# pre_processing {
|
||||
# path /system/lib/soundfx/libaudiopreprocessing.so
|
||||
# }
|
||||
|
||||
# list of effects to load. Each effect element must contain a "library" and a "uuid" element.
|
||||
# The value of the "library" element must correspond to the name of one library element in the
|
||||
# "libraries" element.
|
||||
# The name of the effect element is indicative, only the value of the "uuid" element
|
||||
# designates the effect.
|
||||
# The uuid is the implementation specific UUID as specified by the effect vendor. This is not the
|
||||
# generic effect type UUID.
|
||||
# effects {
|
||||
# <fx name> {
|
||||
# library <lib name>
|
||||
# uuid <effect uuid>
|
||||
# }
|
||||
# ...
|
||||
# }
|
||||
|
||||
effects {
|
||||
|
||||
# additions for the proxy implementation
|
||||
# Proxy implementation
|
||||
#effectname {
|
||||
#library proxy
|
||||
#uuid xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
|
||||
|
||||
# SW implemetation of the effect. Added as a node under the proxy to
|
||||
# indicate this as a sub effect.
|
||||
#libsw {
|
||||
#library libSW
|
||||
#uuid yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
|
||||
#} End of SW effect
|
||||
|
||||
# HW implementation of the effect. Added as a node under the proxy to
|
||||
# indicate this as a sub effect.
|
||||
#libhw {
|
||||
#library libHW
|
||||
#uuid zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz
|
||||
#}End of HW effect
|
||||
#} End of effect proxy
|
||||
|
||||
bassboost {
|
||||
library proxy
|
||||
uuid 14804144-a5ee-4d24-aa88-0002a5d5c51b
|
||||
|
||||
libsw {
|
||||
library qcbassboost
|
||||
uuid 23aca180-44bd-11e2-bcfd-0800200c9a66
|
||||
}
|
||||
|
||||
libhw {
|
||||
library offload_bundle
|
||||
uuid 2c4a8c24-1581-487f-94f6-0002a5d5c51b
|
||||
}
|
||||
}
|
||||
virtualizer {
|
||||
library proxy
|
||||
uuid d3467faa-acc7-4d34-acaf-0002a5d5c51b
|
||||
|
||||
libsw {
|
||||
library qcvirt
|
||||
uuid e6c98a16-22a3-11e2-b87b-f23c91aec05e
|
||||
}
|
||||
|
||||
libhw {
|
||||
library offload_bundle
|
||||
uuid 509a4498-561a-4bea-b3b1-0002a5d5c51b
|
||||
}
|
||||
}
|
||||
equalizer {
|
||||
library proxy
|
||||
uuid c8e70ecd-48ca-456e-8a4f-0002a5d5c51b
|
||||
|
||||
libsw {
|
||||
library bundle
|
||||
uuid ce772f20-847d-11df-bb17-0002a5d5c51b
|
||||
}
|
||||
|
||||
libhw {
|
||||
library offload_bundle
|
||||
uuid a0dac280-401c-11e3-9379-0002a5d5c51b
|
||||
}
|
||||
}
|
||||
volume {
|
||||
library bundle
|
||||
uuid 119341a0-8469-11df-81f9-0002a5d5c51b
|
||||
}
|
||||
reverb_env_aux {
|
||||
library proxy
|
||||
uuid 48404ac9-d202-4ccc-bf84-0002a5d5c51b
|
||||
|
||||
libsw {
|
||||
library qcreverb
|
||||
uuid a8c1e5f3-293d-43cd-95ec-d5e26c02e217
|
||||
}
|
||||
|
||||
libhw {
|
||||
library offload_bundle
|
||||
uuid 79a18026-18fd-4185-8233-0002a5d5c51b
|
||||
}
|
||||
}
|
||||
reverb_env_ins {
|
||||
library proxy
|
||||
uuid b707403a-a1c1-4291-9573-0002a5d5c51b
|
||||
|
||||
libsw {
|
||||
library qcreverb
|
||||
uuid 791fff8b-8129-4655-83a4-59bc61034c3a
|
||||
}
|
||||
|
||||
libhw {
|
||||
library offload_bundle
|
||||
uuid eb64ea04-973b-43d2-8f5e-0002a5d5c51b
|
||||
}
|
||||
}
|
||||
reverb_pre_aux {
|
||||
library proxy
|
||||
uuid 1b78f587-6d1c-422e-8b84-0002a5d5c51b
|
||||
|
||||
libsw {
|
||||
library qcreverb
|
||||
uuid 53ef1db5-c0c0-445b-b060-e34d20ebb70a
|
||||
}
|
||||
|
||||
libhw {
|
||||
library offload_bundle
|
||||
uuid 6987be09-b142-4b41-9056-0002a5d5c51b
|
||||
}
|
||||
}
|
||||
reverb_pre_ins {
|
||||
library proxy
|
||||
uuid f3e178d2-ebcb-408e-8357-0002a5d5c51b
|
||||
|
||||
libsw {
|
||||
library qcreverb
|
||||
uuid b08a0e38-22a5-11e2-b87b-f23c91aec05e
|
||||
}
|
||||
|
||||
libhw {
|
||||
library offload_bundle
|
||||
uuid aa2bebf6-47cf-4613-9bca-0002a5d5c51b
|
||||
}
|
||||
}
|
||||
visualizer {
|
||||
library proxy
|
||||
uuid 1d0a1a53-7d5d-48f2-8e71-27fbd10d842c
|
||||
|
||||
libsw {
|
||||
library visualizer_sw
|
||||
uuid d069d9e0-8329-11df-9168-0002a5d5c51b
|
||||
}
|
||||
|
||||
libhw {
|
||||
library visualizer_hw
|
||||
uuid 7a8044a0-1a71-11e3-a184-0002a5d5c51b
|
||||
}
|
||||
}
|
||||
downmix {
|
||||
library downmix
|
||||
uuid 93f04452-e4fe-41cc-91f9-e475b6d1d69f
|
||||
}
|
||||
hw_acc {
|
||||
library offload_bundle
|
||||
uuid 7d1580bd-297f-4683-9239-e475b6d1d69f
|
||||
}
|
||||
loudness_enhancer {
|
||||
library loudness_enhancer
|
||||
uuid fa415329-2034-4bea-b5dc-5b381c8d1e2c
|
||||
}
|
||||
aec {
|
||||
library audio_pre_processing
|
||||
uuid 0f8d0d2a-59e5-45fe-b6e4-248c8a799109
|
||||
}
|
||||
ns {
|
||||
library audio_pre_processing
|
||||
uuid 1d97bb0b-9e2f-4403-9ae3-58c2554306f8
|
||||
}
|
||||
}
|
||||
|
||||
# Default pre-processing effects. Add to audio_effect.conf "effects" section if
|
||||
# audio HAL implements support for them.
|
||||
#
|
||||
# agc {
|
||||
# library pre_processing
|
||||
# uuid aa8130e0-66fc-11e0-bad0-0002a5d5c51b
|
||||
# }
|
||||
# aec {
|
||||
# library pre_processing
|
||||
# uuid bb392ec0-8d4d-11e0-a896-0002a5d5c51b
|
||||
# }
|
||||
# ns {
|
||||
# library pre_processing
|
||||
# uuid c06c8400-8e06-11e0-9cb6-0002a5d5c51b
|
||||
# }
|
||||
|
||||
# Audio preprocessor configurations.
|
||||
# The pre processor configuration consists in a list of elements each describing
|
||||
# pre processor settings for a given input source. Valid input source names are:
|
||||
# "mic", "camcorder", "voice_recognition", "voice_communication"
|
||||
# Each input source element contains a list of effects elements. The name of the effect
|
||||
# element must be the name of one of the effects in the "effects" list of the file.
|
||||
# Each effect element may optionally contain a list of parameters and their
|
||||
# default value to apply when the pre processor effect is created.
|
||||
# A parameter is defined by a "param" element and a "value" element. Each of these elements
|
||||
# consists in one or more elements specifying a type followed by a value.
|
||||
# The types defined are: "int", "short", "float", "bool" and "string"
|
||||
# When both "param" and "value" are a single int, a simple form is allowed where just
|
||||
# the param and value pair is present in the parameter description
|
||||
# pre_processing {
|
||||
# <input source name> {
|
||||
# <fx name> {
|
||||
# <param 1 name> {
|
||||
# param {
|
||||
# int|short|float|bool|string <value>
|
||||
# [ int|short|float|bool|string <value> ]
|
||||
# ...
|
||||
# }
|
||||
# value {
|
||||
# int|short|float|bool|string <value>
|
||||
# [ int|short|float|bool|string <value> ]
|
||||
# ...
|
||||
# }
|
||||
# }
|
||||
# <param 2 name > {<param> <value>}
|
||||
# ...
|
||||
# }
|
||||
# ...
|
||||
# }
|
||||
# ...
|
||||
# }
|
||||
|
||||
# Added aec, ns effects for voice_commuincation, which are supported by the board
|
||||
|
||||
pre_processing {
|
||||
voice_communication {
|
||||
aec {
|
||||
}
|
||||
ns {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#
|
||||
# TODO: add default audio pre processor configurations after debug and tuning phase
|
||||
#
|
@ -0,0 +1,90 @@
|
||||
# Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following
|
||||
# disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# List of profiles for the output device session where stream is routed.
|
||||
# A stream opened with the inputs attributes which match the "flags" and
|
||||
# "formats" as specified in the profile is routed to a device at
|
||||
# sample rate specified under "sampling_rates" and bit width under
|
||||
# "bit_width" and the topology extracted from the acdb data against
|
||||
# the "app_type".
|
||||
#
|
||||
# the flags and formats are specified using the strings corresponding to
|
||||
# enums in audio.h and audio_policy.h. They are concatenated with "|"
|
||||
# without space or "\n".
|
||||
# the flags and formats should match the ones in "audio_policy.conf"
|
||||
|
||||
outputs {
|
||||
default {
|
||||
flags AUDIO_OUTPUT_FLAG_PRIMARY
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
sampling_rates 48000
|
||||
bit_width 16
|
||||
app_type 69937
|
||||
}
|
||||
deep_buffer {
|
||||
flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
sampling_rates 48000
|
||||
bit_width 16
|
||||
app_type 69936
|
||||
}
|
||||
direct {
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
sampling_rates 48000
|
||||
bit_width 16
|
||||
app_type 69936
|
||||
}
|
||||
direct_pcm_16 {
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_DIRECT_PCM
|
||||
formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT
|
||||
sampling_rates 44100|48000|96000|192000
|
||||
bit_width 16
|
||||
app_type 69936
|
||||
}
|
||||
direct_pcm_24 {
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_DIRECT_PCM
|
||||
formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT
|
||||
sampling_rates 44100|48000|96000|192000
|
||||
bit_width 24
|
||||
app_type 69940
|
||||
}
|
||||
compress_offload_16 {
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING
|
||||
formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_AC3|AUDIO_FORMAT_E_AC3|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_AAC_LC|AUDIO_FORMAT_AAC_HE_V1|AUDIO_FORMAT_AAC_HE_V2|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_AAC_ADTS_LC|AUDIO_FORMAT_AAC_ADTS_HE_V1|AUDIO_FORMAT_AAC_ADTS_HE_V2
|
||||
sampling_rates 44100|48000
|
||||
bit_width 16
|
||||
app_type 69936
|
||||
}
|
||||
compress_offload_24 {
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING
|
||||
formats AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_VORBIS
|
||||
sampling_rates 44100|48000|96000|192000
|
||||
bit_width 24
|
||||
app_type 69940
|
||||
}
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!-- Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. -->
|
||||
<!-- -->
|
||||
<!-- Redistribution and use in source and binary forms, with or without -->
|
||||
<!-- modification, are permitted provided that the following conditions are -->
|
||||
<!-- met: -->
|
||||
<!-- * Redistributions of source code must retain the above copyright -->
|
||||
<!-- notice, this list of conditions and the following disclaimer. -->
|
||||
<!-- * Redistributions in binary form must reproduce the above -->
|
||||
<!-- copyright notice, this list of conditions and the following -->
|
||||
<!-- disclaimer in the documentation and/or other materials provided -->
|
||||
<!-- with the distribution. -->
|
||||
<!-- * Neither the name of The Linux Foundation nor the names of its -->
|
||||
<!-- contributors may be used to endorse or promote products derived -->
|
||||
<!-- from this software without specific prior written permission. -->
|
||||
<!-- -->
|
||||
<!-- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -->
|
||||
<!-- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -->
|
||||
<!-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -->
|
||||
<!-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -->
|
||||
<!-- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -->
|
||||
<!-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -->
|
||||
<!-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -->
|
||||
<!-- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -->
|
||||
<!-- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -->
|
||||
<!-- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
|
||||
<!-- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
|
||||
<audio_platform_info>
|
||||
<bit_width_configs>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER" bit_width="24"/>
|
||||
</bit_width_configs>
|
||||
<interface_names>
|
||||
<device name="AUDIO_DEVICE_IN_BUILTIN_MIC" interface="SLIMBUS_0" codec_type="external"/>
|
||||
<device name="AUDIO_DEVICE_IN_BACK_MIC" interface="SLIMBUS_0" codec_type="external"/>
|
||||
<device name="AUDIO_DEVICE_IN_BUILTIN_MIC" interface="TERT_MI2S" codec_type="internal"/>
|
||||
<device name="AUDIO_DEVICE_IN_BACK_MIC" interface="TERT_MI2S" codec_type="internal"/>
|
||||
</interface_names>
|
||||
<pcm_ids>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD2" type="out" id="24"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD3" type="out" id="27"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD4" type="out" id="28"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD5" type="out" id="29"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD6" type="out" id="30"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD7" type="out" id="31"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD8" type="out" id="32"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD9" type="out" id="33"/>
|
||||
<usecase name="USECASE_VOICEMMODE1_CALL" type="in" id="34"/>
|
||||
<usecase name="USECASE_VOICEMMODE1_CALL" type="out" id="34"/>
|
||||
<usecase name="USECASE_VOICEMMODE2_CALL" type="in" id="35"/>
|
||||
<usecase name="USECASE_VOICEMMODE2_CALL" type="out" id="35"/>
|
||||
</pcm_ids>
|
||||
<tz_names>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER" spkr_1_tz_name="wsa881x.0f" spkr_2_tz_name=""/>
|
||||
</tz_names>
|
||||
</audio_platform_info>
|
@ -0,0 +1,200 @@
|
||||
# Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following
|
||||
# disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# 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
|
||||
# - defines whether the speaker output path uses DRC
|
||||
# "TRUE" means DRC is enabled, "FALSE" or omission means DRC isn't used.
|
||||
global_configuration {
|
||||
attached_output_devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_TELEPHONY_TX
|
||||
default_output_device AUDIO_DEVICE_OUT_SPEAKER
|
||||
attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_REMOTE_SUBMIX|AUDIO_DEVICE_IN_FM_TUNER|AUDIO_DEVICE_IN_VOICE_CALL|AUDIO_DEVICE_IN_TELEPHONY_RX
|
||||
|
||||
speaker_drc_enabled TRUE
|
||||
}
|
||||
|
||||
# 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.<device>.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|48000
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_LINE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_PROXY|AUDIO_DEVICE_OUT_FM
|
||||
flags AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_PRIMARY
|
||||
}
|
||||
raw {
|
||||
sampling_rates 48000
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_LINE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_PROXY
|
||||
flags AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_RAW
|
||||
}
|
||||
deep_buffer {
|
||||
sampling_rates 44100|48000
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_LINE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_PROXY
|
||||
flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
|
||||
}
|
||||
multichannel {
|
||||
sampling_rates 44100|48000
|
||||
channel_masks dynamic
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_PROXY
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT
|
||||
}
|
||||
direct_pcm {
|
||||
sampling_rates 8000|11025|16000|22050|32000|44100|48000|64000|88200|96000|176400|192000
|
||||
channel_masks AUDIO_CHANNEL_OUT_MONO|AUDIO_CHANNEL_OUT_STEREO|AUDIO_CHANNEL_OUT_2POINT1|AUDIO_CHANNEL_OUT_QUAD|AUDIO_CHANNEL_OUT_PENTA|AUDIO_CHANNEL_OUT_5POINT1|AUDIO_CHANNEL_OUT_6POINT1|AUDIO_CHANNEL_OUT_7POINT1
|
||||
formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT
|
||||
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_LINE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_PROXY
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_DIRECT_PCM
|
||||
}
|
||||
compress_offload {
|
||||
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000|64000|88200|96000|176400|192000
|
||||
channel_masks AUDIO_CHANNEL_OUT_MONO|AUDIO_CHANNEL_OUT_STEREO|AUDIO_CHANNEL_OUT_2POINT1|AUDIO_CHANNEL_OUT_QUAD|AUDIO_CHANNEL_OUT_PENTA|AUDIO_CHANNEL_OUT_5POINT1|AUDIO_CHANNEL_OUT_6POINT1|AUDIO_CHANNEL_OUT_7POINT1
|
||||
formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_AC3|AUDIO_FORMAT_E_AC3|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_AAC_LC|AUDIO_FORMAT_AAC_HE_V1|AUDIO_FORMAT_AAC_HE_V2|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_AAC_ADTS_LC|AUDIO_FORMAT_AAC_ADTS_HE_V1|AUDIO_FORMAT_AAC_ADTS_HE_V2
|
||||
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_LINE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_PROXY
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING
|
||||
}
|
||||
incall_music {
|
||||
sampling_rates 8000|16000|48000
|
||||
channel_masks AUDIO_CHANNEL_OUT_MONO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_LINE|AUDIO_DEVICE_OUT_ALL_SCO
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_INCALL_MUSIC
|
||||
}
|
||||
voice_tx {
|
||||
sampling_rates 8000|16000|48000
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO|AUDIO_CHANNEL_OUT_MONO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_TELEPHONY_TX
|
||||
}
|
||||
voip_rx {
|
||||
sampling_rates 8000|16000
|
||||
channel_masks AUDIO_CHANNEL_OUT_MONO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_LINE|AUDIO_DEVICE_OUT_ALL_SCO
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_VOIP_RX
|
||||
}
|
||||
}
|
||||
inputs {
|
||||
primary {
|
||||
sampling_rates 8000|11025|12000|16000|22050|24000|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_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_FM_TUNER|AUDIO_DEVICE_IN_VOICE_CALL
|
||||
}
|
||||
surround_sound {
|
||||
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000
|
||||
channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO|AUDIO_CHANNEL_IN_FRONT_BACK|AUDIO_CHANNEL_IN_5POINT1|AUDIO_CHANNEL_INDEX_MASK_3|AUDIO_CHANNEL_INDEX_MASK_4|AUDIO_CHANNEL_INDEX_MASK_6
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BACK_MIC
|
||||
}
|
||||
voice_rx {
|
||||
sampling_rates 8000|16000|48000
|
||||
channel_masks AUDIO_CHANNEL_IN_STEREO|AUDIO_CHANNEL_IN_MONO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_IN_TELEPHONY_RX
|
||||
}
|
||||
}
|
||||
}
|
||||
a2dp {
|
||||
outputs {
|
||||
a2dp {
|
||||
sampling_rates 44100
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_ALL_A2DP
|
||||
}
|
||||
}
|
||||
inputs {
|
||||
a2dp {
|
||||
sampling_rates 44100|48000
|
||||
channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_IN_BLUETOOTH_A2DP
|
||||
}
|
||||
}
|
||||
}
|
||||
usb {
|
||||
outputs {
|
||||
usb_accessory {
|
||||
sampling_rates 44100
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_USB_ACCESSORY
|
||||
}
|
||||
usb_device {
|
||||
sampling_rates dynamic
|
||||
channel_masks dynamic
|
||||
formats dynamic
|
||||
devices AUDIO_DEVICE_OUT_USB_DEVICE
|
||||
}
|
||||
}
|
||||
inputs {
|
||||
usb_device {
|
||||
sampling_rates dynamic
|
||||
channel_masks AUDIO_CHANNEL_IN_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_IN_USB_DEVICE
|
||||
}
|
||||
}
|
||||
}
|
||||
r_submix {
|
||||
outputs {
|
||||
submix {
|
||||
sampling_rates 48000
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX
|
||||
}
|
||||
}
|
||||
inputs {
|
||||
submix {
|
||||
sampling_rates 48000
|
||||
channel_masks AUDIO_CHANNEL_IN_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_IN_REMOTE_SUBMIX
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--- Copyright (c) 2014-2016 The Linux Foundation. All rights reserved. -->
|
||||
<!--- -->
|
||||
<!--- Redistribution and use in source and binary forms, with or without -->
|
||||
<!--- modification, are permitted provided that the following conditions are -->
|
||||
<!--- met: -->
|
||||
<!--- * Redistributions of source code must retain the above copyright -->
|
||||
<!--- notice, this list of conditions and the following disclaimer. -->
|
||||
<!--- * Redistributions in binary form must reproduce the above -->
|
||||
<!--- copyright notice, this list of conditions and the following -->
|
||||
<!--- disclaimer in the documentation and/or other materials provided -->
|
||||
<!--- with the distribution. -->
|
||||
<!--- * Neither the name of The Linux Foundation nor the names of its -->
|
||||
<!--- contributors may be used to endorse or promote products derived -->
|
||||
<!--- from this software without specific prior written permission. -->
|
||||
<!--- -->
|
||||
<!--- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -->
|
||||
<!--- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -->
|
||||
<!--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -->
|
||||
<!--- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -->
|
||||
<!--- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -->
|
||||
<!--- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -->
|
||||
<!--- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -->
|
||||
<!--- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -->
|
||||
<!--- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -->
|
||||
<!--- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
|
||||
<!--- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
|
||||
|
||||
<mixer>
|
||||
<!-- These are the initial mixer settings -->
|
||||
<ctl name="LSM1 MUX" value="None" />
|
||||
<ctl name="LSM2 MUX" value="None" />
|
||||
<ctl name="LSM3 MUX" value="None" />
|
||||
<ctl name="LSM4 MUX" value="None" />
|
||||
<ctl name="LSM5 MUX" value="None" />
|
||||
<ctl name="LSM6 MUX" value="None" />
|
||||
<ctl name="LSM7 MUX" value="None" />
|
||||
<ctl name="LSM8 MUX" value="None" />
|
||||
<ctl name="TERT_MI2S_TX LSM Function" value="None" />
|
||||
|
||||
<path name="listen-voice-wakeup-1">
|
||||
<ctl name="TERT_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM1 MUX" value="TERT_MI2S_TX" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-2">
|
||||
<ctl name="TERT_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM2 MUX" value="TERT_MI2S_TX" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-3">
|
||||
<ctl name="TERT_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM3 MUX" value="TERT_MI2S_TX" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-4">
|
||||
<ctl name="TERT_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM4 MUX" value="TERT_MI2S_TX" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-5">
|
||||
<ctl name="TERT_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM5 MUX" value="TERT_MI2S_TX" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-6">
|
||||
<ctl name="TERT_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM6 MUX" value="TERT_MI2S_TX" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-7">
|
||||
<ctl name="TERT_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM7 MUX" value="TERT_MI2S_TX" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-8">
|
||||
<ctl name="TERT_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM8 MUX" value="TERT_MI2S_TX" />
|
||||
</path>
|
||||
|
||||
<path name="listen-ape-handset-mic">
|
||||
<!-- this is to avoid codec mute when device is not enabled first -->
|
||||
<ctl name="LOOPBACK Mode" value="ENABLE" />
|
||||
<!-- actual device ebable sequence -->
|
||||
<ctl name="DEC1 MUX" value="ADC2" />
|
||||
<ctl name="ADC2 MUX" value="INP3" />
|
||||
</path>
|
||||
|
||||
</mixer>
|
@ -0,0 +1,103 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--- Copyright (c) 2014, 2016 The Linux Foundation. All rights reserved. -->
|
||||
<!--- -->
|
||||
<!--- Redistribution and use in source and binary forms, with or without -->
|
||||
<!--- modification, are permitted provided that the following conditions are -->
|
||||
<!--- met: -->
|
||||
<!--- * Redistributions of source code must retain the above copyright -->
|
||||
<!--- notice, this list of conditions and the following disclaimer. -->
|
||||
<!--- * Redistributions in binary form must reproduce the above -->
|
||||
<!--- copyright notice, this list of conditions and the following -->
|
||||
<!--- disclaimer in the documentation and/or other materials provided -->
|
||||
<!--- with the distribution. -->
|
||||
<!--- * Neither the name of The Linux Foundation nor the names of its -->
|
||||
<!--- contributors may be used to endorse or promote products derived -->
|
||||
<!--- from this software without specific prior written permission. -->
|
||||
<!--- -->
|
||||
<!--- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -->
|
||||
<!--- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -->
|
||||
<!--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -->
|
||||
<!--- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -->
|
||||
<!--- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -->
|
||||
<!--- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -->
|
||||
<!--- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -->
|
||||
<!--- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -->
|
||||
<!--- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -->
|
||||
<!--- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
|
||||
<!--- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
|
||||
|
||||
<mixer>
|
||||
<!-- These are the initial mixer settings -->
|
||||
<ctl name="LSM1 MUX" value="None" />
|
||||
<ctl name="LSM2 MUX" value="None" />
|
||||
<ctl name="LSM3 MUX" value="None" />
|
||||
<ctl name="LSM4 MUX" value="None" />
|
||||
<ctl name="LSM5 MUX" value="None" />
|
||||
<ctl name="LSM6 MUX" value="None" />
|
||||
<ctl name="LSM7 MUX" value="None" />
|
||||
<ctl name="LSM8 MUX" value="None" />
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="None" />
|
||||
<ctl name="AIF1_CAP Mixer SLIM TX1" value="0"/>
|
||||
<ctl name="LOOPBACK Mode" value="DISABLE" />
|
||||
<ctl name="SLIM TX1 MUX" value="ZERO" />
|
||||
<ctl name="DEC1 MUX" value="ZERO" />
|
||||
<ctl name="IIR1 INP1 MUX" value="ZERO" />
|
||||
|
||||
<path name="listen-voice-wakeup-1">
|
||||
<ctl name="AIF1_CAP Mixer SLIM TX1" value="1"/>
|
||||
<ctl name="SLIM_0_TX Channels" value="One" />
|
||||
<ctl name="LSM1 MUX" value="SLIMBUS_5_TX" />
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="SWAUDIO" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-2">
|
||||
<ctl name="AIF1_CAP Mixer SLIM TX1" value="1"/>
|
||||
<ctl name="SLIM_0_TX Channels" value="One" />
|
||||
<ctl name="LSM2 MUX" value="SLIMBUS_5_TX" />
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="SWAUDIO" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-3">
|
||||
<ctl name="AIF1_CAP Mixer SLIM TX1" value="1"/>
|
||||
<ctl name="SLIM_0_TX Channels" value="One" />
|
||||
<ctl name="LSM3 MUX" value="SLIMBUS_5_TX" />
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="SWAUDIO" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-4">
|
||||
<ctl name="AIF1_CAP Mixer SLIM TX1" value="1"/>
|
||||
<ctl name="SLIM_0_TX Channels" value="One" />
|
||||
<ctl name="LSM4 MUX" value="SLIMBUS_5_TX" />
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="SWAUDIO" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-5">
|
||||
<ctl name="AIF1_CAP Mixer SLIM TX1" value="1"/>
|
||||
<ctl name="SLIM_0_TX Channels" value="One" />
|
||||
<ctl name="LSM5 MUX" value="SLIMBUS_5_TX" />
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="SWAUDIO" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-6">
|
||||
<ctl name="AIF1_CAP Mixer SLIM TX1" value="1"/>
|
||||
<ctl name="SLIM_0_TX Channels" value="One" />
|
||||
<ctl name="LSM6 MUX" value="SLIMBUS_5_TX" />
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="SWAUDIO" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-7">
|
||||
<ctl name="AIF1_CAP Mixer SLIM TX1" value="1"/>
|
||||
<ctl name="SLIM_0_TX Channels" value="One" />
|
||||
<ctl name="LSM7 MUX" value="SLIMBUS_5_TX" />
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="SWAUDIO" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-8">
|
||||
<ctl name="AIF1_CAP Mixer SLIM TX1" value="1"/>
|
||||
<ctl name="SLIM_0_TX Channels" value="One" />
|
||||
<ctl name="LSM8 MUX" value="SLIMBUS_5_TX" />
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="SWAUDIO" />
|
||||
</path>
|
||||
|
||||
<path name="listen-handset-mic">
|
||||
<ctl name="LOOPBACK Mode" value="ENABLE" />
|
||||
<ctl name="SLIM TX1 MUX" value="DEC1" />
|
||||
<ctl name="DEC1 MUX" value="ADC1" />
|
||||
<ctl name="IIR1 INP1 MUX" value="DEC1" />
|
||||
</path>
|
||||
|
||||
</mixer>
|
@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--- Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer in the documentation and/or other materials provided
|
||||
with the distribution.
|
||||
* Neither the name of The Linux Foundation nor the names of its
|
||||
contributors may be used to endorse or promote products derived
|
||||
from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
-->
|
||||
|
||||
<mixer>
|
||||
<!-- These are the initial mixer settings -->
|
||||
<ctl name="LSM1 MUX" value="None" />
|
||||
<ctl name="LSM2 MUX" value="None" />
|
||||
<ctl name="LSM3 MUX" value="None" />
|
||||
<ctl name="LSM4 MUX" value="None" />
|
||||
<ctl name="LSM5 MUX" value="None" />
|
||||
<ctl name="LSM6 MUX" value="None" />
|
||||
<ctl name="LSM7 MUX" value="None" />
|
||||
<ctl name="LSM8 MUX" value="None" />
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="None" />
|
||||
<ctl name="MADONOFF Switch" value="0" />
|
||||
<ctl name="MAD Input" value="DMIC1" />
|
||||
<ctl name="CPE AFE MAD Enable" value="0"/>
|
||||
|
||||
<path name="listen-voice-wakeup-1">
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
|
||||
<ctl name="LSM1 MUX" value="SLIMBUS_5_TX" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-2">
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
|
||||
<ctl name="LSM2 MUX" value="SLIMBUS_5_TX" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-3">
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
|
||||
<ctl name="LSM3 MUX" value="SLIMBUS_5_TX" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-4">
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
|
||||
<ctl name="LSM4 MUX" value="SLIMBUS_5_TX" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-5">
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
|
||||
<ctl name="LSM5 MUX" value="SLIMBUS_5_TX" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-6">
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
|
||||
<ctl name="LSM6 MUX" value="SLIMBUS_5_TX" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-7">
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
|
||||
<ctl name="LSM7 MUX" value="SLIMBUS_5_TX" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-8">
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
|
||||
<ctl name="LSM8 MUX" value="SLIMBUS_5_TX" />
|
||||
</path>
|
||||
|
||||
<path name="listen-cpe-handset-mic">
|
||||
<ctl name="MADONOFF Switch" value="1" />
|
||||
<ctl name="MAD Input" value="DMIC1" />
|
||||
<ctl name="CPE AFE MAD Enable" value="1"/>
|
||||
</path>
|
||||
|
||||
<path name="listen-ape-handset-mic">
|
||||
<ctl name="MADONOFF Switch" value="1" />
|
||||
<ctl name="MAD Input" value="DMIC1" />
|
||||
</path>
|
||||
|
||||
</mixer>
|
@ -0,0 +1,129 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--- Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer in the documentation and/or other materials provided
|
||||
with the distribution.
|
||||
* Neither the name of The Linux Foundation nor the names of its
|
||||
contributors may be used to endorse or promote products derived
|
||||
from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
-->
|
||||
|
||||
<mixer>
|
||||
<!-- These are the initial mixer settings -->
|
||||
<ctl name="LSM1 MUX" value="None" />
|
||||
<ctl name="LSM2 MUX" value="None" />
|
||||
<ctl name="LSM3 MUX" value="None" />
|
||||
<ctl name="LSM4 MUX" value="None" />
|
||||
<ctl name="LSM5 MUX" value="None" />
|
||||
<ctl name="LSM6 MUX" value="None" />
|
||||
<ctl name="LSM7 MUX" value="None" />
|
||||
<ctl name="LSM8 MUX" value="None" />
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="None" />
|
||||
<ctl name="MADONOFF Switch" value="0" />
|
||||
<ctl name="MAD Input" value="DMIC1" />
|
||||
<ctl name="MAD_BROADCAST Switch" value="0" />
|
||||
<ctl name="TX13 INP MUX" value="CDC_DEC_5" />
|
||||
<ctl name="AIF4_MAD Mixer SLIM TX12" value="0" />
|
||||
<ctl name="AIF4_MAD Mixer SLIM TX13" value="0" />
|
||||
<ctl name="CPE AFE MAD Enable" value="0"/>
|
||||
|
||||
<path name="listen-voice-wakeup-1">
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
|
||||
<ctl name="LSM1 MUX" value="SLIMBUS_5_TX" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-2">
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
|
||||
<ctl name="LSM2 MUX" value="SLIMBUS_5_TX" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-3">
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
|
||||
<ctl name="LSM3 MUX" value="SLIMBUS_5_TX" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-4">
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
|
||||
<ctl name="LSM4 MUX" value="SLIMBUS_5_TX" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-5">
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
|
||||
<ctl name="LSM5 MUX" value="SLIMBUS_5_TX" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-6">
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
|
||||
<ctl name="LSM6 MUX" value="SLIMBUS_5_TX" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-7">
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
|
||||
<ctl name="LSM7 MUX" value="SLIMBUS_5_TX" />
|
||||
</path>
|
||||
<path name="listen-voice-wakeup-8">
|
||||
<ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
|
||||
<ctl name="LSM8 MUX" value="SLIMBUS_5_TX" />
|
||||
</path>
|
||||
|
||||
<path name="listen-cpe-handset-mic">
|
||||
<ctl name="MADONOFF Switch" value="1" />
|
||||
<ctl name="TX13 INP MUX" value="CPE_TX_PP" />
|
||||
<ctl name="AIF4_MAD Mixer SLIM TX13" value="1" />
|
||||
<ctl name="MAD Input" value="DMIC0" />
|
||||
<ctl name="CPE AFE MAD Enable" value="1"/>
|
||||
</path>
|
||||
|
||||
<!-- path name used for low bandwidth FTRT codec interface -->
|
||||
<path name="listen-cpe-handset-mic low-speed-intf">
|
||||
<ctl name="MADONOFF Switch" value="1" />
|
||||
<ctl name="AIF4_MAD Mixer SLIM TX12" value="1" />
|
||||
<ctl name="MAD Input" value="DMIC0" />
|
||||
<ctl name="CPE AFE MAD Enable" value="1"/>
|
||||
</path>
|
||||
|
||||
<path name="listen-cpe-headset-mic">
|
||||
<ctl name="MADONOFF Switch" value="1" />
|
||||
<ctl name="TX13 INP MUX" value="CPE_TX_PP" />
|
||||
<ctl name="AIF4_MAD Mixer SLIM TX13" value="1" />
|
||||
<ctl name="MAD Input" value="ADC2" />
|
||||
<ctl name="CPE AFE MAD Enable" value="1"/>
|
||||
</path>
|
||||
|
||||
<!-- path name used for low bandwidth FTRT codec interface -->
|
||||
<path name="listen-cpe-headset-mic low-speed-intf">
|
||||
<ctl name="MADONOFF Switch" value="1" />
|
||||
<ctl name="AIF4_MAD Mixer SLIM TX12" value="1" />
|
||||
<ctl name="MAD Input" value="ADC2" />
|
||||
<ctl name="CPE AFE MAD Enable" value="1"/>
|
||||
</path>
|
||||
|
||||
<path name="listen-ape-handset-mic">
|
||||
<ctl name="MAD_BROADCAST Switch" value="1" />
|
||||
<ctl name="TX13 INP MUX" value="MAD_BRDCST" />
|
||||
<ctl name="AIF4_MAD Mixer SLIM TX13" value="1" />
|
||||
<ctl name="MAD Input" value="DMIC0" />
|
||||
</path>
|
||||
|
||||
<path name="listen-ape-headset-mic">
|
||||
<ctl name="MAD_BROADCAST Switch" value="1" />
|
||||
<ctl name="TX13 INP MUX" value="MAD_BRDCST" />
|
||||
<ctl name="AIF4_MAD Mixer SLIM TX13" value="1" />
|
||||
<ctl name="MAD Input" value="ADC2" />
|
||||
</path>
|
||||
|
||||
</mixer>
|
@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--- Copyright (c) 2014-2016 The Linux Foundation. All rights reserved. -->
|
||||
<!--- -->
|
||||
<!--- Redistribution and use in source and binary forms, with or without -->
|
||||
<!--- modification, are permitted provided that the following conditions are -->
|
||||
<!--- met: -->
|
||||
<!--- * Redistributions of source code must retain the above copyright -->
|
||||
<!--- notice, this list of conditions and the following disclaimer. -->
|
||||
<!--- * Redistributions in binary form must reproduce the above -->
|
||||
<!--- copyright notice, this list of conditions and the following -->
|
||||
<!--- disclaimer in the documentation and/or other materials provided -->
|
||||
<!--- with the distribution. -->
|
||||
<!--- * Neither the name of The Linux Foundation nor the names of its -->
|
||||
<!--- contributors may be used to endorse or promote products derived -->
|
||||
<!--- from this software without specific prior written permission. -->
|
||||
<!--- -->
|
||||
<!--- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -->
|
||||
<!--- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -->
|
||||
<!--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -->
|
||||
<!--- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -->
|
||||
<!--- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -->
|
||||
<!--- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -->
|
||||
<!--- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -->
|
||||
<!--- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -->
|
||||
<!--- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -->
|
||||
<!--- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
|
||||
<!--- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
|
||||
<sound_trigger_platform_info>
|
||||
<device name="DEVICE_HANDSET_APE_ACDB_ID" value="130" />
|
||||
<device name="DEVICE_HEADSET_APE_ACDB_ID" value="138" />
|
||||
<device name="DEVICE_HANDSET_CPE_ACDB_ID" value="128" />
|
||||
<device name="DEVICE_HEADSET_CPE_ACDB_ID" value="139" />
|
||||
<ctrl name="execution_type" value="APE" /> <!-- value: "CPE" "APE" -->
|
||||
<ctrl name="max_cpe_sessions" value="1" />
|
||||
<ctrl name="max_ape_sessions" value="5" />
|
||||
<ctrl name="enable_failure_detection" value="false" />
|
||||
<ctrl name="rx_concurrency_disabled" value="true" />
|
||||
<ctrl name="rx_conc_max_st_ses" value="1" />
|
||||
<ctrl name="support_device_switch" value="false" />
|
||||
|
||||
<!-- vendor_uuid for a soundmodel. More than one vendor_uuid tags can be -->
|
||||
<!-- listed in sequence, the below vendor uuid is reserved for Qualcomm -->
|
||||
<!-- module. ISV must use their own unique vendor uuid. app_type, -->
|
||||
<!-- module_id, param_id must match to the calibration database -->
|
||||
<!-- If ISV vendor_uuid is present, execution_type will be forced to APE -->
|
||||
<vendor_uuid value="68ab2d40-e860-11e3-95ef-0002a5d5c51b" app_type="2" library="libsmwrapper.so">
|
||||
<!-- format: "ADPCM_packet" or "PCM_packet" !-->
|
||||
<!-- transfer_mode: "FTRT" or "RT" -->
|
||||
<!-- kw_duration is in milli seconds. It is valid only for FTRT transfer mode -->
|
||||
<capture_keyword format="PCM_packet" transfer_mode="RT" kw_duration="2000" />
|
||||
<param_type name="load_sound_model" module_id="0x00012C0D" param_id="0x00012C14"/>
|
||||
<param_type name="unload_sound_model" module_id="0x00012C0D" param_id="0x00012C15"/>
|
||||
<param_type name="confidence_levels" module_id="0x00012C0D" param_id="0x00012C07"/>
|
||||
<param_type name="operation_mode" module_id="0x00012C0D" param_id="0x00012C02"/>
|
||||
<ctrl name="max_cpe_phrases" value="6" />
|
||||
<ctrl name="max_cpe_users" value="3" />
|
||||
<ctrl name="max_ape_phrases" value="10" />
|
||||
<ctrl name="max_ape_users" value="10" />
|
||||
<ctrl name="client_capture_read_delay" value="2000" /> <!-- in milli seconds -->
|
||||
</vendor_uuid>
|
||||
</sound_trigger_platform_info>
|
||||
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"repository": "android_device_qcom_common",
|
||||
"target_path": "device/qcom/common"
|
||||
},
|
||||
{
|
||||
"repository": "android_kernel_samsung_msm8976",
|
||||
"target_path": "kernel/samsung/msm8976"
|
||||
},
|
||||
{
|
||||
"repository": "android_packages_resources_devicesettings",
|
||||
"target_path": "packages/resources/devicesettings"
|
||||
}
|
||||
]
|
@ -0,0 +1,386 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright (C) 2012 The Android Open Source Project
|
||||
Copyright (C) 2014-2016 The Linux Foundation. All rights reserved.
|
||||
Not a contribution.
|
||||
|
||||
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.
|
||||
-->
|
||||
|
||||
<!--
|
||||
<!DOCTYPE MediaCodecs [
|
||||
<!ELEMENT Include EMPTY>
|
||||
<!ATTLIST Include href CDATA #REQUIRED>
|
||||
<!ELEMENT MediaCodecs (Decoders|Encoders|Include)*>
|
||||
<!ELEMENT Decoders (MediaCodec|Include)*>
|
||||
<!ELEMENT Encoders (MediaCodec|Include)*>
|
||||
<!ELEMENT MediaCodec (Type|Quirk|Include)*>
|
||||
<!ATTLIST MediaCodec name CDATA #REQUIRED>
|
||||
<!ATTLIST MediaCodec type CDATA>
|
||||
<!ELEMENT Type EMPTY>
|
||||
<!ATTLIST Type name CDATA #REQUIRED>
|
||||
<!ELEMENT Quirk EMPTY>
|
||||
<!ATTLIST Quirk name CDATA #REQUIRED>
|
||||
]>
|
||||
|
||||