Fix endian define

Test: compilation
Bug: 36815380
Change-Id: I6a1a89dfcf8339faa07509b1e058250ad2e86f1d
This commit is contained in:
Andy Hung 2017-03-31 14:12:17 -07:00
parent 254c20585d
commit 7e1b97e4ff

View file

@ -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: