Re: [PATCH v2 1/2] cec-follower: add tuner step increment/decrement

2019-09-24 Thread Hans Verkuil
Hi Jiunn, On 9/24/19 9:24 PM, Jiunn Chang wrote: > Tuner step increment/decrement will select the next highest or next > lowest service frequency. There are a total of three possible > frequencies from analog_freqs_khz given a broadcast type and system. > > Opcodes implemented: > - > - >

cron job: media_tree daily build: OK

2019-09-24 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: Wed Sep 25 05:00:10 CEST 2019 media-tree git hash:6f51fdfd8229d5358c2d6e272cf73478866e8ddc media_build gi

Re: [ANN] Media sessions in Lyon in October: libcamera

2019-09-24 Thread Laurent Pinchart
Hello, On Tue, Sep 24, 2019 at 07:48:55PM -0300, Helen Koike wrote: > On 9/23/19 3:21 PM, Daniel Gomez wrote: > > Hi Laurent, Hans: > > On Mon, 23 Sep 2019 at 20:16, Shuah Khan wrote: > >> > >> On 9/23/19 9:57 AM, Laurent Pinchart wrote: > >>> Hello everybody, > >>> > >>> On Mon, Sep 23, 2019 at

Re: [ANN] Media sessions in Lyon in October: libcamera

2019-09-24 Thread Helen Koike
Hi, On 9/23/19 3:21 PM, Daniel Gomez wrote: > Hi Laurent, Hans: > On Mon, 23 Sep 2019 at 20:16, Shuah Khan wrote: >> >> On 9/23/19 9:57 AM, Laurent Pinchart wrote: >>> Hello everybody, >>> >>> On Mon, Sep 23, 2019 at 04:03:54PM +0100, Kieran Bingham wrote: On 23/09/2019 15:47, Nicolas Dufres

Re: [Linux-kernel-mentees] [PATCH v2 2/2] cec-compliance: add/refactor tuner control tests

2019-09-24 Thread Shuah Khan
On 9/24/19 1:24 PM, Jiunn Chang wrote: Tests added/refactored for new features added to the cec-follower. Analog tuner control tests added/refactored: - give analog tuner status - select tuner analog service - analog tuner step decrement - analog tuner step increment Signed-off-by:

Re: [Linux-kernel-mentees] [PATCH v2 1/2] cec-follower: add tuner step increment/decrement

2019-09-24 Thread Shuah Khan
On 9/24/19 1:24 PM, Jiunn Chang wrote: Tuner step increment/decrement will select the next highest or next lowest service frequency. There are a total of three possible frequencies from analog_freqs_khz given a broadcast type and system. Opcodes implemented: - - Signed-off-by: Jiunn Ch

[PATCH v2 1/2] cec-follower: add tuner step increment/decrement

2019-09-24 Thread Jiunn Chang
Tuner step increment/decrement will select the next highest or next lowest service frequency. There are a total of three possible frequencies from analog_freqs_khz given a broadcast type and system. Opcodes implemented: - - Signed-off-by: Jiunn Chang --- utils/cec-follower/cec-tuner.cpp

[PATCH v2 0/2] cec-compliance: tuner control

2019-09-24 Thread Jiunn Chang
This patch series implements analog tuner step increment/decrement as well as performs cec-compliance tests for: select analog service, give tuner device status, and analog step increment/decrement. New tests where added for tuner step increment/decrement and existing tests where refactored for

[PATCH v2 2/2] cec-compliance: add/refactor tuner control tests

2019-09-24 Thread Jiunn Chang
Tests added/refactored for new features added to the cec-follower. Analog tuner control tests added/refactored: - give analog tuner status - select tuner analog service - analog tuner step decrement - analog tuner step increment Signed-off-by: Jiunn Chang --- utils/cec-compliance/cec-te

Hi

2019-09-24 Thread janet rossana
Please dear, I know this contact will be so strange to you, but i summon courage to reach you because i desperately need your friendly assistance there in your country. I am making preparations to relocate with my children there, and i have some capital which i wanted to invest there to be able to

Re: [PATCH v3 04/11] media: v4l2-ctrl: Document V4L2_CID_CAMERA_SENSOR_ROTATION

2019-09-24 Thread Jacopo Mondi
Hi Hans, On Fri, Sep 13, 2019 at 08:49:06PM +0200, Jacopo Mondi wrote: > Hi Hans, > > On Fri, Sep 13, 2019 at 04:02:45PM +0200, Hans Verkuil wrote: > > On 9/12/19 10:10 PM, Jacopo Mondi wrote: > > > Add documentation for the V4L2_CID_CAMERA_SENSOR_ROTATION camera > > > control. The newly added rea

Re: [PATCH 1/2] cec-follower: add tuner step increment/decrement

2019-09-24 Thread Hans Verkuil
On 9/24/19 4:17 PM, Jiunn Chang wrote: > Tuner step increment/decrement will select the next highest or next > lowest service frequency. There are a total of three possible > frequencies from analog_freqs_khz given a broadcast type and system. > > Opcodes implemented: > - > - > > Signed-of

[PATCHv5 3/3] v4l2-dev: fix is_tch checks

2019-09-24 Thread Hans Verkuil
Touch devices mark too many ioctls as valid. Restrict the list of valid ioctls for touch devices. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-dev.c | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-dev.c b/dr

[PATCHv5 0/3] v4l2-core: improve ioctl validation

2019-09-24 Thread Hans Verkuil
This supersedes https://www.mail-archive.com/linux-media@vger.kernel.org/msg150027.html based on feedback from Laurent: https://www.mail-archive.com/linux-media@vger.kernel.org/msg150117.html and Sakari: https://www.mail-archive.com/linux-media@vger.kernel.org/msg150129.html It actually makes

[PATCHv5 1/3] v4l2-core: correctly validate video and metadata ioctls

2019-09-24 Thread Hans Verkuil
From: Vandana BN If the type is VFL_TYPE_GRABBER, then also check device_caps to see if the video device supports video and/or metadata and disable unneeded ioctls. Without this change, format ioctls for both video and metadata devices could be called on both device nodes. This is true for other

[PATCHv5 2/3] v4l2-dev: simplify the SDR checks

2019-09-24 Thread Hans Verkuil
In determine_valid_ioctls() we can use SET_VALID_IOCTL to enable ioctls for SDR, simplifying the code. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-dev.c | 24 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-dev

[PATCH 2/2] cec-compliance: add/refactor tuner control tests

2019-09-24 Thread Jiunn Chang
Tests added/refactored for new features added to the cec-follower. Analog tuner control tests added/refactored: - give analog tuner status - select tuner analog service - analog tuner step decrement - analog tuner step increment Signed-off-by: Jiunn Chang --- utils/cec-compliance/cec-te

[PATCH 1/2] cec-follower: add tuner step increment/decrement

2019-09-24 Thread Jiunn Chang
Tuner step increment/decrement will select the next highest or next lowest service frequency. There are a total of three possible frequencies from analog_freqs_khz given a broadcast type and system. Opcodes implemented: - - Signed-off-by: Jiunn Chang --- utils/cec-follower/cec-tuner.cpp

[PATCH 0/2] cec-compliance: tuner control

2019-09-24 Thread Jiunn Chang
This patch series implements analog tuner step increment/decrement as well as performs cec-compliance tests for: select analog service, give tuner device status, and analog step increment/decrement. New tests where added for tuner step increment/decrement and existing tests where refactored for

Re: [Linux-kernel-mentees] [PATCH v8] cec-follower: add tuner analog service emulation

2019-09-24 Thread Shuah Khan
On 9/24/19 6:14 AM, Jiunn Chang wrote: The cec-follower will now emulate an analog service. This allows an initiator device can directly select an analog service by choosing an to select? Something doesn't read right in this sentence. analog broadcast type, broadcast system, and frequency. A

Re: [Linux-kernel-mentees] [PATCH v8] v4l2-ctl: Print UVC meta info

2019-09-24 Thread Shuah Khan
On 9/24/19 5:04 AM, Vandana BN wrote: Print UVC Metadata information in verbose mode. Cam you add more information on what this Metadata is and how it is used. Signed-off-by: Vandana BN --- Changes since v7: Not to call print_meta_buffer, if V4L2_BUF_FLAG_ERROR is set or bytesused i

[PATCH v8] cec-follower: add tuner analog service emulation

2019-09-24 Thread Jiunn Chang
The cec-follower will now emulate an analog service. This allows an initiator device can directly select an analog service by choosing an analog broadcast type, broadcast system, and frequency. After an analog service is selected, the cec-follower will also provide the tuner device status upon req

Re: [PATCH] v4l2-compliance: Verify metadata formats

2019-09-24 Thread Hans Verkuil
On 9/24/19 11:25 AM, Vandana BN wrote: > changes to testEnumFormats() and testGetFormats() to verify METADATA type. > G_FMT sets node->valid_buftypes, so TRY/S_FMT does not get called for > other input types, hence did not modify them. This is a very confusing commit log. The core problem is that

[PATCH v4 1/3] media: v4l2-subdev: add g_csi_active_lanes() op

2019-09-24 Thread Philipp Zabel
Add a subdevice video operation that allows to query the number of data lanes a MIPI CSI-2 TX is actively transmitting on. Suggested-by: Hans Verkuil Signed-off-by: Philipp Zabel --- New in v4. --- include/media/v4l2-subdev.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/media/

[PATCH v4 0/3] Add g_csi_active_lanes for dynamic active lanes

2019-09-24 Thread Philipp Zabel
Some MIPI CSI-2 transmitters, such as TC358743 can dynamically change the number of active data lanes depending on the bandwidth needs for the selected video format. This patchset adds a subdevice video operation g_csi_active_lanes() to let the MIPI CSI-2 receiver query the number of active lanes a

[PATCH v4 2/3] media: tc358743: fix connected/active CSI-2 lane reporting

2019-09-24 Thread Philipp Zabel
g_mbus_config was supposed to indicate all supported lane numbers, not only the number of those currently in active use. Since the TC358743 can dynamically reduce the number of active lanes if the required bandwidth allows for it, report all lane numbers up to the connected number of lanes as suppo

[PATCH v4 3/3] media: imx: ask source subdevice for number of active data lanes

2019-09-24 Thread Philipp Zabel
Use the newly added g_csi_active_lanes() video op to determine the number of active data lanes used by the transmitter. If this subdev call is not supported or does not return the number of active lanes, default to using all connected data lanes as before. Signed-off-by: Philipp Zabel --- Changes

[PATCH 0/7] SMIA NVM handling improvements

2019-09-24 Thread Sakari Ailus
Hi all, This set removes the need for the nokia,nvm-size property, and contains small fixes and improvements as well. Sakari Ailus (7): smiapp: Use the BIT macro where appropriate, remove useless definition smiapp: Fix error handling at NVM reading smiapp: Refactor reading NVM page smiapp

[PATCH 3/7] smiapp: Refactor reading NVM page

2019-09-24 Thread Sakari Ailus
Split out reading a single NVM page into a separate function. Signed-off-by: Sakari Ailus --- drivers/media/i2c/smiapp/smiapp-core.c | 83 ++ 1 file changed, 46 insertions(+), 37 deletions(-) diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp

[PATCH 2/7] smiapp: Fix error handling at NVM reading

2019-09-24 Thread Sakari Ailus
If NVM reading failed, the device was left powered on. Fix that. Signed-off-by: Sakari Ailus --- drivers/media/i2c/smiapp/smiapp-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c index 8fa

[PATCH 6/7] smiapp: Support probing NVM size

2019-09-24 Thread Sakari Ailus
The interface supports probing for the NVM size but this was not implemented in the driver. Do that now. This will also make nokia,nvm-size property redundant. Signed-off-by: Sakari Ailus --- drivers/media/i2c/smiapp/smiapp-core.c | 103 - drivers/media/i2c/smiapp/smiapp

[PATCH 7/7] dt-bindings: smia: Remove documentation of nokia,nvm-size

2019-09-24 Thread Sakari Ailus
The nokia,nvm-size property was used to tell the size of the NVM memory accessible through the sensor's register interface. However, while the size isn't directly readable through the sensor's register interface, it can be detected reading the NVM memory until the selected page is no longer availab

[PATCH 1/7] smiapp: Use the BIT macro where appropriate, remove useless definition

2019-09-24 Thread Sakari Ailus
The BIT macro is a better way to define register bits, for 1 << bit is risky for 32-bit registers. Also remove the definition of SMIAPP_DATA_TRANSFER_IF_1_CTRL_RD_EN which has a value of zero. Signed-off-by: Sakari Ailus --- drivers/media/i2c/smiapp/smiapp-core.c | 3 +-- drivers/media/i2c/smi

[PATCH 4/7] smiapp: Add definitions for data transfer if capability bits

2019-09-24 Thread Sakari Ailus
The data transfer capability register was defined but its bits were not. Do that now. Signed-off-by: Sakari Ailus --- drivers/media/i2c/smiapp/smiapp-reg.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/i2c/smiapp/smiapp-reg.h b/drivers/media/i2c/smiapp/smiapp-reg.h index

[PATCH 5/7] smiapp: Don't poll for NVM ready on devices that don't need it

2019-09-24 Thread Sakari Ailus
Only some devices require polling for NVM ready. Do the polling only on devices that need it. Signed-off-by: Sakari Ailus --- drivers/media/i2c/smiapp/smiapp-core.c | 28 -- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/drivers/media/i2c/smiapp/smiapp-co

[PATCH v8] v4l2-ctl: Print UVC meta info

2019-09-24 Thread Vandana BN
Print UVC Metadata information in verbose mode. Signed-off-by: Vandana BN --- Changes since v7: Not to call print_meta_buffer, if V4L2_BUF_FLAG_ERROR is set or bytesused is 0. Changes since v6: Not to print PTS/SCR if not present. Remove loop in print_meta_buffer() Changes

Re: [PATCH v7] v4l2-ctl: Print UVC meta info

2019-09-24 Thread Hans Verkuil
Hi Vandana, I did some testing with several webcams and there is only one more thing to do: On 9/24/19 11:14 AM, Vandana BN wrote: > Print UVC Metadata information in verbose mode. > > Signed-off-by: Vandana BN > --- > Changes since v6: > Not to print PTS/SCR if not present. > Remov

Re: [ANN] Media sessions in Lyon in October: libcamera

2019-09-24 Thread Hans Verkuil
On 9/24/19 11:58 AM, Dave Stevenson wrote: > On 23/09/2019 15:21, Hans Verkuil wrote: >> Hi all, >> >> Since we have three separate half-day sessions for different topics I decided >> to split the announcement for this in three emails as well, so these things >> can be discussed in separate threads

Re: [ANN] Media sessions in Lyon in October: libcamera

2019-09-24 Thread Dave Stevenson
On 23/09/2019 15:21, Hans Verkuil wrote: Hi all, Since we have three separate half-day sessions for different topics I decided to split the announcement for this in three emails as well, so these things can be discussed in separate threads. All sessions are in room Terreaux VIP Lounge - Level 0

[PATCH] v4l2-compliance: Verify metadata formats

2019-09-24 Thread Vandana BN
changes to testEnumFormats() and testGetFormats() to verify METADATA type. G_FMT sets node->valid_buftypes, so TRY/S_FMT does not get called for other input types, hence did not modify them. Signed-off-by: Vandana BN --- utils/v4l2-compliance/v4l2-test-formats.cpp | 17 + 1 file

[PATCH v7] v4l2-ctl: Print UVC meta info

2019-09-24 Thread Vandana BN
Print UVC Metadata information in verbose mode. Signed-off-by: Vandana BN --- Changes since v6: Not to print PTS/SCR if not present. Remove loop in print_meta_buffer() Changes since v5: Use proper print format. split fprintf. Changes since v4: Print PTS and

Re: [ANN] Media sessions in Lyon in October: libcamera

2019-09-24 Thread Boris Brezillon
Hi Hans, On Mon, 23 Sep 2019 16:21:04 +0200 Hans Verkuil wrote: > Hi all, > > Since we have three separate half-day sessions for different topics I decided > to split the announcement for this in three emails as well, so these things > can be discussed in separate threads. > > All sessions are

Re: [PATCH v6] v4l2-ctl: Print UVC meta info

2019-09-24 Thread Hans Verkuil
On 9/24/19 10:25 AM, Vandana BN wrote: > Print UVC Metadata information in verbose mode. > > Signed-off-by: Vandana BN > --- > Changes since v5: > Use proper print format. > split fprintf. > Changes since v4: > Print PTS and SCR info. > --- > utils/v4l2-ctl/v4l2-ctl-meta.cpp

[PATCH v6] v4l2-ctl: Print UVC meta info

2019-09-24 Thread Vandana BN
Print UVC Metadata information in verbose mode. Signed-off-by: Vandana BN --- Changes since v5: Use proper print format. split fprintf. Changes since v4: Print PTS and SCR info. --- utils/v4l2-ctl/v4l2-ctl-meta.cpp | 45 +++ utils/v4l2-ctl/v4l

[PATCH v3 2/5] arm: dts: Add jpeg enc device tree node

2019-09-24 Thread Xia Jiang
Add jpeg enc device tree node. Signed-off-by: Xia Jiang --- v3: change compatible to SoC specific compatible v2: no changes --- arch/arm/boot/dts/mt2701.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index 18

Re: [PATCH v5] v4l2-ctl: Print UVC meta info

2019-09-24 Thread Hans Verkuil
Hi Vandana, On 9/24/19 9:08 AM, Vandana BN wrote: > Print UVC Metadata information in verbose mode. > > Signed-off-by: Vandana BN > --- > Changes since v4: > Print PTS and SCR info. > --- > utils/v4l2-ctl/v4l2-ctl-meta.cpp | 42 +++ > utils/v4l2-ctl/v4l2-ctl-s

[PATCH v5] v4l2-ctl: Print UVC meta info

2019-09-24 Thread Vandana BN
Print UVC Metadata information in verbose mode. Signed-off-by: Vandana BN --- Changes since v4: Print PTS and SCR info. --- utils/v4l2-ctl/v4l2-ctl-meta.cpp | 42 +++ utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 14 + utils/v4l2-ctl/v4l2-ctl.h