diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config-h10.h | 8 | ||||
-rw-r--r-- | firmware/export/config-h10_5gb.h | 8 | ||||
-rw-r--r-- | firmware/export/config-ipod4g.h | 8 | ||||
-rw-r--r-- | firmware/export/config-ipodcolor.h | 8 | ||||
-rw-r--r-- | firmware/export/config-ipodnano.h | 8 | ||||
-rw-r--r-- | firmware/export/config-ipodvideo.h | 8 | ||||
-rw-r--r-- | firmware/export/sound.h | 3 | ||||
-rw-r--r-- | firmware/export/system.h | 5 | ||||
-rw-r--r-- | firmware/export/wm8731l.h | 1 | ||||
-rw-r--r-- | firmware/export/wm8758.h | 5 |
10 files changed, 54 insertions, 8 deletions
diff --git a/firmware/export/config-h10.h b/firmware/export/config-h10.h index 7ea3c2dae6..0b17920736 100644 --- a/firmware/export/config-h10.h +++ b/firmware/export/config-h10.h | |||
@@ -8,7 +8,13 @@ | |||
8 | #define MODEL_NUMBER 13 | 8 | #define MODEL_NUMBER 13 |
9 | 9 | ||
10 | /* define this if you have recording possibility */ | 10 | /* define this if you have recording possibility */ |
11 | /*#define HAVE_RECORDING 1*/ /* TODO: add support for this */ | 11 | #define HAVE_RECORDING 1 |
12 | |||
13 | /* define the bitmask of hardware sample rates */ | ||
14 | #define HW_SAMPR_CAPS (SAMPR_CAP_44) | ||
15 | |||
16 | /* define the bitmask of recording sample rates */ | ||
17 | #define REC_SAMPR_CAPS (SAMPR_CAP_44) | ||
12 | 18 | ||
13 | /* define this if you have a bitmap LCD display */ | 19 | /* define this if you have a bitmap LCD display */ |
14 | #define HAVE_LCD_BITMAP 1 | 20 | #define HAVE_LCD_BITMAP 1 |
diff --git a/firmware/export/config-h10_5gb.h b/firmware/export/config-h10_5gb.h index 34b1d14d77..534c4a455f 100644 --- a/firmware/export/config-h10_5gb.h +++ b/firmware/export/config-h10_5gb.h | |||
@@ -8,7 +8,13 @@ | |||
8 | #define MODEL_NUMBER 14 | 8 | #define MODEL_NUMBER 14 |
9 | 9 | ||
10 | /* define this if you have recording possibility */ | 10 | /* define this if you have recording possibility */ |
11 | /*#define HAVE_RECORDING 1*/ /* TODO: add support for this */ | 11 | #define HAVE_RECORDING 1 |
12 | |||
13 | /* define the bitmask of hardware sample rates */ | ||
14 | #define HW_SAMPR_CAPS (SAMPR_CAP_44) | ||
15 | |||
16 | /* define the bitmask of recording sample rates */ | ||
17 | #define REC_SAMPR_CAPS (SAMPR_CAP_44) | ||
12 | 18 | ||
13 | /* define this if you have a bitmap LCD display */ | 19 | /* define this if you have a bitmap LCD display */ |
14 | #define HAVE_LCD_BITMAP 1 | 20 | #define HAVE_LCD_BITMAP 1 |
diff --git a/firmware/export/config-ipod4g.h b/firmware/export/config-ipod4g.h index bf8d5359f8..142a2ebabb 100644 --- a/firmware/export/config-ipod4g.h +++ b/firmware/export/config-ipod4g.h | |||
@@ -9,7 +9,13 @@ | |||
9 | #define MODEL_NUMBER 8 | 9 | #define MODEL_NUMBER 8 |
10 | 10 | ||
11 | /* define this if you have recording possibility */ | 11 | /* define this if you have recording possibility */ |
12 | /*#define HAVE_RECORDING 1*/ | 12 | #define HAVE_RECORDING 1 |
13 | |||
14 | /* define the bitmask of hardware sample rates */ | ||
15 | #define HW_SAMPR_CAPS (SAMPR_CAP_44) | ||
16 | |||
17 | /* define the bitmask of recording sample rates */ | ||
18 | #define REC_SAMPR_CAPS (SAMPR_CAP_44) | ||
13 | 19 | ||
14 | /* define this if you have a bitmap LCD display */ | 20 | /* define this if you have a bitmap LCD display */ |
15 | #define HAVE_LCD_BITMAP 1 | 21 | #define HAVE_LCD_BITMAP 1 |
diff --git a/firmware/export/config-ipodcolor.h b/firmware/export/config-ipodcolor.h index de06b223e5..af2a89cf6f 100644 --- a/firmware/export/config-ipodcolor.h +++ b/firmware/export/config-ipodcolor.h | |||
@@ -9,7 +9,13 @@ | |||
9 | #define MODEL_NUMBER 3 | 9 | #define MODEL_NUMBER 3 |
10 | 10 | ||
11 | /* define this if you have recording possibility */ | 11 | /* define this if you have recording possibility */ |
12 | /*#define HAVE_RECORDING 1*/ | 12 | #define HAVE_RECORDING 1 |
13 | |||
14 | /* define the bitmask of hardware sample rates */ | ||
15 | #define HW_SAMPR_CAPS (SAMPR_CAP_44) | ||
16 | |||
17 | /* define the bitmask of recording sample rates */ | ||
18 | #define REC_SAMPR_CAPS (SAMPR_CAP_44) | ||
13 | 19 | ||
14 | /* define this if you have a bitmap LCD display */ | 20 | /* define this if you have a bitmap LCD display */ |
15 | #define HAVE_LCD_BITMAP 1 | 21 | #define HAVE_LCD_BITMAP 1 |
diff --git a/firmware/export/config-ipodnano.h b/firmware/export/config-ipodnano.h index 3dd0575b1b..f72603a2da 100644 --- a/firmware/export/config-ipodnano.h +++ b/firmware/export/config-ipodnano.h | |||
@@ -9,7 +9,13 @@ | |||
9 | #define MODEL_NUMBER 4 | 9 | #define MODEL_NUMBER 4 |
10 | 10 | ||
11 | /* define this if you have recording possibility */ | 11 | /* define this if you have recording possibility */ |
12 | /*#define HAVE_RECORDING 1*/ | 12 | #define HAVE_RECORDING 1 |
13 | |||
14 | /* define the bitmask of hardware sample rates */ | ||
15 | #define HW_SAMPR_CAPS (SAMPR_CAP_44) | ||
16 | |||
17 | /* define the bitmask of recording sample rates */ | ||
18 | #define REC_SAMPR_CAPS (SAMPR_CAP_44) | ||
13 | 19 | ||
14 | /* define this if you have a bitmap LCD display */ | 20 | /* define this if you have a bitmap LCD display */ |
15 | #define HAVE_LCD_BITMAP 1 | 21 | #define HAVE_LCD_BITMAP 1 |
diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h index b2b56158f3..fa78c5c7ee 100644 --- a/firmware/export/config-ipodvideo.h +++ b/firmware/export/config-ipodvideo.h | |||
@@ -9,7 +9,13 @@ | |||
9 | #define MODEL_NUMBER 5 | 9 | #define MODEL_NUMBER 5 |
10 | 10 | ||
11 | /* define this if you have recording possibility */ | 11 | /* define this if you have recording possibility */ |
12 | /*#define HAVE_RECORDING 1*/ | 12 | #define HAVE_RECORDING 1 |
13 | |||
14 | /* define the bitmask of hardware sample rates */ | ||
15 | #define HW_SAMPR_CAPS (SAMPR_CAP_44) | ||
16 | |||
17 | /* define the bitmask of recording sample rates */ | ||
18 | #define REC_SAMPR_CAPS (SAMPR_CAP_44) | ||
13 | 19 | ||
14 | /* define this if you have a bitmap LCD display */ | 20 | /* define this if you have a bitmap LCD display */ |
15 | #define HAVE_LCD_BITMAP 1 | 21 | #define HAVE_LCD_BITMAP 1 |
diff --git a/firmware/export/sound.h b/firmware/export/sound.h index 2cf2ad3136..3ad74c4859 100644 --- a/firmware/export/sound.h +++ b/firmware/export/sound.h | |||
@@ -48,7 +48,8 @@ enum { | |||
48 | SOUND_MDB_ENABLE, | 48 | SOUND_MDB_ENABLE, |
49 | SOUND_SUPERBASS, | 49 | SOUND_SUPERBASS, |
50 | #endif | 50 | #endif |
51 | #if CONFIG_CODEC == MAS3587F || defined(HAVE_UDA1380) || defined(HAVE_TLV320) | 51 | #if CONFIG_CODEC == MAS3587F || defined(HAVE_UDA1380) || defined(HAVE_TLV320)\ |
52 | || defined(HAVE_WM8975) || defined(HAVE_WM8758) || defined(HAVE_WM8731) | ||
52 | SOUND_LEFT_GAIN, | 53 | SOUND_LEFT_GAIN, |
53 | SOUND_RIGHT_GAIN, | 54 | SOUND_RIGHT_GAIN, |
54 | SOUND_MIC_GAIN, | 55 | SOUND_MIC_GAIN, |
diff --git a/firmware/export/system.h b/firmware/export/system.h index 2523a72fb3..3db38c9c7b 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h | |||
@@ -314,8 +314,11 @@ static inline int set_irq_level(int level) | |||
314 | return (cpsr >> 7) & 1; | 314 | return (cpsr >> 7) & 1; |
315 | } | 315 | } |
316 | 316 | ||
317 | static inline void enable_fiq(void) | 317 | static inline void enable_fiq(void(*fiq_handler)(void)) |
318 | { | 318 | { |
319 | /* Install the FIQ handler */ | ||
320 | *((unsigned int*)(15*4)) = (unsigned int)fiq_handler; | ||
321 | |||
319 | /* Clear FIQ disable bit */ | 322 | /* Clear FIQ disable bit */ |
320 | asm volatile ( | 323 | asm volatile ( |
321 | "mrs r0, cpsr \n"\ | 324 | "mrs r0, cpsr \n"\ |
diff --git a/firmware/export/wm8731l.h b/firmware/export/wm8731l.h index b6fa13f6cb..5ef6d694e5 100644 --- a/firmware/export/wm8731l.h +++ b/firmware/export/wm8731l.h | |||
@@ -49,6 +49,7 @@ extern void audiohw_set_monitor(int enable); | |||
49 | #define RINVOL 0x01 | 49 | #define RINVOL 0x01 |
50 | #define LOUTVOL 0x02 | 50 | #define LOUTVOL 0x02 |
51 | #define ROUTVOL 0x03 | 51 | #define ROUTVOL 0x03 |
52 | #define AAPCTRL 0x04 /* Analog audio path control */ | ||
52 | #define DACCTRL 0x05 | 53 | #define DACCTRL 0x05 |
53 | #define PWRMGMT 0x06 | 54 | #define PWRMGMT 0x06 |
54 | #define AINTFCE 0x07 | 55 | #define AINTFCE 0x07 |
diff --git a/firmware/export/wm8758.h b/firmware/export/wm8758.h index 20b26dc11f..5715f100da 100644 --- a/firmware/export/wm8758.h +++ b/firmware/export/wm8758.h | |||
@@ -55,6 +55,11 @@ extern void audiohw_set_equalizer_band(int band, int freq, int bw, int gain); | |||
55 | #define CLKCTRL 0x06 | 55 | #define CLKCTRL 0x06 |
56 | #define SRATECTRL 0x07 | 56 | #define SRATECTRL 0x07 |
57 | #define DACCTRL 0x0a | 57 | #define DACCTRL 0x0a |
58 | #define INCTRL 0x2c | ||
59 | #define LINPGAVOL 0x2d | ||
60 | #define RINPGAVOL 0x2e | ||
61 | #define LADCBOOST 0x2f | ||
62 | #define RADCBOOST 0x30 | ||
58 | #define OUTCTRL 0x31 | 63 | #define OUTCTRL 0x31 |
59 | #define LOUTMIX 0x32 | 64 | #define LOUTMIX 0x32 |
60 | #define ROUTMIX 0x33 | 65 | #define ROUTMIX 0x33 |