hal: Enable and update channel count for SSR

- Audio zoom does not work with SSR. SSR is not enabled
  and updated channel count from SSR lib is over written.

- Fix is to enable SSR compilation and channel count
  update for SSR.

Change-Id: I9323a17bbc5d8ae71630d8cf1187cfc93c82d452
diff --git a/hal/audio_extn/Android.mk b/hal/audio_extn/Android.mk
index 2aba6e1..8e6d6e5 100644
--- a/hal/audio_extn/Android.mk
+++ b/hal/audio_extn/Android.mk
@@ -143,7 +143,8 @@
     libtinycompress \
     libaudioroute \
     libdl \
-    libexpat
+    libexpat \
+    libprocessgroup
 
 LOCAL_C_INCLUDES := \
     vendor/qcom/opensource/audio-hal/primary-hal/hal \
@@ -168,7 +169,7 @@
 
 LOCAL_HEADER_LIBRARIES += libhardware_headers
 LOCAL_HEADER_LIBRARIES += libsystem_headers
-#include $(BUILD_SHARED_LIBRARY)
+include $(BUILD_SHARED_LIBRARY)
 
 #--------------------------------------------
 #          Build HDMI_EDID LIB
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 555f1e5..5481937 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -8992,8 +8992,9 @@
             }
         }
     }
+    if (audio_extn_ssr_get_stream() != in)
+        in->config.channels = channel_count;
 
-    in->config.channels = channel_count;
     in->sample_rate  = in->config.rate;
 
     audio_extn_utils_update_stream_input_app_type_cfg(adev->platform,