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 - Publicly Logged on https://irclog.whitequark.org/linux-amlogic
jakogut_ has quit [Ping timeout: 256 seconds]
sputnik_ has quit [*.net *.split]
mayorga has quit [Ping timeout: 277 seconds]
sputnik_ has joined #linux-amlogic
libv has quit [*.net *.split]
dlan has quit [*.net *.split]
wens has quit [*.net *.split]
nashpa has quit [*.net *.split]
douardda has quit [*.net *.split]
dlan has joined #linux-amlogic
libv has joined #linux-amlogic
wens has joined #linux-amlogic
nashpa has joined #linux-amlogic
douardda has joined #linux-amlogic
cyrozap has quit [*.net *.split]
gnufan has quit [*.net *.split]
phh has quit [*.net *.split]
jakogut has quit [*.net *.split]
naobsd has quit [*.net *.split]
cyrozap has joined #linux-amlogic
naobsd has joined #linux-amlogic
jakogut has joined #linux-amlogic
phh has joined #linux-amlogic
gnufan has joined #linux-amlogic
ChanServ has quit [*.net *.split]
mag has quit [*.net *.split]
xdarklight has quit [*.net *.split]
shadeslayer has quit [*.net *.split]
Ivanovic has quit [*.net *.split]
brujah has quit [*.net *.split]
edcragg has quit [*.net *.split]
jelly has quit [*.net *.split]
Simonious_ has quit [*.net *.split]
mastertheknife has quit [*.net *.split]
gab has quit [*.net *.split]
gnufan has quit [*.net *.split]
phh has quit [*.net *.split]
jakogut has quit [*.net *.split]
naobsd has quit [*.net *.split]
cyrozap has quit [*.net *.split]
libv has quit [*.net *.split]
dlan has quit [*.net *.split]
wens has quit [*.net *.split]
nashpa has quit [*.net *.split]
douardda has quit [*.net *.split]
sputnik_ has quit [*.net *.split]
nemunaire has quit [*.net *.split]
lvrp16 has quit [*.net *.split]
saintdev has quit [*.net *.split]
Guest15584 has quit [*.net *.split]
LoysO has quit [*.net *.split]
cosm has quit [*.net *.split]
vagrantc has quit [*.net *.split]
[TheBug] has quit [*.net *.split]
aballier has quit [*.net *.split]
droman0 has quit [*.net *.split]
scc23456 has quit [*.net *.split]
miceopede has quit [*.net *.split]
Pix has quit [*.net *.split]
Elpaulo has quit [*.net *.split]
webczat has quit [*.net *.split]
return0e_ has quit [*.net *.split]
naobsd has joined #linux-amlogic
dlan has joined #linux-amlogic
[TheBug] has joined #linux-amlogic
commavir has joined #linux-amlogic
Pix has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
vagrantc has quit [Quit: leaving]
mayorga has joined #linux-amlogic
sputnik_ has quit [Read error: Connection reset by peer]
sputnik_ has joined #linux-amlogic
lissyx has joined #linux-amlogic
Barada has joined #linux-amlogic
gnufan has quit [Ping timeout: 264 seconds]
jakogut has quit [Remote host closed the connection]
lissyx has quit [Ping timeout: 248 seconds]
fedux has joined #linux-amlogic
gnufan has joined #linux-amlogic
return0e_ has quit []
lissyx has joined #linux-amlogic
fedux has quit []
a5m has joined #linux-amlogic
cthugha has joined #linux-amlogic
cthugha is now known as ldevulder
afaerber has joined #linux-amlogic
Guest97734 has joined #linux-amlogic
<Guest97734> Minimize bitcoin BTC while browsing and working without slowing down your PC. https://getcryptotab.com/718967 https://www.youtube.com/watch?v=luzqQN3kL4g&t=166s
Guest97734 has quit [Quit: Page closed]
chewitt has joined #linux-amlogic
<chewitt> jbrunet: ping!
<jbrunet> chewitt: pong!
<chewitt> :)
<chewitt> since I bumped from 4.16.anything to 4.17-rc's I am seeing a ton of this in dmesg
<chewitt> [ 187.783493] meson-i2s-dai meson-i2s-dai.0.auto: Unable set to the i2s clock rates
<chewitt> [ 187.783501] meson-i2s-dai meson-i2s-dai.0.auto: ASoC: can't set meson-i2s-dai.0.auto hw params: -22
<chewitt> narmstrong thinks it may be clock changes
<chewitt> this is the kernel patch set i'm using
<chewitt> b-* are current "waiting to go upstream" patches
<chewitt> d-* are the initial HDMI audio patches that one of the LE team created; adding multi-channel output
<chewitt> it was working okay (some bugs to hunt, but working) on 4.16.x
<chewitt> any ideas?
<jbrunet> Unlikely to be clock related
<jbrunet> at least not directly
<jbrunet> look at the code : "Unable set to the i2s clock rates " is reported when __bclks_set_rate() fails
<jbrunet> IIRC -22 is -EINVAL which means fs is not a multiple of 64
<jbrunet> It worth pointing out that this code (and this part in particular) is far from finalized
<jbrunet> Did you specifiy an mclk factor in your sound card DT ?
<chewitt> mclk-fs = <0x00000080>;
<chewitt> ^ from the dtb
<chewitt> mclk-fs = <128>;
<chewitt> ^ from dts
<jbrunet> when the error happen, you could dump the clock, see want you got
<jbrunet> We indeed changed a few things in the clock tree in last cycle. xdarklight already found a few mistakes
<chewitt> can you explain how I dump the clock?
<jbrunet> Maybe there are other things we missed, or I could be this audio driver, which is still fragile as it is
<jbrunet> cat /sys/kernel/debug/clk/clk_summary (which debugfs mounted there , of course)
<jbrunet> s/which/with
<jbrunet> what sample rate are you trying to play exactly ?
<chewitt> i'm not
<chewitt> this is on cold boot
<jbrunet> This trace happen asoc is preparing a playback, and setting the clock for a particular ... so yes you are
<jbrunet> This trace happens when asoc is preparing a playback, and is setting the clock for a particular sample rate ... so yes you are
<chewitt> Kodi starts and enumerates alsa for devices
<jbrunet> Does more than t
<jbrunet> I can't look at the driver right now, I'll try later on. In the meantime you try to check meson_i2s_dai_set_sysclk() and see what clock rate is requested and what you actually get (add a few printk and clk_get_rate())
<jbrunet> it should be the the sample rate * mclk-fs ... which you reported being 128 but I mainly see 256 in your patch list
<jbrunet> It is expected that the frequency actually set is a bit off what is requested ... but it should be fairly close
nashpa has quit [Quit: Going away]
<jbrunet> In your trace "cts_amclk 0 0 0 5709664"
<jbrunet> 5709664 / 128 = 44600 ... odd
<jbrunet> I would not expect 44100 to be that off
<chewitt> ^ that's the dts for the box
<jbrunet> ok
<chewitt> I see the same on wetek hub/play2 which have dts in the mainline tree
<chewitt> current box is gxl/s905d .. hub/play2 are gxbb based
<chewitt> this is what Kodi shows in the log .. just for info http://ix.io/1bIy
<chewitt> I forget exactly what the code is doing, but opening the device and reading properties
<chewitt> it's very well proven code, so I'm confident there's no issue there
<jbrunet> I'm telling you there is an issue, I'm telling that ,as a far as the audio driver is concerned, you are preparing a playback
<jbrunet> I'm *NOT* ;)
<jbrunet> knowing the sample rate used would help
Elpaulo has quit [Read error: Connection reset by peer]
Elpaulo has joined #linux-amlogic
<chewitt> an educated hunch would be 44100
Barada has quit [Quit: Barada]
<chewitt> but I'm asking Kodi devs for input
<chewitt> jbrunet: comment from a colleague who saw something similar with rockchip hardware; this was needed
<jbrunet> I think I found the problem. Could you try this https://pastebin.com/d7tKByyz
<jbrunet> I probably end up removing this driver completely
<jbrunet> Its purpose was to force the PLL to select higher rate (with significant post divider)
<jbrunet> but it is actually better to select some "magic rate" and stop the rate propagation
<chewitt> am rebuilding the kernel
<chewitt> that seems to work
<chewitt> http://ix.io/1bJ7 detecting hardware fine now :)
<chewitt> the remaining audio problem I had when testing on 4.16 was that audio just drops out after a random time period
<chewitt> forcing an audio hardware change in Kodi, e.g. switching from HDMI (alsa) to pulse output and back to HDMI again, reawakens audio
<chewitt> nothing logged in dmesg
<chewitt> nothing logged on the Kodi side
<chewitt> completely independent of the audio format being played.. can be 2-channel mp3 or mult-channel dts
a5m has quit [Remote host closed the connection]
lissyx has quit [Ping timeout: 260 seconds]
vagrantc has joined #linux-amlogic
lissyx has joined #linux-amlogic
<chewitt> ^ ignore
lissyx has quit [Ping timeout: 252 seconds]
afaerber has quit [Quit: Leaving]
jakogut has joined #linux-amlogic
jakogut has quit [Remote host closed the connection]
jakogut has joined #linux-amlogic
Ivanovic_ has joined #linux-amlogic
sputnik__ has joined #linux-amlogic
lissyx has joined #linux-amlogic
shadeslayer_ has joined #linux-amlogic
sputnik__ has quit [Ping timeout: 260 seconds]
sputnik__ has joined #linux-amlogic
xdarklight_ has joined #linux-amlogic
mag- has joined #linux-amlogic
sputnik_ has quit [*.net *.split]
mag has quit [*.net *.split]
xdarklight has quit [*.net *.split]
shadeslayer has quit [*.net *.split]
Ivanovic has quit [*.net *.split]
brujah has quit [*.net *.split]
Ivanovic_ is now known as Ivanovic
brujah has joined #linux-amlogic
ldevulder has quit [Ping timeout: 260 seconds]
fedux has joined #linux-amlogic
trem has joined #linux-amlogic
fedux has quit []
lissyx has quit [Ping timeout: 240 seconds]
fedux has joined #linux-amlogic
dsd has joined #linux-amlogic
trem has quit [Quit: Leaving]
ldevulder has joined #linux-amlogic
fedux has quit []
chewitt has quit [Read error: Connection reset by peer]
chewitt has joined #linux-amlogic
return0e has joined #linux-amlogic
return0e has quit [Read error: Connection reset by peer]
return0e_ has joined #linux-amlogic
dsd has quit [Quit: Lost terminal]
return0e has joined #linux-amlogic
return0e_ has quit [Ping timeout: 256 seconds]
return0e has quit []