cron job: media_tree daily build: OK

2015-07-09 Thread Hans Verkuil
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: Fri Jul 10 04:00:17 CEST 2015 git branch: test git hash: 8783b9c50400c6279d7c3b716637b98e83d3c933 gcc

[RFC v04] Driver for Toshiba TC358743 HDMI to CSI-2 bridge

2015-07-09 Thread matrandg
From: Mats Randgaard matra...@cisco.com The driver is tested on our hardware and all the implemented features works as expected. Missing features: - CEC support - HDCP repeater support - IR support Signed-off-by: Mats Randgaard matra...@cisco.com diff --git a/MAINTAINERS b/MAINTAINERS index

[RFC v04] Driver for Toshiba TC358743

2015-07-09 Thread matrandg
From: Mats Randgaard matra...@cisco.com Improvements based on feedback from Hans Verkuil: - Use functions in linux/hdmi.h to print AVI info frames - Replace private format change event with V4L2_EVENT_SOURCE_CHANGE - Rewrite set_fmt/get_fmt - Remove V4L2_SUBDEV_FL_HAS_DEVNODE Other improvements

Re: [PATCH 0/10 v6] Helper to abstract vma handling in media layer

2015-07-09 Thread Jan Kara
Hello, Hans, did you have a chance to look at these patches? I have tested them with the vivid driver but it would be good if you could run them through your standard testing procedure as well. Andrew has updated the patches in his tree but some ack from you would be welcome...

Re: [PATCH 0/10 v6] Helper to abstract vma handling in media layer

2015-07-09 Thread Hans Verkuil
On 07/09/2015 01:48 PM, Jan Kara wrote: Hello, Hans, did you have a chance to look at these patches? I have tested them with the vivid driver but it would be good if you could run them through your standard testing procedure as well. Andrew has updated the patches in his tree but some

[PATCH 08/10] [media] coda: use event class to deduplicate v4l2 trace events

2015-07-09 Thread Philipp Zabel
Trace events with exactly the same parameters and trace output, such as coda_enc_pic_run and coda_enc_pic_done, are supposed to use the DECLARE_EVENT_CLASS and DEFINE_EVENT macros instead of duplicated TRACE_EVENT macro calls. This patch changes the order of parameters to coda_dec_rot_done and

[PATCH 04/10] [media] coda: keep buffers on the queue in bitstream end mode

2015-07-09 Thread Philipp Zabel
In stream end mode the hardware will read the bitstream to its end, overshooting the write pointer. Do not write additional data into the bitstream in this mode. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda-bit.c | 3 +++ 1 file changed, 3

[PATCH 02/10] [media] coda: fix mvcol buffer for MPEG4 decoding

2015-07-09 Thread Philipp Zabel
The mvcol buffer is allocated at the end of the first internal buffer. This patch fixes an out of bounds array access. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda-bit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 03/10] [media] coda: fix bitstream preloading for MPEG4 decoding

2015-07-09 Thread Philipp Zabel
All decoder instances using the BIT processor should preload buffers into the bitstream ring buffer, including MPEG4 decoding. Fix this by explicitly stating the above condition instead of listing all relevant input formats. Signed-off-by: Philipp Zabel p.za...@pengutronix.de ---

[PATCH 09/10] [media] coda: reuse src_bufs in coda_job_ready

2015-07-09 Thread Philipp Zabel
The v4l2_m2m_num_src_bufs_ready() function is called in multiple places in coda_cob_ready, and there already is a variable src_bufs that is assigned to its result. Move it to the beginning and use it everywhere. Signed-off-by: Philipp Zabel p.za...@pengutronix.de ---

[PATCH 06/10] [media] coda: reset stream end in stop_streaming

2015-07-09 Thread Philipp Zabel
Otherwise a restarted stream won't queue buffers. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda-common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index

[PATCH 10/10] [media] coda: rework meta counting and add separate lock

2015-07-09 Thread Philipp Zabel
Keep count of number of buffer meta structures in the list and use a separate spinlock for operations on this counted list instead of reusing the bitstream mutex in some places and none at all in others. Signed-off-by: Philipp Zabel p.za...@pengutronix.de ---

[PATCH 01/10] [media] coda: clamp frame sequence counters to 16 bit

2015-07-09 Thread Philipp Zabel
From: Lucas Stach l.st...@pengutronix.de This is already done for one side of the comparison with the expectation that the HW counter rolls over at the 16 bit boundary. This is true when decoding a h.264 stream, but doesn't hold for at least MJPEG. As we don't know the exact wrap-around point for

[PATCH 07/10] [media] coda: drop custom list of pixel format descriptions

2015-07-09 Thread Philipp Zabel
Since commit ba3002045f80 ([media] v4l2-ioctl: fill in the description for VIDIOC_ENUM_FMT), all pixel formats are assigned their description in a central place. We can now drop the custom list. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/coda/coda-common.c |

[PATCH 05/10] [media] coda: avoid calling SEQ_END twice

2015-07-09 Thread Philipp Zabel
Allow coda_seq_end_work to be called multiple times, move the setting of ctx-initialized from coda_start/stop_streaming() into coda_start_encoding/decoding and coda_seq_end_work, respectively, and skip the SEQ_END command in coda_seq_end_work if the context is already deinitialized before.

[GIT FIXES FOR v4.2] Videobuf 2 QUEUED behaviour revert, new state for requeuing

2015-07-09 Thread Sakari Ailus
Hi Mauro, Here's the videobuf2 fix for reverting the VB2_BUF_STATE_QUEUED behaviour in vb2_buffer_done() to what it was before v4.1. VB2_BUF_STATE_REQUEUEING can be used as an argument to vb2_buffer_done() for returning the buffer back to the driver if needed (as in cobalt driver). Please pull.