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) |
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) imx233_audioin_open(); /* if source is microhpone we need to power the microphone too */ imx233_audioin_enable_mic(source_mic); + int src = source_mic ? AUDIOIN_SELECT_MICROPHONE : AUDIOIN_SELECT_LINE1; + imx233_audioin_select_mux_input(false, src); + imx233_audioin_select_mux_input(true, src); } void audiohw_disable_recording(void) |