From e6bc6c482951851020e0e3b36e878bdae2b61249 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 11 Apr 2005 11:17:31 +0000 Subject: iRiver: Implemented S/PDIF transmit power control. The optical LED is now off by default. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6268 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config-h100.h | 3 +++ firmware/export/power.h | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'firmware/export') diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h index 5eef2c7270..c60f25651b 100644 --- a/firmware/export/config-h100.h +++ b/firmware/export/config-h100.h @@ -59,4 +59,7 @@ #define BOOTFILE_EXT ".iriver" #define BOOTFILE "rockbox" BOOTFILE_EXT +/* Define this if you can control the S/PDIF power */ +#define HAVE_SPDIF_POWER + #endif diff --git a/firmware/export/power.h b/firmware/export/power.h index eea3648053..f0c4c302ea 100644 --- a/firmware/export/power.h +++ b/firmware/export/power.h @@ -30,6 +30,10 @@ void ide_power_enable(bool on); bool ide_powered(void); void power_off(void); +#ifdef HAVE_SPDIF_POWER +void spdif_power_enable(bool on); +#endif + #ifdef CONFIG_TUNER /* status values */ #define FMRADIO_OFF 0 /* switched off */ -- cgit v1.2.3