audio: enable compilation  without flag TARGET_USES_AOSP_FOR_AUDIO

- Disable some features to enable compilation without AOSP flag.
- Add new feature flags to guard legacy features not
  required on O.
- Update channel index used for surround sound recording as per
  latest channel mapping index.

Change-Id: I4d2654b8c8938dea60388524ebb43980a3fd8c3d
diff --git a/Android.mk b/Android.mk
index 1550455..e1e5a0c 100644
--- a/Android.mk
+++ b/Android.mk
@@ -18,7 +18,7 @@
 include $(MY_LOCAL_PATH)/qahw_api/Android.mk
 endif
 
-ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
+ifeq ($(USE_LEGACY_AUDIO_DAEMON), true)
 include $(MY_LOCAL_PATH)/audiod/Android.mk
 endif