summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/misc.c2
-rw-r--r--firmware/drivers/audio/sdl.c7
-rw-r--r--firmware/target/hosted/xduoo/button-xduoo.c1
3 files changed, 10 insertions, 0 deletions
diff --git a/apps/misc.c b/apps/misc.c
index d255eaf766..7d4ca97ff8 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -534,7 +534,9 @@ static void lo_unplug_change(bool inserted)
#ifdef HAVE_LINEOUT_POWEROFF
lineout_set(inserted);
#else
+#ifdef AUDIOHW_HAVE_LINEOUT
audiohw_set_lineout_volume(0,0); /*hp vol re-set by this function as well*/
+#endif
static bool lineout_caused_pause = true;
if (global_settings.unplug_mode)
diff --git a/firmware/drivers/audio/sdl.c b/firmware/drivers/audio/sdl.c
index fb49a291d1..148dbf00e7 100644
--- a/firmware/drivers/audio/sdl.c
+++ b/firmware/drivers/audio/sdl.c
@@ -66,6 +66,13 @@ void audiohw_set_volume(int vol_l, int vol_r)
}
#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)
void audiohw_set_prescaler(int value)
{
diff --git a/firmware/target/hosted/xduoo/button-xduoo.c b/firmware/target/hosted/xduoo/button-xduoo.c
index 03bb7bbfc9..605cd18736 100644
--- a/firmware/target/hosted/xduoo/button-xduoo.c
+++ b/firmware/target/hosted/xduoo/button-xduoo.c
@@ -36,6 +36,7 @@
#include "kernel.h"
#include "backlight.h"
#include "backlight-target.h"
+#include "xduoolinux_codec.h"
static bool soft_hold = false;
#ifndef BOOTLOADER