All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ALSA: Clear PCM buffers more properly
@ 2020-12-18 14:56 Takashi Iwai
  2020-12-18 14:56 ` [PATCH 1/2] ALSA: memalloc: Align buffer allocations in page size Takashi Iwai
  2020-12-18 14:56 ` [PATCH 2/2] ALSA: pcm: Clear the full allocated memory at hw_params Takashi Iwai
  0 siblings, 2 replies; 5+ messages in thread
From: Takashi Iwai @ 2020-12-18 14:56 UTC (permalink / raw)
  To: alsa-devel; +Cc: Robin Gong, Lars-Peter Clausen

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/05c824e5-0c33-4182-26fa-b116a42b10d6@metafoo.de

===

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(-)

-- 
2.26.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-12-18 15:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-18 14:56 [PATCH 0/2] ALSA: Clear PCM buffers more properly Takashi Iwai
2020-12-18 14:56 ` [PATCH 1/2] ALSA: memalloc: Align buffer allocations in page size Takashi Iwai
2020-12-18 15:31   ` Lars-Peter Clausen
2020-12-18 14:56 ` [PATCH 2/2] ALSA: pcm: Clear the full allocated memory at hw_params Takashi Iwai
2020-12-18 15:32   ` Lars-Peter Clausen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.