#asahi-dev · 2022-08-20 19:39
DmitrySharshakov[m]Cool. I hope the WP config snippet I sent does work properly.#asahi-dev · 2022-08-20 19:11
DmitrySharshakov[m]Looks great! Why 400 Hz as corner frequency? Tweeters are intended for 2 kHz+ playback, so setting corner to 800 Hz effectively cuts off more. Or is 400 fine as well and you gave more freedom to userspace without introducing safety risks?#asahi-dev · 2022-08-20 09:38
DmitrySharshakov[m]So then I'm awaiting for initial testing/review for my WirePlumber MR and maintainers' response on the file access thing to improve further#asahi-dev · 2022-08-20 09:36
DmitrySharshakov[m]chadmed: Exactly. So 2Hz for woofers, 800 to tweeters and we're safe. Then WirePlumber should do the "niceties" and automatic stuff#asahi-dev · 2022-08-20 09:32
DmitrySharshakov[m]Ah, alright, wasn't sure if it was enabled by default#asahi-dev · 2022-08-20 09:30
DmitrySharshakov[m]2-50 Hz should do no damage to woofers I guess, so it should be safe to keep those 'convenience' things to userspace#asahi-dev · 2022-08-20 09:30
DmitrySharshakov[m]Well, 50 Hz might be too high, but since we can why not enable 2 Hz cutoff? It will protect from DC bias#asahi-dev · 2022-08-20 09:27
DmitrySharshakov[m]What about 2 Hz 'DC protection' mode?#asahi-dev · 2022-08-20 09:26
DmitrySharshakov[m]Is HPF 'sharp' enough to cut low frequencies off btw?#asahi-dev · 2022-08-20 09:26
DmitrySharshakov[m]Alright#asahi-dev · 2022-08-20 09:25
DmitrySharshakov[m]`-3 dB cap below macOS values` is that about HFP or common volume cap?#asahi-dev · 2022-08-20 09:25
DmitrySharshakov[m]Alright#asahi-dev · 2022-08-20 09:24
DmitrySharshakov[m]Like if it should be named `MacBook Pro J314 Internal Speakers` or J316#asahi-dev · 2022-08-20 09:20
DmitrySharshakov[m]Is there any progress from yesterday (like testing WP changes and kernel driver)? Is there a decent way of marking the device as either J314 or J316 (probably DT prop on audio node could help)#asahi-dev · 2022-08-20 09:18
DmitrySharshakov[m]Is the volume loud enough with caps?#asahi-dev · 2022-08-20 09:18
DmitrySharshakov[m]Yes but should keep things safe I guess. Low volume does no harm typically#asahi-dev · 2022-08-20 09:13
DmitrySharshakov[m]How is volume with caps in place? How does it compare to macOS defaults?#asahi-dev · 2022-08-20 09:12
DmitrySharshakov[m]"microspeaker" class so they should not need such a drive mode#asahi-dev · 2022-08-20 09:12
DmitrySharshakov[m]I have also read some materials on IV sense. That's mostly for cases of overdriving mobile microspeakers. So a speaker like a phone one can be operated on power higher than the rated one while being monitored and corrected with IV sense enabled amp. I guess that's not necessary nor suitable for MacBook pro level audio, since such an overdrive will reduce the quality and tone reproduction, plus I guess builtin speakers are not of#asahi-dev · 2022-08-20 09:08
DmitrySharshakov[m]Alright#asahi-dev · 2022-08-20 07:34
DmitrySharshakov[m]It's a coarse-grained mechanism which evolved from DC protection. Not really an equalizer or something like that. marcan first found it as a measure to protect tweeters from low frequencies at kernel level#asahi-dev · 2022-08-20 07:33
DmitrySharshakov[m]See 8.9.8 in https://www.ti.com/lit/ds/symlink/tas2764.pdf . There're options: no, 2 hz, 50, 100, 200, 400, 800#asahi-dev · 2022-08-20 07:31
DmitrySharshakov[m] * Maybe 2 Hz then?#asahi-dev · 2022-08-20 07:31
DmitrySharshakov[m]> <@_oftc_chadmed:matrix.org> but i would just not cut anything out and let the DSP take care of it because that gives us finer grained control over their profile#asahi-dev · 2022-08-20 07:31
DmitrySharshakov[m]chadmed: Maybe 2 Hz then&#asahi-dev · 2022-08-20 07:31
DmitrySharshakov[m]Yes, so it'd be great to test 800 Hz cutoff for tweeters and 50 Hz for other 4 speakers.#asahi-dev · 2022-08-20 07:24
DmitrySharshakov[m]Yes, but hardware filter removing DC and vibration frequencies can still improve things. Is 100 or 50 Hz appropriate?#asahi-dev · 2022-08-20 07:02
DmitrySharshakov[m]on woofers via some sort of custom channelmap.#asahi-dev · 2022-08-20 07:02
DmitrySharshakov[m]povik: based on https://github.com/chadmed/asahi-audio/blob/main/test_notes/j31x.md?plain=1#L9-L12 it appears to be decent to apply 50 or 100 Hz filter (DC_BLK0 -> HPF_FREQ_PB) in hardware for (sub)woofers, so that vibration is filtered out + DC protection active. as well as 800 Hz for tweeters as it's planned. This could 1. make us able to drop the lower part of woofer FIR filter. 2. People who want raw ALSA can just play sound#asahi-dev · 2022-08-20 05:29
DmitrySharshakov[m]I'd wait for comments and concept approval from maintainers and then probably implement some functions for filesystem access#asahi-dev · 2022-08-20 05:28
DmitrySharshakov[m]s/localhost:7474/https://gitlab.freedesktop.org/pipewire/wireplumber/-/issues/336/#asahi-dev · 2022-08-20 05:28
DmitrySharshakov[m]lol#asahi-dev · 2022-08-20 05:28
DmitrySharshakov[m]I opened a proposal for nobody to forget about this: localhost:7474#asahi-dev · 2022-08-20 05:06
DmitrySharshakov[m]While George, one of the maintainers, is on his vacation, we'll have to stick with my current approach. Then, if he's fine with the fact WP scripts will be able to read FS under WP config dirs, then I'll implement it the way you proposed as I now agree it should be almost 100% descriptive#asahi-dev · 2022-08-20 05:04
DmitrySharshakov[m]chadmed: Yes I proposed we should have an API to read files from WirePlumber scripts#asahi-dev · 2022-08-20 05:03
DmitrySharshakov[m]chadmed: Like the mechanism of discovery#asahi-dev · 2022-08-20 05:03
DmitrySharshakov[m]chadmed: So if I have say builtin audio, wp will add a virtual sink. There're extra parts we don't want user or stuff like EasyEffects to interact with: real sink, real device and a stream from virtual sink to real sink. Hide those from everybody except WP (and while testing also allow helvum)#asahi-dev · 2022-08-20 05:01
DmitrySharshakov[m]Api = dsp is for the same thing, since else Plasma PA settings applet doesn't see the device #asahi-dev · 2022-08-20 05:00
DmitrySharshakov[m]chadmed: We don't hide it. Virtual = false means it appears as a hw sink#asahi-dev · 2022-08-20 05:00
DmitrySharshakov[m]That's more up to the config file, and one I sent to you is experimental yet, just to test things in a real case#asahi-dev · 2022-08-20 05:00
DmitrySharshakov[m]chadmed: Hmm, alright#asahi-dev · 2022-08-20 04:58
DmitrySharshakov[m]I can hide sink, device (to avoid people messing with profiles in pavucontrol) and stream (like output of the chain in case of speakers)#asahi-dev · 2022-08-20 04:57
DmitrySharshakov[m]chadmed: I hide both#asahi-dev · 2022-08-20 04:57
DmitrySharshakov[m]<chadmed> "fwiw that policy looks like itll..." <- On PW chat room I got answer that it'd be better to use autoconnect rather than wiring up from my script. I would also prefer manual immutable routing, let's sort this out later in the MR life cycle #asahi-dev · 2022-08-20 04:49
DmitrySharshakov[m]<chadmed> "Dmitry Sharshakov: i think you..." <- Alright, I understood you. Maybe povik has an opportunity to see that#asahi-dev · 2022-08-19 13:47
DmitrySharshakov[m]was there any success or my guesses were wrong and my config didn't work out?#asahi-dev · 2022-08-19 12:19
DmitrySharshakov[m]s/&/?/#asahi-dev · 2022-08-19 12:19
DmitrySharshakov[m](`put device names underneath their driver in the directory structure`) to #pipewire:matrix.org &#asahi-dev · 2022-08-19 12:19
DmitrySharshakov[m]Could I resend your message #asahi-dev · 2022-08-19 12:17
DmitrySharshakov[m]Well yes. Now we can do this if we're fine with only like 2 degrees of freedom for selectors