rockbox/firmware/target/arm/s5l8702
Cástor Muñoz 291b2338c9 ipod Classic: implement HAVE_RECORDING
This patch has been tested on iPod 80 and 160slim, actually
it works but some updates must be done to the final version:

 - unlimitted input buffer
 - decrease CHUNK_SIZE
 - use non-cached addresses instead of discard d-cache ???

Capture hardware versions:

 Ver  iPod models   capture support
 ---  -----------   ---------------
 0    80/160fat     dock line-in
 1    120/160slim   dock line-in + jack mic

 HW version 1 includes an amplifier for the jack plug mic.

 Capture HW detection only tested on iPod 80 and 160slim.

CODEC power:

 AFAIK, OF powers CS42L55 at VA=2.4V for capture (1.8V for
 playback) and turns on the ADC charge pump. CODEC datasheet
 recommmends to disable the charge pump for VA>2.1V.

 CS42L55 DS, s4.13 (Required Initialization Settings): for
 VA>2.1V, some adjustments "must" be done using undocummented
 "control port compensation" registers. OF does not modifies
 these registers when VA=2.4V.

 This patch configures capture HW in the same way as OF does.

TODO:
 - ADC full scale voltage depends on VA, perform tests to find
   clipping levels for VA=1.8V and VA=2.4V

Change-Id: I7e20fd3ecaa83b1c58d5c746f5153fe5c3891d75
2015-10-07 06:15:03 +02:00
..
ipod6g ipod Classic: implement HAVE_RECORDING 2015-10-07 06:15:03 +02:00
app.lds Get the linker files that slipped through in r31337. 2011-12-17 02:00:59 +00:00
boot.lds Get the linker files that slipped through in r31337. 2011-12-17 02:00:59 +00:00
crt0.S arm: factor all exception handlers out of the crt0.S files 2012-04-06 13:46:32 +02:00
debug-s5l8702.c ipod Classic: implement HAVE_RECORDING 2015-10-07 06:15:03 +02:00
dma-s5l8702.c iPod Classic: use new PL080 DMA driver 2015-10-07 06:15:03 +02:00
dma-s5l8702.h iPod Classic: use new PL080 DMA driver 2015-10-07 06:15:03 +02:00
gpio-s5l8702.c ipod Classic: implement HAVE_RECORDING 2015-10-07 06:15:03 +02:00
gpio-s5l8702.h iPod Classic: s5l8702 GPIO interrupt controller. 2015-10-07 06:15:03 +02:00
i2c-s5l8702.c Bulk convert all DOS line endings to UNIX. 2011-11-06 22:44:25 +00:00
kernel-s5l8702.c iPod Classic: minor modifications in TIMER 2014-12-08 03:07:44 +01:00
pcm-s5l8702.c ipod Classic: implement HAVE_RECORDING 2015-10-07 06:15:03 +02:00
pcm-target.h iPod Classic: use new PL080 DMA driver 2015-10-07 06:15:03 +02:00
pl080.c iPod Classic: introduce PL080 DMA controller driver 2015-10-07 06:15:03 +02:00
system-s5l8702.c ipod Classic: implement HAVE_RECORDING 2015-10-07 06:15:03 +02:00
system-target.h Fix last warnings. 2014-03-03 20:34:46 +01:00
timer-s5l8702.c iPod Classic: minor modifications in TIMER 2014-12-08 03:07:44 +01:00