diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2013-05-23 14:58:57 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2013-05-23 14:58:57 -0400 |
commit | 9b65f8e658768b14ae917341f57d774f729447fe (patch) | |
tree | 483c0a3a387e14977d2b9c384f181e0f18ac81bd /firmware/drivers/audio/audiohw-swcodec.c | |
parent | 6e211ab3ac36cf792f6412cd61b8336c12533778 (diff) | |
download | rockbox-9b65f8e658768b14ae917341f57d774f729447fe.tar.gz rockbox-9b65f8e658768b14ae917341f57d774f729447fe.zip |
Fix 6e211ab errors and warnings.
If target has HW tone controls but no HW prescaler (non-implemented or
non-existent), audiohw_set_prescaler() should, for now, do nothing.
Change-Id: If1b1a36970dca82fda1c350fbaa4d6ce068a6d32
Diffstat (limited to 'firmware/drivers/audio/audiohw-swcodec.c')
-rw-r--r-- | firmware/drivers/audio/audiohw-swcodec.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/drivers/audio/audiohw-swcodec.c b/firmware/drivers/audio/audiohw-swcodec.c index 6c86bdfaa4..b627c1eeff 100644 --- a/firmware/drivers/audio/audiohw-swcodec.c +++ b/firmware/drivers/audio/audiohw-swcodec.c | |||
@@ -54,7 +54,13 @@ void audiohw_set_treble(int value) | |||
54 | #ifndef AUDIOHW_HAVE_PRESCALER | 54 | #ifndef AUDIOHW_HAVE_PRESCALER |
55 | void audiohw_set_prescaler(int value) | 55 | void audiohw_set_prescaler(int value) |
56 | { | 56 | { |
57 | #ifdef HAVE_SW_TONE_CONTROLS | ||
57 | tone_set_prescale(value); | 58 | tone_set_prescale(value); |
59 | #endif | ||
60 | /* FIXME: Should PGA be used if HW tone controls but no HW prescaler? | ||
61 | Callback-based implementation would have had no prescaling at all | ||
62 | so just do nothing for now, changing nothing. */ | ||
63 | (void)value; | ||
58 | } | 64 | } |
59 | #endif /* AUDIOHW_HAVE_PRESCALER */ | 65 | #endif /* AUDIOHW_HAVE_PRESCALER */ |
60 | 66 | ||