1
0
Fork 0
forked from len0rd/rockbox

imx233: Enable 96/192K playback for all imx233 targets that have room

Change-Id: Ief00cc9243af3168f0c088520936137b64f3b581
This commit is contained in:
Solomon Peachy 2020-10-03 16:52:59 -04:00
parent c1d4bf290c
commit 1916aca7f3
11 changed files with 35 additions and 26 deletions

View file

@ -11,12 +11,12 @@
/* Define if boot data from bootloader has been enabled for the target */ /* Define if boot data from bootloader has been enabled for the target */
#define HAVE_BOOTDATA #define HAVE_BOOTDATA
#define HW_SAMPR_CAPS SAMPR_CAP_ALL_48 #define HW_SAMPR_CAPS SAMPR_CAP_ALL_192
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING
#define REC_SAMPR_CAPS SAMPR_CAP_ALL_48 #define REC_SAMPR_CAPS SAMPR_CAP_ALL_96
/* Default recording levels */ /* Default recording levels */
#define DEFAULT_REC_MIC_GAIN 23 #define DEFAULT_REC_MIC_GAIN 23

View file

@ -9,12 +9,12 @@
#define MODEL_NUMBER 87 #define MODEL_NUMBER 87
#define MODEL_NAME "Creative ZEN Mozaic" #define MODEL_NAME "Creative ZEN Mozaic"
#define HW_SAMPR_CAPS SAMPR_CAP_ALL_48 #define HW_SAMPR_CAPS SAMPR_CAP_ALL_192
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING
#define REC_SAMPR_CAPS SAMPR_CAP_ALL_48 #define REC_SAMPR_CAPS SAMPR_CAP_ALL_96
/* Default recording levels */ /* Default recording levels */
#define DEFAULT_REC_MIC_GAIN 23 #define DEFAULT_REC_MIC_GAIN 23

View file

@ -9,12 +9,12 @@
#define MODEL_NUMBER 92 #define MODEL_NUMBER 92
#define MODEL_NAME "Creative ZEN V" #define MODEL_NAME "Creative ZEN V"
#define HW_SAMPR_CAPS SAMPR_CAP_ALL_48 #define HW_SAMPR_CAPS SAMPR_CAP_ALL_192
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING
#define REC_SAMPR_CAPS SAMPR_CAP_ALL_48 #define REC_SAMPR_CAPS SAMPR_CAP_ALL_96
/* Default recording levels */ /* Default recording levels */
#define DEFAULT_REC_MIC_GAIN 23 #define DEFAULT_REC_MIC_GAIN 23

View file

@ -9,12 +9,12 @@
#define MODEL_NUMBER 86 #define MODEL_NUMBER 86
#define MODEL_NAME "Creative Zen X-Fi" #define MODEL_NAME "Creative Zen X-Fi"
#define HW_SAMPR_CAPS SAMPR_CAP_ALL_48 #define HW_SAMPR_CAPS SAMPR_CAP_ALL_192
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING
#define REC_SAMPR_CAPS SAMPR_CAP_ALL_48 #define REC_SAMPR_CAPS SAMPR_CAP_ALL_96
/* Default recording levels */ /* Default recording levels */
#define DEFAULT_REC_MIC_GAIN 23 #define DEFAULT_REC_MIC_GAIN 23

View file

@ -11,12 +11,14 @@
/* Define if boot data from bootloader has been enabled for the target */ /* Define if boot data from bootloader has been enabled for the target */
#define HAVE_BOOTDATA #define HAVE_BOOTDATA
// HW supports it but our buffers don't fit.
//#define HW_SAMPR_CAPS SAMPR_CAP_ALL_192
#define HW_SAMPR_CAPS SAMPR_CAP_ALL_48 #define HW_SAMPR_CAPS SAMPR_CAP_ALL_48
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING
#define REC_SAMPR_CAPS SAMPR_CAP_ALL_48 #define REC_SAMPR_CAPS SAMPR_CAP_ALL_96
/* Default recording levels */ /* Default recording levels */
#define DEFAULT_REC_MIC_GAIN 23 #define DEFAULT_REC_MIC_GAIN 23
@ -27,8 +29,6 @@
explicitly if different */ explicitly if different */
#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
/* define this if you have a colour LCD */ /* define this if you have a colour LCD */
#define HAVE_LCD_COLOR #define HAVE_LCD_COLOR

View file

@ -11,12 +11,14 @@
/* Define if boot data from bootloader has been enabled for the target */ /* Define if boot data from bootloader has been enabled for the target */
#define HAVE_BOOTDATA #define HAVE_BOOTDATA
// HW supports it but our buffers don't fit.
//#define HW_SAMPR_CAPS SAMPR_CAP_ALL_192
#define HW_SAMPR_CAPS SAMPR_CAP_ALL_48 #define HW_SAMPR_CAPS SAMPR_CAP_ALL_48
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING
#define REC_SAMPR_CAPS SAMPR_CAP_ALL_48 #define REC_SAMPR_CAPS SAMPR_CAP_ALL_96
/* Default recording levels */ /* Default recording levels */
#define DEFAULT_REC_MIC_GAIN 23 #define DEFAULT_REC_MIC_GAIN 23
@ -27,8 +29,6 @@
explicitly if different */ explicitly if different */
#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
/* define this if you have a colour LCD */ /* define this if you have a colour LCD */
#define HAVE_LCD_COLOR #define HAVE_LCD_COLOR

View file

@ -9,12 +9,14 @@
#define MODEL_NUMBER 94 #define MODEL_NUMBER 94
#define MODEL_NAME "Creative Zen X-Fi Style" #define MODEL_NAME "Creative Zen X-Fi Style"
#define HW_SAMPR_CAPS SAMPR_CAP_ALL_48 // HW can do it but we don't have the IRAM for mix buffers
//#define HW_SAMPR_CAPS SAMPR_CAP_ALL_192
#define HW_SAMPR_CAPS SAMPR_CAP_ALL_96
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING
#define REC_SAMPR_CAPS SAMPR_CAP_ALL_48 #define REC_SAMPR_CAPS SAMPR_CAP_ALL_96
/* Default recording levels */ /* Default recording levels */
#define DEFAULT_REC_MIC_GAIN 23 #define DEFAULT_REC_MIC_GAIN 23

View file

@ -13,12 +13,14 @@
/* define boot redirect file name allows booting from external drives */ /* define boot redirect file name allows booting from external drives */
#define BOOT_REDIR "rockbox_main.fuze+" #define BOOT_REDIR "rockbox_main.fuze+"
// HW can do it but we don't have the IRAM for mix buffers
//#define HW_SAMPR_CAPS SAMPR_CAP_ALL_192
#define HW_SAMPR_CAPS SAMPR_CAP_ALL_48 #define HW_SAMPR_CAPS SAMPR_CAP_ALL_48
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING
#define REC_SAMPR_CAPS SAMPR_CAP_ALL_48 #define REC_SAMPR_CAPS SAMPR_CAP_ALL_96
/* Default recording levels */ /* Default recording levels */
#define DEFAULT_REC_MIC_GAIN 23 #define DEFAULT_REC_MIC_GAIN 23

View file

@ -11,14 +11,14 @@
/* Define if boot data from bootloader has been enabled for the target */ /* Define if boot data from bootloader has been enabled for the target */
#define HAVE_BOOTDATA #define HAVE_BOOTDATA
// HW can do it but we don't have the IRAM for mix buffers
//#define HW_SAMPR_CAPS SAMPR_CAP_ALL_192
#define HW_SAMPR_CAPS SAMPR_CAP_ALL_96 #define HW_SAMPR_CAPS SAMPR_CAP_ALL_96
/* Define bitmask of input sources - recordable bitmask can be defined /* Define bitmask of input sources - recordable bitmask can be defined
explicitly if different */ explicitly if different */
#define INPUT_SRC_CAPS SRC_CAP_FMRADIO #define INPUT_SRC_CAPS SRC_CAP_FMRADIO
/* define this if you have a colour LCD */ /* define this if you have a colour LCD */
#define HAVE_LCD_COLOR #define HAVE_LCD_COLOR
@ -83,9 +83,6 @@
/* Define this to enable morse code input */ /* Define this to enable morse code input */
#define HAVE_MORSE_INPUT #define HAVE_MORSE_INPUT
/* LCD dimensions */ /* LCD dimensions */
#define LCD_WIDTH 240 #define LCD_WIDTH 240
#define LCD_HEIGHT 320 #define LCD_HEIGHT 320
@ -189,5 +186,4 @@
#define BOOTDIR "/.rockbox" #define BOOTDIR "/.rockbox"
#define INCLUDE_TIMEOUT_API #define INCLUDE_TIMEOUT_API

View file

@ -11,14 +11,14 @@
/* Define if boot data from bootloader has been enabled for the target */ /* Define if boot data from bootloader has been enabled for the target */
#define HAVE_BOOTDATA #define HAVE_BOOTDATA
// HW can do it but we don't have the IRAM for mix buffers
//#define HW_SAMPR_CAPS SAMPR_CAP_ALL_192
#define HW_SAMPR_CAPS SAMPR_CAP_ALL_96 #define HW_SAMPR_CAPS SAMPR_CAP_ALL_96
/* Define bitmask of input sources - recordable bitmask can be defined /* Define bitmask of input sources - recordable bitmask can be defined
explicitly if different */ explicitly if different */
#define INPUT_SRC_CAPS SRC_CAP_FMRADIO #define INPUT_SRC_CAPS SRC_CAP_FMRADIO
/* define this if you have a colour LCD */ /* define this if you have a colour LCD */
#define HAVE_LCD_COLOR #define HAVE_LCD_COLOR

View file

@ -0,0 +1,9 @@
#ifndef __FIIOLINUX_CODEC__
#define __FIIOLINUX_CODEC__
#define AUDIOHW_CAPS (FILTER_ROLL_OFF_CAP)
AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -100, 0, -30)
AUDIOHW_SETTING(FILTER_ROLL_OFF, "", 0, 1, 0, 4, 0)
#endif
void audiohw_mute(int mute);