summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-05-03 10:03:30 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-05-03 10:03:30 +0000
commit0a12f4e2963ed1d80c2610c5502797dd6874e737 (patch)
tree83413f3ce06ebc7f6250a801af8affab8ef57743
parent331c7d9255e7873d3583aceea6bd00c7360f2366 (diff)
downloadrockbox-0a12f4e2963ed1d80c2610c5502797dd6874e737.tar.gz
rockbox-0a12f4e2963ed1d80c2610c5502797dd6874e737.zip
Stop radio when playing mp3 files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3641 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/mpeg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index 7266b05bd9..ef65303879 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -1300,6 +1300,13 @@ static void mpeg_thread(void)
{
case MPEG_PLAY:
DEBUGF("MPEG_PLAY\n");
+
+#ifdef HAVE_FMRADIO
+ /* Silence the A/D input, it may be on because the radio
+ may be playing */
+ mas_codec_writereg(6, 0x0000);
+#endif
+
/* Stop the current stream */
play_pending = false;
playing = false;