mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Fix warnings and errors introduced in b030bf5
Change-Id: I23966b6a79c0d2cbab2e01c649c1b991f460d8ad
This commit is contained in:
parent
b030bf5885
commit
a96eb1a7f7
3 changed files with 10 additions and 0 deletions
|
@ -534,7 +534,9 @@ static void lo_unplug_change(bool inserted)
|
||||||
#ifdef HAVE_LINEOUT_POWEROFF
|
#ifdef HAVE_LINEOUT_POWEROFF
|
||||||
lineout_set(inserted);
|
lineout_set(inserted);
|
||||||
#else
|
#else
|
||||||
|
#ifdef AUDIOHW_HAVE_LINEOUT
|
||||||
audiohw_set_lineout_volume(0,0); /*hp vol re-set by this function as well*/
|
audiohw_set_lineout_volume(0,0); /*hp vol re-set by this function as well*/
|
||||||
|
#endif
|
||||||
static bool lineout_caused_pause = true;
|
static bool lineout_caused_pause = true;
|
||||||
|
|
||||||
if (global_settings.unplug_mode)
|
if (global_settings.unplug_mode)
|
||||||
|
|
|
@ -66,6 +66,13 @@ void audiohw_set_volume(int vol_l, int vol_r)
|
||||||
}
|
}
|
||||||
#endif /* AUDIOHW_HAVE_MONO_VOLUME */
|
#endif /* AUDIOHW_HAVE_MONO_VOLUME */
|
||||||
|
|
||||||
|
#ifdef AUDIOHW_HAVE_LINEOUT
|
||||||
|
void audiohw_set_lineout_volume(int vol_l, int vol_r)
|
||||||
|
{
|
||||||
|
(void)vol_l; (void)vol_r;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(AUDIOHW_HAVE_PRESCALER)
|
#if defined(AUDIOHW_HAVE_PRESCALER)
|
||||||
void audiohw_set_prescaler(int value)
|
void audiohw_set_prescaler(int value)
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
#include "kernel.h"
|
#include "kernel.h"
|
||||||
#include "backlight.h"
|
#include "backlight.h"
|
||||||
#include "backlight-target.h"
|
#include "backlight-target.h"
|
||||||
|
#include "xduoolinux_codec.h"
|
||||||
|
|
||||||
static bool soft_hold = false;
|
static bool soft_hold = false;
|
||||||
#ifndef BOOTLOADER
|
#ifndef BOOTLOADER
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue