ipod6g: some fixes for recording

- Fix broken recording from jack microphone.
- Fix recording hardware detection on models that do not support
  the jack microphone.
- Enable monitor mode when recording.

Change-Id: Ib79a2746f2d75f74cf6667d33bc9ed6512bbc8a9
This commit is contained in:
Cástor Muñoz 2017-04-16 00:36:11 +02:00
parent c577c63c93
commit 3fffff90e2
2 changed files with 51 additions and 8 deletions

View file

@ -62,6 +62,7 @@ void INIT_ATTR gpio_init(void)
* 1 0 120/160slim dock line-in + jack mic
*/
GPIOCMD = 0xe0700;
udelay(10000);
rec_hw_ver = (PDAT(14) & (1 << 7)) ? 0 : 1;
GPIOCMD = 0xe070e; /* restore default configuration */