summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-08-29 21:15:27 +0000
committerJens Arnold <amiconn@rockbox.org>2005-08-29 21:15:27 +0000
commitd6c054575b4561b4c657565ecb4ff82565fa6c78 (patch)
treec05a7f619a2580a8ae3ee29e863f076d1065c398 /firmware/export
parent99a0598c284471342fcda1fdcba90d4b666bfbb3 (diff)
downloadrockbox-d6c054575b4561b4c657565ecb4ff82565fa6c78.tar.gz
rockbox-d6c054575b4561b4c657565ecb4ff82565fa6c78.zip
Renamed CONFIG_HWCODEC and MASNONE to the more appropriate CONFIG_CODEC and SWCODEC, respectively.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7416 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-fmrecorder.h2
-rw-r--r--firmware/export/config-gmini120.h2
-rw-r--r--firmware/export/config-gminisp.h2
-rw-r--r--firmware/export/config-h100.h2
-rw-r--r--firmware/export/config-h120.h2
-rw-r--r--firmware/export/config-h300.h2
-rw-r--r--firmware/export/config-iaudiox5.h2
-rw-r--r--firmware/export/config-ondiofm.h2
-rw-r--r--firmware/export/config-ondiosp.h2
-rw-r--r--firmware/export/config-player.h2
-rw-r--r--firmware/export/config-recorder.h2
-rw-r--r--firmware/export/config-recorderv2.h2
-rw-r--r--firmware/export/config.h4
-rw-r--r--firmware/export/id3.h6
-rw-r--r--firmware/export/mas.h12
-rw-r--r--firmware/export/mp3_playback.h2
-rw-r--r--firmware/export/mpeg.h2
-rw-r--r--firmware/export/sound.h2
18 files changed, 26 insertions, 26 deletions
diff --git a/firmware/export/config-fmrecorder.h b/firmware/export/config-fmrecorder.h
index c53388984f..cf2e65addf 100644
--- a/firmware/export/config-fmrecorder.h
+++ b/firmware/export/config-fmrecorder.h
@@ -29,7 +29,7 @@
29#ifndef SIMULATOR 29#ifndef SIMULATOR
30 30
31/* Define this if you have a MAS3587F */ 31/* Define this if you have a MAS3587F */
32#define CONFIG_HWCODEC MAS3587F 32#define CONFIG_CODEC MAS3587F
33 33
34/* Define this if you have a SH7034 */ 34/* Define this if you have a SH7034 */
35#define CONFIG_CPU SH7034 35#define CONFIG_CPU SH7034
diff --git a/firmware/export/config-gmini120.h b/firmware/export/config-gmini120.h
index 18019464e3..c833435dea 100644
--- a/firmware/export/config-gmini120.h
+++ b/firmware/export/config-gmini120.h
@@ -38,7 +38,7 @@
38#define CONFIG_I2C I2C_GMINI 38#define CONFIG_I2C I2C_GMINI
39 39
40/* Define this if you do software codec */ 40/* Define this if you do software codec */
41#define CONFIG_HWCODEC MASNONE 41#define CONFIG_CODEC SWCODEC
42 42
43/* Type of mobile power, FIXME: probably different, make new type */ 43/* Type of mobile power, FIXME: probably different, make new type */
44#define CONFIG_BATTERY BATT_LIION2200 44#define CONFIG_BATTERY BATT_LIION2200
diff --git a/firmware/export/config-gminisp.h b/firmware/export/config-gminisp.h
index 2881471bc1..982e8f3725 100644
--- a/firmware/export/config-gminisp.h
+++ b/firmware/export/config-gminisp.h
@@ -32,7 +32,7 @@
32#define CONFIG_I2C I2C_GMINI 32#define CONFIG_I2C I2C_GMINI
33 33
34/* Define this if you do software codec */ 34/* Define this if you do software codec */
35#define CONFIG_HWCODEC MASNONE 35#define CONFIG_CODEC SWCODEC
36 36
37/* Type of mobile power, FIXME: probably different, make new type */ 37/* Type of mobile power, FIXME: probably different, make new type */
38#define CONFIG_BATTERY BATT_LIION2200 38#define CONFIG_BATTERY BATT_LIION2200
diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h
index 1fd73c25d3..bdb1b1a163 100644
--- a/firmware/export/config-h100.h
+++ b/firmware/export/config-h100.h
@@ -31,7 +31,7 @@
31#define CONFIG_REMOTE_KEYPAD H100_REMOTE 31#define CONFIG_REMOTE_KEYPAD H100_REMOTE
32 32
33/* Define this if you do software codec */ 33/* Define this if you do software codec */
34#define CONFIG_HWCODEC MASNONE 34#define CONFIG_CODEC SWCODEC
35 35
36/* Define this if you have an remote lcd */ 36/* Define this if you have an remote lcd */
37#define HAVE_REMOTE_LCD 37#define HAVE_REMOTE_LCD
diff --git a/firmware/export/config-h120.h b/firmware/export/config-h120.h
index a1828efad2..2691a8a693 100644
--- a/firmware/export/config-h120.h
+++ b/firmware/export/config-h120.h
@@ -27,7 +27,7 @@
27#define CONFIG_REMOTE_KEYPAD H100_REMOTE 27#define CONFIG_REMOTE_KEYPAD H100_REMOTE
28 28
29/* Define this if you do software codec */ 29/* Define this if you do software codec */
30#define CONFIG_HWCODEC MASNONE 30#define CONFIG_CODEC SWCODEC
31 31
32/* Define this if you have an remote lcd */ 32/* Define this if you have an remote lcd */
33#define HAVE_REMOTE_LCD 33#define HAVE_REMOTE_LCD
diff --git a/firmware/export/config-h300.h b/firmware/export/config-h300.h
index 251b6912b3..df97fd245d 100644
--- a/firmware/export/config-h300.h
+++ b/firmware/export/config-h300.h
@@ -25,7 +25,7 @@
25#define CONFIG_REMOTE_KEYPAD H300_REMOTE 25#define CONFIG_REMOTE_KEYPAD H300_REMOTE
26 26
27/* Define this if you do software codec */ 27/* Define this if you do software codec */
28#define CONFIG_HWCODEC MASNONE 28#define CONFIG_CODEC SWCODEC
29 29
30/* Define this if you have an remote lcd */ 30/* Define this if you have an remote lcd */
31#define HAVE_REMOTE_LCD 31#define HAVE_REMOTE_LCD
diff --git a/firmware/export/config-iaudiox5.h b/firmware/export/config-iaudiox5.h
index e2a170af66..f7d18c829e 100644
--- a/firmware/export/config-iaudiox5.h
+++ b/firmware/export/config-iaudiox5.h
@@ -24,7 +24,7 @@
24#define CONFIG_KEYPAD IAUDIO_X5_PAD 24#define CONFIG_KEYPAD IAUDIO_X5_PAD
25 25
26/* Define this if you do software codec */ 26/* Define this if you do software codec */
27#define CONFIG_HWCODEC MASNONE 27#define CONFIG_CODEC SWCODEC
28 28
29/* Define this if you have an remote lcd */ 29/* Define this if you have an remote lcd */
30#define HAVE_REMOTE_LCD 30#define HAVE_REMOTE_LCD
diff --git a/firmware/export/config-ondiofm.h b/firmware/export/config-ondiofm.h
index 1b2857668a..a384bae5b6 100644
--- a/firmware/export/config-ondiofm.h
+++ b/firmware/export/config-ondiofm.h
@@ -28,7 +28,7 @@
28#define CONFIG_CPU SH7034 28#define CONFIG_CPU SH7034
29 29
30/* Define this if you have a MAS3587F */ 30/* Define this if you have a MAS3587F */
31#define CONFIG_HWCODEC MAS3587F 31#define CONFIG_CODEC MAS3587F
32 32
33/* Define this to the CPU frequency */ 33/* Define this to the CPU frequency */
34#define CPU_FREQ 12000000 34#define CPU_FREQ 12000000
diff --git a/firmware/export/config-ondiosp.h b/firmware/export/config-ondiosp.h
index 7ccda3257b..f3ba51209b 100644
--- a/firmware/export/config-ondiosp.h
+++ b/firmware/export/config-ondiosp.h
@@ -21,7 +21,7 @@
21#define CONFIG_CPU SH7034 21#define CONFIG_CPU SH7034
22 22
23/* Define this if you have a MAS3539F */ 23/* Define this if you have a MAS3539F */
24#define CONFIG_HWCODEC MAS3539F 24#define CONFIG_CODEC MAS3539F
25 25
26/* Define this to the CPU frequency */ 26/* Define this to the CPU frequency */
27#define CPU_FREQ 12000000 27#define CPU_FREQ 12000000
diff --git a/firmware/export/config-player.h b/firmware/export/config-player.h
index 70858a1636..c2dd7572b7 100644
--- a/firmware/export/config-player.h
+++ b/firmware/export/config-player.h
@@ -20,7 +20,7 @@
20#define CONFIG_CPU SH7034 20#define CONFIG_CPU SH7034
21 21
22/* Define this if you have a MAS3507D */ 22/* Define this if you have a MAS3507D */
23#define CONFIG_HWCODEC MAS3507D 23#define CONFIG_CODEC MAS3507D
24 24
25/* Define this if you have a DAC3550A */ 25/* Define this if you have a DAC3550A */
26#define HAVE_DAC3550A 26#define HAVE_DAC3550A
diff --git a/firmware/export/config-recorder.h b/firmware/export/config-recorder.h
index 51cdb79321..4df6fbfc6d 100644
--- a/firmware/export/config-recorder.h
+++ b/firmware/export/config-recorder.h
@@ -23,7 +23,7 @@
23#ifndef SIMULATOR 23#ifndef SIMULATOR
24 24
25/* Define this if you have a MAS3587F */ 25/* Define this if you have a MAS3587F */
26#define CONFIG_HWCODEC MAS3587F 26#define CONFIG_CODEC MAS3587F
27 27
28/* Define this if you have a SH7034 */ 28/* Define this if you have a SH7034 */
29#define CONFIG_CPU SH7034 29#define CONFIG_CPU SH7034
diff --git a/firmware/export/config-recorderv2.h b/firmware/export/config-recorderv2.h
index b2d6d01669..da0bb41f80 100644
--- a/firmware/export/config-recorderv2.h
+++ b/firmware/export/config-recorderv2.h
@@ -29,7 +29,7 @@
29#define CONFIG_CPU SH7034 29#define CONFIG_CPU SH7034
30 30
31/* Define this if you have a MAS3587F */ 31/* Define this if you have a MAS3587F */
32#define CONFIG_HWCODEC MAS3587F 32#define CONFIG_CODEC MAS3587F
33 33
34/* Define this if you have a FM Recorder key system */ 34/* Define this if you have a FM Recorder key system */
35#define HAVE_FMADC 1 35#define HAVE_FMADC 1
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 1463656d03..bd817dcb2f 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -28,11 +28,11 @@
28#define S1A0903X01 0x01 /* Samsung */ 28#define S1A0903X01 0x01 /* Samsung */
29#define TEA5767 0x02 /* Philips */ 29#define TEA5767 0x02 /* Philips */
30 30
31/* CONFIG_HWCODEC */ 31/* CONFIG_CODEC */
32#define MAS3587F 3587 32#define MAS3587F 3587
33#define MAS3507D 3507 33#define MAS3507D 3507
34#define MAS3539F 3539 34#define MAS3539F 3539
35#define MASNONE 1 /* if codec is done by SW */ 35#define SWCODEC 1 /* if codec is done by SW */
36 36
37/* CONFIG_CPU */ 37/* CONFIG_CPU */
38#define SH7034 7034 38#define SH7034 7034
diff --git a/firmware/export/id3.h b/firmware/export/id3.h
index abb354b233..5deebd41de 100644
--- a/firmware/export/id3.h
+++ b/firmware/export/id3.h
@@ -28,14 +28,14 @@
28enum { 28enum {
29 AFMT_UNKNOWN = 1, /* Unknown file format */ 29 AFMT_UNKNOWN = 1, /* Unknown file format */
30 30
31#if CONFIG_HWCODEC==MASNONE 31#if CONFIG_CODEC==SWCODEC
32 AFMT_MPA_L1, /* MPEG Audio layer 1 */ 32 AFMT_MPA_L1, /* MPEG Audio layer 1 */
33#endif 33#endif
34 34
35 AFMT_MPA_L2, /* MPEG Audio layer 2 */ 35 AFMT_MPA_L2, /* MPEG Audio layer 2 */
36 AFMT_MPA_L3, /* MPEG Audio layer 3 */ 36 AFMT_MPA_L3, /* MPEG Audio layer 3 */
37 37
38#if CONFIG_HWCODEC==MASNONE 38#if CONFIG_CODEC==SWCODEC
39 AFMT_PCM_WAV, /* Uncompressed PCM in a WAV file */ 39 AFMT_PCM_WAV, /* Uncompressed PCM in a WAV file */
40 AFMT_OGG_VORBIS, /* Ogg Vorbis */ 40 AFMT_OGG_VORBIS, /* Ogg Vorbis */
41 AFMT_FLAC, /* FLAC */ 41 AFMT_FLAC, /* FLAC */
@@ -118,7 +118,7 @@ struct mp3entry {
118 118
119 /* replaygain support */ 119 /* replaygain support */
120 120
121#if CONFIG_HWCODEC == MASNONE 121#if CONFIG_CODEC == SWCODEC
122 char* track_gain_string; 122 char* track_gain_string;
123 char* album_gain_string; 123 char* album_gain_string;
124 long track_gain; /* 7.24 signed fixed point. 0 for no gain. */ 124 long track_gain; /* 7.24 signed fixed point. 0 for no gain. */
diff --git a/firmware/export/mas.h b/firmware/export/mas.h
index f682fc676e..d25a1538ca 100644
--- a/firmware/export/mas.h
+++ b/firmware/export/mas.h
@@ -27,7 +27,7 @@
27/* 27/*
28 MAS I2C defs 28 MAS I2C defs
29*/ 29*/
30#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 30#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
31#define MAS_ADR 0x3c 31#define MAS_ADR 0x3c
32#define MAS_DEV_WRITE (MAS_ADR | 0x00) 32#define MAS_DEV_WRITE (MAS_ADR | 0x00)
33#define MAS_DEV_READ (MAS_ADR | 0x01) 33#define MAS_DEV_READ (MAS_ADR | 0x01)
@@ -38,7 +38,7 @@
38#endif 38#endif
39 39
40/* registers..*/ 40/* registers..*/
41#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 41#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
42#define MAS_DATA_WRITE 0x68 42#define MAS_DATA_WRITE 0x68
43#define MAS_DATA_READ 0x69 43#define MAS_DATA_READ 0x69
44#define MAS_CODEC_WRITE 0x6c 44#define MAS_CODEC_WRITE 0x6c
@@ -62,7 +62,7 @@
62#define MAS_REG_KPRESCALE 0xe7 62#define MAS_REG_KPRESCALE 0xe7
63#define MAS_REG_KBASS 0x6b 63#define MAS_REG_KBASS 0x6b
64#define MAS_REG_KTREBLE 0x6f 64#define MAS_REG_KTREBLE 0x6f
65#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 65#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
66#define MAS_REG_KMDB_SWITCH 0x21 66#define MAS_REG_KMDB_SWITCH 0x21
67#define MAS_REG_KMDB_STR 0x22 67#define MAS_REG_KMDB_STR 0x22
68#define MAS_REG_KMDB_HAR 0x23 68#define MAS_REG_KMDB_HAR 0x23
@@ -78,7 +78,7 @@
78/* 78/*
79 * MAS commands 79 * MAS commands
80 */ 80 */
81#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 81#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
82#define MAS_CMD_READ_ANCILLARY 0x50 82#define MAS_CMD_READ_ANCILLARY 0x50
83#define MAS_CMD_FAST_PRG_DL 0x60 83#define MAS_CMD_FAST_PRG_DL 0x60
84#define MAS_CMD_READ_IC_VER 0x70 84#define MAS_CMD_READ_IC_VER 0x70
@@ -101,7 +101,7 @@
101/* 101/*
102 * MAS D0 memory cells (MAS3587F / MAS3539F) 102 * MAS D0 memory cells (MAS3587F / MAS3539F)
103 */ 103 */
104#if CONFIG_HWCODEC == MAS3587F 104#if CONFIG_CODEC == MAS3587F
105#define MAS_D0_APP_SELECT 0x7f6 105#define MAS_D0_APP_SELECT 0x7f6
106#define MAS_D0_APP_RUNNING 0x7f7 106#define MAS_D0_APP_RUNNING 0x7f7
107#define MAS_D0_ENCODER_CONTROL 0x7f0 107#define MAS_D0_ENCODER_CONTROL 0x7f0
@@ -120,7 +120,7 @@
120#define MAS_D0_MPEG_STATUS_2 0xfd2 120#define MAS_D0_MPEG_STATUS_2 0xfd2
121#define MAS_D0_CRC_ERROR_COUNT 0xfd3 121#define MAS_D0_CRC_ERROR_COUNT 0xfd3
122 122
123#elif CONFIG_HWCODEC == MAS3539F 123#elif CONFIG_CODEC == MAS3539F
124#define MAS_D0_APP_SELECT 0x34b 124#define MAS_D0_APP_SELECT 0x34b
125#define MAS_D0_APP_RUNNING 0x34c 125#define MAS_D0_APP_RUNNING 0x34c
126/* no encoder :( */ 126/* no encoder :( */
diff --git a/firmware/export/mp3_playback.h b/firmware/export/mp3_playback.h
index 3611c1c9c1..772eafe971 100644
--- a/firmware/export/mp3_playback.h
+++ b/firmware/export/mp3_playback.h
@@ -32,7 +32,7 @@ void mp3_init(int volume, int bass, int treble, int balance, int loudness,
32 bool superbass); 32 bool superbass);
33 33
34/* exported just for mpeg.c, to keep the recording there */ 34/* exported just for mpeg.c, to keep the recording there */
35#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 35#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
36void demand_irq_enable(bool on); 36void demand_irq_enable(bool on);
37#endif 37#endif
38 38
diff --git a/firmware/export/mpeg.h b/firmware/export/mpeg.h
index d8dea3d143..6ce3b47275 100644
--- a/firmware/export/mpeg.h
+++ b/firmware/export/mpeg.h
@@ -43,7 +43,7 @@
43/* For ID3 info and VBR header */ 43/* For ID3 info and VBR header */
44#define MPEG_RESERVED_HEADER_SPACE (4096 + 1500) 44#define MPEG_RESERVED_HEADER_SPACE (4096 + 1500)
45 45
46#if (CONFIG_HWCODEC == MAS3587F) || defined(SIMULATOR) 46#if (CONFIG_CODEC == MAS3587F) || defined(SIMULATOR)
47void mpeg_init_recording(void); 47void mpeg_init_recording(void);
48void mpeg_record(const char *filename); 48void mpeg_record(const char *filename);
49void mpeg_new_file(const char *filename); 49void mpeg_new_file(const char *filename);
diff --git a/firmware/export/sound.h b/firmware/export/sound.h
index 9f4cd60ae8..772e2d6655 100644
--- a/firmware/export/sound.h
+++ b/firmware/export/sound.h
@@ -54,7 +54,7 @@ int sound_val2phys(int setting, int value);
54const char *sound_unit(int setting); 54const char *sound_unit(int setting);
55int sound_numdecimals(int setting); 55int sound_numdecimals(int setting);
56int sound_steps(int setting); 56int sound_steps(int setting);
57#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) || defined(SIMULATOR) 57#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) || defined(SIMULATOR)
58void sound_set_pitch(int permille); 58void sound_set_pitch(int permille);
59int sound_get_pitch(void); 59int sound_get_pitch(void);
60#endif 60#endif