Skip to content

ALSA: Clear PCM buffers more properly

Takashi Iwai alsa-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ALSA: memalloc: Align buffer allocations in page sizesound/core/memalloc.c+1 -01 reply
2/2ALSA: pcm: Clear the full allocated memory at hw_paramssound/core/pcm_native.c+7 -21 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchLars-Peter Clausen
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] ALSA: Clear PCM buffers more properly

Hi,

here are two small fix patches for PCM buffer allocations. Basically those address two things that have been discussed in the recent thread [1]:
* Clear the remaining bytes in PCM buffer pages that are exposed via mmap
* Assure the page aligned allocations for genalloc

This doesn't cover the cases where non-standard PCM buffer allocation is used. Those should handle the buffer clearance by themselves.

Takashi

[1] https://lore.kernel.org/r/[email protected]

===

Takashi Iwai (2):
ALSA: memalloc: Align buffer allocations in page size
ALSA: pcm: Clear the full allocated memory at hw_params

 sound/core/memalloc.c   | 1 +
 sound/core/pcm_native.c | 9 +++++++--
 2 files changed, 8 insertions(+), 2 deletions(-)
Signature · 1 line
2.26.2