summaryrefslogtreecommitdiffstats
path: root/hal/msm8974/platform.h
diff options
context:
space:
mode:
authorRavi Kumar Alamanda <ralama@codeaurora.org>2015-05-08 10:16:26 -0700
committerEric Laurent <elaurent@google.com>2015-05-21 10:40:47 -0700
commit1ff0fb1b171154203707b96d507d524a7485af8c (patch)
treed37db859d8947c695f0da073f78aefb0dd3c409e /hal/msm8974/platform.h
parentd2063ecff8f2a4f495358a3285f26bfc5e533630 (diff)
downloadhardware_qcom_audio-1ff0fb1b171154203707b96d507d524a7485af8c.tar.gz
hardware_qcom_audio-1ff0fb1b171154203707b96d507d524a7485af8c.tar.bz2
hardware_qcom_audio-1ff0fb1b171154203707b96d507d524a7485af8c.zip
hal: update AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND for 8084 platform
On msm8084, wired headset/headphone/lineout devices are handled by slimbus backend and does not share the same backend with speaker and earpiece devices. Remove those devices from AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND. Change-Id: I7767335994a04a854a4ddad01fc7e97a7a6b0340
Diffstat (limited to 'hal/msm8974/platform.h')
-rw-r--r--hal/msm8974/platform.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/hal/msm8974/platform.h b/hal/msm8974/platform.h
index 63626d19..d5f45f44 100644
--- a/hal/msm8974/platform.h
+++ b/hal/msm8974/platform.h
@@ -18,15 +18,21 @@
#define QCOM_AUDIO_PLATFORM_H
/*
- * Below are the devices for which is back end is same, SLIMBUS_0_RX.
- * All these devices are handled by the internal HW codec. We can
- * enable any one of these devices at any time
+ * Below are the devices that share the same back end.
+ * It is not possible route different streams to different
+ * devices that share the same backend.
*/
+#ifdef PLATFORM_MSM8084
+#define AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND \
+ (AUDIO_DEVICE_OUT_EARPIECE | AUDIO_DEVICE_OUT_SPEAKER | \
+ AUDIO_DEVICE_OUT_SPEAKER_SAFE)
+#else
#define AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND \
(AUDIO_DEVICE_OUT_EARPIECE | AUDIO_DEVICE_OUT_SPEAKER | \
AUDIO_DEVICE_OUT_SPEAKER_SAFE | \
AUDIO_DEVICE_OUT_WIRED_HEADSET | AUDIO_DEVICE_OUT_WIRED_HEADPHONE | \
AUDIO_DEVICE_OUT_LINE)
+#endif
/* Sound devices specific to the platform
* The DEVICE_OUT_* and DEVICE_IN_* should be mapped to these sound