diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2008-04-09 22:20:04 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2008-04-09 22:20:04 +0000 |
commit | 159f8ee41aa0d8c6434867775547d9e030a963d7 (patch) | |
tree | f2da1e5a46530487fb8ce93c7ff332fd506a4363 /firmware/sound.c | |
parent | 791e0928c5f9d5287a6077a95a385bc6bd90ac1d (diff) |
D2: Beginnings of a WM8985 driver (based on WM8758, using EQ1 and EQ5 as HW treble/bass). Untested, but harmless.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17057 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/sound.c')
-rw-r--r-- | firmware/sound.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/sound.c b/firmware/sound.c index b559fe2b5e..123675cbde 100644 --- a/firmware/sound.c +++ b/firmware/sound.c @@ -244,7 +244,7 @@ static void set_prescaled_volume(void) * the prescaler stay at 0 for these unless SW tone controls are in use */ #if defined(HAVE_SW_TONE_CONTROLS) || !(defined(HAVE_WM8975) \ || defined(HAVE_WM8731) || defined(HAVE_WM8721) || defined(HAVE_WM8751) \ - || defined(HAVE_WM8758)) + || defined(HAVE_WM8758) || defined(HAVE_WM8985)) prescale = MAX(current_bass, current_treble); if (prescale < 0) @@ -453,7 +453,7 @@ void sound_set_bass(int value) audiohw_set_bass(value); set_prescaled_volume(); #elif defined HAVE_WM8975 || defined HAVE_WM8758 || defined(HAVE_UDA1380) \ - || defined HAVE_WM8731 || defined(HAVE_WM8721) + || defined HAVE_WM8731 || defined(HAVE_WM8721) || defined(HAVE_WM8985) current_bass = value * 10; audiohw_set_bass(value); set_prescaled_volume(); @@ -483,7 +483,7 @@ void sound_set_treble(int value) current_treble = value; set_prescaled_volume(); #elif defined(HAVE_WM8975) || defined(HAVE_WM8758) || defined(HAVE_UDA1380) \ - || defined(HAVE_WM8731) || defined(HAVE_WM8721) + || defined(HAVE_WM8731) || defined(HAVE_WM8721) || defined(HAVE_WM8985) audiohw_set_treble(value); current_treble = value * 10; set_prescaled_volume(); @@ -518,7 +518,7 @@ void sound_set_stereo_width(int value) #endif } -#ifdef HAVE_WM8758 +#if defined(HAVE_WM8758) || defined(HAVE_WM8985) void sound_set_bass_cutoff(int value) { if(!audio_is_initialized) @@ -697,7 +697,7 @@ void sound_set_superbass(int value) } #endif /* (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) */ -#ifdef HAVE_WM8758 +#if defined(HAVE_WM8758) || defined(HAVE_WM8985) void sound_set_bass_cutoff(int value) { (void) value; |