diff options
| author | Daniel Hillenbrand <codeworkx@cyanogenmod.org> | 2015-10-25 11:40:26 +0000 |
|---|---|---|
| committer | Daniel Hillenbrand <codeworkx@cyanogenmod.org> | 2015-10-25 11:40:26 +0000 |
| commit | 6ece6df0e7fab6122d3ff41fbae85cbf141a03a8 (patch) | |
| tree | aea74c8f5bea7fb428816d7a434dfc15376a7b23 | |
| parent | c5c2ae4ecb0223ff402eb15e95b3f5edb3c82be9 (diff) | |
g4: audio: move audio_platform_info into device dirs
Change-Id: Ib831ee0401079a6b3cca67e270a419ba1aa947bd
| -rw-r--r-- | audio/audio_platform_info.xml | 97 | ||||
| -rw-r--r-- | device.mk | 4 |
2 files changed, 101 insertions, 0 deletions
diff --git a/audio/audio_platform_info.xml b/audio/audio_platform_info.xml new file mode 100644 index 0000000..3463e80 --- /dev/null +++ b/audio/audio_platform_info.xml @@ -0,0 +1,97 @@ +<?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_SPEAKER_PROTECTED" acdb_id="101"/> + + <!-- Input devices --> + <device name="SND_DEVICE_IN_VOICE_DMIC" acdb_id="4" /> <!-- handset mic for voice-call earpiece --> + <device name="SND_DEVICE_IN_HANDSET_DMIC" acdb_id="4" /> <!-- handset mic for voice-call earpiece --> + <device name="SND_DEVICE_IN_HANDSET_DMIC_AEC" acdb_id="4" /> <!-- handset mic for voice-call earpiece --> + <device name="SND_DEVICE_IN_HANDSET_DMIC_NS" acdb_id="4" /> <!-- handset mic for voice-call earpiece --> + <device name="SND_DEVICE_IN_HANDSET_DMIC_AEC_NS" acdb_id="4" /> <!-- handset mic for voice-call earpiece --> + + <device name="SND_DEVICE_IN_VOICE_SPEAKER_DMIC" acdb_id="11" /> <!-- handset mic for voice-call speaker --> + <device name="SND_DEVICE_IN_SPEAKER_DMIC" acdb_id="11" /> <!-- handset mic for voice-call speaker --> + <device name="SND_DEVICE_IN_SPEAKER_DMIC_AEC" acdb_id="11" /> <!-- handset mic for voice-call speaker --> + <device name="SND_DEVICE_IN_SPEAKER_DMIC_NS" acdb_id="11" /> <!-- handset mic for voice-call speaker --> + <device name="SND_DEVICE_IN_SPEAKER_DMIC_AEC_NS" acdb_id="11" /> <!-- handset mic for voice-call speaker --> + + <device name="SND_DEVICE_IN_HANDSET_MIC" acdb_id="1063" /> <!-- handset mic for audio-record --> + <device name="SND_DEVICE_IN_HEADSET_MIC" acdb_id="1066" /> + <device name="SND_DEVICE_IN_HEADSET_MIC_FLUENCE" acdb_id="1066" /> + </acdb_ids> + + <backend_names> + <!-- Output devices --> + <device name="SND_DEVICE_OUT_SPEAKER" backend="speaker" /> + <device name="SND_DEVICE_OUT_VOICE_SPEAKER" backend="voice-speaker" /> + + <!-- Input devices --> + </backend_names> + + <bit_width_configs> + <!-- Output devices --> + <device name="SND_DEVICE_OUT_SPEAKER" bit_width="24"/> + <!-- Input devices --> + </bit_width_configs> + + <pcm_ids> + <usecase name="USECASE_AUDIO_3RDP_SPKR_PROT_TX" type="in" id="81"/> + </pcm_ids> + + <device_names> + <!-- Output devices --> + <device name="SND_DEVICE_OUT_VOIP_HANDSET" alias="voip-earpiece" /> + <device name="SND_DEVICE_OUT_VOIP_SPEAKER" alias="voip-speaker" /> + <device name="SND_DEVICE_OUT_VOIP_HEADPHONES" alias="voip-headphones" /> + + <!-- Input devices --> + <device name="SND_DEVICE_IN_VOICE_DMIC" alias="voice-dmic-ef-tmus" /> <!-- handset mic for voice-call earpiece --> + <device name="SND_DEVICE_IN_HANDSET_DMIC" alias="voice-dmic-ef-tmus" /> <!-- handset mic for voice-call earpiece --> + <device name="SND_DEVICE_IN_HANDSET_DMIC_AEC" alias="voice-dmic-ef-tmus" /> <!-- handset mic for voice-call earpiece --> + <device name="SND_DEVICE_IN_HANDSET_DMIC_NS" alias="voice-dmic-ef-tmus" /> <!-- handset mic for voice-call earpiece --> + <device name="SND_DEVICE_IN_HANDSET_DMIC_AEC_NS" alias="voice-dmic-ef-tmus" /> <!-- handset mic for voice-call earpiece --> + + <device name="SND_DEVICE_IN_VOICE_SPEAKER_DMIC" alias="voice-speaker-dmic-ef" /> <!-- handset mic for voice-call speaker --> + <device name="SND_DEVICE_IN_SPEAKER_DMIC" alias="voice-speaker-dmic-ef" /> <!-- handset mic for voice-call speaker --> + <device name="SND_DEVICE_IN_SPEAKER_DMIC_AEC" alias="voice-speaker-dmic-ef" /> <!-- handset mic for voice-call speaker --> + <device name="SND_DEVICE_IN_SPEAKER_DMIC_NS" alias="voice-speaker-dmic-ef" /> <!-- handset mic for voice-call speaker --> + <device name="SND_DEVICE_IN_SPEAKER_DMIC_AEC_NS" alias="voice-speaker-dmic-ef" /> <!-- handset mic for voice-call speaker --> + + <device name="SND_DEVICE_IN_HANDSET_MIC" alias="voice-memo" /> <!-- handset mic for audio-record --> + <device name="SND_DEVICE_IN_HEADSET_MIC" alias="headset-voice-memo" /> + <device name="SND_DEVICE_IN_HEADSET_MIC_FLUENCE" alias="headset-voice-memo" /> + <device name="SND_DEVICE_IN_VOIP_HANDSET_MIC" alias="voip-handset-mic" /> + <device name="SND_DEVICE_IN_VOIP_SPEAKER_MIC" alias="voip-speaker-mic" /> + <device name="SND_DEVICE_IN_VOIP_HEADSET_MIC" alias="voip-headset-mic" /> + </device_names> + +</audio_platform_info> + @@ -22,6 +22,10 @@ $(call inherit-product-if-exists, vendor/lge/h811/h811-vendor.mk) # Overlays DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay +# Audio +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/audio/audio_platform_info.xml:system/etc/audio_platform_info.xml + # common g4 $(call inherit-product, device/lge/g4-common/g4.mk) |
