diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-07-13 02:38:34 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-07-13 02:42:17 +0200 |
commit | 960788343a6e92c650b717e7ea15ca164a2ca975 (patch) | |
tree | bda389b2d0302b26377ffc412cbf9b4eb35fd62e | |
parent | a3af30167710ac7a18231d871c763d4c67daf27d (diff) | |
download | rockbox-960788343a6e92c650b717e7ea15ca164a2ca975.tar.gz rockbox-960788343a6e92c650b717e7ea15ca164a2ca975.zip |
imx233: correctly select recording source
Change-Id: I651856292922097efe21e01543ae2568dfa13980
-rw-r--r-- | firmware/drivers/audio/imx233-codec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/drivers/audio/imx233-codec.c b/firmware/drivers/audio/imx233-codec.c index ae812f865f..4afdfc6f8b 100644 --- a/firmware/drivers/audio/imx233-codec.c +++ b/firmware/drivers/audio/imx233-codec.c | |||
@@ -61,6 +61,9 @@ void audiohw_enable_recording(bool source_mic) | |||
61 | imx233_audioin_open(); | 61 | imx233_audioin_open(); |
62 | /* if source is microhpone we need to power the microphone too */ | 62 | /* if source is microhpone we need to power the microphone too */ |
63 | imx233_audioin_enable_mic(source_mic); | 63 | imx233_audioin_enable_mic(source_mic); |
64 | int src = source_mic ? AUDIOIN_SELECT_MICROPHONE : AUDIOIN_SELECT_LINE1; | ||
65 | imx233_audioin_select_mux_input(false, src); | ||
66 | imx233_audioin_select_mux_input(true, src); | ||
64 | } | 67 | } |
65 | 68 | ||
66 | void audiohw_disable_recording(void) | 69 | void audiohw_disable_recording(void) |