summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-10-18 22:03:29 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-10-18 22:03:29 +0000
commit43673e9e28f6fad84e279ec8e6ded7544a135a76 (patch)
tree3440f7080e39add19785d7c1e336985039093547 /firmware
parentb0a20dbc992be1bc748c8c75953bf37453b444d0 (diff)
downloadrockbox-43673e9e28f6fad84e279ec8e6ded7544a135a76.tar.gz
rockbox-43673e9e28f6fad84e279ec8e6ded7544a135a76.zip
imx233/fuze+: fix codec prototype header
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30796 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/imx233-codec.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/firmware/export/imx233-codec.h b/firmware/export/imx233-codec.h
index 755e5ad768..6c329ccd1a 100644
--- a/firmware/export/imx233-codec.h
+++ b/firmware/export/imx233-codec.h
@@ -21,11 +21,16 @@
21#ifndef __IMX233_CODEC_H_ 21#ifndef __IMX233_CODEC_H_
22#define __IMX233_CODEC_H_ 22#define __IMX233_CODEC_H_
23 23
24/* i.MX233 can boost up to 6dB in DAC mode and 12dB in line mode. Since mic/line
25 * already have adjustable gain, keep lowest of both. With chained DAC volume
26 * and headphone volume, the i.MX233 can achieve < -100dB but stay at -100dB. */
24#define VOLUME_MIN -1000 27#define VOLUME_MIN -1000
25#define VOLUME_MAX -5 28#define VOLUME_MAX 60
26 29
27#define AUDIOHW_CAPS DEPTH_3D_CAP 30#define AUDIOHW_CAPS (DEPTH_3D_CAP | BASS_CAP | TREBLE_CAP)
28 31
29void audiohw_set_volume(int v); 32/* Work with half dB since the i.MX233 doesn't have a better resolution */
33int tenthdb2master(int tdb);
34void audiohw_set_headphone_vol(int vol_l, int vol_r);
30 35
31#endif /* __IMX233_CODEC_H_ */ 36#endif /* __IMX233_CODEC_H_ */