diff options
Diffstat (limited to 'firmware/target/arm/as3525/audio-as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/audio-as3525.c | 5 |
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; | |||
29 | 29 | ||
30 | void audio_set_output_source(int source) | 30 | void audio_set_output_source(int source) |
31 | { | 31 | { |
32 | (void)source; | 32 | if (source == AUDIO_SRC_PLAYBACK) |
33 | I2SOUT_CONTROL &= ~(1<<5); | ||
34 | else | ||
35 | I2SOUT_CONTROL |= 1<<5; /* source = loopback from i2sin fifo */ | ||
33 | } | 36 | } |
34 | 37 | ||
35 | void audio_input_mux(int source, unsigned flags) | 38 | void audio_input_mux(int source, unsigned flags) |