#
#asahi-dev · 2023-05-09 11:06
marcanthe only reason it has to get the rate right if the other side is open is because there's a check in that path
#asahi-dev · 2023-05-09 11:06
marcanyeah we just don't care basically
#asahi-dev · 2023-05-09 11:05
chadmedthat works way better then
#asahi-dev · 2023-05-09 11:05
chadmedoh so we can switch the sample rate with the pcm open, neato
#asahi-dev · 2023-05-09 11:05
marcanI did check that we drop the clocks and stuff even if the sense PCM is open
#asahi-dev · 2023-05-09 11:05
marcanthere shouldn't be any downside to keeping the PCM open in theory
#asahi-dev · 2023-05-09 11:05
marcanchadmed: that is possible but it introduces a race
#asahi-dev · 2023-05-09 11:04
chadmedpovik: previously it was hardcoded to 48000 and it would explode
#asahi-dev · 2023-05-09 11:04
marcanbut eh
#asahi-dev · 2023-05-09 11:04
marcanunfortunately there's no reasonable way to do driver-initiated hw_params feedback as far as I know, hence the mixer control feedback instead
#asahi-dev · 2023-05-09 11:04
marcanI mean it could hardcode one and then that would fail
#asahi-dev · 2023-05-09 11:04
chadmedis it not possible to have it only try opening the secondary pcm when the primary one is running with the speaker active kctl?
#asahi-dev · 2023-05-09 11:04
povikwhat else would it do but pick one of the available rates?
#asahi-dev · 2023-05-09 11:04
marcanonce the PCM is running it doesn't matter any more
#asahi-dev · 2023-05-09 11:03
marcanas long as it does that it works
#asahi-dev · 2023-05-09 11:03
marcanrequired safetyd behavior is that it looks up the available rates then picks one (it will either get a range if the playback PCM is closed, or the playback PCM rate as a single supported rate if it's open)
#asahi-dev · 2023-05-09 11:03
marcanthe dance with the sample rate is a bit awkward, but it does work in practice
#asahi-dev · 2023-05-09 11:01
poviknice, exactly what we need
#asahi-dev · 2023-05-09 11:01
poviksubstream->wait_time = MAX_SCHEDULE_TIMEOUT;
#asahi-dev · 2023-05-09 10:59
marcanit was a bit rough, but eh
#asahi-dev · 2023-05-09 10:58
povikwasn't it rebasing hell, redoing the ivsense patches on top of that clock shutdown patch?
#asahi-dev · 2023-05-09 10:58
povikthat should be another way of fixing the shutdown ordering, but i have yet to try it and confirm that
#asahi-dev · 2023-05-09 10:55
poviki wanted to suggest we flip on ignore_pmdown time flag on all the PCM links from macaudio instead
#asahi-dev · 2023-05-09 10:55
povikah, that tree has the clock shutdown fixup you made
#asahi-dev · 2023-05-09 10:53
povikif you open a stream once and then unload the driver
#asahi-dev · 2023-05-09 10:52
povikfrom the looks of it there's at least the double free of apple_mca_release/mca_fe_disable_clocks
#asahi-dev · 2023-05-09 10:49
marcanthe pd stuff I got some nasty fault at some point, I suspect some path is trying to remove the device link twice so I just hardened all of those, but you may want to go over it
#asahi-dev · 2023-05-09 10:48
marcanyeah
#asahi-dev · 2023-05-09 10:48
povikthat's just kernel rebase, right?
#asahi-dev · 2023-05-09 10:48
povikhttps://github.com/AsahiLinux/linux/commit/28cc362f36364dbcc110a394eace3128763b0382
#asahi-dev · 2023-05-09 10:48
marcanit's ASoC stuff
#asahi-dev · 2023-05-09 10:48
marcanbackend
#asahi-dev · 2023-05-09 10:48
j`eymarcan: what's 'BE', relating to speakers
#asahi-dev · 2023-05-09 10:47
marcannext the watchdog/lockout stuff. I think for that I'm going to use the existing kctl lock mechanism, I just need a new callback for lock/unlock so the controls can use that to take actions
#asahi-dev · 2023-05-09 10:46
marcanand fixed the sample rate mismatch / read timeout issue (managed to do it entirely in macaudio, though perhaps in a hacky way)
#asahi-dev · 2023-05-09 10:46
marcanI rebased your old series on the current kernel, fixed some stuff
#asahi-dev · 2023-05-09 10:46
marcanpovik: ivsense fun stuff in https://github.com/AsahiLinux/linux/tree/sound/ivsense-improvements
#asahi-dev · 2023-05-09 09:38
chadmedbut we seem to apply the CTM correctly unless that unknown field does something
#asahi-dev · 2023-05-09 09:37
chadmedjannau: true, and its not like i dont know what its meant to look like on this screen either. macos behaves properly
#asahi-dev · 2023-05-09 09:36
kettenisI suppose we could call usb_init() from the board code based on whether we already have a keyboard or not
#asahi-dev · 2023-05-09 09:29
_jannau_kettenis: marcan asked for it to be skipped on laptops
#asahi-dev · 2023-05-09 09:29
kettenismaybe time for me to finally come up with a diff to address at least the obvious problems with aborted usb transfers in the xhci host code
#asahi-dev · 2023-05-09 09:29
_jannau_chadmed: I'd expect more problems with external (non-Apple) displays
#asahi-dev · 2023-05-09 09:28
kettenisunfortunately your last attempt to get marex to look into the usb induced crashes doesn't seem to have worked
#asahi-dev · 2023-05-09 09:27
kettenis_jannau_: but problematic for the desktop machines
#asahi-dev · 2023-05-09 09:21
chadmeditd be nice to eliminate the screen/a colour space mismatch and check on a known-good monitor but obv cant without dcpext
#asahi-dev · 2023-05-09 09:17
_jannau_I don't see how kwin should make a difference then unless you have additional color management
#asahi-dev · 2023-05-09 09:14
chadmedyeah
#asahi-dev · 2023-05-09 09:14
_jannau_are you using kwin 5.27.4(.1)?
#asahi-dev · 2023-05-09 09:11
chadmedcolour management on kde is just horrifically broken in general

plus ›