path: root/firmware/target/arm/imx233/audioout-imx233.h
AgeCommit message (Collapse)AuthorFilesLines
2016-12-12imx233: slightly rework 3D audio settingAmaury Pouly1-1/+1
The old code made the setting appear as 0dB, 1.5dB, 3dB and 4.5dB when in fact it is 0dB, 3dB, 4.5dB and 6dB. This commit clarifies the code and also fix this at the same time. This imx233 3D enhancement is complete crap anyway but now you can satisfy yourself with 6 dB of pure crap, clearly an enhancement. Change-Id: Ia3e088987c1ff0cdde228905ff70f46476a499a2
2016-05-28imx233: generate register headers using headergen_v2 and update code for itAmaury Pouly1-2/+0
NOTE: this commit does not introduce any change, ideally even the binary should be almost the same. I checked the disassembly by hand and there are only a few differences here and there, mostly the compiler decides to compile very close expressions slightly differently. I tried to run the new code on several targets to make sure and saw no difference. The major syntax changes of the new headers are as follows: - BF_{WR,SET,CLR} are now superpowerful and allows to set several fileds at once: BF_WR(reg, field1(value1), field2(value2), ...) - BF_CS (use like BF_WR) does a write to reg_CLR and then reg_SET instead of RMW - there is no more need for macros like BF_{WR_,SET,CLR}_V, since one can simply BF_WR with field_V(name) - the old BF_SETV macro has no trivial equivalent and is replaced with its its equivalent for BF_WR(reg_SET, ...) I also rename the register headers: "regs/regs-x.h" -> "regs/x.h" to avoid the redundant "regs". Final note: the registers were generated using the following command: ./headergen_v2 -g imx -o ../../firmware/target/arm/imx233/regs/ desc/regs-stmp3{600,700,780}.xml Change-Id: I7485e8b4315a0929a8edb63e7fa1edcaa54b1edc
2014-02-16imx233: add support for speaker on stmp3780Amaury Pouly1-0/+2
Change-Id: I990ca2bd43e12047e257f85ff06f046dfa3f94b3
2013-11-25imx233: add the possibility to choose audio output coupling modeLorenzo Miori1-0/+8
via target-defined option Change-Id: I1bffbc7f17a11cf690a771057c2e4a7ba6a5faaa Reviewed-on: Reviewed-by: Amaury Pouly <>
2013-07-13imx233: fix audio debug screenAmaury Pouly1-1/+2
Change-Id: Iaadd43a28907ebd425a0b7199f067a4fab8e9653
2013-07-13imx233: add audioout debug infoAmaury Pouly1-0/+19
Change-Id: Iac092de861847e31aba48d2fdc51ae72cd9bd202
2013-06-17imx233: fix audioout for stmp3600 and stmp3700, add 3d effectAmaury Pouly1-0/+2
Although the 3D effets sound terrible, add support for it. Change-Id: Ib24be01986a974387b592c6e291d34b196ceb884
2013-06-16imx233: rewrite audioout using new register headersAmaury Pouly1-96/+1
Change-Id: I20dddec437187c0974ac16027548dbe3dd097c59
2012-12-02imx233: try to improve audio qualityAmaury Pouly1-1/+15
Change-Id: Idaee93fae8d407e5968f8571c54957b7b87da3bb
2012-02-03imx233/fuze+: fix a typo, handle volume differently because of the line1/dac ↵Amaury Pouly1-2/+1
mode difference. The headphone volume register value reads differently in Line1 and DAC mode. Since the volume is not set again when switching between playback and radio, we need to remember the hp volume and reapply setting when changing the mode. Change-Id: I8fbd344f78653c19d81a39dd3f680ec6885cb1ec
2011-10-18imx233/fuze+: implement audioout functions (init, volume, frequency); add ↵Amaury Pouly1-0/+95
stubs for audioin git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-09-13imx233/fuze+: implement various audio stubs and update sourceAmaury Pouly1-0/+27
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657