unable to configure large period on batch device
I am trying to setup a batch device at 192000 Hz with a period bigger than 1024 (~5ms at this rate), but it turns out that I can't do that. This is because of: https://gitlab.freedesktop.org/pipewire/pipewire/-/blob/master/spa/plugins/alsa/alsa-pcm.c#L1664
if (!state->disable_tsched)
period_size = SPA_MIN(period_size, DEFAULT_PERIOD) / 2;
where DEFAULT_PERIOD is 1024. I think this limit here assumes that 1024 is a "big" period (thinking at 48000 rate?) and tries to set it as a ceiling. But it's marginally low at 192 kHz.