Skip to content
Snippets Groups Projects
  • Volker Rümelin's avatar
    9833438e
    audio: restore mixing-engine playback buffer size · 9833438e
    Volker Rümelin authored
    
    Commit ff095e52 "audio: api for mixeng code free backends"
    introduced another FIFO for the audio subsystem with exactly the
    same size as the mixing-engine FIFO. Most audio backends use
    this generic FIFO. The generic FIFO used together with the
    mixing-engine FIFO doubles the audio FIFO size, because that's
    just two independent FIFOs connected together in series.
    
    For audio playback this nearly doubles the playback latency.
    
    This patch restores the effective mixing-engine playback buffer
    size to a pre v4.2.0 size by only accepting the amount of
    samples for the mixing-engine queue which the downstream queue
    accepts.
    
    Signed-off-by: default avatarVolker Rümelin <vr_qemu@t-online.de>
    Reviewed-by: default avatarAkihiko Odaki <akihiko.odaki@gmail.com>
    Message-Id: <20220301191311.26695-10-vr_qemu@t-online.de>
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
    9833438e
    History
    audio: restore mixing-engine playback buffer size
    Volker Rümelin authored
    
    Commit ff095e52 "audio: api for mixeng code free backends"
    introduced another FIFO for the audio subsystem with exactly the
    same size as the mixing-engine FIFO. Most audio backends use
    this generic FIFO. The generic FIFO used together with the
    mixing-engine FIFO doubles the audio FIFO size, because that's
    just two independent FIFOs connected together in series.
    
    For audio playback this nearly doubles the playback latency.
    
    This patch restores the effective mixing-engine playback buffer
    size to a pre v4.2.0 size by only accepting the amount of
    samples for the mixing-engine queue which the downstream queue
    accepts.
    
    Signed-off-by: default avatarVolker Rümelin <vr_qemu@t-online.de>
    Reviewed-by: default avatarAkihiko Odaki <akihiko.odaki@gmail.com>
    Message-Id: <20220301191311.26695-10-vr_qemu@t-online.de>
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>