hal: correct logic to check soundcard offline status

- when SSR is triggered while pcm-offload playback
  is going on, once soundcard is online playback is
  mute

- after SSR is complete hal tries to open stream and
  it gets the error ENETRESET, as global errno is not
  updated and have a stale value which is ENETRESET

- along with errno check is_compress_ready to make
  sure stream open failed as sound card is offline

CRs-fixed: 2237234

Change-Id: I95e2631c858ac7674ba8005cee5cd4e538a3d626
1 file changed