nuttx/drivers/audio
chao an 6ee9ec7656 build: add initial cmake build system
1. Update all CMakeLists.txt to adapt to new layout
2. Fix cmake build break
3. Update all new file license
4. Fully compatible with current compilation environment(use configure.sh or cmake as you choose)

------------------

How to test

From within nuttx/. Configure:

cmake -B build -DBOARD_CONFIG=sim/nsh -GNinja
cmake -B build -DBOARD_CONFIG=sim:nsh -GNinja
cmake -B build -DBOARD_CONFIG=sabre-6quad/smp -GNinja
cmake -B build -DBOARD_CONFIG=lm3s6965-ek/qemu-flat -GNinja

(or full path in custom board) :
cmake -B build -DBOARD_CONFIG=$PWD/boards/sim/sim/sim/configs/nsh -GNinja

This uses ninja generator (install with sudo apt install ninja-build). To build:

$ cmake --build build

menuconfig:

$ cmake --build build -t menuconfig

--------------------------

2. cmake/build: reformat the cmake style by cmake-format

https://github.com/cheshirekow/cmake_format

$ pip install cmakelang

$ for i in `find -name CMakeLists.txt`;do cmake-format $i -o $i;done
$ for i in `find -name *\.cmake`;do cmake-format $i -o $i;done

Co-authored-by: Matias N <matias@protobits.dev>
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-08 13:50:48 +08:00
..
audio_dma.c audio: add audio_dma device driver. 2023-04-22 01:50:51 +08:00
audio_i2s.c
audio_null.c libc: Move queue.h from include to include/nuttx 2022-09-26 08:04:58 +02:00
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
cs43l22_debug.c
cs43l22.c Fix Error: audio/cs43l22.c:356:24: error: unused function 'cs43l22_scalevolume' [-Werror,-Wunused-function] 2022-10-30 16:03:35 +01:00
cs43l22.h nuttx: Use MIN/MAX definitions from "sys/param.h" 2023-02-01 23:47:44 +08:00
cs4344.c audio: Add i2s_getmclkfrequency function 2023-05-04 18:41:54 -03:00
cs4344.h nuttx: replace all ARRAY_SIZE()/ARRAYSIZE() to nitems() 2023-02-09 20:05:44 +08:00
cxd56_src.c Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
cxd56_src.h
cxd56.c drivers/audio/cxd56.c: Fix freeze audio and add underrun notify 2023-04-17 10:24:48 +02:00
cxd56.h Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
es8311_debug.c drivers/audio: Add support for the ES8311 codec 2023-05-04 18:41:54 -03:00
es8311.c drivers/audio: Add support for the ES8311 codec 2023-05-04 18:41:54 -03:00
es8311.h drivers/audio: Add support for the ES8311 codec 2023-05-04 18:41:54 -03:00
es8388_debug.c audio: Add support for the ES8388 codec (output) 2022-11-08 10:03:18 -03:00
es8388.c nuttx: improve C89 compatibility in common code 2023-05-19 02:40:38 +08:00
es8388.h audio: Separate common settings for the ESXXXX family of products 2023-05-04 18:41:54 -03:00
esxxxx_common.h audio: Separate common settings for the ESXXXX family of products 2023-05-04 18:41:54 -03:00
Kconfig drivers/audio/Kconfig: Fix Kconfig style 2023-05-10 22:51:11 +08:00
Make.defs drivers/audio: Add support for the ES8311 codec 2023-05-04 18:41:54 -03:00
tone.c Remove the unnecessary NULL fields in global instance definition of file_operations 2023-01-04 00:32:13 +02:00
vs1053.c Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
vs1053.h
wm8776.c Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
wm8776.h Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
wm8904_debug.c
wm8904.c Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
wm8904.h nuttx: Use MIN/MAX definitions from "sys/param.h" 2023-02-01 23:47:44 +08:00
wm8994_debug.c
wm8994.c Remove the unnecessary "return;" at the end of function 2022-11-27 22:23:50 +01:00
wm8994.h Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00