hal: Add support for speaker protection
- Speaker protection feature protects the speaker from
overheating.
Change-Id: Ida4899534124eba203025915beba662e88a0f403
diff --git a/hal/msm8974/platform.h b/hal/msm8974/platform.h
index 6ad392b..93dafa5 100644
--- a/hal/msm8974/platform.h
+++ b/hal/msm8974/platform.h
@@ -71,6 +71,7 @@
SND_DEVICE_OUT_VOICE_ANC_FB_HEADSET,
SND_DEVICE_OUT_SPEAKER_AND_ANC_HEADSET,
SND_DEVICE_OUT_ANC_HANDSET,
+ SND_DEVICE_OUT_SPEAKER_PROTECTED,
SND_DEVICE_OUT_END,
/*
@@ -107,6 +108,7 @@
SND_DEVICE_IN_QUAD_MIC,
SND_DEVICE_IN_HANDSET_STEREO_DMIC,
SND_DEVICE_IN_SPEAKER_STEREO_DMIC,
+ SND_DEVICE_IN_CAPTURE_VI_FEEDBACK,
SND_DEVICE_IN_END,
SND_DEVICE_MAX = SND_DEVICE_IN_END,
@@ -152,6 +154,8 @@
#define FM_CAPTURE_PCM_DEVICE 6
#define INCALL_MUSIC_UPLINK_PCM_DEVICE 1
#define INCALL_MUSIC_UPLINK2_PCM_DEVICE 16
+#define SPKR_PROT_CALIB_RX_PCM_DEVICE 5
+#define SPKR_PROT_CALIB_TX_PCM_DEVICE 22
#ifdef PLATFORM_MSM8x26
#define VOICE2_CALL_PCM_DEVICE 14