summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorSebastian Leonhardt <sebastian.leonhardt@web.de>2014-05-30 00:26:27 +0200
committerSzymon Dziok <b0hoon@o2.pl>2014-06-01 23:25:12 +0200
commit53efa59e12f2de50bdb54e4a590c680063c39e1c (patch)
tree6c90855111fa00bd553891c3dd63b9240b4f5de4 /firmware/export
parent5237b36a858819378618e0d034d4b89c0bea1617 (diff)
downloadrockbox-53efa59e12f2de50bdb54e4a590c680063c39e1c.tar.gz
rockbox-53efa59e12f2de50bdb54e4a590c680063c39e1c.zip
recording on Samsung YH-820/YH-92x
Change-Id: I6eac4cf6c16a322910ad17bfbf3105e330cd0e36 Reviewed-on: http://gerrit.rockbox.org/815 Reviewed-by: Szymon Dziok <b0hoon@o2.pl> Tested: Szymon Dziok <b0hoon@o2.pl>
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/ak4537.h11
-rw-r--r--firmware/export/config/samsungyh820.h2
-rw-r--r--firmware/export/config/samsungyh920.h2
-rw-r--r--firmware/export/config/samsungyh925.h2
4 files changed, 14 insertions, 3 deletions
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 @@
22#ifndef _AK4537_H 22#ifndef _AK4537_H
23#define _AK4537_H 23#define _AK4537_H
24 24
25
26#define AUDIOHW_CAPS (LIN_GAIN_CAP | MIC_GAIN_CAP)
27
25/* Volume goes from -127.0 ... 0 dB in 0.5 dB increments */ 28/* Volume goes from -127.0 ... 0 dB in 0.5 dB increments */
26AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -128, 0, -25) 29AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -128, 0, -25)
30#ifdef HAVE_RECORDING
31/* line input: -23 .. +12dB */
32AUDIOHW_SETTING(LEFT_GAIN, "dB", 0, 1, -23, 12, 0)
33AUDIOHW_SETTING(RIGHT_GAIN, "dB", 0, 1, -23, 12, 0)
34/* mic gain: +15dB fixed +20dB switchable mic preamp gain
35 and the line stage of -23..+12dB make a total range of -8..+47dB */
36AUDIOHW_SETTING(MIC_GAIN, "dB", 0, 1, -8, 47, 20)
37#endif /* HAVE_RECORDING */
27 38
28#define AKC_NUM_REGS 0x11 39#define AKC_NUM_REGS 0x11
29 40
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 @@
7#define MODEL_NAME "Samsung YH-820" 7#define MODEL_NAME "Samsung YH-820"
8 8
9/* define this if you have recording possibility */ 9/* define this if you have recording possibility */
10/* todo #define HAVE_RECORDING */ 10#define HAVE_RECORDING
11 11
12/* Define bitmask of input sources - recordable bitmask can be defined 12/* Define bitmask of input sources - recordable bitmask can be defined
13 explicitly if different */ 13 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 @@
7#define MODEL_NAME "Samsung YH-920" 7#define MODEL_NAME "Samsung YH-920"
8 8
9/* define this if you have recording possibility */ 9/* define this if you have recording possibility */
10/* todo #define HAVE_RECORDING */ 10#define HAVE_RECORDING
11 11
12/* Define bitmask of input sources - recordable bitmask can be defined 12/* Define bitmask of input sources - recordable bitmask can be defined
13 explicitly if different */ 13 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 @@
7#define MODEL_NAME "Samsung YH-925" 7#define MODEL_NAME "Samsung YH-925"
8 8
9/* define this if you have recording possibility */ 9/* define this if you have recording possibility */
10/* todo #define HAVE_RECORDING */ 10#define HAVE_RECORDING
11 11
12/* Define bitmask of input sources - recordable bitmask can be defined 12/* Define bitmask of input sources - recordable bitmask can be defined
13 explicitly if different */ 13 explicitly if different */