From 2d48d0ffa6baddd19e6ff077f25068f90af7be3d Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 8 Jun 2007 23:42:04 +0000 Subject: Straighten out some audio path APIs and misc. audio stuff. Having recording is not a prerequisite to having input/output source selection which is probably most useful when adding a audio input features like FM to a new port without forcing recording to be implemented first. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13599 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/coldfire/iriver/h100/power-h100.c | 3 ++- firmware/target/coldfire/iriver/h100/spdif-h100.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'firmware/target/coldfire/iriver/h100') diff --git a/firmware/target/coldfire/iriver/h100/power-h100.c b/firmware/target/coldfire/iriver/h100/power-h100.c index ce1c350802..943168967f 100644 --- a/firmware/target/coldfire/iriver/h100/power-h100.c +++ b/firmware/target/coldfire/iriver/h100/power-h100.c @@ -89,7 +89,8 @@ void spdif_power_enable(bool on) #ifndef BOOTLOADER /* Make sure the feed is reset */ - spdif_set_output_source(spdif_get_output_source(NULL), true); + spdif_set_output_source(spdif_get_output_source(NULL) + IF_SPDIF_POWER_(, true)); #endif } diff --git a/firmware/target/coldfire/iriver/h100/spdif-h100.c b/firmware/target/coldfire/iriver/h100/spdif-h100.c index ee4a9402ea..beede3fdce 100644 --- a/firmware/target/coldfire/iriver/h100/spdif-h100.c +++ b/firmware/target/coldfire/iriver/h100/spdif-h100.c @@ -33,7 +33,8 @@ void spdif_init(void) { /* PHASECONFIG setup: gain = 3*2^13, source = EBUIN */ PHASECONFIG = (6 << 3) | (4 << 0); - spdif_set_output_source(AUDIO_SRC_PLAYBACK, true); + spdif_set_output_source(AUDIO_SRC_PLAYBACK + IF_SPDIF_POWER_(, true)); } /* Return the S/PDIF frequency in herz - unrounded */ -- cgit v1.2.3