ChanServ changed the topic of #aarch64-laptops to: Linux support for AArch64 Laptops (Chrome OS Trogdor Devices - Asus NovaGo TP370QL - HP Envy x2 - Lenovo Mixx 630 - Lenovo Yoga C630 - Lenovo ThinkPad X13s - and various other snapdragon laptops) - https://oftc.irclog.whitequark.org/aarch64-laptops
mbuhl has quit [Remote host closed the connection]
mbuhl has joined #aarch64-laptops
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
fishdicks has joined #aarch64-laptops
fishdicks has left #aarch64-laptops [#aarch64-laptops]
dvhart has joined #aarch64-laptops
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
dvhart has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
witcher01 has quit [Remote host closed the connection]
witcher01 has joined #aarch64-laptops
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
agl has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
agl has joined #aarch64-laptops
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
anthony25 has quit [Quit: Quit]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
patrickm has quit [Read error: Network is unreachable]
patrickm has joined #aarch64-laptops
agl has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
agl has joined #aarch64-laptops
chrisl has joined #aarch64-laptops
bionade24 has quit []
chrisl has quit [Ping timeout: 480 seconds]
bionade24 has joined #aarch64-laptops
agl has quit [Ping timeout: 480 seconds]
agl has joined #aarch64-laptops
shadowarrior[m] has joined #aarch64-laptops
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
agl_ has joined #aarch64-laptops
agl has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
matthias_bgg has quit [Ping timeout: 480 seconds]
matthias_bgg has joined #aarch64-laptops
chrisl has joined #aarch64-laptops
<alexVinarskis[m]>
valpackett: RE ssd broken on wakeup on x1e: i did some biseccting, last working is `6.15.0-rc6-next-20250513`. On `6.15.0-rc7-next-20250521` I cannot wake up anymore. On `20250515` and `20250516` im getting crash&reboot as soon as I try to suspend, but looking into it maybe i messed something up on my side. Its not the rc6->rc7 transition, because on final release of `6.15` I can wakeup without any issues, so gotta be
<alexVinarskis[m]>
something with `next`.
chrisl has quit [Ping timeout: 480 seconds]
<valpackett>
alexVinarskis[m]: that's strange..
<alexVinarskis[m]>
Update: 20250515, 20250516 were crashing because i forgot to migrate CONFIG_PHY_QCOM_SNPS_EUSB2 to CONFIG_PHY_SNPS_EUSB2 ( why it crashes the system though?). Narrowed it down to 20250515 last working, 20250516 kills ssd on wakeup. Its a bit tricky as one time 20250516 woke up without errors, but on subsequent suspend it broke. Did suspend/resume on 20250515 and stable 6.15 at least 5 times, cannot
<alexVinarskis[m]>
reproduce issue, so seems this is it.
xps-9345 has joined #aarch64-laptops
<xps-9345>
Hello everybody. Do you have some kind of instructions for enabling speaker, microphone and webcam for a x1e kernel? Or is it about to be added for an upcoming iteratoin?
<valpackett>
where does the info come from for adding a machine to audioreach?
<valpackett>
also what's the deal with speaker protection, i guess unlike apple we can't/shouldn't do it in userspace? should it be on the adsp? but is something missing for it?
<Jasper[m]>
the driver to access that functionality iirc
<valpackett>
ah.. why is it not fully self contained in the dsp firmware? >< does the kernel have to feed it measurements it can't access or something?
<Jasper[m]>
Not sure about that
<valpackett>
oh in audioreach there's just a lot of reuse between models
<valpackett>
alexVinarskis[m]: oh also i did have the ssd wake up once fine thing on the broken-ssd-wakeup kernels
<alexVinarskis[m]>
Audioreach should be describing physical topology. On x1e in simple terms so far it comes down to 1. How many WSA amps 2. If WCD codec is present or not 3. How many mics 4. How many DPs (not yet in use). Which is why a lot of models are just a symlink to each other.
chrisl has joined #aarch64-laptops
<alexVinarskis[m]>
Speaking about it, perhaps in the future it actually makes sense to use a non-model-name-specific notation? Eg, x1e80100-2a-1c-2m-3dp in case of Zenbook, meaning 2amps, 1codec, 2mics, 3 DisplayPort (2 DP + 1 HDMI)?
<valpackett>
yyyeeeaaahhh.. in ucm too
<valpackett>
2 mics means high level, internal + combo jack right? not multi-mic physical setup for the internal? (um do our laptops do that?)
chrisl has quit [Ping timeout: 480 seconds]
<valpackett>
ok, trying to bring up audio.. "pin gpio15 already requested by 6ab0000.soundwire; cannot claim for 6ad0000.soundwire" sorry waaaaat? how
<valpackett>
oh oops it is referenced twice i see where
<JensGlathe[m]>
I have no idea, couldn't test (don't have it). Can confirm its working well for HP Omnibook X14 and Lenovo ThinkBook 16 (and ofc Lenovo Thinkpad X13s)
<valpackett>
looks like a typo to me, so possibly everyone copy-pasting the config for laptops with separate woofer/tweeter have been having worse sound in the right channel than the left one 0.o
<JensGlathe[m]>
Jos Dehaes: can you confirm?
<JensGlathe[m]>
Oh the models I listed are all 2 speaker, so.. 🤷♂️
<alexVinarskis[m]>
<valpackett> "2 mics means high level, interna..." <- Multi mic physical. Typically 2 or 4 DMICs array. Headphone jack with R/L/mic (if any) is connected to external codec IC (wcd... In x1e cases so far)
chrisl has joined #aarch64-laptops
<alexVinarskis[m]>
<xps-9345> "alexVinarskis: thanks for the..." <- Ubuntu'c concept tree already has speaker patch for xps, but not the mic. So you can get first version without rebuilding kernel. Though, on 6.14 sound on x1e is barely usable, on 6.15 is would say very good on my 2 speaker zenbook on okk on xps.
<alexVinarskis[m]>
<valpackett> "https://github.com/jglathe/linux..." <- Its a bug/typo. Iirc someone from Linaro is aware of that and i was told its being fixed. It will work as is though as well, just audio routings are weird iirc or something
<JosDehaes[m]>
valpackett: Yeah it looked like a typo to me too, I have it corrected locally. I noticed this a long time ago, but never got around reporting here
<JosDehaes[m]>
Jens Glathe: Yes I was trying to find another system with 4 speakers to compare, but it seems the yoga 7x is the only one with 4
<JensGlathe[m]>
Asus Vivobook 15 sjould be
<JensGlathe[m]>
but it has the codec
<JosDehaes[m]>
second typo in the audio for the 7x, initially it had TwitterLeft and TwitterRight 😅
<alexVinarskis[m]>
JosDehaes[m]: And xps 9345. Both with typo and with correction works, i couldnt tell difference in quality. But toggling options in alsa mixer yields different results in these case, but i won't recall specifics...
<valpackett>
lmao, twitter
<JosDehaes[m]>
yes, the typo originated in CRD, and the UCM for it had the typo too
<valpackett>
so i should have stuff kinda working but wireplumber says 'spa.alsa: Failed to get the verb HiFi' and 'spa.alsa: No UCM verb is valid for <<<SplitPCM=1>>>hw:0'
<valpackett>
the verb is right there in `alsaucm list _verbs`
chrisl has quit [Ping timeout: 480 seconds]
<alexVinarskis[m]>
<xps-9345> "alexVinarskis: thanks for the..." <- Re anything else ro consider: on 6.14 there are a lot of cracking pops etc. Dont make it full volume, or at least not right away. On xps even on 6.15 i wouldn't make it full volume, its a bit weird, i think some things are still off. R and L are swapped on xps, Abel is looking into fixing it correctly.
<JosDehaes[m]>
same on 7x, I keep the digital volume at 5 on all 4 channels, and when I lower the volume on youtube app itself to about 25%, it's usable
<JosDehaes[m]>
it's been distorted since forever
<JosDehaes[m]>
it seems like there is too much gain, but haven't been able to pinpoint
<alexVinarskis[m]>
Which kernel? On 6.15/linux-next on dual speaker Asus Zenbook A14 it plays very nicely on full volume. Comparable to Windows imo.
<JosDehaes[m]>
oh? I've always used jhovold's tree or jglathe's
<alexVinarskis[m]>
Should be up to date enough. Then perhaps distorted ish sounds is not Xps specific but 4 speakers system specific?
<JosDehaes[m]>
does the zenbook have the same audio chips as the 7x?
<JosDehaes[m]>
wsa884x
<JosDehaes[m]>
I tried playing with the TPLG file, bitrates, gain levels in the driver, nothing helped
<alexVinarskis[m]>
Yes, but x2 not x4. Slim7x is almost identical to Xps 9345 with only differences 3 vs 2 DP and 4 vs 2 DMICs. Both have x4 WSA884x, no dedicated codec.
<alexVinarskis[m]>
Zenbook like i think most x1e have x2 WSA884x and WCD... codec for combo headphone jack.
<JosDehaes[m]>
the good news is I didn't blow up the speakers yet 😅
<JosDehaes[m]>
I also have this weird bug that the right tweeter always starts with the digital gain at 22 or 15, and not at 5, every single time. No matter if I use alsactl store, etc. Even every new audio stream has the issue, like when a YT video stops and I start another AGAIN it will be too high on one channel
<JosDehaes[m]>
So I keep alsamixer open on that channel at all times, and quickly switch to it to lower again to 5
<valpackett>
oh, the actual error is: unable to execute cset 'name='SpkrLeft COMP Switch' 1'
<valpackett>
oh it's the 'SWR bus clsh detected' 'SWR CMD error, fifo status 0x4e00c00f, flushing fifo' in dmesg
anthony25 has joined #aarch64-laptops
anthony25 has quit []
<alexVinarskis[m]>
Hmm i remember reports of that one on Dell, but I couldnt reproduce it myself unless i tried manual hacks or messed with alsa settings. Is it throwing these in default config, or you are doing something to cause it?
<valpackett>
okay I just was a big brain genius trying to use the speakers while they were disabled in the firmware setup
<valpackett>
well it's still not up but those errors are gone
<valpackett>
no clash but still unable to execute cset 'name='SpkrLeft COMP Switch' 1'
<valpackett>
oh i only have 2 soundwires, what did i comment out this time
<alexVinarskis[m]>
Remind me, which laptop do you have?
<valpackett>
latitude 7455
<valpackett>
(side note, it's kinda silly that the whole audio configuration is so all-or-nothing, so user disables internal speakers in the bios and poof the combo jack is gone too)
<alexVinarskis[m]>
Ah right, so should be like Inpiron and xps iirc, with 4 speakers right? Are you using audio in dts like in Bryan's branch? Did you add alsa config changes to match your model name?
<alexVinarskis[m]>
At least Dell gives lots of bios options. On Zenbook i can't disable thunderbolt on Type-C, so can't force universal thunderlot/usb-c alt mode dock to be a simple USB3+DP mode...
chrisl has joined #aarch64-laptops
<valpackett>
yeah dell bios is excellent
<valpackett>
i've mostly copied from inspiron yeah
<valpackett>
progress! 'q6apm-lpass-dais 6800000.remoteproc:glink-edge:gpr:service@1:bedais: Failed to start APM port 113' and 'q6apm-lpass-dais 6800000.remoteproc:glink-edge:gpr:service@1:bedais: ASoC error (-22): at snd_soc_dai_prepare() on RX_CODEC_DMA_RX_0' now, i guess tplg related
<valpackett>
i guess if i have 4 speakers, and both speakers and headphones are connected to MultiMedia1/2 mixers, that'd be a problem?
chrisl has quit [Ping timeout: 480 seconds]
<valpackett>
yay it woooorks \o/
<alexVinarskis[m]>
dont recall by heart, sry. iirc (mb wrong, pls check) CRD has both the codec and x4 speakers, so perhaps their dts/ucm/topology is a fit for you. One more example on advantage of switching from device-name bound toplogies/alsa configs to capabilities-based naming.
<alexVinarskis[m]>
ah okay, you are faster at testing than I am at typing :)
<valpackett>
:D why does the t14s have both multimedia1 and multimedia2 routed to both wsa and rx?? 0.o
<valpackett>
yea i have so far sort of concocted a custom config by taking the 7x one and pasting the external jack to it (let's see if that one works)
<valpackett>
can the max speaker volume range be remapped in ucm? rn even just slightly above minimum is super loud
<JosDehaes[m]>
check with alsamixer, the digital volume is probably too high
<JosDehaes[m]>
there are 4 sliders for that
<valpackett>
ooooh all 4 speakers show up separately in gnome settings and i can hear "rear left" "rear right" in the tweeters nice
<JosDehaes[m]>
like I said, I put those to 5
<valpackett>
ADC2 is at 36
<JosDehaes[m]>
does it sound distorted/overdriven?
<valpackett>
just super loud, and i'm only trying gnome's volume change "pop" sound so far
<valpackett>
but not distorted
<JosDehaes[m]>
the volume change sound usually sounds fine, but 'front left' etc do
<JosDehaes[m]>
* etc do sound distorted
<JosDehaes[m]>
* etc do sound distorted on 7x
<valpackett>
sounds great here, just the adjustment goes from quiet to very quickly loud
<JosDehaes[m]>
hmm would be interested in your TPLG file and the UCM settings
<JosDehaes[m]>
maybe also the DTS could be involved 🤔
<JosDehaes[m]>
some regulator settings or something
<valpackett>
literally copy pasted from 7x and only added the headphone jack
<JosDehaes[m]>
hmm
<valpackett>
doesn't seem like ADC2/HPHL/HPHR really do anything..
<valpackett>
not with the speakers at least
<JosDehaes[m]>
could you dump the mixer settings? amixer controls
<JosDehaes[m]>
(don't have the 7x with me ATM, but can check tomorrow)
<valpackett>
(FRONTEND_DAI_MULTIMEDIA1 having 4 channels is bogus, even)
<JosDehaes[m]>
thx! it does look very similar, I guess the unfamiliar mixer controls are headphone jack related
<valpackett>
right
<JosDehaes[m]>
interesting that it's not distorted even at that high digital volume level
<JosDehaes[m]>
(btw, it's not the hardware, in windows, they sound great)
<JosDehaes[m]>
and you also use jhovold's tree?
<valpackett>
no, i use linux-next with minimal changes (other than my dts there's just the imported iris driver thing)
<JosDehaes[m]>
ok, thx
<JosDehaes[m]>
I doubt there is much audio related difference between the two, but I can try
<valpackett>
now i need an analog mic to test combo jack input with xD
<valpackett>
woah went to check libcamera's git log and v0.5.1 was tagged literally 24min ago
anthony25 has joined #aarch64-laptops
<valpackett>
"libcamera: software_isp: Fix CCM multiplication" mmmmmm is that it?
<KieranBingham[m]>
valpackett: Is it what?
<valpackett>
the fix for our webcam flicker issue
<KieranBingham[m]>
No not yet I'm afraid.
<KieranBingham[m]>
The fix there will be in AGC. I started working on that last week, but with kids on school holidays and everything else I didn't get enough progress to post anything yet.