#
✕ nick:DmitrySharshakov[m]
#asahi-dev · 2022-08-16 09:21
DmitrySharshakov[m]So my question was about finding out model from within ALSA API
#asahi-dev · 2022-08-16 09:21
DmitrySharshakov[m]It's a no-go to just set into configuration of PW. Session manager should have a new config which it handles by its Lua engine. Not really shipping those in Asahi, but WP having such code and using it to discover DSP-enabled hardware
#asahi-dev · 2022-08-16 09:19
DmitrySharshakov[m]Lua scripts are used to configure WirePlumber
#asahi-dev · 2022-08-16 09:19
DmitrySharshakov[m]chadmed: Yes, that's what I'm trying to accomplish
#asahi-dev · 2022-08-16 09:12
DmitrySharshakov[m]That is the only way to get it upstreamable, like just push those configs in Arch Linux ARM or any other repos and let software load it only when required. AFAIK now a Python script installs correct profiles according to DT it reads from sysfs. However, it'd look weird if PipeWire reads DT to find this out. Maybe kernel driver should have those labels to be properly identifiable?
#asahi-dev · 2022-08-16 09:10
DmitrySharshakov[m]We need some way for autodetection of that, so ALSA device should have an appropriate metadata like `alsa_output.j314` for WirePlumber to load the correct profile
#asahi-dev · 2022-08-16 09:09
DmitrySharshakov[m]Also, is id like `alsa_output.pci-0000_03_00.6.pro-output-0` (but of course name of Mac audio card) sufficient to tell the difference?
#asahi-dev · 2022-08-16 09:09
DmitrySharshakov[m]With those Lua scripts Pro audio is set automatically
#asahi-dev · 2022-08-16 09:08
DmitrySharshakov[m]povik: PW issue 2210? Yes, I has wrote a bit there, now implementing DSP profile probing inside WirePlumber
#asahi-dev · 2022-08-16 09:07
DmitrySharshakov[m]I'm the same Dmitry as who wrote some concepts in PW issue, I'm also sh7dm on GH and Reddit
#asahi-dev · 2022-08-16 09:07
DmitrySharshakov[m]povik: Hmm, what's the email?
#asahi-dev · 2022-08-16 09:06
DmitrySharshakov[m]Alright, sorry for disturbance
#asahi-dev · 2022-08-16 09:06
DmitrySharshakov[m]I'm now doing stuff for PipeWire/WirePlumber (PW issue #2210), and of course main target audience for this feature is Asahi
#asahi-dev · 2022-08-16 09:05
DmitrySharshakov[m]Did you have an opportunity to test whether 800 Hz HPF does work alright?
#asahi-dev · 2022-08-16 09:04
DmitrySharshakov[m]Thanks
#asahi-dev · 2022-08-16 09:04
DmitrySharshakov[m]Oh, alright
#asahi-dev · 2022-08-16 09:03
DmitrySharshakov[m] * Are they just preventing setting volume above 70% or make 100% set 70% in software (i.e. scaling the volume). So, if userspace wants to set max, should it be 100 or 70?
#asahi-dev · 2022-08-16 09:03
DmitrySharshakov[m]Are they just preventing setting volume above 70% or make 100% set 70% in software (i.e. scaling the volume). So, if userspace wants to set max, should it be 100 or 70?'
#asahi-dev · 2022-08-16 09:02
DmitrySharshakov[m]povik: could you please elaborate how do volume caps work in the WIP driver?