summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-09-13 19:34:16 +0000
committerJens Arnold <amiconn@rockbox.org>2008-09-13 19:34:16 +0000
commit6938083e4f45164c20d5c081839f37635cbcd6cd (patch)
treea41c635a1528ab4dfa01e6a5986e50613f3ba15b /firmware/target/arm
parentc487c01d4626eb5f7aa07654829722f42695ffa6 (diff)
downloadrockbox-6938083e4f45164c20d5c081839f37635cbcd6cd.tar.gz
rockbox-6938083e4f45164c20d5c081839f37635cbcd6cd.zip
iPod Video: Fix playback after recording (FS #7402). Implement recording gain adjustment. * Enable timeout for zero-crossing detection (SLOWCLK), avoids hanging volume/ gain due to DC offsets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18509 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/pcm-pp.c3
-rw-r--r--firmware/target/arm/wmcodec-pp.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/firmware/target/arm/pcm-pp.c b/firmware/target/arm/pcm-pp.c
index e98054ab9e..38fd49165e 100644
--- a/firmware/target/arm/pcm-pp.c
+++ b/firmware/target/arm/pcm-pp.c
@@ -365,7 +365,8 @@ void pcm_play_dma_init(void)
/* Initialize default register values. */
audiohw_init();
-#if !defined(HAVE_WM8731) && !defined(HAVE_WM8751) && !defined(HAVE_WM8975)
+#if !defined(HAVE_WM8731) && !defined(HAVE_WM8751) && !defined(HAVE_WM8975) \
+ && !defined(HAVE_WM8758)
/* Power on */
audiohw_enable_output(true);
/* Unmute the master channel (DAC should be at zero point now). */
diff --git a/firmware/target/arm/wmcodec-pp.c b/firmware/target/arm/wmcodec-pp.c
index 04cf238ac3..0d751f6b3f 100644
--- a/firmware/target/arm/wmcodec-pp.c
+++ b/firmware/target/arm/wmcodec-pp.c
@@ -96,13 +96,15 @@ void audiohw_init(void) {
#endif /* IPOD_1G2G/3G */
#endif
-#if defined(HAVE_WM8731) || defined(HAVE_WM8751) || defined(HAVE_WM8975)
+#if defined(HAVE_WM8731) || defined(HAVE_WM8751) || defined(HAVE_WM8975) \
+ || defined(HAVE_WM8758)
audiohw_preinit();
#endif
}
-#if !defined(HAVE_WM8731) && !defined(HAVE_WM8751) && !defined(HAVE_WM8975)
+#if !defined(HAVE_WM8731) && !defined(HAVE_WM8751) && !defined(HAVE_WM8975) \
+ && !defined(HAVE_WM8758)
void audiohw_postinit(void)
{
}