hal: Don't de-reference stream out in case of recording usecase

We don't need to dereference out stream in case of playback.
So move it down so that it gets de-referenced only when needed.

Change-Id: I162346395f4bbb9b3ba04a8fc4b9f3433096ab1a
diff --git a/hal/audio_extn/utils.c b/hal/audio_extn/utils.c
index 7d5b158..aa66360 100644
--- a/hal/audio_extn/utils.c
+++ b/hal/audio_extn/utils.c
@@ -392,8 +392,8 @@
 {
     char mixer_ctl_name[MAX_LENGTH_MIXER_CONTROL_IN_INT];
     int app_type_cfg[MAX_LENGTH_MIXER_CONTROL_IN_INT], len = 0, rc;
-    struct stream_out *out = usecase->stream.out;
-    struct audio_device *adev = out->dev;
+    struct stream_out *out;
+    struct audio_device *adev;
     struct mixer_ctl *ctl;
     int pcm_device_id, acdb_dev_id, snd_device = usecase->out_snd_device;
 
@@ -412,6 +412,8 @@
         rc = 0;
         goto exit_send_app_type_cfg;
     }
+    out = usecase->stream.out;
+    adev = out->dev;
 
     snd_device = usecase->out_snd_device;