drivers/audio/cxd56: Move cxd56 sources into arch/cxd56xx
CXD56 audio functions are inside of the CXD56. So implementation of it should be under arch directory.
This commit is contained in:
parent
c795e06e01
commit
f7400a857d
@ -292,6 +292,49 @@ config CXD56_CHARGER_TEMP_PRECISE
|
|||||||
This option requires libm.
|
This option requires libm.
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
comment "NuttX style Audio Driver Support"
|
||||||
|
|
||||||
|
menu "NX Audio Driver Support"
|
||||||
|
|
||||||
|
config AUDIO_CXD56
|
||||||
|
bool "CXD56 audio driver"
|
||||||
|
default n
|
||||||
|
depends on AUDIO
|
||||||
|
select AUDIO_DRIVER_SPECIFIC_BUFFERS
|
||||||
|
---help---
|
||||||
|
Enable support for audio playback using the CXD5247 chip on the
|
||||||
|
CXD56 Spresense board.
|
||||||
|
|
||||||
|
if AUDIO_CXD56
|
||||||
|
|
||||||
|
if AUDIO_DRIVER_SPECIFIC_BUFFERS
|
||||||
|
|
||||||
|
config AUDIO_CXD56_SRC
|
||||||
|
bool "CXD56 audio sample rate converter"
|
||||||
|
select AUDIO_SRC
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
Enable support for audio playback using the CXD5247 chip on the
|
||||||
|
CXD56 Spresense board with sample rate converter.
|
||||||
|
|
||||||
|
config CXD56_AUDIO_NUM_BUFFERS
|
||||||
|
int "Number of audio buffers to use"
|
||||||
|
default 4
|
||||||
|
|
||||||
|
config CXD56_AUDIO_BUFFER_SIZE
|
||||||
|
int "Size of each audio buffer"
|
||||||
|
default 4096
|
||||||
|
|
||||||
|
endif # AUDIO_DRIVER_SPECIFIC_BUFFERS
|
||||||
|
|
||||||
|
config CXD56_AUDIO_WORKER_STACKSIZE
|
||||||
|
int "Worker thread stack size"
|
||||||
|
default 768
|
||||||
|
|
||||||
|
endif # AUDIO_CXD56
|
||||||
|
|
||||||
|
endmenu # menu "NX Audio Driver Support"
|
||||||
|
|
||||||
comment "Peripheral Support"
|
comment "Peripheral Support"
|
||||||
|
|
||||||
menu "Peripheral Support"
|
menu "Peripheral Support"
|
||||||
|
@ -120,6 +120,13 @@ ifeq ($(CONFIG_CXD56_CHARGER),y)
|
|||||||
CHIP_CSRCS += cxd56_charger.c
|
CHIP_CSRCS += cxd56_charger.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_AUDIO_CXD56),y)
|
||||||
|
CHIP_CSRCS += cxd56_nxaudio.c
|
||||||
|
ifeq ($(CONFIG_AUDIO_CXD56_SRC),y)
|
||||||
|
CHIP_CSRCS += cxd56_nxaudio_src.c
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_CXD56_GE2D),y)
|
ifeq ($(CONFIG_CXD56_GE2D),y)
|
||||||
CHIP_CSRCS += cxd56_ge2d.c
|
CHIP_CSRCS += cxd56_ge2d.c
|
||||||
endif
|
endif
|
||||||
|
@ -43,10 +43,10 @@
|
|||||||
#include <arch/chip/audio.h>
|
#include <arch/chip/audio.h>
|
||||||
#include <arch/chip/chip.h>
|
#include <arch/chip/chip.h>
|
||||||
|
|
||||||
#include "cxd56.h"
|
#include "cxd56_nxaudio.h"
|
||||||
|
|
||||||
#ifdef CONFIG_AUDIO_CXD56_SRC
|
#ifdef CONFIG_AUDIO_CXD56_SRC
|
||||||
#include "cxd56_src.h"
|
#include "cxd56_nxaudio_src.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
@ -35,8 +35,8 @@
|
|||||||
#include <nuttx/mqueue.h>
|
#include <nuttx/mqueue.h>
|
||||||
#include <nuttx/queue.h>
|
#include <nuttx/queue.h>
|
||||||
|
|
||||||
#include "cxd56.h"
|
#include "cxd56_nxaudio.h"
|
||||||
#include "cxd56_src.h"
|
#include "cxd56_nxaudio_src.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
@ -33,10 +33,10 @@
|
|||||||
|
|
||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
#include <nuttx/audio/audio.h>
|
#include <nuttx/audio/audio.h>
|
||||||
#include <nuttx/audio/cxd56.h>
|
|
||||||
#include <nuttx/audio/pcm.h>
|
#include <nuttx/audio/pcm.h>
|
||||||
#include <nuttx/signal.h>
|
#include <nuttx/signal.h>
|
||||||
#include <arch/chip/audio.h>
|
#include <arch/chip/audio.h>
|
||||||
|
#include <arch/chip/nxaudio.h>
|
||||||
|
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
#include "arm_internal.h"
|
#include "arm_internal.h"
|
||||||
|
@ -27,43 +27,6 @@ if AUDIO_TONE
|
|||||||
|
|
||||||
endif # AUDIO_TONE
|
endif # AUDIO_TONE
|
||||||
|
|
||||||
config AUDIO_CXD56
|
|
||||||
bool "CXD56 audio driver"
|
|
||||||
default n
|
|
||||||
depends on AUDIO
|
|
||||||
select AUDIO_DRIVER_SPECIFIC_BUFFERS
|
|
||||||
---help---
|
|
||||||
Enable support for audio playback using the CXD5247 chip on the
|
|
||||||
CXD56 Spresense board.
|
|
||||||
|
|
||||||
if AUDIO_CXD56
|
|
||||||
|
|
||||||
if AUDIO_DRIVER_SPECIFIC_BUFFERS
|
|
||||||
|
|
||||||
config AUDIO_CXD56_SRC
|
|
||||||
bool "CXD56 audio sample rate converter"
|
|
||||||
select AUDIO_SRC
|
|
||||||
default n
|
|
||||||
---help---
|
|
||||||
Enable support for audio playback using the CXD5247 chip on the
|
|
||||||
CXD56 Spresense board with sample rate converter.
|
|
||||||
|
|
||||||
config CXD56_AUDIO_NUM_BUFFERS
|
|
||||||
int "Number of audio buffers to use"
|
|
||||||
default 4
|
|
||||||
|
|
||||||
config CXD56_AUDIO_BUFFER_SIZE
|
|
||||||
int "Size of each audio buffer"
|
|
||||||
default 4096
|
|
||||||
|
|
||||||
endif # AUDIO_DRIVER_SPECIFIC_BUFFERS
|
|
||||||
|
|
||||||
config CXD56_AUDIO_WORKER_STACKSIZE
|
|
||||||
int "Worker thread stack size"
|
|
||||||
default 768
|
|
||||||
|
|
||||||
endif # AUDIO_CXD56
|
|
||||||
|
|
||||||
config AUDIO_VS1053
|
config AUDIO_VS1053
|
||||||
bool "VS1053 codec chip"
|
bool "VS1053 codec chip"
|
||||||
default n
|
default n
|
||||||
|
@ -22,13 +22,6 @@
|
|||||||
|
|
||||||
ifeq ($(CONFIG_DRIVERS_AUDIO),y)
|
ifeq ($(CONFIG_DRIVERS_AUDIO),y)
|
||||||
|
|
||||||
ifeq ($(CONFIG_AUDIO_CXD56),y)
|
|
||||||
CSRCS += cxd56.c
|
|
||||||
ifeq ($(CONFIG_AUDIO_CXD56_SRC),y)
|
|
||||||
CSRCS += cxd56_src.c
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_AUDIO_VS1053),y)
|
ifeq ($(CONFIG_AUDIO_VS1053),y)
|
||||||
CSRCS += vs1053.c
|
CSRCS += vs1053.c
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user