hal: Fix illegal access of member variable without initialization

-In case of record usecase, out stream is not initialized,
if still accessed might result in illegal memory access
leading to heap corruption.
-Ensure access to out stream only in case of playback usecase.
-Add check to send correct app type in case of feedback speaker
potection. refer change:I033034cad6eb1886e2afa7a6875d18c3391b46c1

Change-Id: Ia70a8d69beb3ce1cb6c742977bd4ec23df3b0b77
1 file changed