summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-02-26 18:36:58 +0000
committerJens Arnold <amiconn@rockbox.org>2007-02-26 18:36:58 +0000
commit93712c97eef684c75b542ca1a30c4e9d1f3fc3fc (patch)
tree281cfadaac11c20b5cd66a97631f0400f69a7b4e
parent9b9e22731c137ef3f3febde7d4a914e1adfe6253 (diff)
downloadrockbox-93712c97eef684c75b542ca1a30c4e9d1f3fc3fc.tar.gz
rockbox-93712c97eef684c75b542ca1a30c4e9d1f3fc3fc.zip
WM8711/8721/8731 have no tone controls, so enable the software tone controls for the respective targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12499 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/export/config-h10.h5
-rw-r--r--firmware/export/config-h10_5gb.h5
-rw-r--r--firmware/export/config-ipod3g.h3
-rw-r--r--firmware/export/config-ipodmini.h3
-rw-r--r--firmware/export/config-ipodmini2g.h3
-rw-r--r--firmware/sound.c2
6 files changed, 17 insertions, 4 deletions
diff --git a/firmware/export/config-h10.h b/firmware/export/config-h10.h
index 08497ad52d..a66a387f02 100644
--- a/firmware/export/config-h10.h
+++ b/firmware/export/config-h10.h
@@ -65,9 +65,12 @@
65/* The number of bytes reserved for loadable plugins */ 65/* The number of bytes reserved for loadable plugins */
66#define PLUGIN_BUFFER_SIZE 0x80000 66#define PLUGIN_BUFFER_SIZE 0x80000
67 67
68/* Define this if you have the WM8975 audio codec */ 68/* Define this if you have the WM8731 audio codec */
69#define HAVE_WM8731 69#define HAVE_WM8731
70 70
71/* WM8731 has no tone controls, so we use the software ones */
72#define HAVE_SW_TONE_CONTROLS
73
71#define AB_REPEAT_ENABLE 1 74#define AB_REPEAT_ENABLE 1
72 75
73/* FM Tuner */ 76/* FM Tuner */
diff --git a/firmware/export/config-h10_5gb.h b/firmware/export/config-h10_5gb.h
index 9fd3edfdb6..fa643b01b9 100644
--- a/firmware/export/config-h10_5gb.h
+++ b/firmware/export/config-h10_5gb.h
@@ -59,9 +59,12 @@
59/* The number of bytes reserved for loadable plugins */ 59/* The number of bytes reserved for loadable plugins */
60#define PLUGIN_BUFFER_SIZE 0x80000 60#define PLUGIN_BUFFER_SIZE 0x80000
61 61
62/* Define this if you have the WM8975 audio codec */ 62/* Define this if you have the WM8731 audio codec */
63#define HAVE_WM8731 63#define HAVE_WM8731
64 64
65/* WM8731 has no tone controls, so we use the software ones */
66#define HAVE_SW_TONE_CONTROLS
67
65#define AB_REPEAT_ENABLE 1 68#define AB_REPEAT_ENABLE 1
66 69
67/* FM Tuner */ 70/* FM Tuner */
diff --git a/firmware/export/config-ipod3g.h b/firmware/export/config-ipod3g.h
index b893e5c30c..d97b5ac886 100644
--- a/firmware/export/config-ipod3g.h
+++ b/firmware/export/config-ipod3g.h
@@ -62,6 +62,9 @@
62/* Define this if you have the WM8731L audio codec */ 62/* Define this if you have the WM8731L audio codec */
63#define HAVE_WM8731 63#define HAVE_WM8731
64 64
65/* WM8731 has no tone controls, so we use the software ones */
66#define HAVE_SW_TONE_CONTROLS
67
65/* Define this for LCD backlight available */ 68/* Define this for LCD backlight available */
66#define CONFIG_BACKLIGHT BL_IPOD3G /* port controlled */ 69#define CONFIG_BACKLIGHT BL_IPOD3G /* port controlled */
67 70
diff --git a/firmware/export/config-ipodmini.h b/firmware/export/config-ipodmini.h
index 687c55e3b0..df5da35f4c 100644
--- a/firmware/export/config-ipodmini.h
+++ b/firmware/export/config-ipodmini.h
@@ -62,6 +62,9 @@
62/* Define this if you have the WM8721 audio codec */ 62/* Define this if you have the WM8721 audio codec */
63#define HAVE_WM8721 /* actually WM8731 but no recording */ 63#define HAVE_WM8721 /* actually WM8731 but no recording */
64 64
65/* WM8721 has no tone controls, so we use the software ones */
66#define HAVE_SW_TONE_CONTROLS
67
65#define AB_REPEAT_ENABLE 1 68#define AB_REPEAT_ENABLE 1
66#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE 69#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
67 70
diff --git a/firmware/export/config-ipodmini2g.h b/firmware/export/config-ipodmini2g.h
index 105d1d78ed..aa5bef2df0 100644
--- a/firmware/export/config-ipodmini2g.h
+++ b/firmware/export/config-ipodmini2g.h
@@ -62,6 +62,9 @@
62/* Define this if you have the WM8721 audio codec */ 62/* Define this if you have the WM8721 audio codec */
63#define HAVE_WM8721 /* actually WM8731 but no recording */ 63#define HAVE_WM8721 /* actually WM8731 but no recording */
64 64
65/* WM8721 has no tone controls, so we use the software ones */
66#define HAVE_SW_TONE_CONTROLS
67
65#define AB_REPEAT_ENABLE 1 68#define AB_REPEAT_ENABLE 1
66#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE 69#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
67 70
diff --git a/firmware/sound.c b/firmware/sound.c
index a2b4e96e81..01d76a0a39 100644
--- a/firmware/sound.c
+++ b/firmware/sound.c
@@ -75,8 +75,6 @@ static const struct sound_settings_info sound_settings_table[] = {
75 [SOUND_TREBLE] = {"dB", 0, 1, -6, 9, 0, sound_set_treble}, 75 [SOUND_TREBLE] = {"dB", 0, 1, -6, 9, 0, sound_set_treble},
76#elif defined(HAVE_WM8731) || defined(HAVE_WM8721) 76#elif defined(HAVE_WM8731) || defined(HAVE_WM8721)
77 [SOUND_VOLUME] = {"dB", 0, 1, -74, 6, -25, sound_set_volume}, 77 [SOUND_VOLUME] = {"dB", 0, 1, -74, 6, -25, sound_set_volume},
78 [SOUND_BASS] = {"dB", 0, 1, -6, 9, 0, sound_set_bass},
79 [SOUND_TREBLE] = {"dB", 0, 1, -6, 9, 0, sound_set_treble},
80#elif (CONFIG_CPU == PNX0101) 78#elif (CONFIG_CPU == PNX0101)
81 [SOUND_VOLUME] = {"dB", 0, 1, -48, 15, 0, sound_set_volume}, 79 [SOUND_VOLUME] = {"dB", 0, 1, -48, 15, 0, sound_set_volume},
82#elif defined(HAVE_PP5024_CODEC) 80#elif defined(HAVE_PP5024_CODEC)