From 53efa59e12f2de50bdb54e4a590c680063c39e1c Mon Sep 17 00:00:00 2001 From: Sebastian Leonhardt Date: Fri, 30 May 2014 00:26:27 +0200 Subject: recording on Samsung YH-820/YH-92x Change-Id: I6eac4cf6c16a322910ad17bfbf3105e330cd0e36 Reviewed-on: http://gerrit.rockbox.org/815 Reviewed-by: Szymon Dziok Tested: Szymon Dziok --- firmware/export/ak4537.h | 11 +++++++++++ firmware/export/config/samsungyh820.h | 2 +- firmware/export/config/samsungyh920.h | 2 +- firmware/export/config/samsungyh925.h | 2 +- 4 files changed, 14 insertions(+), 3 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/ak4537.h b/firmware/export/ak4537.h index d66205af7c..1c09b5aa2f 100644 --- a/firmware/export/ak4537.h +++ b/firmware/export/ak4537.h @@ -22,8 +22,19 @@ #ifndef _AK4537_H #define _AK4537_H + +#define AUDIOHW_CAPS (LIN_GAIN_CAP | MIC_GAIN_CAP) + /* Volume goes from -127.0 ... 0 dB in 0.5 dB increments */ AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -128, 0, -25) +#ifdef HAVE_RECORDING +/* line input: -23 .. +12dB */ +AUDIOHW_SETTING(LEFT_GAIN, "dB", 0, 1, -23, 12, 0) +AUDIOHW_SETTING(RIGHT_GAIN, "dB", 0, 1, -23, 12, 0) +/* mic gain: +15dB fixed +20dB switchable mic preamp gain + and the line stage of -23..+12dB make a total range of -8..+47dB */ +AUDIOHW_SETTING(MIC_GAIN, "dB", 0, 1, -8, 47, 20) +#endif /* HAVE_RECORDING */ #define AKC_NUM_REGS 0x11 diff --git a/firmware/export/config/samsungyh820.h b/firmware/export/config/samsungyh820.h index 0b9c603850..5e4c79d3ab 100644 --- a/firmware/export/config/samsungyh820.h +++ b/firmware/export/config/samsungyh820.h @@ -7,7 +7,7 @@ #define MODEL_NAME "Samsung YH-820" /* define this if you have recording possibility */ -/* todo #define HAVE_RECORDING */ +#define HAVE_RECORDING /* Define bitmask of input sources - recordable bitmask can be defined explicitly if different */ diff --git a/firmware/export/config/samsungyh920.h b/firmware/export/config/samsungyh920.h index 04487bc2db..61e6bf0017 100644 --- a/firmware/export/config/samsungyh920.h +++ b/firmware/export/config/samsungyh920.h @@ -7,7 +7,7 @@ #define MODEL_NAME "Samsung YH-920" /* define this if you have recording possibility */ -/* todo #define HAVE_RECORDING */ +#define HAVE_RECORDING /* Define bitmask of input sources - recordable bitmask can be defined explicitly if different */ diff --git a/firmware/export/config/samsungyh925.h b/firmware/export/config/samsungyh925.h index aeb9cb6829..ad04f6c81e 100644 --- a/firmware/export/config/samsungyh925.h +++ b/firmware/export/config/samsungyh925.h @@ -7,7 +7,7 @@ #define MODEL_NAME "Samsung YH-925" /* define this if you have recording possibility */ -/* todo #define HAVE_RECORDING */ +#define HAVE_RECORDING /* Define bitmask of input sources - recordable bitmask can be defined explicitly if different */ -- cgit v1.2.3