aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorIvan Orlov <[email protected]>2023-09-27 12:35:54 +0100
committerTakashi Iwai <[email protected]>2023-10-06 11:11:40 +0200
commit462494565c27ea15d5deebd3605cb826c95ac98f (patch)
tree8676552bd5eb75b0e04c573707bb6dda58f52a8f /tools/perf/scripts/python/export-to-postgresql.py
parent8eb2194e3ffaa38ed306921d880547f3884d8e43 (diff)
ALSA: aloop: Add support for the non-interleaved access mode
The current version of the loopback driver supports interleaved access mode only. This patch introduces support for the non-interleaved access mode. When in the interleaved mode, the 'copy_play_buf' function copies data from the playback to the capture buffer using one memcpy call. This call copies samples for multiple, interleaved channels. In the non-interleaved mode we have multiple channel buffers, so we have to perform multiple memcpy calls to copy samples channel after channel. Add new function called 'copy_play_buf_part_n', which copies a part of each channel buffer from playback to capture. Modify the 'copy_play_buf' to use the corresponding memory copy function(just memcpy / copy_play_buf_part_n) depending on the access mode. Signed-off-by: Ivan Orlov <[email protected]> Reviewed-by: Jaroslav Kysela <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions