summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2010-08-11 09:11:43 +0000
committerNils Wallménius <nils@rockbox.org>2010-08-11 09:11:43 +0000
commitde44ae7efcf907c8aa52475a7c0dd9f0da22045e (patch)
tree16bd2552f7d531725cd5e84d51a90a09282af529
parent64ebe5f0d49633fbf671fddc3f1bfa92db2178b5 (diff)
downloadrockbox-de44ae7efcf907c8aa52475a7c0dd9f0da22045e.tar.gz
rockbox-de44ae7efcf907c8aa52475a7c0dd9f0da22045e.tar.bz2
rockbox-de44ae7efcf907c8aa52475a7c0dd9f0da22045e.zip
Mark some local variables with 'static'.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27772 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/sound.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/firmware/sound.c b/firmware/sound.c
index 4cc63f4583..bede18615a 100644
--- a/firmware/sound.c
+++ b/firmware/sound.c
@@ -184,17 +184,17 @@ static int tenthdb2reg(int db)
* by 12 dB after processing.
*/
-/* all values in tenth of dB MAS3507D UDA1380 */
-int current_volume = 0; /* -780..+180 -840.. 0 */
-int current_balance = 0; /* -960..+960 -840..+840 */
+/* all values in tenth of dB MAS3507D UDA1380 */
+static int current_volume = 0; /* -780..+180 -840.. 0 */
+static int current_balance = 0; /* -960..+960 -840..+840 */
#ifdef AUDIOHW_HAVE_TREBLE
-int current_treble = 0; /* -150..+150 0.. +60 */
+static int current_treble = 0; /* -150..+150 0.. +60 */
#endif
#ifdef AUDIOHW_HAVE_BASS
-int current_bass = 0; /* -150..+150 0..+240 */
+static int current_bass = 0; /* -150..+150 0..+240 */
#endif
#ifdef AUDIOHW_HAVE_EQ
-int current_eq_band_gain[AUDIOHW_EQ_BAND_NUM];
+static int current_eq_band_gain[AUDIOHW_EQ_BAND_NUM];
#endif
static void set_prescaled_volume(void)
@@ -284,8 +284,8 @@ static void set_prescaled_volume(void)
#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
-unsigned long mdb_shape_shadow = 0;
-unsigned long loudness_shadow = 0;
+static unsigned long mdb_shape_shadow = 0;
+static unsigned long loudness_shadow = 0;
#endif
void sound_set_volume(int value)