From: "Lu, Han" han.lu@intel.com
1. refactoring alsa process to make structure simpler and cleaner, use general functions and unified return value for convenience of maintaining; 2. add tinyalsa support, user can choose tinyalsa with "configure --enable-tinyalsa" option. By default ALSA lib is used. The purpose is for alsabat to run on tinyalsa platforms such as Android and some IoT devices.
Lu, Han (6): alsabat: refactoring alsa capture thread alsabat: use general function for wav header update alsabat: clean return value for playback and capture threads alsabat: use general data generator function alsabat: move alsa process to a single block alsabat: add tinyalsa support
bat/Makefile.am | 12 +- bat/alsa.c | 217 +++++++++++--------------- bat/alsabat.1 | 3 + bat/bat.c | 58 +++---- bat/common.c | 68 +++++++++ bat/common.h | 17 ++- bat/signal.c | 13 +- bat/tinyalsa.c | 460 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ bat/tinyalsa.h | 20 +++ configure.ac | 17 +++ 10 files changed, 711 insertions(+), 174 deletions(-) create mode 100644 bat/tinyalsa.c create mode 100644 bat/tinyalsa.h