hal: Add property to configure the compress offload fragment size.
Add property - audio.offload.buffer.size.kbytes to configure offload
fragment size. The maximum value for fragment size is 256k. Default
value is 32k. The minimum value is 8k.
Change-Id: I9b440a420270b27f5fdba9f82de6944da0afb9d2
diff --git a/hal/audio_hw.h b/hal/audio_hw.h
index 0904137..d23c184 100644
--- a/hal/audio_hw.h
+++ b/hal/audio_hw.h
@@ -246,6 +246,12 @@
bool update_mixer);
struct audio_usecase *get_usecase_from_list(struct audio_device *adev,
audio_usecase_t uc_id);
+
+#define LITERAL_TO_STRING(x) #x
+#define CHECK(condition) LOG_ALWAYS_FATAL_IF(!(condition), "%s",\
+ __FILE__ ":" LITERAL_TO_STRING(__LINE__)\
+ " ASSERT_FATAL(" #condition ") failed.")
+
/*
* NOTE: when multiple mutexes have to be acquired, always take the
* stream_in or stream_out mutex first, followed by the audio_device mutex.