Skip to content

Fix poll error returns

Charles Keepax alsa-devel 1 version In review

Get series with b4
b4 am 1462370351-15388-1-git-send-email-ckeepax@opensource.wolfsonmicro.com

Versions newest first

  1. v1 Latest4 of 5 patches 7 repliesIn review

4 of 5 patches are in this archive. The cover letter announces 5.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ALSA: pcm: Fix poll error return codessound/core/pcm_native.c+2 -24 replies
2/5ALSA: compress: Use snd_compr_get_poll on error pathsound/core/compress_offload.c+1 -40 replies
3/5ALSA: compress: Remove pointless NULL checksound/core/compress_offload.c+3 -40 replies
4/5ALSA: compress: Fix poll error return codessound/core/compress_offload.c+2 -20 replies

Reviews trailers per patch

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

PatchVinod KoulTakashi Sakamoto
SeriesA-b A-b
1/5Reviewd-by
2/5
3/5
4/5

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/5] Fix poll error returns

We return negative values from the file_operations poll callback in a few places, this callback returns an unsigned int and is expected to only return the poll specific flags. This series fixes up these issues and makes a couple of small tidy ups to the code around the edges of those functions.

I noticed this issue whilst doing some additional testing on my propagation of compressed stream error series, but I decided to push these up separately as it is worth getting the fixes in now and not tying them up with that patch chain which is taking longer to get merged. Also I included the first patch of that chain (Replace complex if statement with switch) because it is a trivial tidy up and might as well get merged now as well.

Thanks,
Charles

Charles Keepax (5):
ALSA: pcm: Fix poll error return codes
ALSA: compress: Use snd_compr_get_poll on error path
ALSA: compress: Remove pointless NULL check
ALSA: compress: Fix poll error return codes
ALSA: compress: Replace complex if statement with switch

 sound/core/compress_offload.c | 25 ++++++++++++-------------
 sound/core/pcm_native.c       |  4 ++--
 2 files changed, 14 insertions(+), 15 deletions(-)
Signature · 1 line
2.1.4