#
…

2024-09-28

00:08chadmed_oh man the cs42l42 is a bit of a beast
00:43pb17 has quit [Ping timeout: 480 seconds]
01:00KxCORP5894000345 has quit [Quit: Bye!]
01:00KxCORP5894000345 has joined #asahi-dev
01:09pb17 has joined #asahi-dev
01:12chrisl has quit [Ping timeout: 480 seconds]
01:13chrisl has joined #asahi-dev
01:30BlueMatt_ has joined #asahi-dev
01:37BlueMatt has quit [Ping timeout: 480 seconds]
02:24tobhe_ has joined #asahi-dev
02:30tobhe has quit [Ping timeout: 480 seconds]
02:50chadmed_hm we're not setting the cs42l42 tip sense debounce or anything in the DT
02:50chadmed_i wonder if folks' spurious headset misdetections are related
02:50chadmed_the fallback values in the driver are quite slow, but maybe we need slower
02:50chadmed_or worse yet, more msleep()s....
03:00pb17 has quit [Ping timeout: 480 seconds]
03:09chadmed_you can reliably cause it to misdetect a headset by getting the plug timing juuuust wrong
03:20chadmed has quit [Quit: Konversation terminated!]
03:20chadmed has joined #asahi-dev
03:20chadmed has quit []
03:20chadmed has joined #asahi-dev
03:51nora_ has joined #asahi-dev
03:52nora has quit [Ping timeout: 480 seconds]
03:54pb17 has joined #asahi-dev
04:19JayBeeFOSS has quit [Remote host closed the connection]
04:21JayBeeFOSS has joined #asahi-dev
05:03hspak4163271446 has joined #asahi-dev
05:07hspak4163271446 has quit []
05:07hspak4163271446 has joined #asahi-dev
05:08hspak4163271446 has quit []
05:08hspak4163271446 has joined #asahi-dev
05:09hspak4163271446 has quit []
05:09hspak4163271446 has joined #asahi-dev
05:11hspak4163271446 has quit []
05:11hspak has joined #asahi-dev
05:12midou has quit [Ping timeout: 480 seconds]
05:39LarstiQhow sensitive is getting that juuuust wrong?
05:49pb17 has quit [Ping timeout: 480 seconds]
05:53midou has joined #asahi-dev
05:57balrog has quit [Ping timeout: 480 seconds]
05:57balrog has joined #asahi-dev
05:59alih has quit []
06:01chadmed_LarstiQ: theres enough room for error that people will hit it
06:02chadmed_unfortunately making the debounce time longer on the actual tip sense doesnt help
06:02chadmed_the issue is between the tip sense interrupt and starting the detection routine
06:03chadmed_unfortunately i think the pc as a platform has mostly the right idea here
06:03chadmed_most of the realtek codecs etc will wait a very, very long time between the plug event and actually trying to figure out what type of thing you plugged in
06:05pb17 has joined #asahi-dev
06:06chadmed_yeah msleep()s it is -.-
06:10leiooh! must be why sometimes randomly my microphone on studio doesn't work
06:12chadmed_yeah if the hotplug detect runs and returns before youve pushed the plug in all the way youre stuffed and you have to replug it
06:13chadmed_im thinking of just adding a 1 to 2 second delay in the IRQ thread
06:13chadmed_if the tip sense interrupt has fired, wait a bit before detecting
06:14leioI just shrugged it off as "I should finally upgrade pipewire stack" instead of doing the replugging dance like hdmi of past
06:17chadmed_sensible assumption, i didnt expect the driver to just let this whole thing go as fast as possible :p
06:18chadmed_users cannot plug things in within ~500ns
06:20leioI remember how this thing worked in Windows, where you just get a popup each time to ask you if you plugged in headphones or headsert
06:21chadmed_hasnt worked like that in a very long time, they have headset detection now
06:21chadmed_the process just takes longer to reduce the instance of this occurring
06:22chadmed_youll notice that on PCs, there is a delay between plugging anything into the sound card and it registering in userspace
06:22chadmed_whereas stuff you plug into the jack on these machines just appears almost instantly
06:22chadmed_thats the issue here
06:25leiocould it re-sense a couple of times for 5 seconds or something? Like get sound coming and add microphone a second later if it gets pushed in slow?
06:31chadmed_if this ends up not being materially more reliable then ill try something like that but i dont want to get too fancy
06:59leiowas an idea on how to make it appear ASAP, like a backing off sensing delay
07:27pb17 has quit [Ping timeout: 480 seconds]
07:46chadmed_hey that actually works
08:08pb17 has joined #asahi-dev
08:33chadmed_mm i still think it makes more sense to just wait once
08:33chadmed_only because theres no real way to suppress the second run through the detection logic if it's "not needed"
08:34chadmed_by the time we run it again the tip sense interrupt has been cleared and doesnt come back again until the falling edge of the tip sense switch (when we unplug the jack)
08:34chadmed_i think just giving users 1.5 seconds to plug the thing in fully (like every single other platform seems to do) is good enough
09:05___nick___ has joined #asahi-dev
09:20sand4rt has joined #asahi-dev
09:52pb17 has quit [Ping timeout: 480 seconds]
10:24dcavalca85 has quit []
10:31pb17 has joined #asahi-dev
10:35jakki_ has joined #asahi-dev
10:38jakki_ has quit []
11:54___nick___ has quit []
11:57___nick___ has joined #asahi-dev
11:57___nick___ has quit []
11:59___nick___ has joined #asahi-dev
12:07pb17 has quit [Ping timeout: 480 seconds]
12:21sand4rt has quit [Ping timeout: 480 seconds]
12:26pb17 has joined #asahi-dev
12:38zumi has joined #asahi-dev
12:54john-cabaj has quit [Quit: john-cabaj]
12:54john-cabaj has joined #asahi-dev
13:32sand4rt has joined #asahi-dev
14:20sand4rt has quit [Ping timeout: 480 seconds]
14:27patrickm has quit [Ping timeout: 480 seconds]
14:31sand4rt has joined #asahi-dev
14:32pb17 has quit [Ping timeout: 480 seconds]
14:45m42uko has joined #asahi-dev
14:57patrickm has joined #asahi-dev
14:57opticron has quit [Read error: Connection reset by peer]
14:58opticron has joined #asahi-dev
15:03pb17 has joined #asahi-dev
15:18mab has joined #asahi-dev
15:19mab is now known as Guest4805
15:22Guest4805 has quit []
15:24mab_ has joined #asahi-dev
15:26sand4rt has quit [Ping timeout: 480 seconds]
15:46john-cabaj has quit [Ping timeout: 480 seconds]
15:53sand4rt has joined #asahi-dev
15:55mab_ has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
15:55mab_ has joined #asahi-dev
15:59pr0vctr has joined #asahi-dev
16:00mab_ has quit []
16:01sand4rt has quit [Quit: WeeChat 4.4.2]
16:03sand4rt has joined #asahi-dev
16:05pr0vctr has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
16:14pr0vctr has joined #asahi-dev
16:19pr0vctr has quit []
16:38pb17 has quit [Ping timeout: 480 seconds]
16:42midou has quit [Ping timeout: 480 seconds]
16:55___nick___ has quit [Ping timeout: 480 seconds]
17:13midou has joined #asahi-dev
17:39pb17 has joined #asahi-dev
18:04zumi_ has joined #asahi-dev
18:04zumi has quit [Remote host closed the connection]
18:08patrickm has quit [Ping timeout: 480 seconds]
18:09zumi_ is now known as zumi
18:10sand4rt has quit [Quit: WeeChat 4.4.2]
18:11patrickm has joined #asahi-dev
18:12sand4rt has joined #asahi-dev
18:56zzywysm has joined #asahi-dev
18:58zzywysm has quit []
19:07c10l has quit [Ping timeout: 480 seconds]
19:34patrickm has quit [Ping timeout: 480 seconds]
19:41pb17 has quit [Ping timeout: 480 seconds]
19:43SalimTer- has joined #asahi-dev
19:44allmazz has quit [Quit: allmazz]
19:44allmazz has joined #asahi-dev
19:47SalimTerryLi has quit [Ping timeout: 480 seconds]
19:52pb17 has joined #asahi-dev
20:08c10l has joined #asahi-dev
20:48cfleming has joined #asahi-dev
20:52cfleming has quit []
20:53cfleming has joined #asahi-dev
20:58cfleming has quit [Quit: Leaving]
20:59cfleming has joined #asahi-dev
21:48pb17 has quit [Ping timeout: 480 seconds]
22:22cfleming has quit [Quit: Leaving]
22:22c10l4 has joined #asahi-dev
22:22c10l has quit [Ping timeout: 480 seconds]
22:22c10l4 is now known as c10l
22:23cfleming has joined #asahi-dev
22:27pb17 has joined #asahi-dev
22:35c10l5 has joined #asahi-dev
22:37c10l has quit [Ping timeout: 480 seconds]
22:37c10l5 is now known as c10l
22:44sand4rt has quit [Ping timeout: 480 seconds]
22:46john-cabaj has joined #asahi-dev
23:14c10l has quit [Remote host closed the connection]
23:17c10l has joined #asahi-dev
23:38patrickm has joined #asahi-dev
…