summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/as3525/audio-as3525.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/audio-as3525.c')
-rw-r--r--firmware/target/arm/as3525/audio-as3525.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/audio-as3525.c b/firmware/target/arm/as3525/audio-as3525.c
index 570ff1491c..350bfb5ee6 100644
--- a/firmware/target/arm/as3525/audio-as3525.c
+++ b/firmware/target/arm/as3525/audio-as3525.c
@@ -29,7 +29,10 @@ int audio_channels = 2;
void audio_set_output_source(int source)
{
- (void)source;
+ if (source == AUDIO_SRC_PLAYBACK)
+ I2SOUT_CONTROL &= ~(1<<5);
+ else
+ I2SOUT_CONTROL |= 1<<5; /* source = loopback from i2sin fifo */
}
void audio_input_mux(int source, unsigned flags)