Skip to content

Don't use default period-size and buffer-size #329

Open

Description

@plbossart

We need to control better what the period and buffer sizes are in all sof-tests.

The default values I see in the SoundWire tests make no sense

  buffer_size  : 16368
  period_size  : 4080
  period_time  : 85000

85ms for a period-time is not representative of any reasonable usage.

aplay and arecord can be configured with --period-time=5000 and --buffer-time=10000 for e.g 2 periods of 5ms.

It would be good enough to have an environment variable for each value, so that we can configure the tests at will, and even set stricter values for specific tests. I believe 5ms and 2 periods are decent baselines.

Activity

  1. added
    type:enhancementNew framework feature or request
    P2Critical bugs or normal features
    on Jan 26, 2021
  2. xiulipan commented on Jan 26, 2021

    @xiulipan
    Contributor

    @marc-hb @plbossart will #527 can work on this request?

  3. marc-hb commented on Jan 27, 2021

    @marc-hb
    Collaborator

    It looks like SOF_ALSA_OPTS from (not finished) #489 would work for this too. @plbossart can you confirm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Critical bugs or normal featurestype:enhancementNew framework feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions