1<?xml version="1.0" encoding="ISO-8859-1"?> 2<!-- Copyright (c) 2014, The Linux Foundation. All rights reserved. --> 3<!-- --> 4<!-- Redistribution and use in source and binary forms, with or without --> 5<!-- modification, are permitted provided that the following conditions are --> 6<!-- met: --> 7<!-- * Redistributions of source code must retain the above copyright --> 8<!-- notice, this list of conditions and the following disclaimer. --> 9<!-- * Redistributions in binary form must reproduce the above --> 10<!-- copyright notice, this list of conditions and the following --> 11<!-- disclaimer in the documentation and/or other materials provided --> 12<!-- with the distribution. --> 13<!-- * Neither the name of The Linux Foundation nor the names of its --> 14<!-- contributors may be used to endorse or promote products derived --> 15<!-- from this software without specific prior written permission. --> 16<!-- --> 17<!-- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED --> 18<!-- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF --> 19<!-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT --> 20<!-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS --> 21<!-- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR --> 22<!-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF --> 23<!-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR --> 24<!-- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, --> 25<!-- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN --> 26<!-- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --> 27<audio_platform_info> 28 <acdb_ids> 29 <device name="SND_DEVICE_OUT_VOICE_SPEAKER" acdb_id="14"/> 30 <device name="SND_DEVICE_OUT_VOICE_MUSIC_TX" acdb_id="3"/> 31 <device name="SND_DEVICE_OUT_VOICE_SPEAKER_HFP" acdb_id="14"/> 32 <device name="SND_DEVICE_IN_VOICE_REC_MIC" acdb_id="41"/> 33 <device name="SND_DEVICE_OUT_VOICE_HAC_HANDSET" acdb_id="201"/> 34 <device name="SND_DEVICE_IN_VOICE_SPEAKER_DMIC" acdb_id="19"/> 35 <device name="SND_DEVICE_OUT_VOICE_TTY_HCO_HANDSET" acdb_id="14"/> 36 <device name="SND_DEVICE_IN_VOICE_TTY_VCO_HANDSET_MIC" acdb_id="19"/> 37 <device name="SND_DEVICE_IN_HEADSET_MIC" acdb_id="4"/> 38 <device name="SND_DEVICE_OUT_HEADPHONES" acdb_id="9"/> 39 <device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES" acdb_id="603"/> 40 <device name="SND_DEVICE_OUT_SPEAKER_SAFE_AND_HEADPHONES" acdb_id="603"/> 41 <device name="SND_DEVICE_IN_VOICE_REC_DMIC_STEREO" acdb_id="505"/> 42 <device name="SND_DEVICE_IN_VOICE_REC_MIC_AEC_NS" acdb_id="114"/> 43 <device name="SND_DEVICE_IN_HEADSET_MIC_AEC" acdb_id="130"/> 44 <device name="SND_DEVICE_IN_UNPROCESSED_MIC" acdb_id="143"/> 45 <device name="SND_DEVICE_IN_UNPROCESSED_STEREO_MIC" acdb_id="144"/> 46 <device name="SND_DEVICE_IN_UNPROCESSED_THREE_MIC" acdb_id="145"/> 47 <device name="SND_DEVICE_IN_UNPROCESSED_QUAD_MIC" acdb_id="146"/> 48 <device name="SND_DEVICE_IN_UNPROCESSED_HEADSET_MIC" acdb_id="65"/> 49 <device name="SND_DEVICE_IN_BT_SCO_MIC_NREC" acdb_id="122"/> 50 <device name="SND_DEVICE_IN_BT_SCO_MIC_WB_NREC" acdb_id="123"/> 51 </acdb_ids> 52 <backend_names> 53 <device name="SND_DEVICE_OUT_SPEAKER" backend="speaker" interface="QUAT_MI2S_RX"/> 54 <device name="SND_DEVICE_OUT_VOICE_SPEAKER" backend="speaker" interface="QUAT_MI2S_RX"/> 55 <device name="SND_DEVICE_OUT_SPEAKER_REVERSE" backend="speaker" interface="QUAT_MI2S_RX"/> 56 <device name="SND_DEVICE_OUT_SPEAKER_SAFE" backend="speaker" interface="QUAT_MI2S_RX"/> 57 <device name="SND_DEVICE_OUT_SPEAKER_PROTECTED" backend="speaker" interface="QUAT_MI2S_RX"/> 58 <device name="SND_DEVICE_OUT_VOICE_SPEAKER_HFP" backend="speaker" interface="QUAT_MI2S_RX"/> 59 <device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES" backend="speaker-and-headphones" interface="QUAT_MI2S_RX-and-SLIMBUS_0_RX"/> 60 <device name="SND_DEVICE_OUT_SPEAKER_SAFE_AND_HEADPHONES" backend="speaker-and-headphones" interface="QUAT_MI2S_RX-and-SLIMBUS_0_RX"/> 61 <device name="SND_DEVICE_OUT_SPEAKER_AND_LINE" backend="speaker-and-headphones" interface="QUAT_MI2S_RX-and-SLIMBUS_0_RX"/> 62 <device name="SND_DEVICE_OUT_VOICE_TTY_HCO_HANDSET" backend="speaker" interface="QUAT_MI2S_RX"/> 63 <device name="SND_DEVICE_OUT_SPEAKER_AND_BT_SCO" backend="speaker-and-bt-sco" interface="QUAT_MI2S_RX-and-AUX_PCM_RX"/> 64 <device name="SND_DEVICE_OUT_SPEAKER_AND_BT_SCO_WB" backend="speaker-and-bt-sco-wb" interface="QUAT_MI2S_RX-and-AUX_PCM_RX"/> 65 </backend_names> 66 <config_params> 67 <param key="input_mic_max_count" value="3"/> 68 <param key="snd_card_name" value="msm8996-tasha"/> 69 </config_params> 70 <gain_db_to_level_mapping> 71 <gain_level_map db="-62.4" level="15"/> 72 <gain_level_map db="-42.4" level="14"/> 73 <gain_level_map db="-41.4" level="13"/> 74 <gain_level_map db="-40.4" level="12"/> 75 <gain_level_map db="-39.1" level="11"/> 76 <gain_level_map db="-28.9" level="10"/> 77 <gain_level_map db="-27.4" level="9"/> 78 <gain_level_map db="-25.5" level="8"/> 79 <gain_level_map db="-23" level="7"/> 80 <gain_level_map db="-20" level="6"/> 81 <gain_level_map db="-17" level="5"/> 82 <gain_level_map db="-14.5" level="4"/> 83 <gain_level_map db="-12" level="3"/> 84 <gain_level_map db="-8.7" level="2"/> 85 <gain_level_map db="0" level="1"/> 86 </gain_db_to_level_mapping> 87 <pcm_ids> 88 <usecase name="USECASE_AUDIO_RECORD_LOW_LATENCY" type="in" id="19" /> 89 <usecase name="USECASE_AUDIO_PLAYBACK_ULL" type="out" id="19" /> 90 <usecase name="USECASE_AUDIO_RECORD_MMAP" type="in" id="18" /> 91 <usecase name="USECASE_AUDIO_PLAYBACK_MMAP" type="out" id="18" /> 92 <usecase name="USECASE_INCALL_MUSIC_UPLINK" type="out" id="32" /> 93 </pcm_ids> 94 <!-- Mandatory microphone characteristics include: device_id, type, --> 95 <!-- address, location, group, index_in_the_group, directionality, --> 96 <!-- num_frequency_responses, frequencies and responses. --> 97 <!-- Optional microphone characteristics include: Sensitivity, max_spl, --> 98 <!-- min_spl, orientation and geometric_location. If missing they will --> 99 <!-- be populated as unknown. --> 100 <microphone_characteristics> 101 <microphone device_id="builtin_mic_1" type="AUDIO_DEVICE_IN_BUILTIN_MIC" address="bottom" location="AUDIO_MICROPHONE_LOCATION_MAINBODY" 102 group="0" index_in_the_group="0" directionality="AUDIO_MICROPHONE_DIRECTIONALITY_OMNI" num_frequency_responses="93" 103 frequencies="97.16 102.92 109.02 115.48 122.32 129.57 137.25 145.38 153.99 163.12 172.78 183.02 193.87 205.35 217.52 230.41 244.06 258.52 273.84 290.07 307.26 325.46 344.75 365.17 386.81 409.73 434.01 459.73 486.97 515.82 546.39 578.76 613.06 649.38 687.86 728.62 771.79 817.52 865.96 917.28 971.63 1029.20 1090.18 1154.78 1223.21 1295.69 1372.46 1453.78 1539.93 1631.17 1727.83 1830.21 1938.65 2053.53 2175.20 2304.09 2440.62 2585.23 2738.42 2900.68 3072.56 3254.62 3447.47 3651.74 3868.12 4097.32 4340.10 4597.27 4869.68 5158.22 5463.87 5787.62 6130.56 6493.82 6878.60 7286.18 7717.92 8175.23 8659.64 9172.76 9716.28 10292.01 10901.84 11547.82 12232.07 12956.87 13724.61 14537.84 15399.27 16311.73 17278.26 18302.06 19386.53" 104 responses="-0.40 -0.40 -0.60 -0.70 -0.40 -0.40 -0.30 -0.30 -0.30 -0.30 -0.20 -0.60 -0.90 -0.90 -1.00 -0.70 -0.80 -0.70 -0.70 -0.90 -0.70 -0.20 0.60 1.40 1.70 0.80 -0.80 -2.10 -2.30 -1.70 -0.90 0.50 1.30 1.20 0.80 0.10 0.20 0.40 2.30 2.40 0.00 -0.40 -0.10 0.70 -0.40 1.00 0.50 1.40 2.40 2.00 2.50 2.70 1.70 1.40 1.70 -1.90 -3.60 1.70 2.30 0.00 0.80 -0.30 0.60 1.90 1.40 -1.90 0.30 1.70 -0.60 0.40 2.20 3.60 -4.20 2.50 3.60 8.10 -4.30 5.70 7.30 9.60 7.80 10.20 16.40 18.60 20.10 22.50 23.50 17.60 17.90 18.80 17.70 15.10 14.70" 105 sensitivity="-37.0" max_spl="132.5" min_spl="28.5" orientation="0.0 -1.0 0.0" geometric_location="0.0513 0.0 0.0038" /> 106 <microphone device_id="builtin_mic_2" type="AUDIO_DEVICE_IN_BACK_MIC" address="back" location="AUDIO_MICROPHONE_LOCATION_MAINBODY" 107 group="0" index_in_the_group="1" directionality="AUDIO_MICROPHONE_DIRECTIONALITY_OMNI" num_frequency_responses="93" 108 frequencies="97.16 102.92 109.02 115.48 122.32 129.57 137.25 145.38 153.99 163.12 172.78 183.02 193.87 205.35 217.52 230.41 244.06 258.52 273.84 290.07 307.26 325.46 344.75 365.17 386.81 409.73 434.01 459.73 486.97 515.82 546.39 578.76 613.06 649.38 687.86 728.62 771.79 817.52 865.96 917.28 971.63 1029.20 1090.18 1154.78 1223.21 1295.69 1372.46 1453.78 1539.93 1631.17 1727.83 1830.21 1938.65 2053.53 2175.20 2304.09 2440.62 2585.23 2738.42 2900.68 3072.56 3254.62 3447.47 3651.74 3868.12 4097.32 4340.10 4597.27 4869.68 5158.22 5463.87 5787.62 6130.56 6493.82 6878.60 7286.18 7717.92 8175.23 8659.64 9172.76 9716.28 10292.01 10901.84 11547.82 12232.07 12956.87 13724.61 14537.84 15399.27 16311.73 17278.26 18302.06 19386.53" 109 responses="-1.20 -1.20 -1.40 -1.50 -1.10 -1.10 -1.10 -1.20 -1.20 -1.20 -1.10 -1.50 -1.60 -1.60 -1.60 -1.20 -1.20 -1.00 -0.70 -0.70 -0.50 -0.40 -0.40 -0.60 -1.30 -2.30 -2.10 -1.10 -0.30 -0.10 -0.10 -0.60 -1.00 -1.60 -1.60 -0.90 -1.00 -1.10 -1.80 -0.10 0.00 -0.20 -0.50 -0.50 -0.20 0.20 0.40 1.60 1.90 1.10 1.40 2.20 2.90 2.40 1.80 3.90 6.00 6.30 2.80 4.80 5.10 5.90 7.00 8.00 7.10 4.10 6.60 6.50 6.80 8.90 6.20 6.20 9.60 7.30 6.50 9.30 6.90 9.20 6.60 9.50 9.80 9.60 11.80 11.00 12.80 11.50 11.90 12.60 11.30 10.10 10.90 12.70 13.9" 110 sensitivity="-37.0" max_spl="132.5" min_spl="28.5" orientation="0.0 0.0 -1.0" geometric_location="0.0347 0.1451 0.0" /> 111 <microphone device_id="builtin_mic_3" type="AUDIO_DEVICE_IN_BUILTIN_MIC" address="top" location="AUDIO_MICROPHONE_LOCATION_MAINBODY" 112 group="0" index_in_the_group="2" directionality="AUDIO_MICROPHONE_DIRECTIONALITY_OMNI" num_frequency_responses="93" 113 frequencies="97.16 102.92 109.02 115.48 122.32 129.57 137.25 145.38 153.99 163.12 172.78 183.02 193.87 205.35 217.52 230.41 244.06 258.52 273.84 290.07 307.26 325.46 344.75 365.17 386.81 409.73 434.01 459.73 486.97 515.82 546.39 578.76 613.06 649.38 687.86 728.62 771.79 817.52 865.96 917.28 971.63 1029.20 1090.18 1154.78 1223.21 1295.69 1372.46 1453.78 1539.93 1631.17 1727.83 1830.21 1938.65 2053.53 2175.20 2304.09 2440.62 2585.23 2738.42 2900.68 3072.56 3254.62 3447.47 3651.74 3868.12 4097.32 4340.10 4597.27 4869.68 5158.22 5463.87 5787.62 6130.56 6493.82 6878.60 7286.18 7717.92 8175.23 8659.64 9172.76 9716.28 10292.01 10901.84 11547.82 12232.07 12956.87 13724.61 14537.84 15399.27 16311.73 17278.26 18302.06 19386.53" 114 responses="0.30 0.30 0.30 0.30 0.20 0.10 0.50 0.40 0.40 0.40 0.30 0.30 0.40 0.00 -0.20 -0.10 -0.20 0.10 0.10 0.30 0.60 0.70 1.00 1.10 1.30 1.40 1.10 -0.10 -1.20 -0.90 0.10 0.90 1.30 1.10 0.90 0.00 -1.10 -0.20 0.10 0.70 0.00 0.30 1.40 1.20 0.40 -0.30 1.10 0.70 2.40 2.20 3.10 2.60 1.80 3.60 4.80 2.90 3.20 4.90 7.20 6.70 5.40 4.80 6.50 7.00 8.40 9.20 8.20 4.80 7.40 7.80 7.00 10.10 6.70 6.70 10.10 7.90 6.50 9.10 6.30 8.50 5.50 8.80 8.70 8.40 10.70 9.40 11.10 10.30 11.30 12.80 12.40 11.70 14.30" 115 sensitivity="-37.0" max_spl="132.5" min_spl="28.5" orientation="0.0 0.0 1.0" geometric_location="0.0349 0.1471 0.0073" /> 116 </microphone_characteristics> 117 <!-- TODO: Fake channel mapping data, need to populate with actual data --> 118 <snd_devices> 119 <input_snd_device> 120 <input_snd_device_mic_mapping> 121 <snd_dev in_snd_device="SND_DEVICE_IN_HANDSET_MIC"> 122 <mic_info mic_device_id="builtin_mic_1" 123 channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/> 124 </snd_dev> 125 <snd_dev in_snd_device="SND_DEVICE_IN_HANDSET_DMIC_AEC_NS"> 126 <mic_info mic_device_id="builtin_mic_1" 127 channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED"/> 128 <mic_info mic_device_id="builtin_mic_2" 129 channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/> 130 </snd_dev> 131 <snd_dev in_snd_device="SND_DEVICE_IN_VOICE_DMIC_TMUS"> 132 <mic_info mic_device_id="builtin_mic_1" 133 channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED"/> 134 <mic_info mic_device_id="builtin_mic_3" 135 channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT"/> 136 </snd_dev> 137 <snd_dev in_snd_device="SND_DEVICE_IN_VOICE_REC_MIC"> 138 <mic_info mic_device_id="builtin_mic_1" 139 channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT"/> 140 <mic_info mic_device_id="builtin_mic_3" 141 channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED"/> 142 </snd_dev> 143 <snd_dev in_snd_device="SND_DEVICE_IN_THREE_MIC"> 144 <mic_info mic_device_id="builtin_mic_1" 145 channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED"/> 146 <mic_info mic_device_id="builtin_mic_2" 147 channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED"/> 148 <mic_info mic_device_id="builtin_mic_3" 149 channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT"/> 150 </snd_dev> 151 </input_snd_device_mic_mapping> 152 </input_snd_device> 153 </snd_devices> 154</audio_platform_info> 155 156