From 9b4057bbd43dfeaf69785605407e4625f01be069 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Sun, 1 Nov 2009 22:51:31 +0000 Subject: Sansa AMS recording support (Microphone and FM) Still disabled on all targets: - Fuze and e200v2 see spurious interrupts with no source defined - Clip/m200v4 deadlock instantly when starting recording (perhaps due to low memory size) Having the code in SVN will make working on this feature easier Also add keymaps for Fuze, and correct Frequency section of recording options : the 22.05kHz limitation of e200v1 and c200v1 doesn't apply to Sansa AMS (different I2S hardware, unrelated to as3514) Flyspray: FS#10371 Authors: Fred Bauer and myself git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23476 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/as3525.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'firmware/export/as3525.h') diff --git a/firmware/export/as3525.h b/firmware/export/as3525.h index d2b5a4fef2..07f78dafcf 100644 --- a/firmware/export/as3525.h +++ b/firmware/export/as3525.h @@ -507,4 +507,15 @@ interface */ #define USB_NUM_ENDPOINTS 4 #define USB_DEVBSS_ATTR IBSS_ATTR +/* I2SIN registers */ + +#define I2SIN_CONTROL (*(volatile unsigned long*)(I2SIN_BASE+0x00)) +#define I2SIN_MASK (*(volatile unsigned char*)(I2SIN_BASE+0x04)) +#define I2SIN_RAW_STATUS (*(volatile unsigned char*)(I2SIN_BASE+0x08)) +#define I2SIN_STATUS (*(volatile unsigned char*)(I2SIN_BASE+0x0C)) +#define I2SIN_CLEAR (*(volatile unsigned char*)(I2SIN_BASE+0x10)) +#define I2SIN_DATA (volatile unsigned long*)(I2SIN_BASE+0x14) +#define I2SIN_SPDIF_STATUS (*(volatile unsigned long*)(I2SIN_BASE+0x18)) + + #endif /*__AS3525_H__*/ -- cgit v1.2.3