audio: Return audio_lowerhalf_s pointer instead error code in audio_comp_initialize

This commit is contained in:
zhangyuebin
2021-11-09 14:47:49 +08:00
committed by Alan Carvalho de Assis
parent dd70d29d4e
commit f3d20abe07
2 changed files with 9 additions and 7 deletions
+3 -2
View File
@@ -65,14 +65,15 @@ extern "C"
* ... - The list of the lower half audio driver.
*
* Returned Value:
* Zero on success; a negated errno value on failure.
* struct audio_lowerhalf_s* on success; NULL on failure.
*
* Note
* The variable argument list must be NULL terminated.
*
****************************************************************************/
int audio_comp_initialize(FAR const char *name, ...);
FAR struct audio_lowerhalf_s *audio_comp_initialize(FAR const char *name,
...);
#undef EXTERN
#ifdef __cplusplus