Skip to content

Commit

Permalink
topology2: common: pcm_caps: Revisit default period and buffer sizes
Browse files Browse the repository at this point in the history
Increase the default period_size_max to a much larger value which is
commonly used by sound cards from 16384 to 2097152.

Adjust the buffer_size limits to minimum 384 (2 * period_size_min) and the
maximum to 4194304 (2 * period_size_max).

Applications do not need to use these large buffers, but there is no
technical reason to not allow them, like they available on other sound
hardware.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
  • Loading branch information
ujfalusi authored and kv2019i committed Apr 24, 2024
1 parent b3a6d1c commit bba6a4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/topology/topology2/include/common/pcm_caps.conf
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ Class.PCM."pcm_caps" {
periods_max 1024
channels_min 2
channels_max 2
period_size_min 192
period_size_max 16384
buffer_size_min 65536
buffer_size_max 65536
period_size_min 192 # "$[((2 * $channels_min) * 48000) / 1000]" (48K, S16_LE, 1ms)
period_size_max 2097152 # Large enough to cover user's needs
buffer_size_min 384 # "$[$period_size_min * $periods_min]"
buffer_size_max 4194304 # "$[2 * $period_size_max]"
}

0 comments on commit bba6a4c

Please sign in to comment.