From 7e1b97e4ff615cf95037740ad2dbada6d381e343 Mon Sep 17 00:00:00 2001 From: Andy Hung Date: Fri, 31 Mar 2017 14:12:17 -0700 Subject: [PATCH] Fix endian define Test: compilation Bug: 36815380 Change-Id: I6a1a89dfcf8339faa07509b1e058250ad2e86f1d --- include/hardware/audio_alsaops.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/hardware/audio_alsaops.h b/include/hardware/audio_alsaops.h index 0d266ff5..e994924c 100644 --- a/include/hardware/audio_alsaops.h +++ b/include/hardware/audio_alsaops.h @@ -37,7 +37,7 @@ __BEGIN_DECLS static inline enum pcm_format pcm_format_from_audio_format(audio_format_t format) { switch (format) { -#ifdef HAVE_BIG_ENDIAN +#if HAVE_BIG_ENDIAN case AUDIO_FORMAT_PCM_16_BIT: return PCM_FORMAT_S16_BE; case AUDIO_FORMAT_PCM_24_BIT_PACKED: @@ -72,7 +72,7 @@ static inline enum pcm_format pcm_format_from_audio_format(audio_format_t format static inline audio_format_t audio_format_from_pcm_format(enum pcm_format format) { switch (format) { -#ifdef HAVE_BIG_ENDIAN +#if HAVE_BIG_ENDIAN case PCM_FORMAT_S16_BE: return AUDIO_FORMAT_PCM_16_BIT; case PCM_FORMAT_S24_3BE: