mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
imx233: correctly select recording source
Change-Id: I651856292922097efe21e01543ae2568dfa13980
This commit is contained in:
parent
a3af301677
commit
960788343a
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue