hal: Squashed collection of fixes
* Remove unnecessary ifdefs for PCM offload
* Remove unnecessary property for 24-bit support (use audio policy)
* Clean up warnings
* Also includes these patches from Google:
audio: fix set_parameters return value.
xxx_set_parameters functions were returning the status
returned by str_parms_create_str() which is incorrect.
These functions should return 0 when no error occurs.
Change-Id: Ib4a7ac427e49f5500c99902f86d2d69d5843eda0
Scan and verify audio device parameters on open
Scanning is default disabled at this time.
Verbose logs will display device params found.
Change-Id: Id188d096ec68d2058c66ae3a51fe57d9645d03ef
Signed-off-by: Andy Hung <hunga@google.com>
audio: deprecate audio_stream_frame_size()
Bug: 15000850.
Change-Id: I1bbe614c241befa24513a2b583594680e32fd954
diff --git a/hal/audio_hw.h b/hal/audio_hw.h
index 622f9ac..1929630 100644
--- a/hal/audio_hw.h
+++ b/hal/audio_hw.h
@@ -269,6 +269,14 @@
int (*offload_effects_stop_output)(audio_io_handle_t, int);
struct sound_card_status snd_card_status;
+
+ /* The pcm_params use_case_table is loaded by adev_verify_devices() upon
+ * calling adev_open().
+ *
+ * If an entry is not NULL, it can be used to determine if extended precision
+ * or other capabilities are present for the device corresponding to that usecase.
+ */
+ struct pcm_params *use_case_table[AUDIO_USECASE_MAX];
};
int select_devices(struct audio_device *adev,