From b2aba08dd8f9396f5339db28c49397b60c59baf4 Mon Sep 17 00:00:00 2001 From: Bongryul Lee Date: Mon, 14 Aug 2017 16:28:18 +0900 Subject: [PATCH] artik053: remove unnecessary codes Since alc5658 is not included in artik053, the related code is removed. If you want to test alc5658 just enable CONFIG_EXAMPLES_SENSORBOARD. Change-Id: I030627e16ec7cc3996d77109c88709f77b4dd71d Signed-off-by: Bongryul Lee --- build/configs/artik053/audio/defconfig | 1004 ----------------------- os/arch/arm/src/artik053/src/Makefile | 4 +- os/arch/arm/src/artik053/src/artik053_alc5658.c | 341 -------- os/drivers/audio/Make.defs | 4 - 4 files changed, 1 insertion(+), 1352 deletions(-) delete mode 100644 build/configs/artik053/audio/defconfig delete mode 100644 os/arch/arm/src/artik053/src/artik053_alc5658.c diff --git a/build/configs/artik053/audio/defconfig b/build/configs/artik053/audio/defconfig deleted file mode 100644 index f086b44..0000000 --- a/build/configs/artik053/audio/defconfig +++ /dev/null @@ -1,1004 +0,0 @@ -# -# Automatically generated file; DO NOT EDIT. -# TinyAra Configuration -# - -# -# Build Setup -# -# CONFIG_EXPERIMENTAL is not set -# CONFIG_DEFAULT_SMALL is not set -CONFIG_HOST_LINUX=y -# CONFIG_HOST_OSX is not set -# CONFIG_HOST_WINDOWS is not set -# CONFIG_HOST_OTHER is not set -# CONFIG_WINDOWS_NATIVE is not set - -# -# Build Configuration -# -CONFIG_APPS_DIR="../apps" -CONFIG_FRAMEWORK_DIR="../framework" -CONFIG_TOOLS_DIR="../tools" -CONFIG_BUILD_FLAT=y -# CONFIG_BUILD_PROTECTED is not set -# CONFIG_BUILD_2PASS is not set - -# -# Binary Output Formats -# -# CONFIG_INTELHEX_BINARY is not set -# CONFIG_MOTOROLA_SREC is not set -CONFIG_RAW_BINARY=y -CONFIG_SAMSUNG_NS2=y -# CONFIG_UBOOT_UIMAGE is not set -# CONFIG_DOWNLOAD_IMAGE is not set -# CONFIG_SMARTFS_IMAGE is not set - -# -# Customize Header Files -# -# CONFIG_ARCH_STDINT_H is not set -# CONFIG_ARCH_STDBOOL_H is not set -# CONFIG_ARCH_MATH_H is not set -# CONFIG_ARCH_FLOAT_H is not set -# CONFIG_ARCH_STDARG_H is not set - -# -# Debug Options -# -CONFIG_DEBUG=y -CONFIG_DEBUG_ERROR=y -# CONFIG_DEBUG_WARN is not set -# CONFIG_DEBUG_VERBOSE is not set - -# -# Subsystem Debug Options -# -# CONFIG_DEBUG_FS is not set -# CONFIG_DEBUG_LIB is not set -# CONFIG_DEBUG_MM is not set -# CONFIG_DEBUG_SCHED is not set - -# -# OS Function Debug Options -# -# CONFIG_ARCH_HAVE_HEAPCHECK is not set -CONFIG_DEBUG_MM_HEAPINFO=y -# CONFIG_DEBUG_IRQ is not set - -# -# Driver Debug Options -# -# CONFIG_DEBUG_PWM is not set -# CONFIG_DEBUG_RTC is not set -# CONFIG_DEBUG_SPI is not set -# CONFIG_DEBUG_WATCHDOG is not set - -# -# Stack Debug Options -# -CONFIG_ARCH_HAVE_STACKCHECK=y -CONFIG_STACK_COLORATION=y - -# -# Build Debug Options -# -CONFIG_DEBUG_SYMBOLS=y -# CONFIG_FRAME_POINTER is not set -CONFIG_ARCH_HAVE_CUSTOMOPT=y -# CONFIG_DEBUG_NOOPT is not set -# CONFIG_DEBUG_CUSTOMOPT is not set -CONFIG_DEBUG_FULLOPT=y - -# -# System Type -# -CONFIG_ARCH_ARM=y -CONFIG_ARCH="arm" - -# -# ARM Options -# -CONFIG_ARCH_CHIP_S5J=y -# CONFIG_ARCH_CORTEXM3 is not set -# CONFIG_ARCH_CORTEXM4 is not set -CONFIG_ARCH_CORTEXR4=y -CONFIG_ARCH_FAMILY="armv7-r" -CONFIG_ARCH_CHIP="s5j" -# CONFIG_ARCH_HAVE_FPU is not set -CONFIG_ARMV7M_MPU=y -CONFIG_ARMV7M_MPU_NREGIONS=12 - -# -# ARMv7-R Configuration Options -# -CONFIG_ARMV7R_HAVE_GICv2=y -CONFIG_ARMV7R_MEMINIT=y -CONFIG_ARMV7R_ICACHE=y -CONFIG_ARMV7R_DCACHE=y -# CONFIG_ARMV7R_DCACHE_WRITETHROUGH is not set -# CONFIG_ARMV7R_HAVE_L2CC is not set -# CONFIG_ARMV7R_HAVE_L2CC_PL310 is not set -# CONFIG_ARMV7R_TOOLCHAIN_BUILDROOT is not set -# CONFIG_ARMV7R_TOOLCHAIN_CODESOURCERYL is not set -CONFIG_ARMV7R_TOOLCHAIN_GNU_EABIL=y -# CONFIG_ARMV7R_TOOLCHAIN_GNU_OABI is not set -# CONFIG_ARMV7R_HAVE_DECODEFIQ is not set -# CONFIG_BOOT_RESULT is not set - -# -# Samsung S5J Chip Configuration Options -# -CONFIG_ARCH_CHIP_S5JT200=y -CONFIG_S5J_S5JT200=y - -# -# S5J DEBUG UART Configuration -# -CONFIG_SERIAL_TERMIOS=y -CONFIG_ARCH_HAVE_SERIAL_TERMIOS=y -CONFIG_S5J_HAVE_UART0=y -CONFIG_S5J_HAVE_UART1=y -CONFIG_S5J_HAVE_UART2=y -CONFIG_S5J_HAVE_UART3=y -CONFIG_S5J_HAVE_UART4=y -CONFIG_S5J_UART0=y -CONFIG_S5J_UART1=y -CONFIG_S5J_UART2=y -CONFIG_S5J_UART3=y -CONFIG_S5J_UART4=y -CONFIG_S5J_PWM=y -CONFIG_S5J_PWM0=y -CONFIG_S5J_PWM1=y -CONFIG_S5J_PWM2=y -CONFIG_S5J_PWM3=y -CONFIG_S5J_PWM4=y -CONFIG_S5J_PWM5=y -# CONFIG_S5J_SSS is not set - -# -# S5J SPI(Serial Peripheral Interface Bus) -# -CONFIG_S5J_SPI=y - -# -# S5J WDT(Watch Dog Timer) -# -CONFIG_S5J_WATCHDOG=y -CONFIG_S5J_WDT_DEFTIMEOUT=7000 - -# -# S5J TICK COUNTER -# -# CONFIG_S5J_TICK_COUNTER is not set - -# -# S5J ADC -# -CONFIG_S5J_ADC=y - -# -# S5J I2C -# -CONFIG_S5J_I2C=y -CONFIG_S5J_GPIO=y -CONFIG_S5J_SFLASH=y - -# -# Serial FLASH region -# -CONFIG_S5J_FLASH_BASE=0x04000000 -CONFIG_S5J_FLASH_MIRROR_BASE=0x60000000 -CONFIG_S5J_FLASH_SIZE=0x800000 -CONFIG_S5J_FLASH_SECTOR_SIZE=4096 -CONFIG_S5J_BOOTLOADER_REGION_SIZE=0x320000 - -# CONFIG_S5J_DEBUG_BREAK is not set - -# -# S5J PMU Config -# -CONFIG_S5J_PWR=y -# CONFIG_S5J_PWR_DSTOP is not set -# CONFIG_S5J_PWR_SLEEP is not set - -# -# S5J DMA -# -CONFIG_S5J_DMA=y -CONFIG_DEBUG_DMA_ERROR=y -# CONFIG_DEBUG_DMA_WARN is not set -# CONFIG_DEBUG_DMA_INFO is not set - -# -# S5J I2S -# -CONFIG_S5J_I2S=y -CONFIG_S5J_I2S_RX=y -CONFIG_S5J_I2S_TX_P=y -# CONFIG_S5J_I2S_TX_S is not set -CONFIG_S5J_I2S_MAXINFLIGHT=16 -CONFIG_DEBUG_I2S_ERROR=y -# CONFIG_DEBUG_I2S_WARN is not set -# CONFIG_DEBUG_I2S_INFO is not set - -# -# Architecture Options -# -# CONFIG_ARCH_NOINTC is not set -# CONFIG_ARCH_VECNOTIRQ is not set - CONFIG_ARCH_DMA=y -# CONFIG_ARCH_HAVE_IRQPRIO is not set -# CONFIG_ARCH_L2CACHE is not set -# CONFIG_ARCH_HAVE_COHERENT_DCACHE is not set -# CONFIG_ARCH_HAVE_ADDRENV is not set -# CONFIG_ARCH_NEED_ADDRENV_MAPPING is not set -CONFIG_ARCH_HAVE_VFORK=y -# CONFIG_ARCH_HAVE_MMU is not set -CONFIG_ARCH_HAVE_MPU=y -# CONFIG_ARCH_NAND_HWECC is not set -# CONFIG_ARCH_HAVE_EXTCLK is not set -# CONFIG_ARCH_HAVE_POWEROFF is not set -CONFIG_ARCH_HAVE_RESET=y -CONFIG_ARCH_USE_MPU=y -# CONFIG_ARCH_STACKDUMP is not set -# CONFIG_ENDIAN_BIG is not set -# CONFIG_ARCH_IDLE_CUSTOM is not set -# CONFIG_ARCH_HAVE_RAMFUNCS is not set -# CONFIG_ARCH_HAVE_RAMVECTORS is not set - -# -# Board Settings -# -CONFIG_BOARD_LOOPSPERMSEC=29100 -# CONFIG_ARCH_CALIBRATION is not set - -# -# Interrupt options -# -CONFIG_ARCH_HAVE_INTERRUPTSTACK=y -CONFIG_ARCH_INTERRUPTSTACK=0 -# CONFIG_ARCH_HAVE_HIPRI_INTERRUPT is not set - -# -# Boot options -# -# CONFIG_BOOT_RUNFROMEXTSRAM is not set -CONFIG_BOOT_RUNFROMFLASH=y -# CONFIG_BOOT_RUNFROMISRAM is not set -# CONFIG_BOOT_RUNFROMSDRAM is not set -# CONFIG_BOOT_COPYTORAM is not set - -# -# Boot Memory Configuration -# -CONFIG_RAM_START=0x02023800 -CONFIG_RAM_SIZE=804864 -# CONFIG_ARCH_HAVE_SDRAM is not set - -# -# Board Selection -# -CONFIG_ARCH_BOARD_ARTIK053=y -# CONFIG_ARCH_BOARD_SIDK_S5JT200 is not set -CONFIG_ARCH_BOARD="artik053" - -# -# Common Board Options -# -# CONFIG_BOARD_CRASHDUMP is not set -CONFIG_LIB_BOARDCTL=y -CONFIG_BOARDCTL_RESET=y -# CONFIG_BOARDCTL_UNIQUEID is not set -# CONFIG_BOARD_COREDUMP_FLASH is not set -# CONFIG_BOARD_FOTA_SUPPORT is not set -# CONFIG_BOARD_RAMDUMP_FLASH is not set -# CONFIG_BOARD_RAMDUMP_UART is not set - -# -# Board-Specific Options -# -CONFIG_ARTIK053_BOOT_FAILURE_DETECTION=y -CONFIG_ARTIK053_BOOT_COUNTS_ADDR=0x80090810 -CONFIG_ARTIK053_FLASH_CAPACITY=8388608 -CONFIG_ARTIK053_FLASH_PAGE_SIZE=4096 -CONFIG_ARTIK053_FLASH_PART=y -CONFIG_ARTIK053_FLASH_MINOR=0 -CONFIG_ARTIK053_FLASH_PART_LIST="16,48,192,32,512,2400,1536,1536,1400,8,512," -CONFIG_ARTIK053_FLASH_PART_TYPE="none,ftl,none,none,none,none,none,ftl,smartfs,config,none," -CONFIG_ARTIK053_FLASH_PART_NAME="bl1,sssro,bl2,sssfw,wlanfw,os,factory,ota,user,nvram,sssrw," -CONFIG_ARTIK053_AUTOMOUNT=y -CONFIG_ARTIK053_AUTOMOUNT_USERFS=y -CONFIG_ARTIK053_AUTOMOUNT_USERFS_DEVNAME="/dev/smart0p8" -CONFIG_ARTIK053_AUTOMOUNT_USERFS_MOUNTPOINT="/mnt" - -# -# RTOS Features -# -CONFIG_DISABLE_OS_API=y -# CONFIG_DISABLE_POSIX_TIMERS is not set -# CONFIG_DISABLE_PTHREAD is not set -# CONFIG_DISABLE_SIGNALS is not set -# CONFIG_DISABLE_MQUEUE is not set -# CONFIG_DISABLE_ENVIRON is not set - -# -# Clocks and Timers -# -CONFIG_ARCH_HAVE_TICKLESS=y -# CONFIG_SCHED_TICKLESS is not set -CONFIG_USEC_PER_TICK=9979 -CONFIG_SYSTEM_TIME64=y -CONFIG_CLOCK_MONOTONIC=y -# CONFIG_JULIAN_TIME is not set -CONFIG_MAX_WDOGPARMS=4 -CONFIG_PREALLOC_WDOGS=32 -CONFIG_WDOG_INTRESERVE=4 -CONFIG_PREALLOC_TIMERS=8 - -# -# Tasks and Scheduling -# -CONFIG_INIT_ENTRYPOINT=y -CONFIG_RR_INTERVAL=100 -CONFIG_TASK_NAME_SIZE=31 -CONFIG_MAX_TASKS=16 -CONFIG_SCHED_HAVE_PARENT=y -# CONFIG_SCHED_CHILD_STATUS is not set -CONFIG_SCHED_WAITPID=y - -# -# Pthread Options -# -CONFIG_PTHREAD_MUTEX_TYPES=y -# CONFIG_PTHREAD_MUTEX_ROBUST is not set -CONFIG_PTHREAD_MUTEX_UNSAFE=y -# CONFIG_PTHREAD_MUTEX_BOTH is not set -# CONFIG_PTHREAD_MUTEX_DEFAULT_ROBUST is not set -# CONFIG_PTHREAD_MUTEX_DEFAULT_UNSAFE is not set -CONFIG_NPTHREAD_KEYS=4 - -# -# Performance Monitoring -# -# CONFIG_SCHED_CPULOAD is not set -# CONFIG_SCHED_INSTRUMENTATION is not set - -# -# Latency optimization -# -# CONFIG_SCHED_YIELD_OPTIMIZATION is not set - -# -# Files and I/O -# -CONFIG_DEV_CONSOLE=y -# CONFIG_FDCLONE_DISABLE is not set -# CONFIG_FDCLONE_STDIO is not set -# CONFIG_SDCLONE_DISABLE is not set -CONFIG_NFILE_DESCRIPTORS=64 -CONFIG_NFILE_STREAMS=16 -CONFIG_NAME_MAX=32 -# CONFIG_PRIORITY_INHERITANCE is not set - -# -# RTOS hooks -# -CONFIG_BOARD_INITIALIZE=y -# CONFIG_BOARD_INITTHREAD is not set -# CONFIG_SCHED_STARTHOOK is not set -CONFIG_SCHED_ATEXIT=y -CONFIG_SCHED_ONEXIT=y -CONFIG_SCHED_ONEXIT_MAX=1 - -# -# Signal Numbers -# -CONFIG_SIG_SIGUSR1=1 -CONFIG_SIG_SIGUSR2=2 -CONFIG_SIG_SIGALARM=3 -CONFIG_SIG_SIGCHLD=4 -CONFIG_SIG_SIGCONDTIMEDOUT=16 -CONFIG_SIG_SIGWORK=17 - -# -# POSIX Message Queue Options -# -CONFIG_PREALLOC_MQ_MSGS=4 -CONFIG_MQ_MAXMSGSIZE=600 - -# -# Work Queue Support -# -CONFIG_SCHED_WORKQUEUE=y -CONFIG_SCHED_WORKQUEUE_SORTING=y -CONFIG_SCHED_HPWORK=y -CONFIG_SCHED_HPWORKPRIORITY=224 -CONFIG_SCHED_HPWORKPERIOD=50000 -CONFIG_SCHED_HPWORKSTACKSIZE=2048 -# CONFIG_SCHED_LPWORK is not set - -# -# Stack size information -# -CONFIG_IDLETHREAD_STACKSIZE=1024 -CONFIG_USERMAIN_STACKSIZE=2048 -CONFIG_PREAPP_STACKSIZE=2048 -CONFIG_PTHREAD_STACK_MIN=256 -CONFIG_PTHREAD_STACK_DEFAULT=2048 - -# -# System Call -# -# CONFIG_LIB_SYSCALL is not set - -# -# Device Drivers -# -# CONFIG_DISABLE_POLL is not set -CONFIG_DEV_NULL=y -# CONFIG_DEV_ZERO is not set - -# -# Buffering -# -# CONFIG_DRVR_WRITEBUFFER is not set -# CONFIG_DRVR_READAHEAD is not set -# CONFIG_RAMDISK is not set -# CONFIG_CAN is not set -# CONFIG_ARCH_HAVE_PWM_PULSECOUNT is not set -CONFIG_PWM=y -# CONFIG_ARCH_HAVE_I2CRESET is not set -CONFIG_I2C=y -CONFIG_I2C_SLAVE=y -CONFIG_I2C_TRANSFER=y -# CONFIG_I2C_WRITEREAD is not set -CONFIG_I2C_POLLED=y -# CONFIG_I2C_TRACE is not set -CONFIG_I2C_USERIO=y -CONFIG_SPI=y -# CONFIG_SPI_OWNBUS is not set -# CONFIG_SPI_EXCHANGE is not set -# CONFIG_SPI_CMDDATA is not set -# CONFIG_SPI_BITBANG is not set -CONFIG_GPIO=y -CONFIG_I2S=y -CONFIG_AUDIO_DEVICES=y -# CONFIG_AUDIO_NULL is not set -CONFIG_AUDIO_ALC5658=y -CONFIG_ALC5658_INITVOLUME=250 -CONFIG_ALC5658_INFLIGHT=2 -CONFIG_ALC5658_MSG_PRIO=1 -CONFIG_ALC5658_BUFFER_SIZE=8192 -CONFIG_ALC5658_NUM_BUFFERS=4 -CONFIG_ALC5658_WORKER_STACKSIZE=768 -# CONFIG_ALC5658_REGDUMP is not set -# CONFIG_ALC5658_CLKDEBUG is not set -CONFIG_RTC=y -CONFIG_RTC_DATETIME=y -# CONFIG_RTC_ALARM is not set -CONFIG_RTC_DRIVER=y -# CONFIG_RTC_IOCTL is not set -CONFIG_WATCHDOG=y -CONFIG_WATCHDOG_DEVPATH="/dev/watchdog0" -# CONFIG_TIMER is not set -CONFIG_ANALOG=y -CONFIG_ADC=y -CONFIG_ADC_FIFOSIZE=8 -# CONFIG_DAC is not set -# CONFIG_LCD is not set -# CONFIG_PIPES is not set -CONFIG_POWER=y -# CONFIG_BATTERY_CHARGER is not set -# CONFIG_BATTERY_GAUGE is not set -# CONFIG_SERCOMM_CONSOLE is not set -CONFIG_SERIAL=y -# CONFIG_DEV_LOWCONSOLE is not set -# CONFIG_16550_UART is not set -# CONFIG_ARCH_HAVE_UART is not set -CONFIG_ARCH_HAVE_UART0=y -CONFIG_ARCH_HAVE_UART1=y -CONFIG_ARCH_HAVE_UART2=y -CONFIG_ARCH_HAVE_UART3=y -CONFIG_ARCH_HAVE_UART4=y -# CONFIG_ARCH_HAVE_UART5 is not set -# CONFIG_ARCH_HAVE_UART6 is not set -# CONFIG_ARCH_HAVE_UART7 is not set -# CONFIG_ARCH_HAVE_UART8 is not set -# CONFIG_ARCH_HAVE_SCI0 is not set -# CONFIG_ARCH_HAVE_SCI1 is not set -# CONFIG_ARCH_HAVE_USART0 is not set -# CONFIG_ARCH_HAVE_USART1 is not set -# CONFIG_ARCH_HAVE_USART2 is not set -# CONFIG_ARCH_HAVE_USART3 is not set -# CONFIG_ARCH_HAVE_USART4 is not set -# CONFIG_ARCH_HAVE_USART5 is not set -# CONFIG_ARCH_HAVE_USART6 is not set -# CONFIG_ARCH_HAVE_USART7 is not set -# CONFIG_ARCH_HAVE_USART8 is not set -# CONFIG_ARCH_HAVE_OTHER_UART is not set - -# -# USART Configuration -# -CONFIG_MCU_SERIAL=y -CONFIG_STANDARD_SERIAL=y -CONFIG_SERIAL_NPOLLWAITERS=2 -# CONFIG_SERIAL_IFLOWCONTROL is not set -# CONFIG_SERIAL_OFLOWCONTROL is not set -# CONFIG_SERIAL_TIOCSERGSTRUCT is not set -# CONFIG_UART0_SERIAL_CONSOLE is not set -# CONFIG_UART1_SERIAL_CONSOLE is not set -# CONFIG_UART2_SERIAL_CONSOLE is not set -# CONFIG_UART3_SERIAL_CONSOLE is not set -CONFIG_UART4_SERIAL_CONSOLE=y -# CONFIG_OTHER_SERIAL_CONSOLE is not set -# CONFIG_NO_SERIAL_CONSOLE is not set - -# -# UART0 Configuration -# -CONFIG_UART0_RXBUFSIZE=64 -CONFIG_UART0_TXBUFSIZE=64 -CONFIG_UART0_BAUD=115200 -CONFIG_UART0_BITS=8 -CONFIG_UART0_PARITY=0 -CONFIG_UART0_2STOP=0 -# CONFIG_UART0_IFLOWCONTROL is not set -# CONFIG_UART0_OFLOWCONTROL is not set - -# -# UART1 Configuration -# -CONFIG_UART1_RXBUFSIZE=64 -CONFIG_UART1_TXBUFSIZE=64 -CONFIG_UART1_BAUD=115200 -CONFIG_UART1_BITS=8 -CONFIG_UART1_PARITY=0 -CONFIG_UART1_2STOP=0 -# CONFIG_UART1_IFLOWCONTROL is not set -# CONFIG_UART1_OFLOWCONTROL is not set - -# -# UART2 Configuration -# -CONFIG_UART2_RXBUFSIZE=64 -CONFIG_UART2_TXBUFSIZE=64 -CONFIG_UART2_BAUD=115200 -CONFIG_UART2_BITS=8 -CONFIG_UART2_PARITY=0 -CONFIG_UART2_2STOP=0 -# CONFIG_UART2_IFLOWCONTROL is not set -# CONFIG_UART2_OFLOWCONTROL is not set - -# -# UART3 Configuration -# -CONFIG_UART3_RXBUFSIZE=256 -CONFIG_UART3_TXBUFSIZE=256 -CONFIG_UART3_BAUD=115200 -CONFIG_UART3_BITS=8 -CONFIG_UART3_PARITY=0 -CONFIG_UART3_2STOP=0 -# CONFIG_UART3_IFLOWCONTROL is not set -# CONFIG_UART3_OFLOWCONTROL is not set - -# -# UART4 Configuration -# -CONFIG_UART4_RXBUFSIZE=256 -CONFIG_UART4_TXBUFSIZE=256 -CONFIG_UART4_BAUD=115200 -CONFIG_UART4_BITS=8 -CONFIG_UART4_PARITY=0 -CONFIG_UART4_2STOP=0 -# CONFIG_UART4_IFLOWCONTROL is not set -# CONFIG_UART4_OFLOWCONTROL is not set - -# CONFIG_USBDEV is not set -# CONFIG_FOTA_DRIVER is not set - -# -# System Logging Device Options -# - -# -# System Logging -# -# CONFIG_RAMLOG is not set -# CONFIG_SYSLOG_CONSOLE is not set -# CONFIG_DRIVERS_WIRELESS is not set - -# -# Networking Support -# -# CONFIG_ARCH_HAVE_NET is not set -# CONFIG_ARCH_HAVE_PHY is not set -# CONFIG_NET is not set -# -# Audio Support -# -CONFIG_AUDIO=y -# CONFIG_AUDIO_MULTI_SESSION is not set - -# -# Audio Buffer Configuration -# -# CONFIG_AUDIO_LARGE_BUFFERS is not set -CONFIG_AUDIO_NUM_BUFFERS=2 -CONFIG_AUDIO_BUFFER_NUMBYTES=8192 -# CONFIG_AUDIO_DRIVER_SPECIFIC_BUFFERS is not set -CONFIG_DEBUG_AUDIO_ERROR=y -# CONFIG_DEBUG_AUDIO_WARN is not set -# CONFIG_DEBUG_AUDIO_INFO is not set - -# -# Supported Audio Formats -# -# CONFIG_AUDIO_FORMAT_AC3 is not set -# CONFIG_AUDIO_FORMAT_DTS is not set -CONFIG_AUDIO_FORMAT_PCM=y -# CONFIG_AUDIO_FORMAT_MP3 is not set -# CONFIG_AUDIO_FORMAT_MIDI is not set -# CONFIG_AUDIO_FORMAT_WMA is not set -# CONFIG_AUDIO_FORMAT_OGG_VORBIS is not set - -# -# Exclude Specific Audio Features -# -# CONFIG_AUDIO_EXCLUDE_VOLUME is not set -# CONFIG_AUDIO_EXCLUDE_BALANCE is not set -CONFIG_AUDIO_EXCLUDE_EQUALIZER=y -# CONFIG_AUDIO_EXCLUDE_TONE is not set -# CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME is not set -# CONFIG_AUDIO_EXCLUDE_STOP is not set -# CONFIG_AUDIO_EXCLUDE_FFORWARD is not set -CONFIG_AUDIO_EXCLUDE_REWIND=y -# CONFIG_AUDIO_CUSTOM_DEV_PATH is not set - -# -# File Systems -# - -# -# File system configuration -# -# CONFIG_DISABLE_MOUNTPOINT is not set -# CONFIG_FS_AUTOMOUNTER is not set -# CONFIG_DISABLE_PSEUDOFS_OPERATIONS is not set -CONFIG_FS_READABLE=y -CONFIG_FS_WRITABLE=y -# CONFIG_FS_NAMED_SEMAPHORES is not set -CONFIG_FS_MQUEUE_MPATH="/var/mqueue" -CONFIG_FS_SMARTFS=y - -# -# SMARTFS options -# -CONFIG_SMARTFS_ERASEDSTATE=0xff -CONFIG_SMARTFS_MAXNAMLEN=32 -# CONFIG_SMARTFS_MULTI_ROOT_DIRS is not set -CONFIG_SMARTFS_ALIGNED_ACCESS=y -# CONFIG_SMARTFS_BAD_SECTOR is not set -# CONFIG_SMARTFS_DYNAMIC_HEADER is not set -# CONFIG_SMARTFS_JOURNALING is not set -# CONFIG_SMARTFS_SECTOR_RECOVERY is not set -CONFIG_FS_PROCFS=y - -# -# Exclude individual procfs entries -# -# CONFIG_FS_PROCFS_EXCLUDE_PROCESS is not set -# CONFIG_FS_PROCFS_EXCLUDE_UPTIME is not set -# CONFIG_FS_PROCFS_EXCLUDE_VERSION is not set -# CONFIG_FS_PROCFS_EXCLUDE_MOUNTS is not set -# CONFIG_FS_PROCFS_EXCLUDE_MTD is not set -# CONFIG_FS_PROCFS_EXCLUDE_PARTITIONS is not set -# CONFIG_FS_PROCFS_EXCLUDE_SMARTFS is not set -# CONFIG_FS_ROMFS is not set - -# -# Block Driver Configurations -# - -# -# MTD Configuration -# -CONFIG_MTD=y -CONFIG_MTD_PARTITION=y -CONFIG_MTD_PARTITION_NAMES=y -CONFIG_MTD_PROGMEM=y -CONFIG_MTD_FTL=y -CONFIG_MTD_CONFIG=y - -# -# MTD Configurations -# -# CONFIG_MTD_CONFIG_RAM_CONSOLIDATE is not set -CONFIG_MTD_CONFIG_ERASEDVALUE=0xff -# CONFIG_MTD_BYTE_WRITE is not set - -# -# MTD Device Drivers -# -# CONFIG_MTD_M25P is not set -# CONFIG_RAMMTD is not set -CONFIG_MTD_SMART=y - -# -# SMART Device options -# -CONFIG_MTD_SMART_SECTOR_SIZE=512 -# CONFIG_MTD_SMART_WEAR_LEVEL is not set -# CONFIG_MTD_SMART_ENABLE_CRC is not set -# CONFIG_MTD_SMART_SECTOR_ERASE_DEBUG is not set -# CONFIG_MTD_SMART_ALLOC_DEBUG is not set - -# -# System Logging -# -# CONFIG_SYSLOG is not set -# CONFIG_SYSLOG_TIMESTAMP is not set - -# -# Arastorage -# - -# -# AraStorage database configuration -# -# CONFIG_ARASTORAGE is not set - -# -# Memory Management -# -# CONFIG_DISABLE_REALLOC_NEIGHBOR_EXTENTION is not set -# CONFIG_MM_SMALL is not set -CONFIG_MM_REGIONS=1 -# CONFIG_ARCH_HAVE_HEAP2 is not set -# CONFIG_GRAN is not set - -# -# Power Management -# -# CONFIG_PM is not set - -# -# Logger Module -# -# CONFIG_LOGM is not set - -# -# Library Routines -# - -# -# Standard C Library Options -# -CONFIG_STDIO_BUFFER_SIZE=64 -CONFIG_STDIO_LINEBUFFER=y -CONFIG_NUNGET_CHARS=2 -CONFIG_LIB_HOMEDIR="/" -CONFIG_LIBM=y -# CONFIG_NOPRINTF_FIELDWIDTH is not set -CONFIG_LIBC_FLOATINGPOINT=y -# CONFIG_LIBC_IOCTL_VARIADIC is not set -CONFIG_LIB_RAND_ORDER=1 -# CONFIG_EOL_IS_CR is not set -# CONFIG_EOL_IS_LF is not set -# CONFIG_EOL_IS_BOTH_CRLF is not set -CONFIG_EOL_IS_EITHER_CRLF=y -CONFIG_POSIX_SPAWN_PROXY_STACKSIZE=1024 -CONFIG_TASK_SPAWN_DEFAULT_STACKSIZE=2048 -CONFIG_LIBC_STRERROR=y -# CONFIG_LIBC_STRERROR_SHORT is not set -# CONFIG_LIBC_PERROR_STDOUT is not set -CONFIG_LIBC_TMPDIR="/tmp" -CONFIG_LIBC_MAX_TMPFILE=32 -CONFIG_ARCH_LOWPUTC=y -# CONFIG_LIBC_LOCALTIME is not set -# CONFIG_TIME_EXTENDED is not set -CONFIG_LIB_SENDFILE_BUFSIZE=512 -# CONFIG_ARCH_ROMGETC is not set -# CONFIG_ARCH_OPTIMIZED_FUNCTIONS is not set -# CONFIG_LIBC_NETDB is not set -# CONFIG_NETDB_HOSTFILE is not set - -# -# Non-standard Library Support -# - -# -# Basic CXX Support -# -# CONFIG_C99_BOOL8 is not set -# CONFIG_HAVE_CXX is not set - -# -# External Functions -# -# CONFIG_ENABLE_IOTIVITY is not set - -# -# Application Configuration -# - -# -# Examples -# -# CONFIG_ENTRY_MANUAL is not set -CONFIG_ENTRY_HELLO=y -CONFIG_USER_ENTRYPOINT="hello_main" -CONFIG_BUILTIN_APPS=y - -# CONFIG_EXAMPLES_DTLS_CLIENT is not set -# CONFIG_EXAMPLES_DTLS_SERVER is not set -# CONFIG_EXAMPLES_FOTA_SAMPLE is not set -CONFIG_EXAMPLES_HELLO=y -# CONFIG_EXAMPLES_HELLO_TASH is not set -# CONFIG_EXAMPLES_HELLOXX is not set -# CONFIG_EXAMPLES_KERNEL_SAMPLE is not set -# CONFIG_EXAMPLES_NETTEST is not set -# CONFIG_EXAMPLES_PROC_TEST is not set -# CONFIG_EXAMPLES_SELECT_TEST is not set -# CONFIG_EXAMPLES_SYSIO_TEST is not set -# CONFIG_EXAMPLES_TELNETD is not set -# CONFIG_EXAMPLES_TESTCASE is not set -# CONFIG_EXAMPLES_TLS_CLIENT is not set -# CONFIG_EXAMPLES_TLS_SELFTEST is not set -# CONFIG_EXAMPLES_TLS_SERVER is not set -# CONFIG_EXAMPLES_WAKAAMA_CLIENT is not set -# CONFIG_EXAMPLES_WORKQUEUE is not set -# CONFIG_EXAMPLES_ARTIK_DEMO is not set -# CONFIG_EXAMPLES_SENSORBOARD is not set -CONFIG_EXAMPLES_NXPLAYER=y -CONFIG_NXPLAYER_PLAYTHREAD_STACKSIZE=1500 -CONFIG_NXPLAYER_COMMAND_LINE=y -CONFIG_NXPLAYER_INCLUDE_HELP=y -CONFIG_NXPLAYER_INCLUDE_DEVICE_SEARCH=y -CONFIG_NXPLAYER_INCLUDE_PREFERRED_DEVICE=y -CONFIG_NXPLAYER_FMT_FROM_EXT=y -# CONFIG_NXPLAYER_FMT_FROM_HEADER is not set -CONFIG_NXPLAYER_INCLUDE_MEDIADIR=y -CONFIG_NXPLAYER_DEFAULT_MEDIADIR="/mnt" -# CONFIG_NXPLAYER_RECURSIVE_MEDIA_SEARCH is not set -# CONFIG_NXPLAYER_INCLUDE_SYSTEM_RESET is not set -CONFIG_EXAMPLES_WAVE_GEN=y - -# -# Network Utilities -# -# CONFIG_NETUTILS_CODECS is not set -# CONFIG_NETUTILS_DHCPC is not set -# CONFIG_NETUTILS_FTPC is not set -# CONFIG_NETUTILS_FTPD is not set -# CONFIG_NETUTILS_JSON is not set -# CONFIG_NETUTILS_SMTP is not set -# CONFIG_NETUTILS_TELNETD is not set -# CONFIG_NETUTILS_TFTPC is not set -# CONFIG_NETUTILS_NETLIB is not set -# CONFIG_NETUTILS_NTPCLIENT is not set -# CONFIG_NETUTILS_XMLRPC is not set -# CONFIG_NETUTILS_MDNS is not set -# CONFIG_NETUTILS_WIFI is not set -# CONFIG_NETUTILS_MQTT is not set - -# -# Platform-specific Support -# -# CONFIG_PLATFORM_CONFIGDATA is not set - -# -# Enable Shell -# -CONFIG_TASH=y -CONFIG_TASH_MAX_COMMANDS=32 -# CONFIG_DEBUG_TASH is not set -# CONFIG_TASH_TELNET_INTERFACE is not set -CONFIG_TASH_CMDTASK_STACKSIZE=4096 -CONFIG_TASH_CMDTASK_PRIORITY=100 - -# -# System Libraries -# - -# -# EMACS-like Command Line Editor -# -CONFIG_SYSTEM_CLE=y -CONFIG_SYSTEM_CLE_DEBUGLEVEL=0 - -# -# CU Minimal Terminal -# -# CONFIG_SYSTEM_CUTERM is not set - -# -# FLASH Erase-all Command -# - -# -# FOTA HAL Application Library -# -# CONFIG_SYSTEM_FOTA_HAL is not set - -# -# I2C tool -# -# CONFIG_SYSTEM_I2CTOOL is not set - -# -# INI File Parser -# -# CONFIG_SYSTEM_INIFILE is not set - -# -# FLASH Program Installation -# -# CONFIG_SYSTEM_INSTALL is not set - -# -# PHY Tool -# - -# -# System netdb Interface -# - -# -# Power Off -# -# CONFIG_SYSTEM_POWEROFF is not set - -# -# P-Code Support -# - -# -# RAM test -# -CONFIG_SYSTEM_RAMTEST=y - -# -# RAMTRON -# -# CONFIG_SYSTEM_RAMTRON is not set - -# -# readline() -# -CONFIG_SYSTEM_READLINE=y -CONFIG_READLINE_ECHO=y - -# -# Sysinfo -# -CONFIG_SYSTEM_INFORMATION=y - -# -# Utils -# -CONFIG_KERNEL_CMDS=y -CONFIG_FS_CMDS=y -CONFIG_FSCMD_BUFFER_LEN=32 -CONFIG_ENABLE_DATE=y -CONFIG_ENABLE_ENV_GET=y -CONFIG_ENABLE_ENV_SET=y -CONFIG_ENABLE_ENV_UNSET=y -CONFIG_ENABLE_FREE=y -CONFIG_ENABLE_HEAPINFO=y -CONFIG_ENABLE_KILL=y -CONFIG_ENABLE_KILLALL=y -CONFIG_ENABLE_PS=y -CONFIG_ENABLE_STACKMONITOR=y -CONFIG_STACKMONITOR_PRIORITY=100 -CONFIG_STACKMONITOR_INTERVAL=5 - -# -# VI Work-Alike Editor -# -CONFIG_SYSTEM_VI=y -CONFIG_SYSTEM_VI_COLS=64 -CONFIG_SYSTEM_VI_ROWS=16 -CONFIG_SYSTEM_VI_DEBUGLEVEL=0 diff --git a/os/arch/arm/src/artik053/src/Makefile b/os/arch/arm/src/artik053/src/Makefile index 637afbc..5b296c1 100644 --- a/os/arch/arm/src/artik053/src/Makefile +++ b/os/arch/arm/src/artik053/src/Makefile @@ -59,9 +59,7 @@ CSRCS = artik053_boot.c \ artik053_tash.c \ artik053_pwm.c -ifeq ($(CONFIG_AUDIO_ALC5658),y) -CSRCS += artik053_alc5658.c -else ifeq ($(CONFIG_AUDIO_ALC5658CHAR),y) +ifeq ($(CONFIG_AUDIO_ALC5658CHAR),y) CSRCS += artik053_alc5658char.c endif diff --git a/os/arch/arm/src/artik053/src/artik053_alc5658.c b/os/arch/arm/src/artik053/src/artik053_alc5658.c deleted file mode 100644 index 3d102b5..0000000 --- a/os/arch/arm/src/artik053/src/artik053_alc5658.c +++ /dev/null @@ -1,341 +0,0 @@ -/**************************************************************************** - * - * Copyright 2016 Samsung Electronics All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - * either express or implied. See the License for the specific - * language governing permissions and limitations under the License. - * - ****************************************************************************/ -/************************************************************************************ - * arch/arm/src/artik053/src/artik053_alc5658.c - * - * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * 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 - ****************************************************************************/ - -#include - -#include -#include -#include -#include -#include - -#include -#include -#include -#include - -#include -#include "s5j_i2c.h" -#include "s5j_i2s.h" - -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ -#ifndef CONFIG_ALC5658_I2C_PORT -#define CONFIG_ALC5658_I2C_PORT 1 -#endif - -#define ALC5658_I2C_ADDR 0x1A -#define ALC5658_I2C_FREQ 100000 -#define ALC5658_I2C_ADDRLEN 7 - -/**************************************************************************** - * Private Types - ****************************************************************************/ - -struct s5jt200_alcinfo_s { - /* Standard MW8904 interface */ - - struct alc5658_lower_s lower; - - /* Extensions for the s5jt200 board */ - - alc5658_handler_t handler; - - FAR void *arg; -}; - -/**************************************************************************** - * Private Function Prototypes - ****************************************************************************/ - -/* IRQ/PIO access callbacks. These operations all hidden behind - * callbacks to isolate the ALC5658 driver from differences in PIO - * interrupt handling by varying boards and MCUs. If possible, - * interrupts should be configured on both rising and falling edges - * so that contact and loss-of-contact events can be detected. - * - * attach - Attach the ALC5658 interrupt handler to the PIO interrupt - * enable - Enable or disable the PIO interrupt - */ - -static int alc5658_attach(FAR const struct alc5658_lower_s *lower, alc5658_handler_t isr, FAR void *arg); -static bool alc5658_enable(FAR const struct alc5658_lower_s *lower, bool enable); - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/* A reference to a structure of this type must be passed to the ALC5658 - * driver. This structure provides information about the configuration - * of the ALC5658 and provides some board-specific hooks. - * - * Memory for this structure is provided by the caller. It is not copied - * by the driver and is presumed to persist while the driver is active. - */ - -static struct s5jt200_alcinfo_s g_alc5658info = { - .lower = { - .i2c_config = { - .frequency = ALC5658_I2C_FREQ, - .address = ALC5658_I2C_ADDR, - .addrlen = ALC5658_I2C_ADDRLEN, - }, - - .attach = alc5658_attach, - .enable = alc5658_enable, - }, -}; - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - -/**************************************************************************** - * IRQ/PIO access callbacks. These operations all hidden behind - * callbacks to isolate the ALC5658 driver from differences in PIO - * interrupt handling by varying boards and MCUs. If possible, - * interrupts should be configured on both rising and falling edges - * so that contact and loss-of-contact events can be detected. - * - * attach - Attach the ALC5658 interrupt handler to the PIO interrupt - * enable - Enable or disable the PIO interrupt - * clear - Acknowledge/clear any pending PIO interrupt - * - ****************************************************************************/ - -static int alc5658_attach(FAR const struct alc5658_lower_s *lower, alc5658_handler_t isr, FAR void *arg) -{ - if (isr) { - /* Just save the address of the handler and its argument for now. The - * new handler will called via alc5658_interrupt() when the interrupt occurs. - */ - - audvdbg("Attaching %p\n", isr); - g_alc5658info.handler = isr; - g_alc5658info.arg = arg; - } else { - audvdbg("Detaching %p\n", g_alc5658info.handler); - (void)alc5658_enable(lower, false); - g_alc5658info.handler = NULL; - g_alc5658info.arg = NULL; - } - - return OK; -} - -static bool alc5658_enable(FAR const struct alc5658_lower_s *lower, bool enable) -{ - static bool enabled; - irqstate_t flags; - bool ret; - - /* Has the interrupt state changed */ - - flags = irqsave(); - if (enable != enabled) { - /* Enable or disable interrupts */ - - if (enable && g_alc5658info.handler) { - audvdbg("Enabling\n"); - /* DO IRQ ENABLING HERE */ - enabled = true; - } else { - audvdbg("Disabling\n"); - /* DO IRQ DISABLING HERE */ - enabled = false; - } - } - - ret = enabled; - irqrestore(flags); - return ret; -} - -static int alc5658_interrupt(int irq, FAR void *context) -{ - /* Just forward the interrupt to the ALC5658 driver */ - - audvdbg("handler %p\n", g_alc5658info.handler); - if (g_alc5658info.handler) { - return g_alc5658info.handler(&g_alc5658info.lower, g_alc5658info.arg); - } - - /* We got an interrupt with no handler. This should not - * happen. - */ - - return OK; -} - -/**************************************************************************** - * Public Functions - ****************************************************************************/ - -/**************************************************************************** - * Name: s5j_alc5658_initialize - * - * Description: - * This function is called by platform-specific, setup logic to configure - * and register the ALC5658 device. This function will register the driver - * as /dev/alc5658[x] where x is determined by the minor device number. - * - * Input Parameters: - * minor - The input device minor number - * - * Returned Value: - * Zero is returned on success. Otherwise, a negated errno value is - * returned to indicate the nature of the failure. - * - ****************************************************************************/ -int s5j_alc5658_initialize(int minor) -{ - FAR struct audio_lowerhalf_s *alc5658; - FAR struct audio_lowerhalf_s *pcm; - FAR struct i2c_dev_s *i2c; - FAR struct i2s_dev_s *i2s; - static bool initialized; - char devname[12]; - int ret; - - audvdbg("minor %d\n", minor); - DEBUGASSERT(minor >= 0 && minor <= 25); - - /* Have we already initialized? Since we never uninitialize we must prevent - * multiple initializations. This is necessary, for example, when the - * touchscreen example is used as a built-in application in NSH and can be - * called numerous time. It will attempt to initialize each time. - */ - - if (!initialized) { - /* Configure the ALC5658 interrupt pin */ - - /* Do we have an interrupt PIN ? FIXME */ - - /* Get an instance of the I2C interface for the ALC5658 chip select */ - - i2c = up_i2cinitialize(CONFIG_ALC5658_I2C_PORT); - if (!i2c) { - auddbg("ERROR: Failed to initialize CODEC I2C%d\n"); - ret = -ENODEV; - goto errout; - } - - /* Get an instance of the I2S interface for the ALC5658 data channel */ - - i2s = s5j_i2s_initialize(); - if (!i2s) { - auddbg("ERROR: Failed to initialize I2S\n"); - ret = -ENODEV; - goto errout_with_i2c; - } - - /* Now we can use these I2C and I2S interfaces to initialize the - * ALC5658 which will return an audio interface. - */ - - alc5658 = alc5658_initialize(i2c, i2s, &g_alc5658info.lower); - if (!alc5658) { - auddbg("ERROR: Failed to initialize the ALC5658\n"); - ret = -ENODEV; - goto errout_with_irq; - } - - /* No we can embed the ALC5658/I2C/I2S conglomerate into a PCM decoder - * instance so that we will have a PCM front end for the the ALC5658 - * driver. - */ - - pcm = pcm_decode_initialize(alc5658); - if (!pcm) { - auddbg("ERROR: Failed create the PCM decoder\n"); - ret = -ENODEV; - goto errout_with_alc5658; - } - - /* Create a device name */ - - snprintf(devname, 12, "pcm%d", minor); - - /* Finally, we can register the PCM/ALC5658/I2C/I2S audio device. - * - * Is anyone young enough to remember Rube Goldberg? - */ - - ret = audio_register(devname, pcm); - if (ret < 0) { - auddbg("ERROR: Failed to register /dev/%s device: %d\n", devname, ret); - goto errout_with_pcm; - } - - /* Now we are initialized */ - - initialized = true; - } - - return OK; - - /* Error exits. Unfortunately there is no mechanism in place now to - * recover resources from most errors on initialization failures. - */ - -errout_with_pcm: -errout_with_alc5658: -errout_with_irq: -errout_with_i2c: -errout: - return ret; -} diff --git a/os/drivers/audio/Make.defs b/os/drivers/audio/Make.defs index b4cd170..f35351a 100644 --- a/os/drivers/audio/Make.defs +++ b/os/drivers/audio/Make.defs @@ -60,10 +60,6 @@ ifeq ($(CONFIG_AUDIO_NULL),y) CSRCS += audio_null.c endif -ifeq ($(CONFIG_AUDIO_ALC5658CHAR),y) -CSRCS += alc5658char.c -endif - ifeq ($(CONFIG_AUDIO_ALC5658),y) CSRCS += alc5658.c endif -- 2.7.4