Skip to content

Commit a66d05d

Browse files
committed
Merge branch 'patchwork' into v4l_for_linus
* patchwork: (544 commits) [media] ir-hix5hd2: fix build on c6x arch [media] pt3: fix DTV FE I2C driver load error paths Revert "[media] media: em28xx - remove reset_resume interface" [media] exynos4-is: fix some warnings when compiling on arm64 [media] usb drivers: use %zu instead of %zd [media] pci drivers: use %zu instead of %zd [media] dvb-frontends: use %zu instead of %zd [media] s5p-mfc: Fix several printk warnings [media] s5p_mfc_opr: Fix warnings [media] ti-vpe: Fix typecast [media] s3c-camif: fix dma_addr_t printks [media] s5p_mfc_opr_v6: get rid of warnings when compiled with 64 bits [media] s5p_mfc_opr_v5: Fix lots of warnings on x86_64 [media] em28xx: Fix identation [media] drxd: remove a dead code [media] saa7146: remove return after BUG() [media] cx88: remove return after BUG() [media] cx88: fix cards table CodingStyle [media] radio-sf16fmr2: declare some structs as static [media] radio-sf16fmi: declare pnp_attached as static ... Conflicts: Documentation/DocBook/media/v4l/compat.xml
2 parents bfe01a5 + 5563caa commit a66d05d

475 files changed

Lines changed: 36215 additions & 13052 deletions

File tree

Some content is hidden

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

‎Documentation/DocBook/media/v4l/compat.xml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2566,6 +2566,12 @@ fields changed from _s32 to _u32.
25662566
<para>Added compound control types and &VIDIOC-QUERY-EXT-CTRL;.
25672567
</para>
25682568
</listitem>
2569+
<title>V4L2 in Linux 3.18</title>
2570+
<orderedlist>
2571+
<listitem>
2572+
<para>Added <constant>V4L2_CID_PAN_SPEED</constant> and
2573+
<constant>V4L2_CID_TILT_SPEED</constant> camera controls.</para>
2574+
</listitem>
25692575
</orderedlist>
25702576
</section>
25712577

‎Documentation/DocBook/media/v4l/controls.xml‎

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3965,6 +3965,27 @@ by exposure, white balance or focus controls.</entry>
39653965
</row>
39663966
<row><entry></entry></row>
39673967

3968+
<row>
3969+
<entry spanname="id"><constant>V4L2_CID_PAN_SPEED</constant>&nbsp;</entry>
3970+
<entry>integer</entry>
3971+
</row><row><entry spanname="descr">This control turns the
3972+
camera horizontally at the specific speed. The unit is undefined. A
3973+
positive value moves the camera to the right (clockwise when viewed
3974+
from above), a negative value to the left. A value of zero stops the motion
3975+
if one is in progress and has no effect otherwise.</entry>
3976+
</row>
3977+
<row><entry></entry></row>
3978+
3979+
<row>
3980+
<entry spanname="id"><constant>V4L2_CID_TILT_SPEED</constant>&nbsp;</entry>
3981+
<entry>integer</entry>
3982+
</row><row><entry spanname="descr">This control turns the
3983+
camera vertically at the specified speed. The unit is undefined. A
3984+
positive value moves the camera up, a negative value down. A value of zero
3985+
stops the motion if one is in progress and has no effect otherwise.</entry>
3986+
</row>
3987+
<row><entry></entry></row>
3988+
39683989
</tbody>
39693990
</tgroup>
39703991
</table>
@@ -4790,6 +4811,40 @@ interface and may change in the future.</para>
47904811
conversion.
47914812
</entry>
47924813
</row>
4814+
<row>
4815+
<entry spanname="id"><constant>V4L2_CID_TEST_PATTERN_RED</constant></entry>
4816+
<entry>integer</entry>
4817+
</row>
4818+
<row>
4819+
<entry spanname="descr">Test pattern red colour component.
4820+
</entry>
4821+
</row>
4822+
<row>
4823+
<entry spanname="id"><constant>V4L2_CID_TEST_PATTERN_GREENR</constant></entry>
4824+
<entry>integer</entry>
4825+
</row>
4826+
<row>
4827+
<entry spanname="descr">Test pattern green (next to red)
4828+
colour component.
4829+
</entry>
4830+
</row>
4831+
<row>
4832+
<entry spanname="id"><constant>V4L2_CID_TEST_PATTERN_BLUE</constant></entry>
4833+
<entry>integer</entry>
4834+
</row>
4835+
<row>
4836+
<entry spanname="descr">Test pattern blue colour component.
4837+
</entry>
4838+
</row>
4839+
<row>
4840+
<entry spanname="id"><constant>V4L2_CID_TEST_PATTERN_GREENB</constant></entry>
4841+
<entry>integer</entry>
4842+
</row>
4843+
<row>
4844+
<entry spanname="descr">Test pattern green (next to blue)
4845+
colour component.
4846+
</entry>
4847+
</row>
47934848
<row><entry></entry></row>
47944849
</tbody>
47954850
</tgroup>

‎Documentation/DocBook/media/v4l/pixfmt-packed-rgb.xml‎

Lines changed: 48 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ for a pixel lie next to each other in memory.</para>
237237
<entry>g<subscript>4</subscript></entry>
238238
<entry>g<subscript>3</subscript></entry>
239239
</row>
240-
<row id="V4L2-PIX-FMT-RGB555X">
241-
<entry><constant>V4L2_PIX_FMT_RGB555X</constant></entry>
242-
<entry>'RGBQ'</entry>
240+
<row id="V4L2-PIX-FMT-ARGB555X">
241+
<entry><constant>V4L2_PIX_FMT_ARGB555X</constant></entry>
242+
<entry>'AR15' | (1 &lt;&lt; 31)</entry>
243243
<entry></entry>
244244
<entry>a</entry>
245245
<entry>r<subscript>4</subscript></entry>
@@ -259,6 +259,28 @@ for a pixel lie next to each other in memory.</para>
259259
<entry>b<subscript>1</subscript></entry>
260260
<entry>b<subscript>0</subscript></entry>
261261
</row>
262+
<row id="V4L2-PIX-FMT-XRGB555X">
263+
<entry><constant>V4L2_PIX_FMT_XRGB555X</constant></entry>
264+
<entry>'XR15' | (1 &lt;&lt; 31)</entry>
265+
<entry></entry>
266+
<entry>-</entry>
267+
<entry>r<subscript>4</subscript></entry>
268+
<entry>r<subscript>3</subscript></entry>
269+
<entry>r<subscript>2</subscript></entry>
270+
<entry>r<subscript>1</subscript></entry>
271+
<entry>r<subscript>0</subscript></entry>
272+
<entry>g<subscript>4</subscript></entry>
273+
<entry>g<subscript>3</subscript></entry>
274+
<entry></entry>
275+
<entry>g<subscript>2</subscript></entry>
276+
<entry>g<subscript>1</subscript></entry>
277+
<entry>g<subscript>0</subscript></entry>
278+
<entry>b<subscript>4</subscript></entry>
279+
<entry>b<subscript>3</subscript></entry>
280+
<entry>b<subscript>2</subscript></entry>
281+
<entry>b<subscript>1</subscript></entry>
282+
<entry>b<subscript>0</subscript></entry>
283+
</row>
262284
<row id="V4L2-PIX-FMT-RGB565X">
263285
<entry><constant>V4L2_PIX_FMT_RGB565X</constant></entry>
264286
<entry>'RGBR'</entry>
@@ -464,7 +486,7 @@ for a pixel lie next to each other in memory.</para>
464486
</row>
465487
<row id="V4L2-PIX-FMT-ARGB32">
466488
<entry><constant>V4L2_PIX_FMT_ARGB32</constant></entry>
467-
<entry>'AX24'</entry>
489+
<entry>'BA24'</entry>
468490
<entry></entry>
469491
<entry>a<subscript>7</subscript></entry>
470492
<entry>a<subscript>6</subscript></entry>
@@ -800,6 +822,28 @@ image</title>
800822
<entry>g<subscript>4</subscript></entry>
801823
<entry>g<subscript>3</subscript></entry>
802824
</row>
825+
<row id="V4L2-PIX-FMT-RGB555X">
826+
<entry><constant>V4L2_PIX_FMT_RGB555X</constant></entry>
827+
<entry>'RGBQ'</entry>
828+
<entry></entry>
829+
<entry>a</entry>
830+
<entry>r<subscript>4</subscript></entry>
831+
<entry>r<subscript>3</subscript></entry>
832+
<entry>r<subscript>2</subscript></entry>
833+
<entry>r<subscript>1</subscript></entry>
834+
<entry>r<subscript>0</subscript></entry>
835+
<entry>g<subscript>4</subscript></entry>
836+
<entry>g<subscript>3</subscript></entry>
837+
<entry></entry>
838+
<entry>g<subscript>2</subscript></entry>
839+
<entry>g<subscript>1</subscript></entry>
840+
<entry>g<subscript>0</subscript></entry>
841+
<entry>b<subscript>4</subscript></entry>
842+
<entry>b<subscript>3</subscript></entry>
843+
<entry>b<subscript>2</subscript></entry>
844+
<entry>b<subscript>1</subscript></entry>
845+
<entry>b<subscript>0</subscript></entry>
846+
</row>
803847
<row id="V4L2-PIX-FMT-BGR32">
804848
<entry><constant>V4L2_PIX_FMT_BGR32</constant></entry>
805849
<entry>'BGR4'</entry>

‎Documentation/DocBook/media/v4l/vidioc-dqevent.xml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,22 @@
7676
<entry></entry>
7777
<entry>&v4l2-event-vsync;</entry>
7878
<entry><structfield>vsync</structfield></entry>
79-
<entry>Event data for event V4L2_EVENT_VSYNC.
79+
<entry>Event data for event <constant>V4L2_EVENT_VSYNC</constant>.
8080
</entry>
8181
</row>
8282
<row>
8383
<entry></entry>
8484
<entry>&v4l2-event-ctrl;</entry>
8585
<entry><structfield>ctrl</structfield></entry>
86-
<entry>Event data for event V4L2_EVENT_CTRL.
86+
<entry>Event data for event <constant>V4L2_EVENT_CTRL</constant>.
8787
</entry>
8888
</row>
8989
<row>
9090
<entry></entry>
9191
<entry>&v4l2-event-frame-sync;</entry>
9292
<entry><structfield>frame_sync</structfield></entry>
93-
<entry>Event data for event V4L2_EVENT_FRAME_SYNC.</entry>
93+
<entry>Event data for event
94+
<constant>V4L2_EVENT_FRAME_SYNC</constant>.</entry>
9495
</row>
9596
<row>
9697
<entry></entry>

‎Documentation/DocBook/media/v4l/vidioc-g-edid.xml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<funcdef>int <function>ioctl</function></funcdef>
2525
<paramdef>int <parameter>fd</parameter></paramdef>
2626
<paramdef>int <parameter>request</parameter></paramdef>
27-
<paramdef>const struct v4l2_edid *<parameter>argp</parameter></paramdef>
27+
<paramdef>struct v4l2_edid *<parameter>argp</parameter></paramdef>
2828
</funcprototype>
2929
</funcsynopsis>
3030
</refsynopsisdiv>
@@ -124,18 +124,18 @@
124124
maximum number of blocks as defined by the standard). When you set the EDID and
125125
<structfield>blocks</structfield> is 0, then the EDID is disabled or erased.</entry>
126126
</row>
127-
<row>
128-
<entry>__u8&nbsp;*</entry>
129-
<entry><structfield>edid</structfield></entry>
130-
<entry>Pointer to memory that contains the EDID. The minimum size is
131-
<structfield>blocks</structfield>&nbsp;*&nbsp;128.</entry>
132-
</row>
133127
<row>
134128
<entry>__u32</entry>
135129
<entry><structfield>reserved</structfield>[5]</entry>
136130
<entry>Reserved for future extensions. Applications and drivers must
137131
set the array to zero.</entry>
138132
</row>
133+
<row>
134+
<entry>__u8&nbsp;*</entry>
135+
<entry><structfield>edid</structfield></entry>
136+
<entry>Pointer to memory that contains the EDID. The minimum size is
137+
<structfield>blocks</structfield>&nbsp;*&nbsp;128.</entry>
138+
</row>
139139
</tbody>
140140
</tgroup>
141141
</table>

‎Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
</row>
177177
<row>
178178
<entry><constant>V4L2_EVENT_MOTION_DET</constant></entry>
179-
<entry>5</entry>
179+
<entry>6</entry>
180180
<entry>
181181
<para>Triggered whenever the motion detection state for one or more of the regions
182182
changes. This event has a &v4l2-event-motion-det; associated with it.</para>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Device-Tree bindings for hix5hd2 ir IP
2+
3+
Required properties:
4+
- compatible: Should contain "hisilicon,hix5hd2-ir".
5+
- reg: Base physical address of the controller and length of memory
6+
mapped region.
7+
- interrupts: interrupt-specifier for the sole interrupt generated by
8+
the device. The interrupt specifier format depends on the interrupt
9+
controller parent.
10+
- clocks: clock phandle and specifier pair.
11+
- hisilicon,power-syscon: phandle of syscon used to control power.
12+
13+
Optional properties:
14+
- linux,rc-map-name : Remote control map name.
15+
16+
Example node:
17+
18+
ir: ir@f8001000 {
19+
compatible = "hisilicon,hix5hd2-ir";
20+
reg = <0xf8001000 0x1000>;
21+
interrupts = <0 47 4>;
22+
clocks = <&clock HIX5HD2_FIXED_24M>;
23+
hisilicon,power-syscon = <&sysctrl>;
24+
linux,rc-map-name = "rc-tivo";
25+
};

‎Documentation/dvb/get_dvb_firmware‎

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -708,23 +708,25 @@ sub drxk_terratec_htc_stick {
708708
}
709709

710710
sub it9135 {
711-
my $sourcefile = "dvb-usb-it9135.zip";
712-
my $url = "http://www.ite.com.tw/uploads/firmware/v3.6.0.0/$sourcefile";
713-
my $hash = "1e55f6c8833f1d0ae067c2bb2953e6a9";
714-
my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 0);
715-
my $outfile = "dvb-usb-it9135.fw";
711+
my $url = "http://www.ite.com.tw/uploads/firmware/v3.25.0.0/";
712+
my $file1 = "dvb-usb-it9135-01.zip";
716713
my $fwfile1 = "dvb-usb-it9135-01.fw";
714+
my $hash1 = "02fcf11174eda84745dae7e61c5ff9ba";
715+
my $file2 = "dvb-usb-it9135-02.zip";
717716
my $fwfile2 = "dvb-usb-it9135-02.fw";
717+
my $hash2 = "d5e1437dc24358578e07999475d4cac9";
718718

719719
checkstandard();
720720

721-
wgetfile($sourcefile, $url);
722-
unzip($sourcefile, $tmpdir);
723-
verify("$tmpdir/$outfile", $hash);
724-
extract("$tmpdir/$outfile", 64, 8128, "$fwfile1");
725-
extract("$tmpdir/$outfile", 12866, 5817, "$fwfile2");
721+
wgetfile($file1, $url . $file1);
722+
unzip($file1, "");
723+
verify("$fwfile1", $hash1);
724+
725+
wgetfile($file2, $url . $file2);
726+
unzip($file2, "");
727+
verify("$fwfile2", $hash2);
726728

727-
"$fwfile1 $fwfile2"
729+
"$file1 $file2"
728730
}
729731

730732
sub tda10071 {

0 commit comments

Comments
 (0)