summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2013-05-31 02:41:02 -0400
committerMichael Sevakis <jethead71@rockbox.org>2013-05-31 03:20:35 -0400
commit5857c44017a1641fce7f00da7f16c143daacbaf6 (patch)
treeb8a7ff134977ee8dd6b25b5591f4eb81172f74ab /firmware
parentdf6e1bcce5071e02b5cd46736bff87ca0dcceffe (diff)
downloadrockbox-5857c44017a1641fce7f00da7f16c143daacbaf6.tar.gz
rockbox-5857c44017a1641fce7f00da7f16c143daacbaf6.zip
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
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/thread.h22
1 files changed, 6 insertions, 16 deletions
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 @@
64#define IO_PRIORITY_BACKGROUND 32 64#define IO_PRIORITY_BACKGROUND 32
65 65
66#if CONFIG_CODEC == SWCODEC 66#if CONFIG_CODEC == SWCODEC
67 67# ifdef HAVE_HARDWARE_CLICK
68#ifdef HAVE_RECORDING 68# define BASETHREADS 17
69#ifdef HAVE_HARDWARE_CLICK 69# else
70#define BASETHREADS 18 70# define BASETHREADS 16
71#else 71# endif
72#define BASETHREADS 17
73#endif
74#else
75#ifdef HAVE_HARDWARE_CLICK
76#define BASETHREADS 17
77#else
78#define BASETHREADS 16
79#endif
80#endif
81
82#else 72#else
83#define BASETHREADS 11 73# define BASETHREADS 11
84#endif /* CONFIG_CODE == * */ 74#endif /* CONFIG_CODE == * */
85 75
86#ifndef TARGET_EXTRA_THREADS 76#ifndef TARGET_EXTRA_THREADS