Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc10b9c3 authored by Dhanalakshmi Siddani's avatar Dhanalakshmi Siddani
Browse files

audio: Enable FFV for APQ8909 target

Define feature flags to enable FFV.
Update sound_trigger_platform xml file structure to match with sthal.
Take latest mixer paths and platform xml files in AHAL and STHAL.
Set flag to not to compile legacy STHAL for 8909.

CRs-Fixed: 2273661
Change-Id: Iaf43d9ad0645c4aea7a46401a084cef4a94b2d13
parent fc182748
Loading
Loading
Loading
Loading
+59 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Copyright (c) 2015, 2017-2018, 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>
         <device name="SND_DEVICE_IN_HANDSET_QMIC" acdb_id="140"/>
         <device name="SND_DEVICE_IN_HANDSET_6MIC" acdb_id="140"/>
         <device name="SND_DEVICE_IN_HANDSET_8MIC" acdb_id="140"/>
         <device name="SND_DEVICE_IN_EC_REF_LOOPBACK_MONO" acdb_id="140"/>
         <device name="SND_DEVICE_IN_EC_REF_LOOPBACK_STEREO" acdb_id="140"/>
    </acdb_ids>
    <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="QUATERNARY_MI2S" codec_type="external"/>
        <device name="AUDIO_DEVICE_IN_BACK_MIC" interface="QUATERNARY_MI2S" 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>
    <config_params>
        <param key="input_mic_max_count" value="6"/>
        <param key="ffv_split_ec_ref_data" value="false"/>
        <param key="ffv_ec_ref_channel_count" value="1"/>
    </config_params>
    <pcm_ids>
        <usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD2" type="out" id="24"/>
        <usecase name="USECASE_AUDIO_EC_REF_LOOPBACK" type="in" id="14"/>
        <usecase name="USECASE_AUDIO_PLAYBACK_SILENCE" type="out" id="14"/>
    </pcm_ids>
    <acdb_metainfo_key>
        <param name="aptx" value="456"/>
    </acdb_metainfo_key>
</audio_platform_info>