summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorBoris Gjenero <dreamlayers@rockbox.org>2009-04-06 02:46:42 +0000
committerBoris Gjenero <dreamlayers@rockbox.org>2009-04-06 02:46:42 +0000
commit7c6194078ca607bd5f364e139ba871b3e4ec0204 (patch)
tree0c3b729a4bb77806abc92cb26d8e119466bd8cde /firmware/export
parent02b9c65ea314066b20cc4c391e6e1e69035924c9 (diff)
downloadrockbox-7c6194078ca607bd5f364e139ba871b3e4ec0204.tar.gz
rockbox-7c6194078ca607bd5f364e139ba871b3e4ec0204.zip
FS#10086 - Playback and recording sample rate setting on the 5G iPod
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20635 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-ipodvideo.h6
-rw-r--r--firmware/export/wm8758.h1
2 files changed, 5 insertions, 2 deletions
diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h
index 0ad3b5c7f2..c9f97dcea5 100644
--- a/firmware/export/config-ipodvideo.h
+++ b/firmware/export/config-ipodvideo.h
@@ -21,10 +21,12 @@
21#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN) 21#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN)
22 22
23/* define the bitmask of hardware sample rates */ 23/* define the bitmask of hardware sample rates */
24#define HW_SAMPR_CAPS (SAMPR_CAP_44) 24#define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
25 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
26 SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8)
25 27
26/* define the bitmask of recording sample rates */ 28/* define the bitmask of recording sample rates */
27#define REC_SAMPR_CAPS (SAMPR_CAP_44) 29#define REC_SAMPR_CAPS HW_SAMPR_CAPS
28 30
29/* define this if you have a bitmap LCD display */ 31/* define this if you have a bitmap LCD display */
30#define HAVE_LCD_BITMAP 32#define HAVE_LCD_BITMAP
diff --git a/firmware/export/wm8758.h b/firmware/export/wm8758.h
index 2c7c9e109d..29304b8794 100644
--- a/firmware/export/wm8758.h
+++ b/firmware/export/wm8758.h
@@ -107,6 +107,7 @@ extern void audiohw_set_mixer_vol(int channel1, int channel2);
107#define CLKCTRL_MCLKDIV_6 (5 << 5) 107#define CLKCTRL_MCLKDIV_6 (5 << 5)
108#define CLKCTRL_MCLKDIV_8 (6 << 5) 108#define CLKCTRL_MCLKDIV_8 (6 << 5)
109#define CLKCTRL_MCLKDIV_12 (7 << 5) 109#define CLKCTRL_MCLKDIV_12 (7 << 5)
110#define CLKCTRL_MCLKDIV_MASK (7 << 5)
110#define CLKCTRL_CLKSEL (1 << 8) 111#define CLKCTRL_CLKSEL (1 << 8)
111 112
112#define ADDCTRL 0x07 113#define ADDCTRL 0x07