diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/audiohw.h | 2 | ||||
-rw-r--r-- | firmware/export/config.h | 6 | ||||
-rw-r--r-- | firmware/export/config/agptekrocker.h | 2 | ||||
-rw-r--r-- | firmware/export/config/xduoox20.h | 126 | ||||
-rw-r--r-- | firmware/export/config/xduoox3ii.h | 126 | ||||
-rw-r--r-- | firmware/export/rbpaths.h | 2 | ||||
-rw-r--r-- | firmware/export/xduoolinux_codec.h | 7 |
7 files changed, 269 insertions, 2 deletions
diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h index 458fba3412..00bb15812d 100644 --- a/firmware/export/audiohw.h +++ b/firmware/export/audiohw.h | |||
@@ -224,6 +224,8 @@ struct sound_settings_info | |||
224 | #include "codec-dx90.h" | 224 | #include "codec-dx90.h" |
225 | #elif defined(HAVE_ROCKER_CODEC) | 225 | #elif defined(HAVE_ROCKER_CODEC) |
226 | #include "rocker_codec.h" | 226 | #include "rocker_codec.h" |
227 | #elif defined(HAVE_XDUOO_LINUX_CODEC) | ||
228 | #include "rocker_codec.h" | ||
227 | #endif | 229 | #endif |
228 | 230 | ||
229 | /* convert caps into defines */ | 231 | /* convert caps into defines */ |
diff --git a/firmware/export/config.h b/firmware/export/config.h index a41cceff59..c55d489c26 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -171,6 +171,8 @@ | |||
171 | #define XDUOO_X3_PAD 66 | 171 | #define XDUOO_X3_PAD 66 |
172 | #define IHIFI_770_PAD 67 | 172 | #define IHIFI_770_PAD 67 |
173 | #define IHIFI_800_PAD 68 | 173 | #define IHIFI_800_PAD 68 |
174 | #define XDUOO_X3II_PAD 69 | ||
175 | #define XDUOO_X20_PAD 70 | ||
174 | 176 | ||
175 | /* CONFIG_REMOTE_KEYPAD */ | 177 | /* CONFIG_REMOTE_KEYPAD */ |
176 | #define H100_REMOTE 1 | 178 | #define H100_REMOTE 1 |
@@ -624,6 +626,10 @@ Lyre prototype 1 */ | |||
624 | #include "config/agptekrocker.h" | 626 | #include "config/agptekrocker.h" |
625 | #elif defined(XDUOO_X3) | 627 | #elif defined(XDUOO_X3) |
626 | #include "config/xduoox3.h" | 628 | #include "config/xduoox3.h" |
629 | #elif defined(XDUOO_X3II) | ||
630 | #include "config/xduoox3ii.h" | ||
631 | #elif defined(XDUOO_X20) | ||
632 | #include "config/xduoox20.h" | ||
627 | #else | 633 | #else |
628 | /* no known platform */ | 634 | /* no known platform */ |
629 | #endif | 635 | #endif |
diff --git a/firmware/export/config/agptekrocker.h b/firmware/export/config/agptekrocker.h index 172e079721..372287f4b5 100644 --- a/firmware/export/config/agptekrocker.h +++ b/firmware/export/config/agptekrocker.h | |||
@@ -3,7 +3,7 @@ | |||
3 | */ | 3 | */ |
4 | 4 | ||
5 | /* For Rolo and boot loader */ | 5 | /* For Rolo and boot loader */ |
6 | #define MODEL_NUMBER 103//??? | 6 | #define MODEL_NUMBER 105 |
7 | 7 | ||
8 | #define MODEL_NAME "Agptek Rocker" | 8 | #define MODEL_NAME "Agptek Rocker" |
9 | 9 | ||
diff --git a/firmware/export/config/xduoox20.h b/firmware/export/config/xduoox20.h new file mode 100644 index 0000000000..d451ba31f4 --- /dev/null +++ b/firmware/export/config/xduoox20.h | |||
@@ -0,0 +1,126 @@ | |||
1 | /* | ||
2 | * This config file is for the xDuoo X20 | ||
3 | */ | ||
4 | |||
5 | /* For Rolo and boot loader */ | ||
6 | #define MODEL_NUMBER 111 | ||
7 | |||
8 | #define MODEL_NAME "xDuoo X20" | ||
9 | |||
10 | /* LCD dimensions */ | ||
11 | #define LCD_WIDTH 240 | ||
12 | #define LCD_HEIGHT 320 | ||
13 | /* sqrt(240^2 + 320^2) / 2.4 = 166 */ | ||
14 | #define LCD_DPI 166 | ||
15 | |||
16 | #ifndef SIMULATOR | ||
17 | #define CONFIG_PLATFORM (PLATFORM_HOSTED) | ||
18 | #endif | ||
19 | |||
20 | /* define this if you have a bitmap LCD display */ | ||
21 | #define HAVE_LCD_BITMAP | ||
22 | |||
23 | /* define this if you have a colour LCD */ | ||
24 | #define HAVE_LCD_COLOR | ||
25 | |||
26 | #define HAVE_LCD_ENABLE | ||
27 | |||
28 | /* Define this if the LCD can shut down */ | ||
29 | #define HAVE_LCD_SHUTDOWN | ||
30 | |||
31 | /* define this if you want album art for this target */ | ||
32 | #define HAVE_ALBUMART | ||
33 | |||
34 | /* define this to enable bitmap scaling */ | ||
35 | #define HAVE_BMP_SCALING | ||
36 | |||
37 | /* define this to enable JPEG decoding */ | ||
38 | #define HAVE_JPEG | ||
39 | |||
40 | /* define this if you have access to the quickscreen */ | ||
41 | #define HAVE_QUICKSCREEN | ||
42 | |||
43 | /* define this if you would like tagcache to build on this target */ | ||
44 | #define HAVE_TAGCACHE | ||
45 | |||
46 | #define LCD_DEPTH 32 | ||
47 | /* Check that but should not matter */ | ||
48 | #define LCD_PIXELFORMAT XRGB8888 | ||
49 | |||
50 | #define HAVE_BACKLIGHT | ||
51 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
52 | |||
53 | /* Main LCD backlight brightness range and defaults: the backlight driver | ||
54 | * has levels from 0 to 2555. But 0 is off so start at 1. | ||
55 | */ | ||
56 | #define MIN_BRIGHTNESS_SETTING 1 | ||
57 | #define MAX_BRIGHTNESS_SETTING 255 | ||
58 | #define DEFAULT_BRIGHTNESS_SETTING 70 | ||
59 | |||
60 | /* Which backlight fading type? */ | ||
61 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING | ||
62 | |||
63 | /* define this if you have a real-time clock */ | ||
64 | #define CONFIG_RTC APPLICATION | ||
65 | |||
66 | /* The number of bytes reserved for loadable codecs */ | ||
67 | #define CODEC_SIZE 0x80000 | ||
68 | |||
69 | /* The number of bytes reserved for loadable plugins */ | ||
70 | #define PLUGIN_BUFFER_SIZE 0x100000 | ||
71 | |||
72 | /* Define this if you do software codec */ | ||
73 | #define CONFIG_CODEC SWCODEC | ||
74 | |||
75 | #define HAVE_HEADPHONE_DETECTION | ||
76 | |||
77 | /* KeyPad configuration for plugins */ | ||
78 | #define CONFIG_KEYPAD XDUOO_X20_PAD | ||
79 | |||
80 | /* Define this if a programmable hotkey is mapped */ | ||
81 | #define HAVE_HOTKEY | ||
82 | |||
83 | /* define this if the target has volume keys which can be used in the lists */ | ||
84 | #define HAVE_VOLUME_IN_LIST | ||
85 | |||
86 | #ifndef SIMULATOR | ||
87 | /* We have usb power and can detect usb but it is handled by Linux */ | ||
88 | #define HAVE_USB_POWER | ||
89 | |||
90 | #endif | ||
91 | |||
92 | #define CONFIG_BATTERY_MEASURE PERCENTAGE_MEASURE | ||
93 | |||
94 | /* Linux controlls charging, we can monitor */ | ||
95 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
96 | |||
97 | /* define this if the hardware can be powered off while charging */ | ||
98 | #define HAVE_POWEROFF_WHILE_CHARGING | ||
99 | |||
100 | /* same dimensions as gigabeats */ | ||
101 | #define CONFIG_LCD LCD_INGENIC_LINUX | ||
102 | |||
103 | /* Define this if you have a software controlled poweroff */ | ||
104 | #define HAVE_SW_POWEROFF | ||
105 | |||
106 | /* Define this to the CPU frequency */ | ||
107 | #define CPU_FREQ 504000000 | ||
108 | |||
109 | /* No special storage */ | ||
110 | #define CONFIG_STORAGE STORAGE_HOSTFS | ||
111 | #define HAVE_STORAGE_FLUSH | ||
112 | |||
113 | /* Battery */ | ||
114 | #define BATTERY_TYPES_COUNT 1 | ||
115 | |||
116 | /* Audio codec */ | ||
117 | #define HAVE_XDUOO_LINUX_CODEC | ||
118 | |||
119 | /* We don't have hardware controls */ | ||
120 | #define HAVE_SW_TONE_CONTROLS | ||
121 | |||
122 | /* Battery */ | ||
123 | #define BATTERY_CAPACITY_DEFAULT 2400 /* default battery capacity */ | ||
124 | #define BATTERY_CAPACITY_MIN 2400 /* min. capacity selectable */ | ||
125 | #define BATTERY_CAPACITY_MAX 2400 /* max. capacity selectable */ | ||
126 | #define BATTERY_CAPACITY_INC 0 /* capacity increment */ | ||
diff --git a/firmware/export/config/xduoox3ii.h b/firmware/export/config/xduoox3ii.h new file mode 100644 index 0000000000..af63c4f97b --- /dev/null +++ b/firmware/export/config/xduoox3ii.h | |||
@@ -0,0 +1,126 @@ | |||
1 | /* | ||
2 | * This config file is for the xDuoo X3ii | ||
3 | */ | ||
4 | |||
5 | /* For Rolo and boot loader */ | ||
6 | #define MODEL_NUMBER 110 | ||
7 | |||
8 | #define MODEL_NAME "xDuoo X3ii" | ||
9 | |||
10 | /* LCD dimensions */ | ||
11 | #define LCD_WIDTH 240 | ||
12 | #define LCD_HEIGHT 320 | ||
13 | /* sqrt(240^2 + 320^2) / 2.4 = 166 */ | ||
14 | #define LCD_DPI 166 | ||
15 | |||
16 | #ifndef SIMULATOR | ||
17 | #define CONFIG_PLATFORM (PLATFORM_HOSTED) | ||
18 | #endif | ||
19 | |||
20 | /* define this if you have a bitmap LCD display */ | ||
21 | #define HAVE_LCD_BITMAP | ||
22 | |||
23 | /* define this if you have a colour LCD */ | ||
24 | #define HAVE_LCD_COLOR | ||
25 | |||
26 | #define HAVE_LCD_ENABLE | ||
27 | |||
28 | /* Define this if the LCD can shut down */ | ||
29 | #define HAVE_LCD_SHUTDOWN | ||
30 | |||
31 | /* define this if you want album art for this target */ | ||
32 | #define HAVE_ALBUMART | ||
33 | |||
34 | /* define this to enable bitmap scaling */ | ||
35 | #define HAVE_BMP_SCALING | ||
36 | |||
37 | /* define this to enable JPEG decoding */ | ||
38 | #define HAVE_JPEG | ||
39 | |||
40 | /* define this if you have access to the quickscreen */ | ||
41 | #define HAVE_QUICKSCREEN | ||
42 | |||
43 | /* define this if you would like tagcache to build on this target */ | ||
44 | #define HAVE_TAGCACHE | ||
45 | |||
46 | #define LCD_DEPTH 32 | ||
47 | /* Check that but should not matter */ | ||
48 | #define LCD_PIXELFORMAT XRGB8888 | ||
49 | |||
50 | #define HAVE_BACKLIGHT | ||
51 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
52 | |||
53 | /* Main LCD backlight brightness range and defaults: the backlight driver | ||
54 | * has levels from 0 to 2555. But 0 is off so start at 1. | ||
55 | */ | ||
56 | #define MIN_BRIGHTNESS_SETTING 1 | ||
57 | #define MAX_BRIGHTNESS_SETTING 255 | ||
58 | #define DEFAULT_BRIGHTNESS_SETTING 70 | ||
59 | |||
60 | /* Which backlight fading type? */ | ||
61 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING | ||
62 | |||
63 | /* define this if you have a real-time clock */ | ||
64 | #define CONFIG_RTC APPLICATION | ||
65 | |||
66 | /* The number of bytes reserved for loadable codecs */ | ||
67 | #define CODEC_SIZE 0x80000 | ||
68 | |||
69 | /* The number of bytes reserved for loadable plugins */ | ||
70 | #define PLUGIN_BUFFER_SIZE 0x100000 | ||
71 | |||
72 | /* Define this if you do software codec */ | ||
73 | #define CONFIG_CODEC SWCODEC | ||
74 | |||
75 | #define HAVE_HEADPHONE_DETECTION | ||
76 | |||
77 | /* KeyPad configuration for plugins */ | ||
78 | #define CONFIG_KEYPAD XDUOO_X3II_PAD | ||
79 | |||
80 | /* Define this if a programmable hotkey is mapped */ | ||
81 | #define HAVE_HOTKEY | ||
82 | |||
83 | /* define this if the target has volume keys which can be used in the lists */ | ||
84 | #define HAVE_VOLUME_IN_LIST | ||
85 | |||
86 | #ifndef SIMULATOR | ||
87 | /* We have usb power and can detect usb but it is handled by Linux */ | ||
88 | #define HAVE_USB_POWER | ||
89 | |||
90 | #endif | ||
91 | |||
92 | #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE | ||
93 | |||
94 | /* Linux controlls charging, we can monitor */ | ||
95 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
96 | |||
97 | /* define this if the hardware can be powered off while charging */ | ||
98 | #define HAVE_POWEROFF_WHILE_CHARGING | ||
99 | |||
100 | /* same dimensions as gigabeats */ | ||
101 | #define CONFIG_LCD LCD_INGENIC_LINUX | ||
102 | |||
103 | /* Define this if you have a software controlled poweroff */ | ||
104 | #define HAVE_SW_POWEROFF | ||
105 | |||
106 | /* Define this to the CPU frequency */ | ||
107 | #define CPU_FREQ 504000000 | ||
108 | |||
109 | /* No special storage */ | ||
110 | #define CONFIG_STORAGE STORAGE_HOSTFS | ||
111 | #define HAVE_STORAGE_FLUSH | ||
112 | |||
113 | /* Battery */ | ||
114 | #define BATTERY_TYPES_COUNT 1 | ||
115 | |||
116 | /* Audio codec */ | ||
117 | #define HAVE_XDUOO_LINUX_CODEC | ||
118 | |||
119 | /* We don't have hardware controls */ | ||
120 | #define HAVE_SW_TONE_CONTROLS | ||
121 | |||
122 | /* Battery */ | ||
123 | #define BATTERY_CAPACITY_DEFAULT 2000 /* default battery capacity */ | ||
124 | #define BATTERY_CAPACITY_MIN 2000 /* min. capacity selectable */ | ||
125 | #define BATTERY_CAPACITY_MAX 2000 /* max. capacity selectable */ | ||
126 | #define BATTERY_CAPACITY_INC 0 /* capacity increment */ | ||
diff --git a/firmware/export/rbpaths.h b/firmware/export/rbpaths.h index 165dd37494..b95f1614eb 100644 --- a/firmware/export/rbpaths.h +++ b/firmware/export/rbpaths.h | |||
@@ -42,7 +42,7 @@ | |||
42 | 42 | ||
43 | #if !defined(APPLICATION) || defined(SAMSUNG_YPR0) || defined(SAMSUNG_YPR1) || \ | 43 | #if !defined(APPLICATION) || defined(SAMSUNG_YPR0) || defined(SAMSUNG_YPR1) || \ |
44 | defined(DX50) || defined(DX90) || defined(SONY_NWZ_LINUX) || \ | 44 | defined(DX50) || defined(DX90) || defined(SONY_NWZ_LINUX) || \ |
45 | defined(AGPTEK_ROCKER) | 45 | defined(AGPTEK_ROCKER) || defined(XDUOO_X3II) || defined(XDUOO_X20) |
46 | 46 | ||
47 | #if defined(SAMSUNG_YPR0) || defined(SAMSUNG_YPR1) | 47 | #if defined(SAMSUNG_YPR0) || defined(SAMSUNG_YPR1) |
48 | #define HOME_DIR "/mnt/media0" | 48 | #define HOME_DIR "/mnt/media0" |
diff --git a/firmware/export/xduoolinux_codec.h b/firmware/export/xduoolinux_codec.h new file mode 100644 index 0000000000..ccd49f09aa --- /dev/null +++ b/firmware/export/xduoolinux_codec.h | |||
@@ -0,0 +1,7 @@ | |||
1 | #ifndef __XDUOOLINUX_CODEC__ | ||
2 | #define __XDUOOLINUX_CODEC__ | ||
3 | |||
4 | #define AUDIOHW_CAPS (FILTER_ROLL_OFF_CAP) | ||
5 | AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -127, 0, -30) | ||
6 | AUDIOHW_SETTING(FILTER_ROLL_OFF, "", 0, 1, 0, 4, 0) | ||
7 | #endif | ||