hal: Add support for speaker protection
- Speaker protection feature protects the speaker from
overheating.
Change-Id: Ida4899534124eba203025915beba662e88a0f403
diff --git a/hal/audio_hw.h b/hal/audio_hw.h
index 07fd027..68e40ce 100644
--- a/hal/audio_hw.h
+++ b/hal/audio_hw.h
@@ -82,6 +82,8 @@
USECASE_INCALL_MUSIC_UPLINK,
USECASE_INCALL_MUSIC_UPLINK2,
+ USECASE_AUDIO_SPKR_CALIB_RX,
+ USECASE_AUDIO_SPKR_CALIB_TX,
AUDIO_USECASE_MAX
} audio_usecase_t;
@@ -223,6 +225,12 @@
int disable_snd_device(struct audio_device *adev,
snd_device_t snd_device,
bool update_mixer);
+int enable_snd_device(struct audio_device *adev,
+ snd_device_t snd_device,
+ bool update_mixer);
+int enable_audio_route(struct audio_device *adev,
+ struct audio_usecase *usecase,
+ bool update_mixer);
struct audio_usecase *get_usecase_from_list(struct audio_device *adev,
audio_usecase_t uc_id);
/*