1
0
Fork 0
forked from len0rd/rockbox

iAP: lingo 1 (microphone)

Change-Id: I65da2064951972368a2880d271280e5b5ae878fe
This commit is contained in:
Cástor Muñoz 2014-12-06 23:28:31 +01:00
parent b2d650f511
commit be5fc0ff7f
7 changed files with 271 additions and 1 deletions

View file

@ -34,6 +34,9 @@
#if CONFIG_TUNER
#include "radio.h"
#endif
#if defined(IPOD_ACCESSORY_PROTOCOL) && defined(HAVE_LINE_REC)
#include "iap.h"
#endif
/* Some audio sources may require a boosted CPU */
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
@ -95,6 +98,13 @@ void audio_set_input_source(int source, unsigned flags)
radio_start();
#endif
#if defined(IPOD_ACCESSORY_PROTOCOL) && defined(HAVE_LINE_REC)
static bool last_rec_onoff = false;
bool onoff = (source == AUDIO_SRC_LINEIN) ? true : false;
if (last_rec_onoff != onoff)
last_rec_onoff = iap_record(onoff);
#endif
/* set hardware inputs */
audio_input_mux(source, flags);
} /* audio_set_source */