mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
imx233: implement audioin
Change-Id: I0cf896f59fd2176217d0dd1f6032c3463b936669
This commit is contained in:
parent
57bb7b2d27
commit
ac4e76d072
2 changed files with 168 additions and 6 deletions
|
|
@ -26,9 +26,25 @@
|
|||
#include "system.h"
|
||||
|
||||
#include "regs/regs-audioin.h"
|
||||
/* some audioout registers impact audioin */
|
||||
#include "regs/regs-audioout.h"
|
||||
|
||||
#define AUDIOIN_SELECT_MICROPHONE 0
|
||||
#define AUDIOIN_SELECT_LINE1 1
|
||||
#define AUDIOIN_SELECT_HEADPHONE 2
|
||||
#define AUDIOIN_SELECT_LINE2 3
|
||||
|
||||
void imx233_audioin_preinit(void);
|
||||
void imx233_audioin_postinit(void);
|
||||
void imx233_audioin_open(void);
|
||||
void imx233_audioin_close(void);
|
||||
/* use AUDIONIN_SELECT_* values */
|
||||
void imx233_audioin_select_mux_input(bool right, int select);
|
||||
/* volume in half dB */
|
||||
void imx233_audioin_set_vol(bool right, int vol, int select);
|
||||
/* frequency index, NOT the frequency itself */
|
||||
void imx233_audioin_set_freq(int fsel);
|
||||
/* enable microphone */
|
||||
void imx233_audioin_enable_mic(bool enable);
|
||||
|
||||
#endif /* __audioin_imx233__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue