summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-05-12 20:59:00 +0000
committerJens Arnold <amiconn@rockbox.org>2006-05-12 20:59:00 +0000
commit736a399bc438e730b219c067a77f0176ddeeec3e (patch)
tree6492d9a83d0e4d277caa5a1749a1c9104ff5441b /firmware
parent2e9ddebcd09648355ec21e187692fd9ab4b5ff69 (diff)
downloadrockbox-736a399bc438e730b219c067a77f0176ddeeec3e.tar.gz
rockbox-736a399bc438e730b219c067a77f0176ddeeec3e.tar.bz2
rockbox-736a399bc438e730b219c067a77f0176ddeeec3e.zip
H1x0: Obey SPDIF power setting for monitoring SPDIF recordings as far as possible.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9923 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/pcm_record.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/pcm_record.c b/firmware/pcm_record.c
index b1415fa235..0a70494288 100644
--- a/firmware/pcm_record.c
+++ b/firmware/pcm_record.c
@@ -305,8 +305,13 @@ void audio_set_recording_options(int frequency, int quality,
case 2:
/* Int. when 6 samples in FIFO. PDIR2 source = ebu1RcvData */
DATAINCONTROL = 0xc038;
+#ifdef HAVE_SPDIF_POWER
+ EBU1CONFIG = spdif_power_setting ? (1 << 2) : 0;
+ /* Input source is EBUin1, Feed-through monitoring if desired */
+#else
EBU1CONFIG = (1 << 2);
- /* Input source is EBUin1, Feed-through to output for monitoring */
+ /* Input source is EBUin1, Feed-through monitoring */
+#endif
uda1380_disable_recording();
break;
#endif