summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/audioout-imx233.h
diff options
context:
space:
mode:
authorLorenzo Miori <memorys60@gmail.com>2013-11-25 18:59:57 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2013-11-25 20:17:12 +0100
commit75c791dabff8e48be18cec8915f79626ae2d0073 (patch)
treee97199db4f922260b7b778ce0f5fdfa135544dc9 /firmware/target/arm/imx233/audioout-imx233.h
parent85578cdc4d441c7197c69ab68dfe7c293331e6c8 (diff)
downloadrockbox-75c791dabff8e48be18cec8915f79626ae2d0073.tar.gz
rockbox-75c791dabff8e48be18cec8915f79626ae2d0073.tar.bz2
rockbox-75c791dabff8e48be18cec8915f79626ae2d0073.zip
imx233: add the possibility to choose audio output coupling mode
via target-defined option Change-Id: I1bffbc7f17a11cf690a771057c2e4a7ba6a5faaa Reviewed-on: http://gerrit.rockbox.org/678 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
Diffstat (limited to 'firmware/target/arm/imx233/audioout-imx233.h')
-rw-r--r--firmware/target/arm/imx233/audioout-imx233.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/audioout-imx233.h b/firmware/target/arm/imx233/audioout-imx233.h
index b5c16767c6..88163e7ad2 100644
--- a/firmware/target/arm/imx233/audioout-imx233.h
+++ b/firmware/target/arm/imx233/audioout-imx233.h
@@ -27,6 +27,14 @@
#include "regs/regs-audioout.h"
+/* target-defined output stage coupling method
+ * its setting is IMX233_AUDIO_COUPLING_MODE and must be set for every target
+ * Use ACM_CAP if output stage (i.e. headphones) have output capacitors,
+ * ACM_CAPLESS (DC-coupled) otherwise.
+ */
+#define ACM_CAPLESS 0
+#define ACM_CAP 1
+
struct imx233_audioout_info_t
{
// NOTE there is a convention here: dac -> dacvol -> dacmute