]> git.alsa-project.org Git - alsa-plugins.git/commit
a52: limit the number of periods for ioplug from slave PCM
authorJaroslav Kysela <perex@perex.cz>
Tue, 15 Jun 2021 13:25:47 +0000 (15:25 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 16 Jun 2021 06:53:46 +0000 (08:53 +0200)
commitc12a6ae73e10673901ff9fc7da236e6f68f74aef
treeb17393fecb2a7f51161b8e329eca040f84ab80dd
parent8473252ae0c247ea663296ae3e51e9c00db8c0be
a52: limit the number of periods for ioplug from slave PCM

Intel HDMI:

  PERIOD_SIZE: [32 4272000]
  PERIOD_BYTES: [128 17088000]
  PERIODS: [2 32]
  BUFFER_SIZE: [64 8544000]
  BUFFER_BYTES: [256 34176000]

Selected:

  PERIOD_SIZE: 768
  PERIOD_BYTES: 3072
  PERIODS: 32
  BUFFER_SIZE: 24576
  BUFFER_BYTES: 98304

The a52_hw_params() tries to set the big 4271616 buffer size (frames)
for speaker-test which is beyond the maximal slave buffer.

BugLink: https://github.com/alsa-project/alsa-plugins/pull/23
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
a52/pcm_a52.c