From 5857c44017a1641fce7f00da7f16c143daacbaf6 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 31 May 2013 02:41:02 -0400 Subject: Refactor audio thread to run both recording and playback. Eliminates the pcmrec thread and keeps playback and recording engine operation mutually-exclusive. audio_thread.c contains the audio thread which branches to the correct engine depending upon the request. It also handles the main audio initialization. Moves pcm_init into main.c just before dsp_init because I don't want that one in audio_init in the new file. (Also makes revision df6e1bc pointless ;) Change-Id: Ifc1db24404e6d8dd9ac42d9f4dfbc207aa9a26e1 --- firmware/export/thread.h | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'firmware') diff --git a/firmware/export/thread.h b/firmware/export/thread.h index 577cdc1e61..da395b8ffa 100644 --- a/firmware/export/thread.h +++ b/firmware/export/thread.h @@ -64,23 +64,13 @@ #define IO_PRIORITY_BACKGROUND 32 #if CONFIG_CODEC == SWCODEC - -#ifdef HAVE_RECORDING -#ifdef HAVE_HARDWARE_CLICK -#define BASETHREADS 18 -#else -#define BASETHREADS 17 -#endif -#else -#ifdef HAVE_HARDWARE_CLICK -#define BASETHREADS 17 -#else -#define BASETHREADS 16 -#endif -#endif - +# ifdef HAVE_HARDWARE_CLICK +# define BASETHREADS 17 +# else +# define BASETHREADS 16 +# endif #else -#define BASETHREADS 11 +# define BASETHREADS 11 #endif /* CONFIG_CODE == * */ #ifndef TARGET_EXTRA_THREADS -- cgit v1.2.3