forked from len0rd/rockbox
Inverted S/PDIF control on H110
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7111 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
204814f338
commit
56fb177111
2 changed files with 6 additions and 1 deletions
|
|
@ -142,7 +142,11 @@ void spdif_power_enable(bool on)
|
||||||
GPIO1_FUNCTION |= 0x01000000;
|
GPIO1_FUNCTION |= 0x01000000;
|
||||||
GPIO1_ENABLE |= 0x01000000;
|
GPIO1_ENABLE |= 0x01000000;
|
||||||
|
|
||||||
|
#ifdef SPDIF_POWER_INVERTED
|
||||||
|
if(!on)
|
||||||
|
#else
|
||||||
if(on)
|
if(on)
|
||||||
|
#endif
|
||||||
GPIO1_OUT &= ~0x01000000;
|
GPIO1_OUT &= ~0x01000000;
|
||||||
else
|
else
|
||||||
GPIO1_OUT |= 0x01000000;
|
GPIO1_OUT |= 0x01000000;
|
||||||
|
|
|
||||||
|
|
@ -94,3 +94,4 @@
|
||||||
|
|
||||||
/* Define this if you can control the S/PDIF power */
|
/* Define this if you can control the S/PDIF power */
|
||||||
#define HAVE_SPDIF_POWER
|
#define HAVE_SPDIF_POWER
|
||||||
|
#define SPDIF_POWER_INVERTED
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue