Modify Comment & define values in header file of audio
authorTaeJun Kwon <tj80.kwon@samsung.com>
Wed, 13 Sep 2017 07:18:40 +0000 (16:18 +0900)
committerShivam Garg <garg.shivam@samsung.com>
Mon, 18 Sep 2017 14:03:32 +0000 (23:03 +0900)
framework/include/tinyalsa/tinyalsa.h [changed mode: 0755->0644]
os/include/tinyara/audio/pcm.h

old mode 100755 (executable)
new mode 100644 (file)
index 4ee400b..40b3a6b
@@ -51,8 +51,8 @@
  * @{
  */
 
-#ifndef TINYALSA_PCM_H
-#define TINYALSA_PCM_H
+#ifndef __AUDIO_TINYALSA_H
+#define __AUDIO_TINYALSA_H
 
 #include <sys/time.h>
 #include <stddef.h>
index 287f913..98b7c6f 100644 (file)
@@ -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