summaryrefslogtreecommitdiff
path: root/apps/audio_path.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/audio_path.c')
-rw-r--r--apps/audio_path.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/audio_path.c b/apps/audio_path.c
index c4a4d1b277..6709d4421d 100644
--- a/apps/audio_path.c
+++ b/apps/audio_path.c
@@ -34,6 +34,9 @@
34#if CONFIG_TUNER 34#if CONFIG_TUNER
35#include "radio.h" 35#include "radio.h"
36#endif 36#endif
37#if defined(IPOD_ACCESSORY_PROTOCOL) && defined(HAVE_LINE_REC)
38#include "iap.h"
39#endif
37 40
38/* Some audio sources may require a boosted CPU */ 41/* Some audio sources may require a boosted CPU */
39#ifdef HAVE_ADJUSTABLE_CPU_FREQ 42#ifdef HAVE_ADJUSTABLE_CPU_FREQ
@@ -95,6 +98,13 @@ void audio_set_input_source(int source, unsigned flags)
95 radio_start(); 98 radio_start();
96#endif 99#endif
97 100
101#if defined(IPOD_ACCESSORY_PROTOCOL) && defined(HAVE_LINE_REC)
102 static bool last_rec_onoff = false;
103 bool onoff = (source == AUDIO_SRC_LINEIN) ? true : false;
104 if (last_rec_onoff != onoff)
105 last_rec_onoff = iap_record(onoff);
106#endif
107
98 /* set hardware inputs */ 108 /* set hardware inputs */
99 audio_input_mux(source, flags); 109 audio_input_mux(source, flags);
100} /* audio_set_source */ 110} /* audio_set_source */