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
jacobk has quit [Ping timeout: 246 seconds]
vagrantc has quit [Quit: leaving]
jacobk has joined #linux-amlogic
camus has joined #linux-amlogic
lyudess has joined #linux-amlogic
Lyude has quit [Read error: Connection reset by peer]
GNUtoo has quit [Ping timeout: 240 seconds]
GNUtoo has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
luka177 has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
JohnnyonFlame has quit [Read error: Connection reset by peer]
JohnnyonFlame has joined #linux-amlogic
buzzmarshall has quit [Quit: Konversation terminated!]
JohnnyonFlame has quit [Ping timeout: 250 seconds]
JohnnyonFlame has joined #linux-amlogic
<xdarklight> minute: \o/ - that's good news!
<xdarklight> minute: and indeed, you found a missing patch (it should be the only one)
<xdarklight> minute: I'll submit the patch upstream either tonight or on Sunday
JohnnyonFlame has quit [Read error: Connection reset by peer]
JohnnyonFlame has joined #linux-amlogic
zkrx has quit [Ping timeout: 240 seconds]
zkrx has joined #linux-amlogic
montjoie has quit [Ping timeout: 246 seconds]
montjoie has joined #linux-amlogic
JohnnyonFlame has quit [Ping timeout: 245 seconds]
montjoie has quit [Ping timeout: 245 seconds]
montjoie has joined #linux-amlogic
<narmstrong> xdarklight: nice collab with jernej :-)
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
camus has quit [Ping timeout: 246 seconds]
alexeymrvz has joined #linux-amlogic
<alexeymrvz> Hi narmstrong! Yesterday I sent v1 patch series of Meson SM driver realization (uboot, https://lore.kernel.org/all/CAPnjgZ1AqUYxAU0BNhxZLXc+y_h5XKbuoLBDekbkqzaJeon-1Q@mail.gmail.com/). Simon Glass told me, what we need to use remoteproc uclass for such driver instead of firmware uclass. I read the docs, but architecturally I didn't understand how
<alexeymrvz> exactly I should remake patchseries. Which API from struct dm_rproc_ops need to be implemented?
<narmstrong> alexeymrvz: yeah I don't understand either
<narmstrong> alexeymrvz: for me the driver looks fine
<alexeymrvz> Okay, I will ask Simon in mailing list what he meant. Perhaps inattentively looked at the patchset. Thank you.
<narmstrong> alexeymrvz: emphatize it's an ARM SMC fw interface, so nothing to do with remoteproc
<narmstrong> alexeymrvz: I'll be the one who merges it, so no big deal here
<alexeymrvz> narmstrong yeah got it
tolszak has joined #linux-amlogic
<narmstrong> BTW I'll be OoO for the next 3 weeks, so I'll have very limited connectivity, so anything urgent should be done today :-) or in 3 weeks time!
<alexeymrvz> Today I am ready to send some fixes (v2, etc), if  this needed, if you want to pick up patch series today.
<alexeymrvz> but overall it doesn't matter to me
<alexeymrvz> today or in 3 weeks :)
<narmstrong> in 3 weeks it's fine for both linux & u-boot
alexeymrvz has quit [Quit: Client closed]
camus has joined #linux-amlogic
alexeymrvz has joined #linux-amlogic
alexeymrvz has quit [Client Quit]
f_ has joined #linux-amlogic
gis has quit [Ping timeout: 258 seconds]
JohnnyonFlame has joined #linux-amlogic
gis has joined #linux-amlogic
f11f12 has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
f11f12 has quit [Quit: Leaving]
luka177 has joined #linux-amlogic
JohnnyonFlame has quit [Ping timeout: 245 seconds]
gabes has quit [Quit: The Lounge - https://thelounge.chat]
gabes has joined #linux-amlogic
JohnnyonFlame has joined #linux-amlogic
<minute> hmm, is there any experience with running pipewire/wireplumber on a311d?
<minute> it only gives me a "pro audio" profile and 3 volume sliders that don't seem to affect anything. alsa works, though
<minute> oh, pw-play does actually work
<f_> I seem to remember that using PipeWire on S905 created issues
<minute> ok, it has fixed itself now
<minute> now i have "stereo output" profile in pavucontrol and can switch between headphones and speakers
<f_> at some point it wouldn't play sound anymore, it would just play noise.
<f_> But sometimes it actually worked fine.
<narmstrong> Alsa UCM is missing for those platforms
<f_> Had severe issues with PipeWire on SDM845 though, my device had an Alsa UCM
<f_> it got fixed by then, but I'm told that call audio broke.
* f_ used to use mainline linux on their Pocophone F1.
<minute> narmstrong: aha, i haven't actually looked into how alsa UCM works
<minute> ah, my output is mono
<f_> I'll create an Alsa UCM for my KII Pro soonish™
<f_> For now I just added a note in the pmOS device page
<minute> are these FRDDR etc lanes stereo?
<minute> hmmm why is audio only arriving at the left channel
<jbrunet> FRDDR in a playback DMA
<minute> ah
<minute> so it doesn't care about something like channels i guess?
<minute> i have FRDDR_A SINK 1 SEL on "OUT 1"
<jbrunet> It is the PCM playback device you'll see from userspace
<minute> and FRDDR_A SRC 1 EN
<minute> jbrunet: hm ok
<jbrunet> On the A311D each FRDDR has 3 output path (meaning it can be connected to 3 downstream elements simultaneously). Each path has 8 possible routes
<jbrunet> So the control here says that output #1 is connected to OUT1, which on the A311D is TDMOUT_B
<minute> jbrunet: aha! and TDMOUT_B is something like "SAI" on other platforms?
<minute> i.e. a certain I2S output?
<jbrunet> You'll TDMOUT_B SRC_SEL set to "IN 0" for this to work ... that's the way the HW ensure there is a one-on-one mapping to between FRDDR paths and Formatters
buzzmarshall has joined #linux-amlogic
<minute> jbrunet: ahhh. so input and output paths have to agree explicitly?
<jbrunet> for the outpout yes. This is how the HW works
<minute> after rebooting, i can see that in alsamixer the wm8960 volumes are all the way up on the left channel and 0 on the right channel... i wonder what's causing that, hmm
<minute> jbrunet: ok thanks
<jbrunet> The routing on this SoC is a bit hairy but fairly flexible
<minute> is there support for hdmi audio btw? HDMITX etc are mentioned in alsa
<jbrunet> yes
<minute> oh, neat
<phh> fwiw hdmitx audio is a bit weird. there is no hdmitx audio output. you take another output, like spdif, or i2s, and you tell hdmitx to use that audio output as its source
<f_> Weird
<f_> But it works!
<jbrunet> It is not weird at all. Like everything else, audio is routed and no specfic DMA is tied to an output
<f_> Sure
<minute> phh: oh ok? so it is "routed through" internally?
<phh> jbrunet: uh? unless I misunderstood things, the output called "spdif" actually goes to spdif pinmux?
<jbrunet> Yes to both questions
<jbrunet> spdif also goes to the HDMI controller but it is not supported by the synopsys hdmi driver AFAIK
<jbrunet> Pinmux only handle the SoC pad function selection. What comes on a particular internal audio pad depends on the audio routing. That's not related to pinctrl
<minute> ok, i don't understand how i can route something to this spdif in alsa though
<minute> is SPDIF one of the 2 TDMOUTs or another OUT?
<jbrunet> TDM means "time division multiplexing". It produces things like i2s. not spdif
<minute> ah.
<jbrunet> spdif is another encoder
<minute> ok, so i have to then set FRDRR_A SINK 1 SEL to an OUT past 2 or something?
<minute> hmm, dsi stopped working for me, sigh
<jbrunet> see EE_AUDIO_FRDDR_A_CTRL0 10:8 in the datasheet
naoki has quit [Ping timeout: 245 seconds]
<f_> Looking at my code again, I see lots of mistakes lol
<f_> I'm not very well concentrated at this and I get distracted very easily I guess.
<f_> But let's fix all that up.
<f_> (TF-A BL2 porting)
<f_> (writing new DDR init code)
rpardini has joined #linux-amlogic
rpardini has quit [Client Quit]
luka177 has quit [Read error: Connection reset by peer]
JerryXiao has quit [Quit: Bye]
JerryXiao has joined #linux-amlogic
tolszak has quit [Ping timeout: 246 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
<f_> I'm 50% sure the issue is in DMC init.
<f_> I missed some registers/wrote to wrong regs.
vagrantc has joined #linux-amlogic
asriel has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
f_ has quit [Quit: zzz]
danct12_ has joined #linux-amlogic
danct12_ has quit [Client Quit]
Daanct12 has joined #linux-amlogic
Daanct12 has quit [Remote host closed the connection]
Daanct12 has joined #linux-amlogic
Daanct12 has quit [Ping timeout: 246 seconds]
vagrantc has quit [Quit: leaving]
ldevulder has quit [Quit: Leaving]
Consolatis has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
Consolatis has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]