This message is generated daily by a cron job that builds media_tree for
the kernels and architectures in the list below.
Results of the daily build of media_tree:
date: Sat Aug 20 04:00:26 CEST 2016
git branch: test
git hash: b6aa39228966e0d3f0bc3306be1892f87792903a
gcc versi
There are two big tables here that are very hard to adjust its
size.
The first one would fit into one page, but the latex.py logic
at Sphinx auto-switches to longtable when there are more than 30
rows. There's no way to override without coding.
The second one is really big, and won't fit on a sin
The table is too big to fit into a single page on LaTeX format.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/cec/cec-ioc-receive.rst | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/media/uapi/cec/cec-ioc-receive.rst
b/Documentation/media/uapi/cec/cec-ioc
It is painful to put code/verbatim code in bold. It seems that
the only way is to arrange it like:
``foo``
bar
At least on LaTeX output, when this happens, the "foo" string
is not hidentable/breakable. The entire string should fit into
a single line.
Add a workaround for this
Martin Blumenstingl writes:
> From: Neil Armstrong
>
> Newer SoCs (Meson 8b and GXBB) are using REG2 (offset 0x20) instead of
> REG1 to configure the decoder mode. This makes it necessary to
> introduce new bindings so the driver knows which register has to be
> used.
>
> Signed-off-by: Neil Arm
Martin Blumenstingl writes:
> This adds the IR remote receiver to the AO domain devices.
nit Re: Subject: should specify IR remote *input* pin.
> Signed-off-by: Martin Blumenstingl
> ---
> drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 8
> 1 file changed, 8 insertions(+)
>
> diff --gi
Newer Amlogic platforms (Meson 8b and GXBB) use a slightly different
register layout for their Infrared Remoete Controller. The decoder mode
is now configured in another register. Without the changes to the
meson-ir driver we are simply getting incorrect "durations" reported
from the hardware (beca
This adds the IR remote receiver to the AO domain devices.
Signed-off-by: Martin Blumenstingl
---
drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 8
1 file changed, 8 insertions(+)
diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c
b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c
index
Add support for the R8A7792 VSP1V cores which are different from the other
gen2 VSP1 cores...
Signed-off-by: Sergei Shtylyov
---
This patch is against the 'media_tree.git' repo's 'master' branch.
drivers/media/platform/vsp1/vsp1_drv.c | 20
drivers/media/platform/vsp1/
From: Neil Armstrong
Newer SoCs (Meson 8b and GXBB) are using REG2 (offset 0x20) instead of
REG1 to configure the decoder mode. This makes it necessary to
introduce new bindings so the driver knows which register has to be
used.
Signed-off-by: Neil Armstrong
Signed-off-by: Martin Blumenstingl
From: Neil Armstrong
This adds the Infrared Remote Controller node so boards with an IR
remote can simply enable it.
Signed-off-by: Neil Armstrong
Signed-off-by: Martin Blumenstingl
---
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 7 +++
1 file changed, 7 insertions(+)
diff --git a/arch
From: Neil Armstrong
New bindings are needed as the register layout on the newer platforms
is slightly different compared to Meson6b.
Signed-off-by: Neil Armstrong
Signed-off-by: Martin Blumenstingl
Acked-by: Rob Herring
---
Documentation/devicetree/bindings/media/meson-ir.txt | 5 -
1 f
Signed-off-by: Martin Blumenstingl
---
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 7 +++
1 file changed, 7 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
index 4f42316..72df302 100644
--- a/arch/arm64/boot/dts/amlogic/
Enable the Infrared Remote Controller on boards which have an Infrared
receiver.
Signed-off-by: Martin Blumenstingl
---
arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 6 ++
arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi | 6 ++
arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s9
Em Fri, 19 Aug 2016 17:40:38 -0300
Mauro Carvalho Chehab escreveu:
> Em Fri, 19 Aug 2016 17:52:07 +0200
> Markus Heiser escreveu:
>
> > After said this, what is your suggestion? For me its all equal, these
> > are only my 2cent to this discussion :-)
Forgot to mention, but I noticed that, so
Em Fri, 19 Aug 2016 17:52:07 +0200
Markus Heiser escreveu:
> Am 19.08.2016 um 14:49 schrieb Jani Nikula :
>
> > On Fri, 19 Aug 2016, Markus Heiser wrote:
> >> Am 19.08.2016 um 00:35 schrieb Jonathan Corbet :
> >> * the pdf goes to the "latex" folder .. since this is WIP
> >> and there are di
Name all ioctl references and make them match the ioctls that
are documented. That will improve the cross-reference index,
as it will have all ioctls and syscalls there.
While here, improve the documentation to make them to look more
like the rest of the document.
Signed-off-by: Mauro Carvalho Ch
Name all ioctl references and make them match the ioctls that
are documented. That will improve the cross-reference index,
as it will have all ioctls and syscalls there.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/v4l/func-close.rst | 2 +-
Documentation/media/
Now that we have an override for the c domain that will do
the right thing for the Kernel, stop abusing on the cpp
domain.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/conf_nitpick.py| 33 +++---
Documentation/media/kapi/dtv-core.rst |
Name all ioctl references and make them match the ioctls that
are documented. That will improve the cross-reference index,
as it will have all ioctls and syscalls there.
While here, improve the documentation to make them to look more
like the rest of the document.
Signed-off-by: Mauro Carvalho Ch
Name all ioctl references and make them match the ioctls that
are documented. That will improve the cross-reference index,
as it will have all ioctls and syscalls there.
While here, improve the documentation, marking the deprecated
ioctls, and making the non-deprecated ones more like the rest
of t
Those patches make usage of the new c-domain override extension
written by Markus. They allow stopping abusing of the cpp domain to
allow "overriding" the ioctl function, and converts all syscall documentation
at the media uAPI book to c domain.
Mauro Carvalho Chehab (6):
[media] docs-next: stop
Name all ioctl references and make them match the ioctls that
are documented. That will improve the cross-reference index,
as it will have all ioctls and syscalls there.
While here, improve the documentation to make them to look more
like the rest of the document.
Signed-off-by: Mauro Carvalho Ch
Hi,
If this is the SVID2USB23 with the id 0xeb1a, 0x5051, then I hope
someone will get it to work, because it will fix my Ion Video 2 PC
which has the same hardware. I wrote a wiki page about it:
https://www.linuxtv.org/wiki/index.php/Ion_Video_2_PC
Best regards to every of you,
Alexandre-Xavier
Make sending messages to the adapter serialized within the driver.
send_and_wait is split into send_and_wait_once, which only sends once
and checks for the result, and the higher level send_and_wait, which
performs locking and retries.
Signed-off-by: Johan Fjeldtvedt
---
drivers/staging/media/p
The pulse8 dongle has some quirky behaviors when in autonomous mode.
Document these.
Signed-off-by: Johan Fjeldtvedt
---
drivers/staging/media/pulse8-cec/pulse8-cec.c | 23 +++
1 file changed, 23 insertions(+)
diff --git a/drivers/staging/media/pulse8-cec/pulse8-cec.c
b/dri
It makes sense for adapters such as the Pulse-Eight to be configurable
both from within the driver and from user space, so remove the
requirement that drivers only can call cec_s_log_addrs or
cec_s_phys_addr if they don't expose those capabilities to user space.
Signed-off-by: Johan Fjeldtvedt
--
When the configuration is changed, they are also written to the adapter.
This allows the adapter to continue operating in autonomous mode with
the same settings when it is disconnected from the driver (typically by
going into suspend). For adapters with firmware version 2 or greater, the
settings a
Am 19.08.2016 um 14:49 schrieb Jani Nikula :
> On Fri, 19 Aug 2016, Markus Heiser wrote:
>> Am 19.08.2016 um 00:35 schrieb Jonathan Corbet :
>> * the pdf goes to the "latex" folder .. since this is WIP
>> and there are different solutions conceivable ... I left
>> it open for the first.
>
> M
Dear Mauro
We discuss about
> At the DVB frontend, the tuner and demodulators should be implemented
> on different drivers, even when both are encapsulated on the same silicon.
with our HW developers and SW designers.
Our codes for tuner and demodulator driver of user-space driver are
encapsulat
There are still a few tables with wrong columns at the uAPI
docs. Fix them.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/fe-get-info.rst| 2 +-
Documentation/media/uapi/dvb/fe_property_parameters.rst | 5 ++---
Documentation/media/uapi/v4l/buffer.rst
Sphinx is really pedantic with respect to the order where
table tags and references are created. Putting things at
the wrong order causes troubles.
The order that seems to work is:
.. raw:: latex
.. tabularcolumns::
.. _foo_name:
.. cssclass: longtable
On 08/03/2016 08:03 PM, Steve Longerbeam wrote:
> From: Steve Longerbeam
>
> The ADV7180 and ADV7182 transmit whole fields, bottom field followed
> by top (or vice-versa, depending on detected video standard). So
> for chips that do not have support for explicitly setting the field
> mode via I2P
On Fri, Aug 19, 2016 at 07:39:25PM +0800, Minghsiu Tsai wrote:
> Add a DT binding documentation of MDP for the MT8173 SoC
> from Mediatek
>
> Signed-off-by: Minghsiu Tsai
> ---
> .../devicetree/bindings/media/mediatek-mdp.txt | 109
>
> 1 file changed, 109 insertions(+
On Fri, Aug 19, 2016 at 01:52:23PM +, Steve Preston wrote:
> Hello everyone,
>
> Sorry for the slow response. Several people have offered to help and this is
> greatly appreciated. I'm not the occultation person actually doing the dev
> work on our Linux project.
You should CC your Linux p
Hi Steve,
> We have two models of the StarTech in use: SVID2USB2 and SVID2USB23. The
> "23" version is the only version currently listed on StarTech's website. It
> is available via Amazon in the USA but I'm not sure about other countries.
Have you actually opened these units up and confirmed
New Atmel ISC driver.
Regards,
Hans
The following changes since commit b6aa39228966e0d3f0bc3306be1892f87792903a:
Merge tag 'v4.8-rc1' into patchwork (2016-08-08 07:30:25 -0300)
are available in the git repository at:
git://linuxtv.org/hverkuil/media_tree.git atmel-isc
for you to
Hello everyone,
Sorry for the slow response. Several people have offered to help and this is
greatly appreciated. I'm not the occultation person actually doing the dev work
on our Linux project. I have forwarded the suggestions from this thread on the
list and we let you know as we make progr
Hi Mauro,
These are (regression) fixes for 4.8, mostly related to the cec framework.
It fixes some dubious locking code, two typos in cec-funcs.h, a missing reply
for the Record On/Off messages, improves the documentation, adds a TODO line,
adds a flag to explicitly allow fallback to Unregistered
Em Fri, 19 Aug 2016 10:37:50 -0300
Mauro Carvalho Chehab escreveu:
> Em Fri, 19 Aug 2016 15:24:16 +0200
> Hans Verkuil escreveu:
>
> > On 08/19/2016 03:05 PM, Mauro Carvalho Chehab wrote:
> > > There are some things there that aren't ok for ReST format.
> > >
> > > Fix them.
> > >
> > > Signe
Em Fri, 19 Aug 2016 15:24:16 +0200
Hans Verkuil escreveu:
> On 08/19/2016 03:05 PM, Mauro Carvalho Chehab wrote:
> > There are some things there that aren't ok for ReST format.
> >
> > Fix them.
> >
> > Signed-off-by: Mauro Carvalho Chehab
>
> OK, so I posted a similar patch for this:
>
> ht
Em Thu, 18 Aug 2016 16:35:14 -0600
Jonathan Corbet escreveu:
> On Sat, 13 Aug 2016 16:12:42 +0200
> Markus Heiser wrote:
>
> > Add a generic way to build only a reST sub-folder with or
> > without a individual *build-theme*.
> >
> > * control *sub-folders* by environment SPHINXDIRS
> > * contr
Em Thu, 18 Aug 2016 17:21:27 -0600
Jonathan Corbet escreveu:
> On Tue, 16 Aug 2016 13:25:34 -0300
> Mauro Carvalho Chehab wrote:
>
> > I think this patch series belong to docs-next. Feel free to merge them
> > there, if
> > you agree. There's one extra patch that touches Documentation/conf.py,
On 08/19/2016 03:05 PM, Mauro Carvalho Chehab wrote:
There are some things there that aren't ok for ReST format.
Fix them.
Signed-off-by: Mauro Carvalho Chehab
OK, so I posted a similar patch for this:
https://patchwork.linuxtv.org/patch/36376/
It's part of one of my pull requests, but I g
On 08/18/2016 04:33 PM, Ricardo Ribalda Delgado wrote:
> Some hardware maps the Hue between 0 and 255 instead of 0-179. Support
> this format with a new field hsv_enc.
>
> Signed-off-by: Ricardo Ribalda Delgado
> ---
> include/uapi/linux/videodev2.h | 32 +++-
> 1 fil
There are a few broken tables on LaTeX output at the DVB
uAPI documentation. Fix them.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/audio-fopen.rst| 2 ++
Documentation/media/uapi/dvb/ca-fopen.rst | 2 ++
Documentation/media/uapi/dvb/dmx-fread.rst
The tuner type table misses descriptions for each type. While
most of stuff are obvious, the two SDR definitions aren't.
So, add descriptions to all of them.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/v4l/vidioc-g-tuner.rst | 12 ++--
1 file changed, 6 insertions(
Adjust simple cases where the columns on some vidioc files
are overriding their neighbours.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/v4l/vidioc-dqevent.rst | 2 ++
Documentation/media/uapi/v4l/vidioc-enum-fmt.rst| 4 +++-
Documentation/media/uapi/v4l/vi
The CEC kAPI documentation should also be part of the media book.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/{cec.txt => media/kapi/cec-core.rst} | 0
Documentation/media/media_kapi.rst | 1 +
2 files changed, 1 insertion(+)
rename Documentation/{cec.txt => media/kap
The tables don't fit at the page on this file. As noticed
before, Sphinx (or LaTeX?) does a crap job on tables with
cell span, and some work has to be done to make it fit.
Move the see also reference to a footnote, break one paragraph
into two and adjust the table columns to make it visible.
Sign
Some tables are not properly displayed on LaTeX. Fix them.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/v4l/vidioc-dv-timings-cap.rst | 14 --
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/Documentation/media/uapi/v4l/vidioc-dv-timings-cap.rst
b/
This patch series addresses (almost all) remaining issues of texts going
out of the page width.
There are just two places that need fixes:
- Two big tables at Documentation/media/uapi/v4l/subdev-formats.rst;
- some texts at Documentation/media/uapi/v4l/extended-controls.rst
Adjust the tables there to fit inside the page margins.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/v4l/v4l2-selection-flags.rst | 1 +
Documentation/media/uapi/v4l/v4l2-selection-targets.rst | 2 ++
2 files changed, 3 insertions(+)
diff --git a/Documentation/media/uapi/
Several tables are missing column definitions and/or are too big
to fit into the page. Adjust them.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/v4l/vidioc-g-tuner.rst | 32 ++---
1 file changed, 24 insertions(+), 8 deletions(-)
diff --git a/Documentatio
There are two tables with mangled columns. Fix it.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/v4l/vidioc-dqevent.rst | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Documentation/media/uapi/v4l/vidioc-dqevent.rst
b/Documentation/media/uapi/v4l/vi
Add position hints for some tables, in order for them to be
shown properly on LaTeX output.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/fe_property_parameters.rst | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/media/uapi/dvb/fe_property_parameters.
Fix tables to avoid text to overflow the cell limits.
Signed-off-by: Mauro Carvalho Chehab
---
.../media/uapi/cec/cec-ioc-adap-g-caps.rst | 4 ++--
.../media/uapi/cec/cec-ioc-adap-g-log-addrs.rst| 6 --
Documentation/media/uapi/cec/cec-ioc-dqevent.rst | 23 +--
A few tables at the media uAPI documentation have columns
not well dimentioned. Adjust them.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/mediactl/media-types.rst | 14 --
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/Documentation/media/uapi/med
This table is too big for LaTeX output, and lacks columns
specs for LaTeX format.
Also, it has a hidden column, as there are some cell spans
with the wrong values.
Fix it, so it can be displayed properly on LaTeX/PDF.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/v4l/vidioc
There are some things there that aren't ok for ReST format.
Fix them.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/kapi/cec-core.rst | 145 ++
1 file changed, 93 insertions(+), 52 deletions(-)
diff --git a/Documentation/media/kapi/cec-core.rst
b
Fix the generic errors table to avoid column overflows on
LaTeX output.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/gen-errors.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/media/uapi/gen-errors.rst
b/Documentation/media/uapi/gen-err
While the current implementation works well when using as a
paragraph, it doesn't work properly if inside a table. As we
have quite a few such cases, fix the logic to take the column
size into account.
PS.: I took the logic there from the latest version of Sphinx.sty
Signed-off-by: Mauro Carvalho
On Fri, 19 Aug 2016, Markus Heiser wrote:
> Am 19.08.2016 um 00:35 schrieb Jonathan Corbet :
> * the pdf goes to the "latex" folder .. since this is WIP
> and there are different solutions conceivable ... I left
> it open for the first.
Mea culpa. As I said, I intended my patches as RFC only.
VPU driver add mdp support
Signed-off-by: Minghsiu Tsai
---
drivers/media/platform/mtk-vpu/mtk_vpu.h |5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/media/platform/mtk-vpu/mtk_vpu.h
b/drivers/media/platform/mtk-vpu/mtk_vpu.h
index f457479..291ae46 100644
--- a/drivers/media/
Add MDP driver for MT8173
Signed-off-by: Minghsiu Tsai
---
drivers/media/platform/Kconfig| 17 +
drivers/media/platform/Makefile |2 +
drivers/media/platform/mtk-mdp/Makefile |9 +
drivers/media/platform/mtk-mdp/mtk_mdp_comp.c | 159
drivers/me
Changes in v4:
- Add "depends on HAS_DMA" in Kconfig.
- Fix s/g_selection()
- Replace struct v4l2_crop with u32 and struct v4l2_rect
- Remove VB2_USERPTR
- Move mutex lock after ctx allocation in mtk_mdp_m2m_open()
- Add new format V4L2_PIX_FMT_YVU420 to support software on Android platform.
- Onl
Add a DT binding documentation of MDP for the MT8173 SoC
from Mediatek
Signed-off-by: Minghsiu Tsai
---
.../devicetree/bindings/media/mediatek-mdp.txt | 109
1 file changed, 109 insertions(+)
create mode 100644 Documentation/devicetree/bindings/media/mediatek-mdp.txt
Add MDP node for MT8173
Signed-off-by: Minghsiu Tsai
---
arch/arm64/boot/dts/mediatek/mt8173.dtsi | 84 ++
1 file changed, 84 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
index 10f638f..cd93228 1006
Am 19.08.2016 um 00:35 schrieb Jonathan Corbet :
> On Sat, 13 Aug 2016 16:12:42 +0200
> Markus Heiser wrote:
>
>> Add a generic way to build only a reST sub-folder with or
>> without a individual *build-theme*.
>>
>> * control *sub-folders* by environment SPHINXDIRS
>> * control *build-theme*
Signed-off-by: Sakari Ailus
---
drivers/media/platform/omap3isp/isp.c | 25 +
drivers/media/platform/omap3isp/isp.h | 2 +-
drivers/media/platform/omap3isp/ispvideo.c | 2 +-
3 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/drivers/media/platfor
The media device itself will be unregistered based on it being unbound and
driver's remove callback being called. The graph objects themselves may
still be in use; rely on the media device release callback to release
them.
Signed-off-by: Sakari Ailus
---
drivers/media/media-device.c | 44 +++
Now that the media device can be allocated dynamically, drivers have no
longer a way to conveniently obtain the driver private data structure.
Provide one again in the form of a private pointer passed to the
media_device_alloc() function.
Signed-off-by: Sakari Ailus
---
drivers/media/media-devic
As the call paths of the functions in question will change, move them
around in anticipation of that. No other changes.
Signed-off-by: Sakari Ailus
---
drivers/media/media-device.c | 88 ++--
1 file changed, 44 insertions(+), 44 deletions(-)
diff --git a/
The video device depends on the existence of its media device --- if there
is one. Acquire a reference to it.
Signed-off-by: Sakari Ailus
---
drivers/media/v4l2-core/v4l2-dev.c | 13 +++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/drivers/media/v4l2-core/v4l2-dev.c
The release callback may be used by the driver to signal the release of
the media device. This makes it possible to embed a driver private struct
to the same memory allocation.
Signed-off-by: Sakari Ailus
---
drivers/media/media-device.c | 11 ++-
include/media/media-device.h | 8 ++
As registering a device node of an entity belonging to a media device
will require a reference to the struct device. Taking that reference is
only possible once the device has been initialised, which took place only
when it was registered. Split this in two, and initialise the device when
the media
Use the media device release callback to release the isp device's data
structure. This approach has the benefit of not releasing memory which may
still be accessed through open file handles whilst the isp driver is being
unbound.
Signed-off-by: Sakari Ailus
---
drivers/media/platform/omap3isp/is
From: Sakari Ailus
Allow allocating the media device dynamically. As the struct media_device
embeds struct media_devnode, the lifetime of that object is that same than
that of the media_device.
Signed-off-by: Sakari Ailus
---
drivers/media/media-device.c | 22 ++
include/me
The media device always has a device around. Require one as an argument
for media_device_alloc().
Signed-off-by: Sakari Ailus
---
drivers/media/media-device.c | 12 ++--
include/media/media-device.h | 4 +++-
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/drivers/media/
devm functions are fine for managing resources that are directly related
to the device at hand and that have no other dependencies. However, a
process holding a file handle to a device created by a driver for a device
may result in the file handle left behind after the device is long gone.
This wil
This reverts commit 6f0dd24a084a ("[media] media: fix media devnode
ioctl/syscall and unregister race"). The commit was part of an original
patchset to avoid crashes when an unregistering device is in use.
Signed-off-by: Sakari Ailus
---
drivers/media/media-device.c | 15 +++
driver
The struct cdev embedded in struct media_devnode contains its own kobj.
Instead of trying to manage its lifetime separately from struct
media_devnode, make the cdev kobj a parent of the struct media_device.dev
kobj.
The cdev will thus be released during unregistering the media_devnode, not
in medi
This reverts commit a087ce704b80 ("[media] media-device: dynamically
allocate struct media_devnode"). The commit was part of an original
patchset to avoid crashes when an unregistering device is in use.
Signed-off-by: Sakari Ailus
---
drivers/media/media-device.c | 44 +++--
This reverts commit 5b28dde51d0c ("[media] media: fix use-after-free in
cdev_put() when app exits after driver unbind"). The commit was part of an
original patchset to avoid crashes when an unregistering device is in use.
Signed-off-by: Sakari Ailus
---
drivers/media/media-device.c | 6 ++
Historically, mdev argument name was being used on both struct
media_device and struct media_devnode. Recently most occurrences of mdev
referring to struct media_devnode were replaced by devnode, which makes
more sense. Fix the last remaining occurrence.
Fixes: 163f1e93e9950 ("[media] media-devnod
Signed-off-by: Sakari Ailus
---
drivers/media/media-device.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c
index a1cd50f..8bdc316 100644
--- a/drivers/media/media-device.c
+++ b/drivers/media/media-device.c
@@
Hi folks,
Here's the second version of the media reference patchset I've been
working on for some time.
The lifetime of the media device (and media devnode) is now bound to that
of struct device embedded in it and its memory is only released once the
last reference is gone: unregistering is simpl
From: Markus Elfring
Date: Fri, 19 Aug 2016 11:00:38 +0200
The kfree() function was called in two cases by the uvc_ioctl_ctrl_map()
function during error handling even if the passed data structure element
contained a null pointer.
Adjust jump targets according to the Linux coding style conventio
From: Markus Elfring
Date: Fri, 19 Aug 2016 10:50:05 +0200
Reuse existing functionality from memdup_user() instead of keeping
duplicate source code.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring
---
drivers/media/usb/uvc/uvc_v4l2.c | 11 +++
1
From: Markus Elfring
Date: Fri, 19 Aug 2016 11:11:01 +0200
A few update suggestions were taken into account
from static source code analysis.
Markus Elfring (2):
Use memdup_user() rather than duplicating its implementation
One function call less after error detection
drivers/media/usb/uvc/
On Fri, Aug 19, 2016 at 11:39:29AM +0300, Laurent Pinchart wrote:
> The plane .prepare_fb() and .cleanup_fb() helpers are optional, there's
> no need to implement empty stubs, and no need to explicitly set the
> function pointers to NULL either.
>
> Signed-off-by: Laurent Pinchart
Rebased onto C
In all_dev_types2s: don't try to erase the last two characters in the
string if it is empty.
This was fixed in cec-ctl, so the same fix is applied to cec-compliance
and cec-follower.
Signed-off-by: Johan Fjeldtvedt
---
utils/cec-compliance/cec-compliance.cpp | 4 +++-
utils/cec-follower/cec-fol
On Fri, Aug 19, 2016 at 10:39 AM, Laurent Pinchart
wrote:
> Direct callers of the FCP API hold a reference to the FCP module due to
> module linkage, there's no need to take another one manually. Take a
> reference to the device instead to ensure that it won't disappear being
... behind
> the ca
The functions might need to modify the state to store memory-related
data.
Signed-off-by: Laurent Pinchart
---
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 4 ++--
drivers/gpu/drm/i915/intel_display.c| 4 ++--
drivers/gpu/drm/i915/intel_drv.h| 4 ++--
drivers/gpu
The new rcar_fcp_get_device() function retrieves the struct device
related to the FCP device. This is useful to handle DMA mapping through
the right device.
Signed-off-by: Laurent Pinchart
---
drivers/media/platform/rcar-fcp.c | 6 ++
include/media/rcar-fcp.h | 5 +
2 files chan
The display buffers must be mapped for DMA through the device that
performs memory access. Expose an API to map and unmap memory through
the VSP device to be used by the DU.
Signed-off-by: Laurent Pinchart
---
drivers/media/platform/vsp1/vsp1_drm.c | 24
include/media/vs
For planes handled by a VSP instance, map the framebuffer memory through
the VSP to ensure proper IOMMU handling.
Signed-off-by: Laurent Pinchart
---
drivers/gpu/drm/rcar-du/rcar_du_vsp.c | 74 ---
drivers/gpu/drm/rcar-du/rcar_du_vsp.h | 2 +
2 files changed, 70
The plane .prepare_fb() and .cleanup_fb() helpers are optional, there's
no need to implement empty stubs, and no need to explicitly set the
function pointers to NULL either.
Signed-off-by: Laurent Pinchart
---
drivers/gpu/drm/arc/arcpgu_crtc.c | 2 --
drivers/gpu/drm/fsl-dcu/fsl_d
Direct callers of the FCP API hold a reference to the FCP module due to
module linkage, there's no need to take another one manually. Take a
reference to the device instead to ensure that it won't disappear being
the caller's back.
Signed-off-by: Laurent Pinchart
---
drivers/media/platform/rcar-
Hello,
This patch series fixes the rcar-du-drm driver to support VSP plane sources
with an IOMMU. It is available for convenience at
git://linuxtv.org/pinchartl/media.git iommu/devel/du
On R-Car Gen3 the DU has no direct memory access but sources planes through
VSP instances. When an IOM
1 - 100 of 101 matches
Mail list logo