diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-01-11 13:58:41 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-01-29 19:28:03 +0000 |
commit | c1f1d9140407757fab16c418eed09f5517c649d7 (patch) | |
tree | ee75be10480d454ea8a8cbd38cb51d29b7019433 /firmware/export | |
parent | bc5a6385949c9f0a17173f3512aa9a6db9175803 (diff) | |
download | rockbox-c1f1d9140407757fab16c418eed09f5517c649d7.tar.gz rockbox-c1f1d9140407757fab16c418eed09f5517c649d7.zip |
FiiO M3K: audio recording
Recording works now, although I'm sure there will be a few
things that need fine-tuning. A major issue is that writing
to the SD card creates noticable interference, which happens
on the original firmware too but seems worse under Rockbox.
(Since Rockbox waits until RAM fills up before writing data,
the interference will only be heard on >50 MiB recordings.)
Change-Id: I5561dd9668c3bdd34e92f34ef50848aef8c0b7eb
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/ak4376.h | 4 | ||||
-rw-r--r-- | firmware/export/config/fiiom3k.h | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/firmware/export/ak4376.h b/firmware/export/ak4376.h index 0ae156bc37..ad842b2b80 100644 --- a/firmware/export/ak4376.h +++ b/firmware/export/ak4376.h | |||
@@ -22,7 +22,9 @@ | |||
22 | #ifndef __AK4376_H__ | 22 | #ifndef __AK4376_H__ |
23 | #define __AK4376_H__ | 23 | #define __AK4376_H__ |
24 | 24 | ||
25 | #define AUDIOHW_CAPS (FILTER_ROLL_OFF_CAP|POWER_MODE_CAP) | 25 | /* The target config must define this; defining it here would prevent |
26 | the target from supporting audio recording via an alternate codec. */ | ||
27 | /* #define AUDIOHW_CAPS (FILTER_ROLL_OFF_CAP|POWER_MODE_CAP) */ | ||
26 | #define AUDIOHW_HAVE_SHORT2_ROLL_OFF | 28 | #define AUDIOHW_HAVE_SHORT2_ROLL_OFF |
27 | 29 | ||
28 | #define AK4376_MIN_VOLUME (-890) | 30 | #define AK4376_MIN_VOLUME (-890) |
diff --git a/firmware/export/config/fiiom3k.h b/firmware/export/config/fiiom3k.h index 45c2150208..ea97d52d76 100644 --- a/firmware/export/config/fiiom3k.h +++ b/firmware/export/config/fiiom3k.h | |||
@@ -55,11 +55,15 @@ | |||
55 | 55 | ||
56 | /* Codec / audio hardware defines */ | 56 | /* Codec / audio hardware defines */ |
57 | #define HW_SAMPR_CAPS SAMPR_CAP_ALL_192 | 57 | #define HW_SAMPR_CAPS SAMPR_CAP_ALL_192 |
58 | #define REC_SAMPR_CAPS (SAMPR_CAP_ALL_96 & ~SAMPR_CAP_64) | ||
59 | #define INPUT_SRC_CAPS SRC_CAP_MIC | ||
60 | #define AUDIOHW_CAPS (FILTER_ROLL_OFF_CAP|POWER_MODE_CAP|MIC_GAIN_CAP) | ||
61 | #define HAVE_RECORDING | ||
58 | #define HAVE_AK4376 | 62 | #define HAVE_AK4376 |
63 | #define HAVE_X1000_ICODEC_REC | ||
59 | #define HAVE_SW_TONE_CONTROLS | 64 | #define HAVE_SW_TONE_CONTROLS |
60 | #define HAVE_SW_VOLUME_CONTROL | 65 | #define HAVE_SW_VOLUME_CONTROL |
61 | 66 | #define DEFAULT_REC_MIC_GAIN 12 | |
62 | /* TODO: Need to implement recording */ | ||
63 | 67 | ||
64 | /* Button defines */ | 68 | /* Button defines */ |
65 | #define CONFIG_KEYPAD FIIO_M3K_PAD | 69 | #define CONFIG_KEYPAD FIIO_M3K_PAD |