audio: fix snd card open

Change-Id: I3a6d2d52cdc5e28422df7d1979d1777e4c924690
Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 5e4aaa0..3b31711 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -44,7 +44,7 @@
 #include <sys/ioctl.h>
 
 #define CARD_OUT 0
-#define PORT_CODEC 0
+#define PORT_HDMI 0
 /* Minimum granularity - Arbitrary but small value */
 #define CODEC_BASE_FRAME_COUNT 32
 
@@ -102,7 +102,7 @@
     out->config.start_threshold = PLAYBACK_PERIOD_START_THRESHOLD * PERIOD_SIZE;
     out->config.avail_min = PERIOD_SIZE;
 
-    out->pcm = pcm_open(CARD_OUT, PORT_CODEC, PCM_OUT | PCM_MMAP | PCM_NOIRQ | PCM_MONOTONIC, &out->config);
+    out->pcm = pcm_open(CARD_OUT, PORT_HDMI, PCM_OUT, &out->config);
 
     if (!pcm_is_ready(out->pcm)) {
         ALOGE("cannot open pcm_out driver: %s", pcm_get_error(out->pcm));
@@ -435,7 +435,7 @@
     struct pcm_params *params;
     int ret = 0;
 
-    params = pcm_params_get(CARD_OUT, PORT_CODEC, PCM_OUT);
+    params = pcm_params_get(CARD_OUT, PORT_HDMI, PCM_OUT);
     if (!params)
         return -ENOSYS;