From: TaeJun Kwon Date: Wed, 13 Sep 2017 07:18:40 +0000 (+0900) Subject: Modify Comment & define values in header file of audio X-Git-Tag: 1.1_Public_Release~188^2~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5cca640ec828fe5d9b3e64e316a511e770fbb026;p=rtos%2Ftinyara.git Modify Comment & define values in header file of audio --- diff --git a/framework/include/tinyalsa/tinyalsa.h b/framework/include/tinyalsa/tinyalsa.h old mode 100755 new mode 100644 index 4ee400b..40b3a6b --- a/framework/include/tinyalsa/tinyalsa.h +++ b/framework/include/tinyalsa/tinyalsa.h @@ -51,8 +51,8 @@ * @{ */ -#ifndef TINYALSA_PCM_H -#define TINYALSA_PCM_H +#ifndef __AUDIO_TINYALSA_H +#define __AUDIO_TINYALSA_H #include #include diff --git a/os/include/tinyara/audio/pcm.h b/os/include/tinyara/audio/pcm.h index 287f913..98b7c6f 100644 --- a/os/include/tinyara/audio/pcm.h +++ b/os/include/tinyara/audio/pcm.h @@ -150,6 +150,14 @@ extern "C" { /**************************************************************************** * Public Function Prototypes ****************************************************************************/ +#ifdef CONFIG_ENDIAN_BIG +static uint16_t pcm_leuint16(uint16_t value); +static uint32_t pcm_leuint32(uint32_t value); +#else +#define pcm_leuint16(v) (v) +#define pcm_leuint32(v) (v) +#endif + /**************************************************************************** * Name: pcm_decode_initialize @@ -170,15 +178,6 @@ extern "C" { * ****************************************************************************/ -#ifdef CONFIG_ENDIAN_BIG -static uint16_t pcm_leuint16(uint16_t value); -static uint32_t pcm_leuint32(uint32_t value); -#else -#define pcm_leuint16(v) (v) -#define pcm_leuint32(v) (v) -#endif - - FAR struct audio_lowerhalf_s *pcm_decode_initialize(FAR struct audio_lowerhalf_s *dev); #undef EXTERN