audiohal: Modifications in hal_play_test for trumpet certification

- Enumerated list of trumpet parameters added
- Dolby's proprietary codes have been moved to the
  test library for certification purposes

Change-Id: I8a8d13c05ba0617cdef945498f988e27ce704486
(cherry picked from commit b6b5bd4e75fd61d0bc729e7827cfd4695f50b3df)
diff --git a/qahw_api/test/Makefile.am b/qahw_api/test/Makefile.am
index 40cc24a..ddf1be2 100644
--- a/qahw_api/test/Makefile.am
+++ b/qahw_api/test/Makefile.am
@@ -2,9 +2,10 @@
 
 PLAY_CFLAGS = -Wno-sign-compare -Werror
 PLAY_CFLAGS += -D__unused=__attribute__\(\(__unused__\)\)
-PLAY_INCLUDES = -I $(top_srcdir)/qahw_api/inc
-PLAY_INCLUDES += -I $(top_srcdir)/qahw/inc
 
+PLAY_INCLUDES = -I $(top_srcdir)/qahw_api/inc
+PLAY_INCLUDES += -I $(top_srcdir)/qahw/inc \
+                -I $(top_srcdir)/hal
 hal_play_test_SOURCES = qahw_playback_test.c \
                         qahw_effect_test.c
 
@@ -21,6 +22,23 @@
 hal_play_test_CFLAGS = $(PLAY_CFLAGS) $(PLAY_INCLUDES)
 hal_play_test_CFLAGS += $(AM_CFLAGS) -DLINUX_ENABLED
 
+#hal_play_test_dolby_certification
+bin_PROGRAMS += hal_play_test_dolby_certification
+
+hal_play_test_dolby_certification_SOURCES = qahw_playback_test.c \
+                                            qahw_effect_test.c
+
+hal_play_test_dolby_certification_LDADD = -lutils ../libqahw.la
+
+if QAP
+hal_play_test_dolby_certification_SOURCES += qap_wrapper_extn.c
+hal_play_test_dolby_certification_LDADD += -lqap_wrapper
+endif
+
+hal_play_test_dolby_certification_CFLAGS = $(PLAY_CFLAGS) $(PLAY_INCLUDES) -DTRUMPET_CERTIFICATION=1
+hal_play_test_dolby_certification_CFLAGS += $(AM_CFLAGS) -DLINUX_ENABLED
+
+#hal_play_rec
 bin_PROGRAMS += hal_rec_test
 
 REC_CFLAGS = $(PLAY_CFLAGS) -Dnullptr=NULL