mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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
This commit is contained in:
parent
6e211ab3ac
commit
9b65f8e658
1 changed files with 6 additions and 0 deletions
|
@ -54,7 +54,13 @@ void audiohw_set_treble(int value)
|
||||||
#ifndef AUDIOHW_HAVE_PRESCALER
|
#ifndef AUDIOHW_HAVE_PRESCALER
|
||||||
void audiohw_set_prescaler(int value)
|
void audiohw_set_prescaler(int value)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_SW_TONE_CONTROLS
|
||||||
tone_set_prescale(value);
|
tone_set_prescale(value);
|
||||||
|
#endif
|
||||||
|
/* FIXME: Should PGA be used if HW tone controls but no HW prescaler?
|
||||||
|
Callback-based implementation would have had no prescaling at all
|
||||||
|
so just do nothing for now, changing nothing. */
|
||||||
|
(void)value;
|
||||||
}
|
}
|
||||||
#endif /* AUDIOHW_HAVE_PRESCALER */
|
#endif /* AUDIOHW_HAVE_PRESCALER */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue