ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
vagrantc has quit [Quit: leaving]
tiop has quit []
apritzel has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
hipboi has joined #linux-sunxi
hexdump01 has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
hipboi has quit [Quit: hipboi]
JohnDoe_71Rus has joined #linux-sunxi
hipboi has joined #linux-sunxi
hipboi has quit []
hipboi has joined #linux-sunxi
hipboi has quit []
Daanct12 has quit [Quit: WeeChat 4.4.2]
Daanct12 has joined #linux-sunxi
hipboi has joined #linux-sunxi
hipboi has quit []
hipboi has joined #linux-sunxi
apritzel has joined #linux-sunxi
ungeskriptet has quit [Quit: The Lounge - https://thelounge.chat]
ungeskriptet has joined #linux-sunxi
ungeskriptet has quit [Quit: The Lounge - https://thelounge.chat]
ungeskriptet has joined #linux-sunxi
Daanct12 has quit [Quit: WeeChat 4.4.2]
apritzel has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
warpme has quit []
hipboi has quit [Quit: hipboi]
aggi has quit [Remote host closed the connection]
aggi has joined #linux-sunxi
<tokyovigilante> apritzel: Will try and find some time tomorrow to come to it, I hadn't had much luck yet with corrected timings. Thanks for your comments and testig on the list
warpme has joined #linux-sunxi
ungeskriptet has quit [Quit: The Lounge - https://thelounge.chat]
ungeskriptet has joined #linux-sunxi
ftg has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
warpme has quit []
hallyn has joined #linux-sunxi
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
digetx has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
warpme has joined #linux-sunxi
digetx has joined #linux-sunxi
apritzel has joined #linux-sunxi
montjoie has quit [Remote host closed the connection]
Schimsalabim has quit [Read error: Connection reset by peer]
<apritzel> tokyovigilante: if you need any help, let me know. I added .fixed_post_div=2, ORed CCU_FEATURE_FIXED_POSTDIV to .features, then used the correct dividers in the fixed factor clocks, and it worked
<apritzel> and I tested it on the Tanix TX1, Transpeed 8K618-T, and X96 Mate: worked nicely everywhere
dsimic is now known as Guest6815
dsimic has joined #linux-sunxi
Guest6815 has quit [Ping timeout: 480 seconds]
<apritzel> ... and on the OrangePi Zero3 as well, with a 3.5mm jack wired to the header pins
warpme has quit []
apritzel has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
hentai has joined #linux-sunxi
<veremootz> 👍 for audio phatz :D
apritzel has joined #linux-sunxi
digetx has quit [Ping timeout: 480 seconds]
<tokyovigilante> Nice. I think the SDM dividers are possibly still wrong, the first value should just be the CCU frequency, ie 24 or 22 MHz, so I've set them as per the datasheet but then the multipliers are different again. I think the reason it's working for you is that they don't match and then fall back to fixed timing. Strictly speaking the SDM doesn't have to be enabled for output to work but seeme to be a good idea to have
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Quasar 5.2.4, revision: 5.2.4+git-7601-7e87d9ac7, build type: debug, sources date: 20160102, built on: 2024-09-17 16:31:20 UTC 5.2.4+git-7601-]
<apritzel> are you sure? From my (very shallow) research in the last days this is about "fractional-N PLL / sigma-delta modulation", which seems to be proper rocket science.
<apritzel> So the integer part of the equation is provided by register 0x078, and the "pattern" takes care of the rest, AFAIK the encoding is non-trivial and not documented?
tiop has joined #linux-sunxi
<apritzel> 22.5792 MHz = 90316800 / 4 = 24MHz * 22.5792 / 3 / 2
<apritzel> so N(int)=22, p=3, m0=2, and the pattern does the .5792 part
<apritzel> tokyovigilante: so what exactly makes you believe it is still wrong? Have you measured the output somehow exactly, and the samplerate is not 100% correct?
digetx has joined #linux-sunxi
<apritzel> so while I have something playing (at 22050 Hz), I read @0x3001078(PLL_AUDIO_CTRL_REG) as 0xb9021501, and @0x3001178(PLL_AUDIO_PAT0_CTRL_REG) as 0xc001288d, which looks correct to me: SDM is enabled
<apritzel> and the register bits match the values in the driver
Raqbit has joined #linux-sunxi
<apritzel> actually the encoding doesn't seem so mysterious after all, bits [16:0] are just the fractional part (so x/2^17)
<apritzel> which is actually even described in the H616 manual, at least half way: 3.3.3.9. Spread Spectrum Function
tiop has quit []
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi