summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrikanth Uyyala <suyyala@codeaurora.org>2014-09-22 14:17:10 +0530
committerSrikanth Uyyala <suyyala@codeaurora.org>2014-10-06 12:29:11 +0530
commitfdc2ed4a95e7882857b76717784ce61ab8ab8f91 (patch)
tree58327611a3cfbbedf40d6ca2a333e5c051a16133
parent29fee9c9a0775b8f7e6d903689f2104c6a103970 (diff)
downloadandroid_hardware_qcom_audio-fdc2ed4a95e7882857b76717784ce61ab8ab8f91.tar.gz
android_hardware_qcom_audio-fdc2ed4a95e7882857b76717784ce61ab8ab8f91.tar.bz2
android_hardware_qcom_audio-fdc2ed4a95e7882857b76717784ce61ab8ab8f91.zip
hal: add seperate ACDB ID for speaker phone speaker mono
Added new ACDB ID(131) for playback usecases to differentiate with voice calls, so that FFSP can be enabled selectively for playback usecases. Change-Id: Iffae085862b422d99a49c3e774749c38cc0a7b82
-rw-r--r--hal/msm8916/platform.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c
index 60ddb99e..b0e149e9 100644
--- a/hal/msm8916/platform.c
+++ b/hal/msm8916/platform.c
@@ -266,15 +266,15 @@ static const char * const device_table[SND_DEVICE_MAX] = {
static int acdb_device_table[SND_DEVICE_MAX] = {
[SND_DEVICE_NONE] = -1,
[SND_DEVICE_OUT_HANDSET] = 7,
- [SND_DEVICE_OUT_SPEAKER] = 14,
- [SND_DEVICE_OUT_SPEAKER_REVERSE] = 14,
+ [SND_DEVICE_OUT_SPEAKER] = 131,
+ [SND_DEVICE_OUT_SPEAKER_REVERSE] = 131,
[SND_DEVICE_OUT_HEADPHONES] = 10,
[SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES] = 10,
[SND_DEVICE_OUT_VOICE_HANDSET] = 7,
[SND_DEVICE_OUT_VOICE_SPEAKER] = 14,
[SND_DEVICE_OUT_VOICE_HEADPHONES] = 10,
[SND_DEVICE_OUT_HDMI] = 18,
- [SND_DEVICE_OUT_SPEAKER_AND_HDMI] = 14,
+ [SND_DEVICE_OUT_SPEAKER_AND_HDMI] = 131,
[SND_DEVICE_OUT_BT_SCO] = 22,
[SND_DEVICE_OUT_BT_SCO_WB] = 39,
[SND_DEVICE_OUT_VOICE_TTY_FULL_HEADPHONES] = 17,
@@ -282,7 +282,7 @@ static int acdb_device_table[SND_DEVICE_MAX] = {
[SND_DEVICE_OUT_VOICE_TTY_HCO_HANDSET] = 37,
[SND_DEVICE_OUT_AFE_PROXY] = 0,
[SND_DEVICE_OUT_USB_HEADSET] = 45,
- [SND_DEVICE_OUT_SPEAKER_AND_USB_HEADSET] = 14,
+ [SND_DEVICE_OUT_SPEAKER_AND_USB_HEADSET] = 131,
[SND_DEVICE_OUT_TRANSMISSION_FM] = 0,
[SND_DEVICE_OUT_ANC_HEADSET] = 26,
[SND_DEVICE_OUT_ANC_FB_HEADSET] = 27,