From 736a399bc438e730b219c067a77f0176ddeeec3e Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 12 May 2006 20:59:00 +0000 Subject: 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 --- firmware/pcm_record.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'firmware') 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 -- cgit v1.2.3