summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-07-12 04:53:14 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-07-12 04:53:14 +0000
commit56fb17711190354db3359ddfc15b82ba6ab87fe1 (patch)
treebc4d8ed4fe2ca6d0e3b80896d35219e63729f13b /firmware
parent204814f33841e862de5d519b7e42760bf1bc262d (diff)
downloadrockbox-56fb17711190354db3359ddfc15b82ba6ab87fe1.tar.gz
rockbox-56fb17711190354db3359ddfc15b82ba6ab87fe1.zip
Inverted S/PDIF control on H110
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7111 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/power.c6
-rw-r--r--firmware/export/config-h100.h1
2 files changed, 6 insertions, 1 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c
index fecc79a465..ce1a9ff377 100644
--- a/firmware/drivers/power.c
+++ b/firmware/drivers/power.c
@@ -141,8 +141,12 @@ void spdif_power_enable(bool on)
{
GPIO1_FUNCTION |= 0x01000000;
GPIO1_ENABLE |= 0x01000000;
-
+
+#ifdef SPDIF_POWER_INVERTED
+ if(!on)
+#else
if(on)
+#endif
GPIO1_OUT &= ~0x01000000;
else
GPIO1_OUT |= 0x01000000;
diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h
index fc6ae35e58..96efdd2406 100644
--- a/firmware/export/config-h100.h
+++ b/firmware/export/config-h100.h
@@ -94,3 +94,4 @@
/* Define this if you can control the S/PDIF power */
#define HAVE_SPDIF_POWER
+#define SPDIF_POWER_INVERTED