From 7c6194078ca607bd5f364e139ba871b3e4ec0204 Mon Sep 17 00:00:00 2001 From: Boris Gjenero Date: Mon, 6 Apr 2009 02:46:42 +0000 Subject: 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 --- firmware/export/config-ipodvideo.h | 6 ++++-- firmware/export/wm8758.h | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'firmware/export') 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 @@ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN) /* define the bitmask of hardware sample rates */ -#define HW_SAMPR_CAPS (SAMPR_CAP_44) +#define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \ + SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \ + SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8) /* define the bitmask of recording sample rates */ -#define REC_SAMPR_CAPS (SAMPR_CAP_44) +#define REC_SAMPR_CAPS HW_SAMPR_CAPS /* define this if you have a bitmap LCD display */ #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); #define CLKCTRL_MCLKDIV_6 (5 << 5) #define CLKCTRL_MCLKDIV_8 (6 << 5) #define CLKCTRL_MCLKDIV_12 (7 << 5) +#define CLKCTRL_MCLKDIV_MASK (7 << 5) #define CLKCTRL_CLKSEL (1 << 8) #define ADDCTRL 0x07 -- cgit v1.2.3