examples/alc5658char: fix an invalid types
Change variables and functions to static and delete invalid comments.
* language governing permissions and limitations under the License.
*
****************************************************************************/
-/****************************************************************************
- * apps/examples/alc5658char_test/alc5658char_test_main.c
- *
- * Copyright (C) 2013 Ken Pettit. All rights reserved.
- * Author: Ken Pettit <pettitkd@gmail.com>
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * 3. Neither the name NuttX nor the names of its contributors may be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- ****************************************************************************/
/****************************************************************************
* Included Files
@@ -104,22 +70,15 @@ enum alctest_mode {
};
static struct ap_buffer_s *rx_apb;
-sem_t tx_start_sem;
-sem_t rx_done_sem;
-void *buff;
+static sem_t tx_start_sem;
+static sem_t rx_done_sem;
+static void *buff;
/****************************************************************************
* Private Functions
****************************************************************************/
-/****************************************************************************
- * Name: i2schar_receiver()
- *
- * Description:
- * This is the entry point for the receiver thread.
- *
- ****************************************************************************/
-pthread_addr_t alc5658char_receiver(void *arg)
+static pthread_addr_t alc5658char_receiver(void *arg)
{
int fd;
int pcm_fd;
@@ -193,7 +152,7 @@ pthread_addr_t alc5658char_receiver(void *arg)
return NULL;
}
-pthread_addr_t alc5658char_transmitter(void *arg)
+static pthread_addr_t alc5658char_transmitter(void *arg)
{
int fd;
int pcm_fd;
@@ -266,7 +225,7 @@ pthread_addr_t alc5658char_transmitter(void *arg)
return NULL;
}
-void alc5658char_test_help(FAR const char *program)
+static void alc5658char_test_help(FAR const char *program)
{
printf("================== %s commands ==================\n", program);
printf("%s loopback : Loopback test using headphone jack\n", program);
