Skip to content

Commit 3272eb1

Browse files
committed
Merge tag 'media/v6.1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
Pull missed media updates from Mauro Carvalho Chehab: "It seems I screwed-up my previous pull request: it ends up that only half of the media patches that were in linux-next got merged in -rc1. The script which creates the signed tags silently failed due to 5.19->6.0 so it ended generating a tag with incomplete stuff. So here are the missing parts: - a DVB core security fix - lots of fixes and cleanups for atomisp staging driver - old drivers that are VB1 are being moved to staging to be deprecated - several driver updates - mostly for embedded systems, but there are also some things addressing issues with some PC webcams, in the UVC video driver" * tag 'media/v6.1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (163 commits) media: sun6i-csi: Move csi buffer definition to main header file media: sun6i-csi: Introduce and use video helper functions media: sun6i-csi: Add media ops with link notify callback media: sun6i-csi: Remove controls handler from the driver media: sun6i-csi: Register the media device after creation media: sun6i-csi: Pass and store csi device directly in video code media: sun6i-csi: Tidy up video code media: sun6i-csi: Tidy up v4l2 code media: sun6i-csi: Tidy up Kconfig media: sun6i-csi: Use runtime pm for clocks and reset media: sun6i-csi: Define and use variant to get module clock rate media: sun6i-csi: Always set exclusive module clock rate media: sun6i-csi: Tidy up platform code media: sun6i-csi: Refactor main driver data structures media: sun6i-csi: Define and use driver name and (reworked) description media: cedrus: Add a Kconfig dependency on RESET_CONTROLLER media: sun8i-rotate: Add a Kconfig dependency on RESET_CONTROLLER media: sun8i-di: Add a Kconfig dependency on RESET_CONTROLLER media: sun4i-csi: Add a Kconfig dependency on RESET_CONTROLLER media: sun6i-csi: Add a Kconfig dependency on RESET_CONTROLLER ...
2 parents 4da34b7 + d67614f commit 3272eb1

File tree

132 files changed

+3193
-3873
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+3193
-3873
lines changed

Documentation/devicetree/bindings/media/i2c/dongwoon,dw9714.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/media/i2c/dongwoon,dw9714.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Dongwoon Anatech DW9714 camera voice coil lens driver
8+
9+
maintainers:
10+
- Krzysztof Kozlowski <[email protected]>
11+
12+
description:
13+
DW9174 is a 10-bit DAC with current sink capability. It is intended for
14+
driving voice coil lenses in camera modules.
15+
16+
properties:
17+
compatible:
18+
const: dongwoon,dw9714
19+
20+
reg:
21+
maxItems: 1
22+
23+
powerdown-gpios:
24+
description:
25+
XSD pin for shutdown (active low)
26+
27+
vcc-supply:
28+
description: VDD power supply
29+
30+
required:
31+
- compatible
32+
- reg
33+
34+
additionalProperties: false
35+
36+
examples:
37+
- |
38+
i2c {
39+
#address-cells = <1>;
40+
#size-cells = <0>;
41+
42+
camera-lens@c {
43+
compatible = "dongwoon,dw9714";
44+
reg = <0x0c>;
45+
vcc-supply = <&reg_csi_1v8>;
46+
};
47+
};

Documentation/driver-api/media/mc-core.rst

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,18 +214,29 @@ Link properties can be modified at runtime by calling
214214
Pipelines and media streams
215215
^^^^^^^^^^^^^^^^^^^^^^^^^^^
216216

217+
A media stream is a stream of pixels or metadata originating from one or more
218+
source devices (such as a sensors) and flowing through media entity pads
219+
towards the final sinks. The stream can be modified on the route by the
220+
devices (e.g. scaling or pixel format conversions), or it can be split into
221+
multiple branches, or multiple branches can be merged.
222+
223+
A media pipeline is a set of media streams which are interdependent. This
224+
interdependency can be caused by the hardware (e.g. configuration of a second
225+
stream cannot be changed if the first stream has been enabled) or by the driver
226+
due to the software design. Most commonly a media pipeline consists of a single
227+
stream which does not branch.
228+
217229
When starting streaming, drivers must notify all entities in the pipeline to
218230
prevent link states from being modified during streaming by calling
219231
:c:func:`media_pipeline_start()`.
220232

221-
The function will mark all entities connected to the given entity through
222-
enabled links, either directly or indirectly, as streaming.
233+
The function will mark all the pads which are part of the pipeline as streaming.
223234

224235
The struct media_pipeline instance pointed to by
225-
the pipe argument will be stored in every entity in the pipeline.
236+
the pipe argument will be stored in every pad in the pipeline.
226237
Drivers should embed the struct media_pipeline
227238
in higher-level pipeline structures and can then access the
228-
pipeline through the struct media_entity
239+
pipeline through the struct media_pad
229240
pipe field.
230241

231242
Calls to :c:func:`media_pipeline_start()` can be nested.

Documentation/userspace-api/media/cec.h.rst.exceptions

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ ignore define CEC_OP_FEAT_DEV_HAS_DECK_CONTROL
239239
ignore define CEC_OP_FEAT_DEV_HAS_SET_AUDIO_RATE
240240
ignore define CEC_OP_FEAT_DEV_SINK_HAS_ARC_TX
241241
ignore define CEC_OP_FEAT_DEV_SOURCE_HAS_ARC_RX
242+
ignore define CEC_OP_FEAT_DEV_HAS_SET_AUDIO_VOLUME_LEVEL
242243

243244
ignore define CEC_MSG_GIVE_FEATURES
244245

@@ -487,6 +488,7 @@ ignore define CEC_OP_SYS_AUD_STATUS_ON
487488

488489
ignore define CEC_MSG_SYSTEM_AUDIO_MODE_REQUEST
489490
ignore define CEC_MSG_SYSTEM_AUDIO_MODE_STATUS
491+
ignore define CEC_MSG_SET_AUDIO_VOLUME_LEVEL
490492

491493
ignore define CEC_OP_AUD_FMT_ID_CEA861
492494
ignore define CEC_OP_AUD_FMT_ID_CEA861_CXT

Documentation/userspace-api/media/v4l/libv4l-introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ V4L2 functions
136136
137137
operates like the :c:func:`read()` function.
138138
139-
.. c:function:: void v4l2_mmap(void *start, size_t length, int prot, int flags, int fd, int64_t offset);
139+
.. c:function:: void *v4l2_mmap(void *start, size_t length, int prot, int flags, int fd, int64_t offset);
140140
141-
operates like the :c:func:`munmap()` function.
141+
operates like the :c:func:`mmap()` function.
142142
143143
.. c:function:: int v4l2_munmap(void *_start, size_t length);
144144

MAINTAINERS

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6284,7 +6284,7 @@ M: Sakari Ailus <[email protected]>
62846284
62856285
S: Maintained
62866286
T: git git://linuxtv.org/media_tree.git
6287-
F: Documentation/devicetree/bindings/media/i2c/dongwoon,dw9714.txt
6287+
F: Documentation/devicetree/bindings/media/i2c/dongwoon,dw9714.yaml
62886288
F: drivers/media/i2c/dw9714.c
62896289

62906290
DONGWOON DW9768 LENS VOICE COIL DRIVER
@@ -18141,7 +18141,6 @@ L: [email protected]
1814118141
S: Maintained
1814218142
T: git git://linuxtv.org/media_tree.git
1814318143
F: drivers/staging/media/deprecated/saa7146/
18144-
F: include/media/drv-intf/saa7146*
1814518144

1814618145
SAFESETID SECURITY MODULE
1814718146
M: Micah Morton <[email protected]>
@@ -22771,7 +22770,7 @@ S: Maintained
2277122770
W: http://mjpeg.sourceforge.net/driver-zoran/
2277222771
Q: https://patchwork.linuxtv.org/project/linux-media/list/
2277322772
F: Documentation/driver-api/media/drivers/zoran.rst
22774-
F: drivers/staging/media/zoran/
22773+
F: drivers/media/pci/zoran/
2277522774

2277622775
ZRAM COMPRESSED RAM BLOCK DEVICE DRVIER
2277722776
M: Minchan Kim <[email protected]>

drivers/media/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if MEDIA_SUPPORT
2424

2525
config MEDIA_SUPPORT_FILTER
2626
bool "Filter media drivers"
27-
default y if !EMBEDDED && !EXPERT
27+
default y if !EXPERT
2828
help
2929
Configuring the media subsystem can be complex, as there are
3030
hundreds of drivers and other config options.

drivers/media/cec/core/cec-adap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,7 @@ static const u8 cec_msg_size[256] = {
10271027
[CEC_MSG_REPORT_SHORT_AUDIO_DESCRIPTOR] = 2 | DIRECTED,
10281028
[CEC_MSG_REQUEST_SHORT_AUDIO_DESCRIPTOR] = 2 | DIRECTED,
10291029
[CEC_MSG_SET_SYSTEM_AUDIO_MODE] = 3 | BOTH,
1030+
[CEC_MSG_SET_AUDIO_VOLUME_LEVEL] = 3 | DIRECTED,
10301031
[CEC_MSG_SYSTEM_AUDIO_MODE_REQUEST] = 2 | DIRECTED,
10311032
[CEC_MSG_SYSTEM_AUDIO_MODE_STATUS] = 3 | DIRECTED,
10321033
[CEC_MSG_SET_AUDIO_RATE] = 3 | DIRECTED,

drivers/media/cec/platform/cros-ec/cros-ec-cec.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ static void handle_cec_message(struct cros_ec_cec *cros_ec_cec)
4444
uint8_t *cec_message = cros_ec->event_data.data.cec_message;
4545
unsigned int len = cros_ec->event_size;
4646

47+
if (len > CEC_MAX_MSG_SIZE)
48+
len = CEC_MAX_MSG_SIZE;
4749
cros_ec_cec->rx_msg.len = len;
4850
memcpy(cros_ec_cec->rx_msg.msg, cec_message, len);
4951

@@ -221,6 +223,8 @@ static const struct cec_dmi_match cec_dmi_match_table[] = {
221223
{ "Google", "Moli", "0000:00:02.0", "Port B" },
222224
/* Google Kinox */
223225
{ "Google", "Kinox", "0000:00:02.0", "Port B" },
226+
/* Google Kuldax */
227+
{ "Google", "Kuldax", "0000:00:02.0", "Port B" },
224228
};
225229

226230
static struct device *cros_ec_cec_find_hdmi_dev(struct device *dev,

drivers/media/cec/platform/s5p/s5p_cec.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ static irqreturn_t s5p_cec_irq_handler(int irq, void *priv)
115115
dev_dbg(cec->dev, "Buffer overrun (worker did not process previous message)\n");
116116
cec->rx = STATE_BUSY;
117117
cec->msg.len = status >> 24;
118+
if (cec->msg.len > CEC_MAX_MSG_SIZE)
119+
cec->msg.len = CEC_MAX_MSG_SIZE;
118120
cec->msg.rx_status = CEC_RX_STATUS_OK;
119121
s5p_cec_get_rx_buf(cec, cec->msg.len,
120122
cec->msg.msg);

0 commit comments

Comments
 (0)