summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/codec-jz4760.c
AgeCommit message (Collapse)AuthorFilesLines
2020-08-08jz4760: Move 11/22/44/88KHz back onto the PLLSolomon Peachy1-8/+16
PLL1 clock for those frequencies has been dropped from 508 to 169.5 MHz, so it's still a respectable reduction. (I'm not sure how/why it ever worked with the XTAL source, but it did, and was off by an audible amount) Change-Id: I614d87e7dfdfe9210702b9c646d3863c06d6780b
2020-08-07jz4760: Major clocking improvements for audio PLLSolomon Peachy1-37/+55
* for <= 48KHz, BCLK must be 256*freq (ie bdiv = 4) * for <= 96KHz, BCLK must be 128*freq (ie bdiv = 2) * for 11/22/44/88 KHz, disable PLL1 and run off XTAL * cut PLL1 with 12/24/48/98 KHz audio from 516->86MHz * cut PLL1 with 8/16/32/64 KHz audio from 426->106.5MHz This should result in significant power savings for common 44.1KHz audio playback, and pretty good savings for everything else. As an added bonus: * enable de-emphasis filters at 32, 44.1, and 48 KHz Change-Id: Ie59067cd46c47e62abf4a32c53519efad104d6c8
2020-08-07jz4760: Fixes in PLL calculation and reportingSolomon Peachy1-1/+1
Change-Id: I890c661fbff549de5a224d90e3fbda34c71b3a7e
2020-08-07jz4760: Don't enable PLL1 until we need audio.Solomon Peachy1-12/+18
Change-Id: I6320ee9ac809da93c80e571d45f01e22c5bd1c40
2019-01-04Add HAVE_LINEOUT_DETECTION and associated logicSolomon Peachy1-5/+27
This allows targets to automatically switch audio settings when the line out is plugged/unplugged. Only hooked up on the xDuoo X3, but there are other potential users. Change-Id: Ic46a329bc955cca2e2ad0335ca16295eab24ad59
2018-09-20jz7460: Silence codec when changing playback frequency/modeSolomon Peachy1-2/+6
Silences some annoying clicks. Change-Id: I3d32d4b33c0ccc61877e10f5af97fe05084d66e5
2018-07-28Add cleaned-up xDuoo X3 supportSolomon Peachy1-0/+293
Cleaned up, rebased, and forward-ported from the xvortex fork. (original credit to vsoftster@gmail.com) Change-Id: Ibcc023a0271ea81e901450a88317708c2683236d Signed-off-by: Solomon Peachy <pizza@shaftnet.org>