diff options
Diffstat (limited to 'firmware')
31 files changed, 115 insertions, 3 deletions
diff --git a/firmware/export/audio.h b/firmware/export/audio.h index b10d5863d7..aedaffbe89 100644 --- a/firmware/export/audio.h +++ b/firmware/export/audio.h | |||
@@ -92,7 +92,7 @@ struct mp3entry* audio_current_track(void); | |||
92 | struct mp3entry* audio_next_track(void); | 92 | struct mp3entry* audio_next_track(void); |
93 | bool audio_has_changed_track(void); | 93 | bool audio_has_changed_track(void); |
94 | void audio_get_debugdata(struct audio_debug *dbgdata); | 94 | void audio_get_debugdata(struct audio_debug *dbgdata); |
95 | #ifndef HAVE_FLASH_STORAGE | 95 | #ifdef HAVE_DISK_STORAGE |
96 | void audio_set_buffer_margin(int seconds); | 96 | void audio_set_buffer_margin(int seconds); |
97 | #endif | 97 | #endif |
98 | unsigned int audio_error(void); | 98 | unsigned int audio_error(void); |
diff --git a/firmware/export/config-creativezv.h b/firmware/export/config-creativezv.h index b8850a3af6..0cb487ad6d 100644 --- a/firmware/export/config-creativezv.h +++ b/firmware/export/config-creativezv.h | |||
@@ -85,6 +85,10 @@ | |||
85 | /* define this if you have a real-time clock */ | 85 | /* define this if you have a real-time clock */ |
86 | //#define CONFIG_RTC RTC_RX5X348AB | 86 | //#define CONFIG_RTC RTC_RX5X348AB |
87 | 87 | ||
88 | /* define this if you have a disk storage, i.e. something | ||
89 | that needs spinups and can cause skips when shaked */ | ||
90 | #define HAVE_DISK_STORAGE | ||
91 | |||
88 | /* Define this for LCD backlight available */ | 92 | /* Define this for LCD backlight available */ |
89 | //#define HAVE_BACKLIGHT | 93 | //#define HAVE_BACKLIGHT |
90 | 94 | ||
diff --git a/firmware/export/config-creativezvm.h b/firmware/export/config-creativezvm.h index 4c1f4624b3..e4ccfc775f 100644 --- a/firmware/export/config-creativezvm.h +++ b/firmware/export/config-creativezvm.h | |||
@@ -85,6 +85,10 @@ | |||
85 | /* define this if you have a real-time clock */ | 85 | /* define this if you have a real-time clock */ |
86 | //#define CONFIG_RTC RTC_RX5X348AB | 86 | //#define CONFIG_RTC RTC_RX5X348AB |
87 | 87 | ||
88 | /* define this if you have a disk storage, i.e. something | ||
89 | that needs spinups and can cause skips when shaked */ | ||
90 | #define HAVE_DISK_STORAGE | ||
91 | |||
88 | /* Define this for LCD backlight available */ | 92 | /* Define this for LCD backlight available */ |
89 | //#define HAVE_BACKLIGHT | 93 | //#define HAVE_BACKLIGHT |
90 | 94 | ||
diff --git a/firmware/export/config-creativezvm60gb.h b/firmware/export/config-creativezvm60gb.h index 3f98059a28..bcf361690d 100644 --- a/firmware/export/config-creativezvm60gb.h +++ b/firmware/export/config-creativezvm60gb.h | |||
@@ -85,6 +85,10 @@ | |||
85 | /* define this if you have a real-time clock */ | 85 | /* define this if you have a real-time clock */ |
86 | //#define CONFIG_RTC RTC_RX5X348AB | 86 | //#define CONFIG_RTC RTC_RX5X348AB |
87 | 87 | ||
88 | /* define this if you have a disk storage, i.e. something | ||
89 | that needs spinups and can cause skips when shaked */ | ||
90 | #define HAVE_DISK_STORAGE | ||
91 | |||
88 | /* Define this for LCD backlight available */ | 92 | /* Define this for LCD backlight available */ |
89 | //#define HAVE_BACKLIGHT | 93 | //#define HAVE_BACKLIGHT |
90 | 94 | ||
diff --git a/firmware/export/config-fmrecorder.h b/firmware/export/config-fmrecorder.h index fd85e51b46..1908f6a29d 100644 --- a/firmware/export/config-fmrecorder.h +++ b/firmware/export/config-fmrecorder.h | |||
@@ -65,6 +65,10 @@ | |||
65 | /* Define this for LCD backlight available */ | 65 | /* Define this for LCD backlight available */ |
66 | #define HAVE_BACKLIGHT | 66 | #define HAVE_BACKLIGHT |
67 | 67 | ||
68 | /* define this if you have a disk storage, i.e. something | ||
69 | that needs spinups and can cause skips when shaked */ | ||
70 | #define HAVE_DISK_STORAGE | ||
71 | |||
68 | #define CONFIG_I2C I2C_PLAYREC | 72 | #define CONFIG_I2C I2C_PLAYREC |
69 | 73 | ||
70 | #define BATTERY_CAPACITY_DEFAULT 2200 /* default battery capacity */ | 74 | #define BATTERY_CAPACITY_DEFAULT 2200 /* default battery capacity */ |
diff --git a/firmware/export/config-gigabeat-s.h b/firmware/export/config-gigabeat-s.h index 1f40339065..92813c6b00 100644 --- a/firmware/export/config-gigabeat-s.h +++ b/firmware/export/config-gigabeat-s.h | |||
@@ -56,6 +56,10 @@ | |||
56 | /* Define this for LCD backlight available */ | 56 | /* Define this for LCD backlight available */ |
57 | #define HAVE_BACKLIGHT | 57 | #define HAVE_BACKLIGHT |
58 | 58 | ||
59 | /* define this if you have a disk storage, i.e. something | ||
60 | that needs spinups and can cause skips when shaked */ | ||
61 | #define HAVE_DISK_STORAGE | ||
62 | |||
59 | /* Define this if you have a software controlled poweroff */ | 63 | /* Define this if you have a software controlled poweroff */ |
60 | #define HAVE_SW_POWEROFF | 64 | #define HAVE_SW_POWEROFF |
61 | 65 | ||
diff --git a/firmware/export/config-gigabeat.h b/firmware/export/config-gigabeat.h index 27bd51e3ab..c2ac7a9483 100644 --- a/firmware/export/config-gigabeat.h +++ b/firmware/export/config-gigabeat.h | |||
@@ -62,6 +62,10 @@ | |||
62 | /* define this if you have a real-time clock */ | 62 | /* define this if you have a real-time clock */ |
63 | #define CONFIG_RTC RTC_S3C2440 | 63 | #define CONFIG_RTC RTC_S3C2440 |
64 | 64 | ||
65 | /* define this if you have a disk storage, i.e. something | ||
66 | that needs spinups and can cause skips when shaked */ | ||
67 | #define HAVE_DISK_STORAGE | ||
68 | |||
65 | /* Define this for LCD backlight available */ | 69 | /* Define this for LCD backlight available */ |
66 | #define HAVE_BACKLIGHT | 70 | #define HAVE_BACKLIGHT |
67 | 71 | ||
diff --git a/firmware/export/config-h10.h b/firmware/export/config-h10.h index d38a5df636..6f66555d7d 100644 --- a/firmware/export/config-h10.h +++ b/firmware/export/config-h10.h | |||
@@ -79,6 +79,10 @@ | |||
79 | #define HAVE_RTC_ALARM | 79 | #define HAVE_RTC_ALARM |
80 | #endif | 80 | #endif |
81 | 81 | ||
82 | /* define this if you have a disk storage, i.e. something | ||
83 | that needs spinups and can cause skips when shaked */ | ||
84 | #define HAVE_DISK_STORAGE | ||
85 | |||
82 | /* Define this if you have a software controlled poweroff */ | 86 | /* Define this if you have a software controlled poweroff */ |
83 | #define HAVE_SW_POWEROFF | 87 | #define HAVE_SW_POWEROFF |
84 | 88 | ||
diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h index f250c5f862..dcb0e6d9f0 100644 --- a/firmware/export/config-h100.h +++ b/firmware/export/config-h100.h | |||
@@ -66,6 +66,10 @@ | |||
66 | 66 | ||
67 | #define CONFIG_LCD LCD_S1D15E06 | 67 | #define CONFIG_LCD LCD_S1D15E06 |
68 | 68 | ||
69 | /* define this if you have a disk storage, i.e. something | ||
70 | that needs spinups and can cause skips when shaked */ | ||
71 | #define HAVE_DISK_STORAGE | ||
72 | |||
69 | /* Define this for LCD backlight available */ | 73 | /* Define this for LCD backlight available */ |
70 | #define HAVE_BACKLIGHT | 74 | #define HAVE_BACKLIGHT |
71 | 75 | ||
diff --git a/firmware/export/config-h10_5gb.h b/firmware/export/config-h10_5gb.h index 56a61c8be5..29f0e55b6b 100644 --- a/firmware/export/config-h10_5gb.h +++ b/firmware/export/config-h10_5gb.h | |||
@@ -83,6 +83,10 @@ | |||
83 | #define CONFIG_TUNER TEA5767 | 83 | #define CONFIG_TUNER TEA5767 |
84 | #define CONFIG_TUNER_XTAL 32768 | 84 | #define CONFIG_TUNER_XTAL 32768 |
85 | 85 | ||
86 | /* define this if you have a disk storage, i.e. something | ||
87 | that needs spinups and can cause skips when shaked */ | ||
88 | #define HAVE_DISK_STORAGE | ||
89 | |||
86 | /* Define this for LCD backlight available */ | 90 | /* Define this for LCD backlight available */ |
87 | #define HAVE_BACKLIGHT | 91 | #define HAVE_BACKLIGHT |
88 | 92 | ||
diff --git a/firmware/export/config-h120.h b/firmware/export/config-h120.h index 9cea95eb6f..c75734f7b7 100644 --- a/firmware/export/config-h120.h +++ b/firmware/export/config-h120.h | |||
@@ -53,6 +53,10 @@ | |||
53 | /* Define this if you do software codec */ | 53 | /* Define this if you do software codec */ |
54 | #define CONFIG_CODEC SWCODEC | 54 | #define CONFIG_CODEC SWCODEC |
55 | 55 | ||
56 | /* define this if you have a disk storage, i.e. something | ||
57 | that needs spinups and can cause skips when shaked */ | ||
58 | #define HAVE_DISK_STORAGE | ||
59 | |||
56 | /* Define this if you have an remote lcd */ | 60 | /* Define this if you have an remote lcd */ |
57 | #define HAVE_REMOTE_LCD | 61 | #define HAVE_REMOTE_LCD |
58 | 62 | ||
diff --git a/firmware/export/config-h300.h b/firmware/export/config-h300.h index 4aae255daa..134e90cd17 100644 --- a/firmware/export/config-h300.h +++ b/firmware/export/config-h300.h | |||
@@ -55,6 +55,10 @@ | |||
55 | /* define this if you have a real-time clock */ | 55 | /* define this if you have a real-time clock */ |
56 | #define CONFIG_RTC RTC_PCF50606 | 56 | #define CONFIG_RTC RTC_PCF50606 |
57 | 57 | ||
58 | /* define this if you have a disk storage, i.e. something | ||
59 | that needs spinups and can cause skips when shaked */ | ||
60 | #define HAVE_DISK_STORAGE | ||
61 | |||
58 | /* Define this if you have an remote lcd */ | 62 | /* Define this if you have an remote lcd */ |
59 | #define HAVE_REMOTE_LCD | 63 | #define HAVE_REMOTE_LCD |
60 | 64 | ||
diff --git a/firmware/export/config-hdd1630.h b/firmware/export/config-hdd1630.h index 55ad5a1340..5a311993fe 100755 --- a/firmware/export/config-hdd1630.h +++ b/firmware/export/config-hdd1630.h | |||
@@ -101,6 +101,10 @@ | |||
101 | /* #define CONFIG_TUNER TEA5767 */ | 101 | /* #define CONFIG_TUNER TEA5767 */ |
102 | /* #define CONFIG_TUNER_XTAL 32768 */ | 102 | /* #define CONFIG_TUNER_XTAL 32768 */ |
103 | 103 | ||
104 | /* define this if you have a disk storage, i.e. something | ||
105 | that needs spinups and can cause skips when shaked */ | ||
106 | #define HAVE_DISK_STORAGE | ||
107 | |||
104 | /* Define this for LCD backlight available */ | 108 | /* Define this for LCD backlight available */ |
105 | #define HAVE_BACKLIGHT | 109 | #define HAVE_BACKLIGHT |
106 | /* #define HAVE_BACKLIGHT_BRIGHTNESS */ | 110 | /* #define HAVE_BACKLIGHT_BRIGHTNESS */ |
diff --git a/firmware/export/config-iaudiom3.h b/firmware/export/config-iaudiom3.h index b8dc52c91e..429e922529 100644 --- a/firmware/export/config-iaudiom3.h +++ b/firmware/export/config-iaudiom3.h | |||
@@ -71,6 +71,10 @@ | |||
71 | /* Define this for LCD backlight available */ | 71 | /* Define this for LCD backlight available */ |
72 | #define HAVE_BACKLIGHT | 72 | #define HAVE_BACKLIGHT |
73 | 73 | ||
74 | /* define this if you have a disk storage, i.e. something | ||
75 | that needs spinups and can cause skips when shaked */ | ||
76 | #define HAVE_DISK_STORAGE | ||
77 | |||
74 | /* Define this if you have a software controlled poweroff */ | 78 | /* Define this if you have a software controlled poweroff */ |
75 | #define HAVE_SW_POWEROFF | 79 | #define HAVE_SW_POWEROFF |
76 | 80 | ||
diff --git a/firmware/export/config-iaudiom5.h b/firmware/export/config-iaudiom5.h index a5b0f3d7bd..eb3b1216eb 100644 --- a/firmware/export/config-iaudiom5.h +++ b/firmware/export/config-iaudiom5.h | |||
@@ -78,6 +78,10 @@ | |||
78 | /* Define this for LCD backlight available */ | 78 | /* Define this for LCD backlight available */ |
79 | #define HAVE_BACKLIGHT | 79 | #define HAVE_BACKLIGHT |
80 | 80 | ||
81 | /* define this if you have a disk storage, i.e. something | ||
82 | that needs spinups and can cause skips when shaked */ | ||
83 | #define HAVE_DISK_STORAGE | ||
84 | |||
81 | /* Define this if you have a software controlled poweroff */ | 85 | /* Define this if you have a software controlled poweroff */ |
82 | #define HAVE_SW_POWEROFF | 86 | #define HAVE_SW_POWEROFF |
83 | 87 | ||
diff --git a/firmware/export/config-iaudiox5.h b/firmware/export/config-iaudiox5.h index c29d4242fe..be21006295 100644 --- a/firmware/export/config-iaudiox5.h +++ b/firmware/export/config-iaudiox5.h | |||
@@ -91,6 +91,10 @@ | |||
91 | #define HAVE_BACKLIGHT | 91 | #define HAVE_BACKLIGHT |
92 | #define HAVE_BACKLIGHT_BRIGHTNESS | 92 | #define HAVE_BACKLIGHT_BRIGHTNESS |
93 | 93 | ||
94 | /* define this if you have a disk storage, i.e. something | ||
95 | that needs spinups and can cause skips when shaked */ | ||
96 | #define HAVE_DISK_STORAGE | ||
97 | |||
94 | /* Define this if you have a software controlled poweroff */ | 98 | /* Define this if you have a software controlled poweroff */ |
95 | #define HAVE_SW_POWEROFF | 99 | #define HAVE_SW_POWEROFF |
96 | 100 | ||
diff --git a/firmware/export/config-ipod1g2g.h b/firmware/export/config-ipod1g2g.h index 2d3dff1edc..5727e46616 100644 --- a/firmware/export/config-ipod1g2g.h +++ b/firmware/export/config-ipod1g2g.h | |||
@@ -78,6 +78,10 @@ | |||
78 | /* Define this if you have the WM8731L audio codec */ | 78 | /* Define this if you have the WM8731L audio codec */ |
79 | #define HAVE_WM8721 | 79 | #define HAVE_WM8721 |
80 | 80 | ||
81 | /* define this if you have a disk storage, i.e. something | ||
82 | that needs spinups and can cause skips when shaked */ | ||
83 | #define HAVE_DISK_STORAGE | ||
84 | |||
81 | /* WM8721 has no tone controls, so we use the software ones */ | 85 | /* WM8721 has no tone controls, so we use the software ones */ |
82 | #define HAVE_SW_TONE_CONTROLS | 86 | #define HAVE_SW_TONE_CONTROLS |
83 | 87 | ||
diff --git a/firmware/export/config-ipod3g.h b/firmware/export/config-ipod3g.h index d5b593388e..285043a77f 100644 --- a/firmware/export/config-ipod3g.h +++ b/firmware/export/config-ipod3g.h | |||
@@ -91,6 +91,10 @@ | |||
91 | /* WM8731 has no tone controls, so we use the software ones */ | 91 | /* WM8731 has no tone controls, so we use the software ones */ |
92 | #define HAVE_SW_TONE_CONTROLS | 92 | #define HAVE_SW_TONE_CONTROLS |
93 | 93 | ||
94 | /* define this if you have a disk storage, i.e. something | ||
95 | that needs spinups and can cause skips when shaked */ | ||
96 | #define HAVE_DISK_STORAGE | ||
97 | |||
94 | /* Define this for LCD backlight available */ | 98 | /* Define this for LCD backlight available */ |
95 | #define HAVE_BACKLIGHT | 99 | #define HAVE_BACKLIGHT |
96 | 100 | ||
diff --git a/firmware/export/config-ipod4g.h b/firmware/export/config-ipod4g.h index c5c592dfca..dddda21e07 100644 --- a/firmware/export/config-ipod4g.h +++ b/firmware/export/config-ipod4g.h | |||
@@ -91,6 +91,10 @@ | |||
91 | #define AB_REPEAT_ENABLE 1 | 91 | #define AB_REPEAT_ENABLE 1 |
92 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE | 92 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE |
93 | 93 | ||
94 | /* define this if you have a disk storage, i.e. something | ||
95 | that needs spinups and can cause skips when shaked */ | ||
96 | #define HAVE_DISK_STORAGE | ||
97 | |||
94 | /* Define this for LCD backlight available */ | 98 | /* Define this for LCD backlight available */ |
95 | #define HAVE_BACKLIGHT | 99 | #define HAVE_BACKLIGHT |
96 | 100 | ||
diff --git a/firmware/export/config-ipodcolor.h b/firmware/export/config-ipodcolor.h index cda0857b19..f4db7d8b98 100644 --- a/firmware/export/config-ipodcolor.h +++ b/firmware/export/config-ipodcolor.h | |||
@@ -78,6 +78,10 @@ | |||
78 | #define AB_REPEAT_ENABLE 1 | 78 | #define AB_REPEAT_ENABLE 1 |
79 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE | 79 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE |
80 | 80 | ||
81 | /* define this if you have a disk storage, i.e. something | ||
82 | that needs spinups and can cause skips when shaked */ | ||
83 | #define HAVE_DISK_STORAGE | ||
84 | |||
81 | /* Define this for LCD backlight available */ | 85 | /* Define this for LCD backlight available */ |
82 | #define HAVE_BACKLIGHT | 86 | #define HAVE_BACKLIGHT |
83 | 87 | ||
diff --git a/firmware/export/config-ipodmini.h b/firmware/export/config-ipodmini.h index eadd3a6b1d..37fb083af4 100644 --- a/firmware/export/config-ipodmini.h +++ b/firmware/export/config-ipodmini.h | |||
@@ -93,6 +93,10 @@ | |||
93 | #define AB_REPEAT_ENABLE 1 | 93 | #define AB_REPEAT_ENABLE 1 |
94 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE | 94 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE |
95 | 95 | ||
96 | /* define this if you have a disk storage, i.e. something | ||
97 | that needs spinups and can cause skips when shaked */ | ||
98 | #define HAVE_DISK_STORAGE | ||
99 | |||
96 | /* Define this for LCD backlight available */ | 100 | /* Define this for LCD backlight available */ |
97 | #define HAVE_BACKLIGHT | 101 | #define HAVE_BACKLIGHT |
98 | 102 | ||
diff --git a/firmware/export/config-ipodmini2g.h b/firmware/export/config-ipodmini2g.h index 259cb2f874..a96e71dbc7 100644 --- a/firmware/export/config-ipodmini2g.h +++ b/firmware/export/config-ipodmini2g.h | |||
@@ -93,6 +93,10 @@ | |||
93 | #define AB_REPEAT_ENABLE 1 | 93 | #define AB_REPEAT_ENABLE 1 |
94 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE | 94 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE |
95 | 95 | ||
96 | /* define this if you have a disk storage, i.e. something | ||
97 | that needs spinups and can cause skips when shaked */ | ||
98 | #define HAVE_DISK_STORAGE | ||
99 | |||
96 | /* Define this for LCD backlight available */ | 100 | /* Define this for LCD backlight available */ |
97 | #define HAVE_BACKLIGHT | 101 | #define HAVE_BACKLIGHT |
98 | 102 | ||
diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h index 4c56d74c72..9b322f2ffd 100644 --- a/firmware/export/config-ipodvideo.h +++ b/firmware/export/config-ipodvideo.h | |||
@@ -78,6 +78,10 @@ | |||
78 | #define AB_REPEAT_ENABLE 1 | 78 | #define AB_REPEAT_ENABLE 1 |
79 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE | 79 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE |
80 | 80 | ||
81 | /* define this if you have a disk storage, i.e. something | ||
82 | that needs spinups and can cause skips when shaked */ | ||
83 | #define HAVE_DISK_STORAGE | ||
84 | |||
81 | /* Define this for LCD backlight available */ | 85 | /* Define this for LCD backlight available */ |
82 | #define HAVE_BACKLIGHT | 86 | #define HAVE_BACKLIGHT |
83 | #define HAVE_BACKLIGHT_BRIGHTNESS | 87 | #define HAVE_BACKLIGHT_BRIGHTNESS |
diff --git a/firmware/export/config-mrobe100.h b/firmware/export/config-mrobe100.h index 6aaa2b005a..03011745eb 100644 --- a/firmware/export/config-mrobe100.h +++ b/firmware/export/config-mrobe100.h | |||
@@ -61,6 +61,10 @@ | |||
61 | 61 | ||
62 | #define AB_REPEAT_ENABLE 1 | 62 | #define AB_REPEAT_ENABLE 1 |
63 | 63 | ||
64 | /* define this if you have a disk storage, i.e. something | ||
65 | that needs spinups and can cause skips when shaked */ | ||
66 | #define HAVE_DISK_STORAGE | ||
67 | |||
64 | /* Define this for LCD backlight available */ | 68 | /* Define this for LCD backlight available */ |
65 | #define HAVE_BACKLIGHT | 69 | #define HAVE_BACKLIGHT |
66 | 70 | ||
diff --git a/firmware/export/config-mrobe500.h b/firmware/export/config-mrobe500.h index b9b8ee65ab..3eab1209f4 100644 --- a/firmware/export/config-mrobe500.h +++ b/firmware/export/config-mrobe500.h | |||
@@ -96,6 +96,10 @@ | |||
96 | /* define this if you have a real-time clock */ | 96 | /* define this if you have a real-time clock */ |
97 | #define CONFIG_RTC RTC_RX5X348AB | 97 | #define CONFIG_RTC RTC_RX5X348AB |
98 | 98 | ||
99 | /* define this if you have a disk storage, i.e. something | ||
100 | that needs spinups and can cause skips when shaked */ | ||
101 | #define HAVE_DISK_STORAGE | ||
102 | |||
99 | /* Define this for LCD backlight available */ | 103 | /* Define this for LCD backlight available */ |
100 | #define HAVE_BACKLIGHT | 104 | #define HAVE_BACKLIGHT |
101 | 105 | ||
diff --git a/firmware/export/config-player.h b/firmware/export/config-player.h index 186bd5a58d..a88e75e743 100644 --- a/firmware/export/config-player.h +++ b/firmware/export/config-player.h | |||
@@ -30,6 +30,10 @@ | |||
30 | /* Define this if you have a DAC3550A */ | 30 | /* Define this if you have a DAC3550A */ |
31 | #define HAVE_DAC3550A | 31 | #define HAVE_DAC3550A |
32 | 32 | ||
33 | /* define this if you have a disk storage, i.e. something | ||
34 | that needs spinups and can cause skips when shaked */ | ||
35 | #define HAVE_DISK_STORAGE | ||
36 | |||
33 | /* Define this for LCD backlight available */ | 37 | /* Define this for LCD backlight available */ |
34 | #define HAVE_BACKLIGHT | 38 | #define HAVE_BACKLIGHT |
35 | 39 | ||
diff --git a/firmware/export/config-recorder.h b/firmware/export/config-recorder.h index b86e31630a..f6ddb88af6 100644 --- a/firmware/export/config-recorder.h +++ b/firmware/export/config-recorder.h | |||
@@ -53,6 +53,10 @@ | |||
53 | /* Define this if you have a MAS3587F */ | 53 | /* Define this if you have a MAS3587F */ |
54 | #define CONFIG_CODEC MAS3587F | 54 | #define CONFIG_CODEC MAS3587F |
55 | 55 | ||
56 | /* define this if you have a disk storage, i.e. something | ||
57 | that needs spinups and can cause skips when shaked */ | ||
58 | #define HAVE_DISK_STORAGE | ||
59 | |||
56 | /* Define this for LCD backlight available */ | 60 | /* Define this for LCD backlight available */ |
57 | #define HAVE_BACKLIGHT | 61 | #define HAVE_BACKLIGHT |
58 | 62 | ||
diff --git a/firmware/export/config-recorderv2.h b/firmware/export/config-recorderv2.h index fd00b78887..5d62ec464c 100644 --- a/firmware/export/config-recorderv2.h +++ b/firmware/export/config-recorderv2.h | |||
@@ -59,6 +59,10 @@ | |||
59 | /* Define this if you have a MAS3587F */ | 59 | /* Define this if you have a MAS3587F */ |
60 | #define CONFIG_CODEC MAS3587F | 60 | #define CONFIG_CODEC MAS3587F |
61 | 61 | ||
62 | /* define this if you have a disk storage, i.e. something | ||
63 | that needs spinups and can cause skips when shaked */ | ||
64 | #define HAVE_DISK_STORAGE | ||
65 | |||
62 | /* Define this for LCD backlight available */ | 66 | /* Define this for LCD backlight available */ |
63 | #define HAVE_BACKLIGHT | 67 | #define HAVE_BACKLIGHT |
64 | 68 | ||
diff --git a/firmware/export/config-tpj1022.h b/firmware/export/config-tpj1022.h index 5307074aa1..6f23b86f06 100644 --- a/firmware/export/config-tpj1022.h +++ b/firmware/export/config-tpj1022.h | |||
@@ -67,6 +67,10 @@ | |||
67 | 67 | ||
68 | #define AB_REPEAT_ENABLE 1 | 68 | #define AB_REPEAT_ENABLE 1 |
69 | 69 | ||
70 | /* define this if you have a disk storage, i.e. something | ||
71 | that needs spinups and can cause skips when shaked */ | ||
72 | #define HAVE_DISK_STORAGE | ||
73 | |||
70 | /* Define this for LCD backlight available */ | 74 | /* Define this for LCD backlight available */ |
71 | #define HAVE_BACKLIGHT | 75 | #define HAVE_BACKLIGHT |
72 | 76 | ||
diff --git a/firmware/mpeg.c b/firmware/mpeg.c index 530de6a372..2503ba11e0 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c | |||
@@ -535,7 +535,7 @@ static void recalculate_watermark(int bitrate) | |||
535 | } | 535 | } |
536 | } | 536 | } |
537 | 537 | ||
538 | #ifndef HAVE_FLASH_STORAGE | 538 | #ifdef HAVE_DISK_STORAGE |
539 | void audio_set_buffer_margin(int seconds) | 539 | void audio_set_buffer_margin(int seconds) |
540 | { | 540 | { |
541 | low_watermark_margin = seconds; | 541 | low_watermark_margin = seconds; |
diff --git a/firmware/usb.c b/firmware/usb.c index ae1fbeb8c0..ab4f0403b9 100644 --- a/firmware/usb.c +++ b/firmware/usb.c | |||
@@ -132,7 +132,7 @@ static void usb_slave_mode(bool on) | |||
132 | 132 | ||
133 | static void try_reboot(void) | 133 | static void try_reboot(void) |
134 | { | 134 | { |
135 | #ifndef HAVE_FLASH_STORAGE | 135 | #ifdef HAVE_DISK_STORAGE |
136 | ata_sleepnow(); /* Immediately spindown the disk. */ | 136 | ata_sleepnow(); /* Immediately spindown the disk. */ |
137 | sleep(HZ*2); | 137 | sleep(HZ*2); |
138 | #endif | 138 | #endif |