hal: Reject hardware NT decoder session during SSR

- Hardware NT decoder sessions can not be created
  during SSR

- Reject hardware NT decoder session request
  if sound card is offline

Change-Id: I7cb75730fbc2824be28c72b22cc18a9086fbdf3b
diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c
index 4015f92..356d596 100644
--- a/hal/msm8916/platform.c
+++ b/hal/msm8916/platform.c
@@ -3137,6 +3137,10 @@
                     }
                 }
             }
+        } else if (SND_CARD_STATE_OFFLINE == get_snd_card_state(my_data->adev)) {
+            //Do not allow DSP session during SSR
+            ALOGI("Rejecting request for DSP only session from HAL due to SSR");
+            isallowed = 0;
         }
         str_parms_add_int(reply, AUDIO_PARAMETER_IS_HW_DECODER_SESSION_ALLOWED, isallowed);
     }