[PATCH v3 0/9] media: vivid: add HDMI (dis)connect emulation

2019-06-17 Thread Johan Korsnes
t NULL v1 -> v2: - New patch: media: vivid: reorder CEC allocation and control set-up - vidioc_s_edid: Use bitmask (not boolean) value for bitmask controls - vidioc_g_edid: Changed dev->output to edid->pad Johan Korsnes (9): media: vivid: make input dv_timings per-input media: vi

[PATCH v3 7/9] media: vivid: reorder CEC allocation and control set-up

2019-06-17 Thread Johan Korsnes
a race condition. 3. Register CEC adapters: make them available to user space. Signed-off-by: Johan Korsnes --- drivers/media/platform/vivid/vivid-core.c | 100 +- 1 file changed, 58 insertions(+), 42 deletions(-) diff --git a/drivers/media/platform/vivid/vivid-core.c b

[PATCH v3 8/9] media: vivid: add CEC support to display present ctrl

2019-06-17 Thread Johan Korsnes
Set/invalidate physical addresses based on the configuration of the display present control. This is relevant not only when the display present control is modified, but also when the Vivid instance EDID is set/cleared. Signed-off-by: Johan Korsnes --- drivers/media/platform/vivid/vivid-ctrls.c

[PATCH v3 9/9] media: vivid.rst: describe display present control

2019-06-17 Thread Johan Korsnes
Signed-off-by: Johan Korsnes --- Documentation/media/v4l-drivers/vivid.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/media/v4l-drivers/vivid.rst b/Documentation/media/v4l-drivers/vivid.rst index edb6f33e029c..7082fec4075d 100644 --- a/Documentation/media/v4l-drivers

[PATCH v3 5/9] media: vivid: add HDMI (dis)connect TX emulation

2019-06-17 Thread Johan Korsnes
Adds the following bitmask controls: -V4L2_CID_DV_TX_EDID_PRESENT -V4L2_CID_DV_TX_HOTPLUG -V4L2_CID_DV_TX_RXSENSE The bitmasks are all set based on the custom vivid DISPLAY_PRESENT control. This also removes 2/2 v4l2-compliance warnings for vivid output device. Signed-off-by: Johan Korsnes

[PATCH v3 1/9] media: vivid: make input dv_timings per-input

2019-06-17 Thread Johan Korsnes
Make the following properties per-input -DV Timings Signal Mode -DV Timings These properties need to be per-input in order to implement proper HDMI (dis)connect-behavior, where the signal mode will be used to signify whether or not there is an input device connected. Signed-off-by: Johan

[PATCH v3 6/9] media: vivid: add HDMI (dis)connect RX emulation

2019-06-17 Thread Johan Korsnes
Adds the following bitmask control: -V4L2_CID_DV_RX_POWER_PRESENT The RX_POWER_PRESENT bitmask is set based on the digital video timings signal mode. This also removes 1/1 warnings for v4l2-compliance test on vivid instance with HDMI input. Signed-off-by: Johan Korsnes --- drivers/media

[PATCH v3 3/9] media: vivid: add display present control

2019-06-17 Thread Johan Korsnes
Add a custom control for selecting the presence of a display connected to the active output. This control is part of an effort to implement proper HDMI (dis)connect behavior for vivid. Signed-off-by: Johan Korsnes --- drivers/media/platform/vivid/vivid-core.c| 3 +++ drivers/media/platform

[PATCH v3 2/9] media: vivid: make input std_signal per-input

2019-06-17 Thread Johan Korsnes
Make the following properties per-input: -Standard Signal Mode -Standard These properties need to be per-input in order to implement proper HDMI (dis)connect-behavior, where the signal mode will be used to signify whether or not there is an inpute device connected. Signed-off-by: Johan Korsnes

[PATCH v3 4/9] media: vivid: add number of HDMI ports to device state

2019-06-17 Thread Johan Korsnes
This will be used for HDMI-specific controls such as hotplug detection and power present. Signed-off-by: Johan Korsnes --- drivers/media/platform/vivid/vivid-core.c | 2 ++ drivers/media/platform/vivid/vivid-core.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/media/platform

[PATCH v2 1/9] media: vivid: make input dv_timings per-input

2019-06-16 Thread Johan Korsnes
Make the following properties per-input -DV Timings Signal Mode -DV Timings These properties need to be per-input in order to implement proper HDMI (dis)connect-behavior, where the signal mode will be used to signify whether or not there is an input device connected. Signed-off-by: Johan

[PATCH v2 8/9] media: vivid: add CEC support to display present ctrl

2019-06-16 Thread Johan Korsnes
Set/invalidate physical addresses based on the configuration of the display present control. This is relevant not only when the display present control is modified, but also when the Vivid instance EDID is set/cleared. Signed-off-by: Johan Korsnes --- drivers/media/platform/vivid/vivid-ctrls.c

[PATCH v2 4/9] media: vivid: add number of HDMI ports to device state

2019-06-16 Thread Johan Korsnes
This will be used for HDMI-specific controls such as hotplug detection and power present. Signed-off-by: Johan Korsnes --- drivers/media/platform/vivid/vivid-core.c | 2 ++ drivers/media/platform/vivid/vivid-core.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/media/platform

[PATCH v2 2/9] media: vivid: make input std_signal per-input

2019-06-16 Thread Johan Korsnes
Make the following properties per-input: -Standard Signal Mode -Standard These properties need to be per-input in order to implement proper HDMI (dis)connect-behavior, where the signal mode will be used to signify whether or not there is an inpute device connected. Signed-off-by: Johan Korsnes

[PATCH v2 3/9] media: vivid: add display present control

2019-06-16 Thread Johan Korsnes
Add a custom control for selecting the presence of a display connected to the active output. This control is part of an effort to implement proper HDMI (dis)connect behavior for vivid. Signed-off-by: Johan Korsnes --- drivers/media/platform/vivid/vivid-core.c| 3 +++ drivers/media/platform

[PATCH v2 6/9] media: vivid: add HDMI (dis)connect RX emulation

2019-06-16 Thread Johan Korsnes
Adds the following bitmask control: -V4L2_CID_DV_RX_POWER_PRESENT The RX_POWER_PRESENT bitmask is set based on the digital video timings signal mode. This also removes 1/1 warnings for v4l2-compliance test on vivid instance with HDMI input. Signed-off-by: Johan Korsnes --- drivers/media

[PATCH v2 5/9] media: vivid: add HDMI (dis)connect TX emulation

2019-06-16 Thread Johan Korsnes
Adds the following bitmask controls: -V4L2_CID_DV_TX_EDID_PRESENT -V4L2_CID_DV_TX_HOTPLUG -V4L2_CID_DV_TX_RXSENSE The bitmasks are all set based on the custom vivid DISPLAY_PRESENT control. This also removes 2/2 v4l2-compliance warnings for vivid output device. Signed-off-by: Johan Korsnes

[PATCH v2 7/9] media: vivid: reorder CEC allocation and control set-up

2019-06-16 Thread Johan Korsnes
a race condition. 3. Register CEC adapters: make them available to user space. Signed-off-by: Johan Korsnes --- drivers/media/platform/vivid/vivid-core.c | 100 +- 1 file changed, 58 insertions(+), 42 deletions(-) diff --git a/drivers/media/platform/vivid/vivid-core.c b

[PATCH v2 9/9] media: vivid.rst: describe display present control

2019-06-16 Thread Johan Korsnes
Signed-off-by: Johan Korsnes --- Documentation/media/v4l-drivers/vivid.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/media/v4l-drivers/vivid.rst b/Documentation/media/v4l-drivers/vivid.rst index edb6f33e029c..7082fec4075d 100644 --- a/Documentation/media/v4l-drivers

[PATCH v2 0/9] media: vivid: add HDMI (dis)connect emulation

2019-06-16 Thread Johan Korsnes
not found for output n Regards, Johan v1 -> v2: - New patch: media: vivid: reorder CEC allocation and control set-up - vidioc_s_edid: Use bitmask (not boolean) value for bitmask controls - vidioc_g_edid: Changed dev->output to edid->pad Johan Korsnes (9): media: vivid: make input d

Re: [PATCH 7/8] media: vivid: add CEC support to display present ctrl

2019-06-11 Thread Johan Korsnes
9 7:19 PM, johan.kors...@gmail.com wrote: >> From: Johan Korsnes >> >> Set/invalidate physical addresses based on the configuration of the >> display present control. This is relevant not only when the display >> present control is modified, but also when the Vivid instance

vivid: Add HDMI (dis)connect emulation

2019-05-28 Thread johan . korsnes
-ctrl_rx_power_present * Fixes the following warning for HDMI input devices: -V4L2_CID_DV_RX_POWER_PRESENT not found for input n Fixes the following warnings for HDMI ouptut devices: -V4L2_CID_DV_TX_HOTPLUG not found for output n -V4L2_CID_DV_TX_EDID_PRESENT not found for output n Johan Korsnes (8

[PATCH 3/8] media: vivid: add display present control

2019-05-28 Thread johan . korsnes
From: Johan Korsnes Add a custom control for selecting the presence of a display connected to the active output. This control is part of an effort to implement proper HDMI (dis)connect behavior for vivid. Signed-off-by: Johan Korsnes --- drivers/media/platform/vivid/vivid-core.c| 3

[PATCH 4/8] media: vivid: add number of HDMI ports to device state

2019-05-28 Thread johan . korsnes
From: Johan Korsnes This will be used for HDMI-specific controls such as hotplug detection and power present. Signed-off-by: Johan Korsnes --- drivers/media/platform/vivid/vivid-core.c | 2 ++ drivers/media/platform/vivid/vivid-core.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a

[PATCH 1/8] media: vivid: make input dv_timings per-input

2019-05-28 Thread johan . korsnes
From: Johan Korsnes Make the following properties per-input -DV Timings Signal Mode -DV Timings These properties need to be per-input in order to implement proper HDMI (dis)connect-behavior, where the signal mode will be used to signify whether or not there is an input device connected

[PATCH 8/8] media: vivid.rst: describe display present control

2019-05-28 Thread johan . korsnes
From: Johan Korsnes Signed-off-by: Johan Korsnes --- Documentation/media/v4l-drivers/vivid.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/media/v4l-drivers/vivid.rst b/Documentation/media/v4l-drivers/vivid.rst index edb6f33e029c..7082fec4075d 100644 --- a

[PATCH 2/8] media: vivid: make input std_signal per-input

2019-05-28 Thread johan . korsnes
From: Johan Korsnes Make the following properties per-input: -Standard Signal Mode -Standard These properties need to be per-input in order to implement proper HDMI (dis)connect-behavior, where the signal mode will be used to signify whether or not there is an inpute device connected. Signed

[PATCH 5/8] media: vivid: add HDMI (dis)connect TX emulation

2019-05-28 Thread johan . korsnes
From: Johan Korsnes Adds the following bitmask controls: -V4L2_CID_DV_TX_EDID_PRESENT -V4L2_CID_DV_TX_HOTPLUG -V4L2_CID_DV_TX_RXSENSE The bitmasks are all set based on the custom vivid DISPLAY_PRESENT control. This also removes 2/2 v4l2-compliance warnings for vivid output device. Signed-off

[PATCH 7/8] media: vivid: add CEC support to display present ctrl

2019-05-28 Thread johan . korsnes
From: Johan Korsnes Set/invalidate physical addresses based on the configuration of the display present control. This is relevant not only when the display present control is modified, but also when the Vivid instance EDID is set/cleared. Signed-off-by: Johan Korsnes --- drivers/media

[PATCH 6/8] media: vivid: add HDMI (dis)connect RX emulation

2019-05-28 Thread johan . korsnes
From: Johan Korsnes Adds the following bitmask control: -V4L2_CID_DV_RX_POWER_PRESENT The RX_POWER_PRESENT bitmask is set based on the digital video timings signal mode. This also removes 1/1 warnings for v4l2-compliance test on vivid instance with HDMI input. Signed-off-by: Johan Korsnes