summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-ondavx747.h9
-rw-r--r--firmware/export/jz4740-codec.h4
2 files changed, 7 insertions, 6 deletions
diff --git a/firmware/export/config-ondavx747.h b/firmware/export/config-ondavx747.h
index ecc7994e11..f3bef714bd 100644
--- a/firmware/export/config-ondavx747.h
+++ b/firmware/export/config-ondavx747.h
@@ -113,9 +113,6 @@
113/* Define this if you have the Jz4740 internal codec */ 113/* Define this if you have the Jz4740 internal codec */
114#define HAVE_JZ4740_CODEC 114#define HAVE_JZ4740_CODEC
115 115
116/* Define this if you have a speaker */
117#define HAVE_SPEAKER
118
119/* define the bitmask of hardware sample rates */ 116/* define the bitmask of hardware sample rates */
120#define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \ 117#define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
121 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \ 118 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
@@ -138,6 +135,8 @@
138/* Hardware controlled charging with monitoring */ 135/* Hardware controlled charging with monitoring */
139#define CONFIG_CHARGING CHARGING_MONITOR 136#define CONFIG_CHARGING CHARGING_MONITOR
140 137
138#define CFG_EXTAL 12000000 /* EXT clock: 12 Mhz */
139
141#ifndef SIMULATOR 140#ifndef SIMULATOR
142 141
143/* Define this if you have a Ingenic JZ4732 */ 142/* Define this if you have a Ingenic JZ4732 */
@@ -146,9 +145,11 @@
146/* define this if the hardware can be powered off while charging */ 145/* define this if the hardware can be powered off while charging */
147#define HAVE_POWEROFF_WHILE_CHARGING 146#define HAVE_POWEROFF_WHILE_CHARGING
148 147
148/* Define this if you have a speaker */
149#define HAVE_SPEAKER
150
149/* Define this to the CPU frequency */ 151/* Define this to the CPU frequency */
150#define CPU_FREQ 336000000 /* CPU clock: 336 MHz */ 152#define CPU_FREQ 336000000 /* CPU clock: 336 MHz */
151#define CFG_EXTAL 12000000 /* EXT clock: 12 Mhz */
152 153
153/* define this if you have a flash memory storage */ 154/* define this if you have a flash memory storage */
154#define HAVE_FLASH_STORAGE 155#define HAVE_FLASH_STORAGE
diff --git a/firmware/export/jz4740-codec.h b/firmware/export/jz4740-codec.h
index 5aab348635..e8751b5141 100644
--- a/firmware/export/jz4740-codec.h
+++ b/firmware/export/jz4740-codec.h
@@ -22,8 +22,8 @@
22#define __JZ4740_CODEC_H_ 22#define __JZ4740_CODEC_H_
23 23
24/* TODO */ 24/* TODO */
25#define VOLUME_MIN -1 25#define VOLUME_MIN -730
26#define VOLUME_MAX 1 26#define VOLUME_MAX 60
27 27
28int tenthdb2master(int db); 28int tenthdb2master(int db);
29void audiohw_set_headphone_vol(int vol_l, int vol_r); 29void audiohw_set_headphone_vol(int vol_l, int vol_r);