... 128 comes from the "rt" buffering mode profile, but the override
value of 1024 should replace this.

The code seems correct and I couldn't reproduce this myself, but I think
there's still a bug somehere. What kind of setup this is (only JACK
outputs, also JACK inputs, or both)? Are you passing any other buffering
params to ecasound?