aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hillenbrand <codeworkx@cyanogenmod.org>2015-10-25 11:40:36 +0000
committerDaniel Hillenbrand <codeworkx@cyanogenmod.org>2015-10-25 11:40:36 +0000
commitf2acfcedffd6c33f1f544ac8c305687259a1d393 (patch)
tree0780d0160a5451324bd908719dcbc3856b46fc69
parent87ff589d4d59468b99959e9cff0854ff8b30ceb4 (diff)
g4: audio: move audio_platform_info into device dirs
Change-Id: I7fad7fb28efb324d1534560d064bfc5f08ec36d3
-rw-r--r--audio/audio_platform_info.xml97
-rw-r--r--device.mk4
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..fe7d883
--- /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" /> <!-- handset mic for voice-call earpiece -->
+ <device name="SND_DEVICE_IN_HANDSET_DMIC" alias="voice-dmic-ef" /> <!-- handset mic for voice-call earpiece -->
+ <device name="SND_DEVICE_IN_HANDSET_DMIC_AEC" alias="voice-dmic-ef" /> <!-- handset mic for voice-call earpiece -->
+ <device name="SND_DEVICE_IN_HANDSET_DMIC_NS" alias="voice-dmic-ef" /> <!-- handset mic for voice-call earpiece -->
+ <device name="SND_DEVICE_IN_HANDSET_DMIC_AEC_NS" alias="voice-dmic-ef" /> <!-- 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>
+
diff --git a/device.mk b/device.mk
index 6855bd8..a5b6724 100644
--- a/device.mk
+++ b/device.mk
@@ -22,5 +22,9 @@ $(call inherit-product-if-exists, vendor/lge/h815/h815-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)