summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/audioout-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-07-12 22:25:38 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-07-13 02:42:17 +0200
commita22855ce61b03c71695137d4ffa428e2e43a3544 (patch)
treebda2ecc7d71335521562e978476ca32d87ccc9a4 /firmware/target/arm/imx233/audioout-imx233.h
parent93de093690c660fd4a8b0c5b9d0da2a8d903f301 (diff)
downloadrockbox-a22855ce61b03c71695137d4ffa428e2e43a3544.tar.gz
rockbox-a22855ce61b03c71695137d4ffa428e2e43a3544.tar.bz2
rockbox-a22855ce61b03c71695137d4ffa428e2e43a3544.zip
imx233: add audioout debug info
Change-Id: Iac092de861847e31aba48d2fdc51ae72cd9bd202
Diffstat (limited to 'firmware/target/arm/imx233/audioout-imx233.h')
-rw-r--r--firmware/target/arm/imx233/audioout-imx233.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/audioout-imx233.h b/firmware/target/arm/imx233/audioout-imx233.h
index fba737c72a..c7fcf647a4 100644
--- a/firmware/target/arm/imx233/audioout-imx233.h
+++ b/firmware/target/arm/imx233/audioout-imx233.h
@@ -27,6 +27,23 @@
#include "regs/regs-audioout.h"
+struct imx233_audioout_info_t
+{
+ int freq; // in mHz
+ bool hp_line1;
+ bool dac;
+ int dacvol[2]; // in tenth-dB, l/r
+ bool dacmute[2]; // l/r
+ bool hp;
+ int hpvol[2]; // in tenth-db, l/r
+ bool hpmute[2]; // l/r
+ bool spkr;
+ int spkrvol[2]; // in tenth-db, l/r
+ int spkrmute[2]; // l/r
+ int ss3d; // in tenth-db
+ bool capless;
+};
+
void imx233_audioout_preinit(void);
void imx233_audioout_postinit(void);
void imx233_audioout_close(void);
@@ -39,4 +56,6 @@ void imx233_audioout_select_hp_input(bool line1);
/* value in 1.5dB steps, from 0dB to 6dB */
void imx233_audioout_set_3d_effect(int val);
+struct imx233_audioout_info_t imx233_audioout_get_info(void);
+
#endif /* __audioout_imx233__ */