Skip to content

Some fixes and cleanups for the Media Controller code

Mauro Carvalho Chehab alsa-devel linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4media-device: Simplify compat32 logicdrivers/media/media-device.c+1 -71 reply
2/4media-devnode: fix namespace messdrivers/media/media-devnode.c include/media/media-devnode.h+63 -630 replies
3/4media-device: get rid of a leftover commentdrivers/media/media-device.c+0 -11 reply
4/4media-device: dynamically allocate struct media_devnodedrivers/media/media-device.c drivers/media/media-devnode.c drivers/media/usb/au0828/au0828-core.c +4 more+52 -278 replies

Reviews trailers per patch

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

PatchLaurent PinchartSakari Ailus
SeriesA-b
1/4R-b
2/4
3/4A-b
4/4

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/4] Some fixes and cleanups for the Media Controller code

The first three patches in this series are simple cleanup patches. No functional changes.

The final patch fixes a longstanding bug at the Media Controller framework:
it prevents race conditions when the /dev/media? device is being removed, while some program is still accessing it.

I tested it with au0828 and snd-usb-audio and the issues I was noticing before it disappeared.

Shuah,

Could you please test it also?

Thanks!
Mauro

Mauro Carvalho Chehab (4):
[media] media-device: Simplify compat32 logic
[media] media-devnode: fix namespace mess
[media] media-device: get rid of a leftover comment [meida] media-device: dynamically allocate struct media_devnode

 drivers/media/media-device.c           |  47 ++++++++------
 drivers/media/media-devnode.c          | 115 +++++++++++++++++----------------
 drivers/media/usb/au0828/au0828-core.c |   4 +-
 drivers/media/usb/uvc/uvc_driver.c     |   2 +-
 include/media/media-device.h           |   5 +-
 include/media/media-devnode.h          |  27 +++++---
 sound/usb/media.c                      |   8 +--
 7 files changed, 113 insertions(+), 95 deletions(-)
Signature · 1 line
2.5.5