narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - official channel moved from Freenode - publicly logged on https://libera.irclog.whitequark.org/linux-amlogic
shoragan has quit [Quit: quit]
shoragan has joined #linux-amlogic
jacobk has joined #linux-amlogic
montjoie has quit [Ping timeout: 245 seconds]
montjoie has joined #linux-amlogic
shoragan has quit [Read error: Connection reset by peer]
shoragan has joined #linux-amlogic
camus has quit [Ping timeout: 246 seconds]
camus has joined #linux-amlogic
jacobk has quit [Ping timeout: 264 seconds]
jdp_ has joined #linux-amlogic
jacobk has joined #linux-amlogic
buzzmarshall has quit [Quit: Konversation terminated!]
jacobk has quit [Ping timeout: 246 seconds]
Danct12 has joined #linux-amlogic
jdp_ has quit [Ping timeout: 246 seconds]
ldevulder has joined #linux-amlogic
ldevulder has quit [Remote host closed the connection]
<jbrunet> hexdump0815: you don't pick your pll. Because there is usually more consumers than plls, each one is set to match a rate family (48k, 44.1k, 64k) multiplied by 32 x 24 for the different bit width. The result is then multiplied by 2 until the pll maximum supported rate is reached.
<jbrunet> When the audio driver requests a rate (say 48k), the clock framework will automatically reparent the audio clock with pll giving the best matching result
<jbrunet> Looking at your plls, it seems fine. mpll0 is set for 48k (and derivatives), mpll1: 44.1k, mpll2: 64k
<jbrunet> and cts_amclk is possibly set for 44.1k x 8ch x 32bits
<jbrunet> so if the wav you are playing is encoded with 48k and you are playing at 44.1k, then yes - the playback will be slow.
ldevulder has joined #linux-amlogic
rockosov has joined #linux-amlogic
luka177 has quit [Ping timeout: 272 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 240 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
luka177 has joined #linux-amlogic
rockosov has quit [Quit: WeeChat 3.4-dev]
f_ has joined #linux-amlogic
f_ has quit [Ping timeout: 272 seconds]
Danct12 has quit [Quit: WeeChat 4.0.0]
vagrantc has joined #linux-amlogic
naoki has quit [Quit: naoki]
luka177 has quit [Remote host closed the connection]
luka177 has joined #linux-amlogic
jacobk has joined #linux-amlogic
vagrantc has quit [Quit: leaving]
jacobk has quit [Ping timeout: 246 seconds]
GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
jacobk has joined #linux-amlogic
hexdump0815 has joined #linux-amlogic
<hexdump0815> jbrunet: thanks for your response - i think i understand part of it - so clocks are assigned automatically and we seem to have proper clocks for 32,44.1 and 48khz around
vagrantc has joined #linux-amlogic
<hexdump0815> what i do not understand is why does for instance a video in firefox on the working box is playing at the proper speed and one on the non working box at a too slow speed? both have about the same setup
<hexdump0815> is the audio hw setup on such boxes able to "physically" play 32, 44.1 and 48khz? it seems like it is the case to me
<hexdump0815> my experience so far was that firefox/pulseaudio/alsa usually negotiates the proper sample rate between what is being played and what the hardware is capable of and worst case will resample accordingly
<hexdump0815> so far i never had any issues with wrong speed sound on any analog output with linux yet - except in this case
buzzmarshall has joined #linux-amlogic
jacobk has quit [Read error: Connection reset by peer]
<hexdump0815> ok - i did some tests with jackd/qjackctl which allows me to set all the audio params like sameple rate etc. and i can set the audio device properly to 32/44.1/48 and the current setting is reflected well in /proc/asound/card0/pcm0p/sub0/hw_params
<hexdump0815> in parallel i can see that in the clk_summary everything is rearranged accordingly so that the audio clock is derived from the best mpllx
<hexdump0815> and i can run firefox via pulseaudio over jack and still speed is too slow/pitch too low ... i guess this hardware is really broken and some part of the audio hw is running internally with some wrong clocks resulting in this mismatch
<hexdump0815> in the end its a tv box and broken or wrongly wired hardware is not unlikely :)
BlueMatt has quit [Ping timeout: 260 seconds]
BlueMatt has joined #linux-amlogic
kilobyte_ch has quit [Ping timeout: 245 seconds]
jdp_ has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
hexdump0815 has quit [Ping timeout: 246 seconds]
hexdump0815 has joined #linux-amlogic
naoki has joined #linux-amlogic