1
0
Fork 0
forked from len0rd/rockbox

Kill some global variables

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24888 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2010-02-24 19:40:45 +00:00
parent 9502021590
commit 2ac91dcd98
2 changed files with 4 additions and 4 deletions

View file

@ -218,8 +218,8 @@ static int treble; /* A/V */
/* Settings applicable to audio codec only */ /* Settings applicable to audio codec only */
static int32_t pitch_ratio = PITCH_SPEED_100; static int32_t pitch_ratio = PITCH_SPEED_100;
static int channels_mode; static int channels_mode;
long dsp_sw_gain; static long dsp_sw_gain;
long dsp_sw_cross; static long dsp_sw_cross;
static bool dither_enabled; static bool dither_enabled;
static long eq_precut; static long eq_precut;
static long track_gain; static long track_gain;

View file

@ -120,8 +120,8 @@ static bool force_enqueue_next; /* enqueue next utterance even if enqueue is fal
static int queue_write; /* write index of queue, by application */ static int queue_write; /* write index of queue, by application */
static int queue_read; /* read index of queue, by ISR context */ static int queue_read; /* read index of queue, by ISR context */
#if CONFIG_CODEC == SWCODEC #if CONFIG_CODEC == SWCODEC
struct mutex queue_mutex SHAREDBSS_ATTR; /* protects queue_read, queue_write /* protects queue_read, queue_write and thumbnail_buf_used */
and thumbnail_buf_used */ static struct mutex queue_mutex SHAREDBSS_ATTR;
#define talk_queue_lock() ({ mutex_lock(&queue_mutex); }) #define talk_queue_lock() ({ mutex_lock(&queue_mutex); })
#define talk_queue_unlock() ({ mutex_unlock(&queue_mutex); }) #define talk_queue_unlock() ({ mutex_unlock(&queue_mutex); })
#else #else