Skip to content

ALSA: Add the explicit appl_ptr sync support

Takashi Iwai alsa-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ALSA: pcm: Add the explicit appl_ptr sync supportinclude/uapi/sound/asound.h sound/core/pcm_native.c+15 -00 replies
2/3ALSA: pcm: Add an ioctl to specify the supported protocol versioninclude/sound/pcm.h include/uapi/sound/asound.h sound/core/pcm_compat.c +1 more+11 -10 replies
3/3ALSA: pcm: Limit the appl_ptr sync workaround only for old user-spacesound/core/pcm_native.c+9 -20 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchTakashi Sakamoto
SeriesR-b T-b
1/3
2/3
3/3

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/3] ALSA: Add the explicit appl_ptr sync support

Hi,

this is a patchset for the issues we've discussed recently lengthily, the explicit sync of appl_ptr by disabling the control mmap. The first patch achieves it for a driver setting the new INFO flag.

The second patch is for a generic ABI extension I wanted to implement for long time. It allows user-space reporting its supporting protocol version, so that the kernel can behave differently. It's especially useful for extending the ABI struct to use the reserved bits.

The third patch is the optimization by the second patch; it simply skips the previous workaround when the user-space declares itself being new enough to support the feature.

The corresponding alsa-lib patchset will follow in another thread.

thanks,

Takashi

===

Takashi Iwai (3):
ALSA: pcm: Add the explicit appl_ptr sync support
ALSA: pcm: Add an ioctl to specify the supported protocol version
ALSA: pcm: Limit the appl_ptr sync workaround only for old user-space

 include/sound/pcm.h         |  1 +
 include/uapi/sound/asound.h |  4 +++-
 sound/core/pcm_compat.c     |  1 +
 sound/core/pcm_native.c     | 28 ++++++++++++++++++++++++++++
 4 files changed, 33 insertions(+), 1 deletion(-)
Signature · 1 line
2.13.1