flo: Update configuration for CAF audio

Change-Id: I3c943e16adc3cbc9ffaea43ce78bd92cd9efd209
This commit is contained in:
Artem Borisov 2018-08-24 17:16:36 +00:00 committed by followmsi
parent 394d04a340
commit dcd5707761
4 changed files with 81 additions and 4 deletions

View File

@ -32,10 +32,10 @@ BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000
TARGET_KERNEL_SOURCE := kernel/google/msm
TARGET_KERNEL_CONFIG := followmsi-aosp_defconfig
# Audio
BOARD_USES_ALSA_AUDIO:= true
BOARD_USES_LEGACY_ALSA_AUDIO:= false
BOARD_USES_FLUENCE_INCALL := true
BOARD_USES_SEPERATED_AUDIO_INPUT := true
AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
USE_CUSTOM_AUDIO_POLICY := 1
# Binder API version
TARGET_USES_64_BIT_BINDER := true

View File

@ -0,0 +1,62 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Copyright (c) 2014, 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, -->
<!-- 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>
<acdb_ids>
<!-- Output devices -->
<device name="SND_DEVICE_OUT_HANDSET" acdb_id="7" />
<device name="SND_DEVICE_OUT_SPEAKER" acdb_id="14" />
<device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES" acdb_id="10" />
<device name="SND_DEVICE_OUT_SPEAKER_AND_HDMI" acdb_id="14" />
<device name="SND_DEVICE_OUT_VOICE_SPEAKER" acdb_id="14" />
<device name="SND_DEVICE_OUT_BT_SCO" acdb_id="22" />
<!-- Input devices -->
<device name="SND_DEVICE_IN_HANDSET_DMIC" acdb_id="4" />
<device name="SND_DEVICE_IN_HANDSET_STEREO_DMIC" acdb_id="4" />
<device name="SND_DEVICE_IN_VOICE_DMIC" acdb_id="4" />
<device name="SND_DEVICE_IN_SPEAKER_STEREO_DMIC" acdb_id="11" />
<device name="SND_DEVICE_IN_VOICE_SPEAKER_MIC" acdb_id="11" />
<device name="SND_DEVICE_IN_VOICE_SPEAKER_DMIC" acdb_id="11" />
<device name="SND_DEVICE_IN_VOICE_REC_MIC" acdb_id="62" />
<device name="SND_DEVICE_IN_CAMCORDER_MIC" acdb_id="61" />
<device name="SND_DEVICE_IN_BT_SCO_MIC" acdb_id="21" />
</acdb_ids>
<backend_names>
<!-- empty -->
</backend_names>
<pcm_ids>
<usecase name="USECASE_AUDIO_PLAYBACK_LOW_LATENCY" type="out" id="14" />
<usecase name="USECASE_VOICE_CALL" type="out" id="12" />
</pcm_ids>
<device_names>
<!-- empty -->
</device_names>
</audio_platform_info>

View File

@ -259,7 +259,8 @@ PRODUCT_PACKAGES += \
libqcomvoiceprocessing \
libqcomvoiceprocessingdescriptors
PRODUCT_COPY_FILES += \
device/asus/flo/audio_effects.conf:system/vendor/etc/audio_effects.conf
device/asus/flo/audio_effects.conf:system/vendor/etc/audio_effects.conf \
device/asus/flo/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml
# Monitor device rotation for speaker channel swap
PRODUCT_PROPERTY_OVERRIDES += \

View File

@ -3,3 +3,17 @@
#LTE, GSM, WCDMA(9)
#
ro.telephony.default_network=9
# Audio
# Monitor device rotation for speaker channel swap
ro.audio.monitorRotation=true
# Enable AAC 5.1 output
media.aac_51_output_enabled=true
# Audio HAL configuration
audio.offload.disable=1
mm.enable.smoothstreaming=true
ro.qc.sdk.audio.fluencetype=none
persist.audio.fluence.voicecall=true
persist.audio.fluence.voicerec=false
persist.audio.fluence.speaker=true
qcom.hw.aac.encoder=true