aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-04-06 05:16:58 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-04-14 18:47:33 -0400
commit96b03d2a3078d5e95a8b106634faa7cea88ebe5e (patch)
tree22f781d017cf9f27fa61a8577d896993a1e82f08
parent0f0fe4b9f6f32b90c82345b97da2977b84e14414 (diff)
[media] v4l2: rename VIDIOC_DBG_G_CHIP_NAME to _CHIP_INFO
This ioctl will be extended to return more information than just the name. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--Documentation/DocBook/media/v4l/compat.xml2
-rw-r--r--Documentation/DocBook/media/v4l/v4l2.xml4
-rw-r--r--Documentation/DocBook/media/v4l/vidioc-dbg-g-chip-info.xml (renamed from Documentation/DocBook/media/v4l/vidioc-dbg-g-chip-name.xml)20
-rw-r--r--Documentation/DocBook/media/v4l/vidioc-dbg-g-register.xml10
-rw-r--r--drivers/media/usb/em28xx/em28xx-video.c8
-rw-r--r--drivers/media/v4l2-core/v4l2-dev.c2
-rw-r--r--drivers/media/v4l2-core/v4l2-ioctl.c14
-rw-r--r--include/media/v4l2-ioctl.h4
-rw-r--r--include/uapi/linux/videodev2.h8
9 files changed, 36 insertions, 36 deletions
diff --git a/Documentation/DocBook/media/v4l/compat.xml b/Documentation/DocBook/media/v4l/compat.xml
index e44161ffdd07..f43542ae2981 100644
--- a/Documentation/DocBook/media/v4l/compat.xml
+++ b/Documentation/DocBook/media/v4l/compat.xml
@@ -2507,7 +2507,7 @@ that used it. It was originally scheduled for removal in 2.6.35.
2507 </para> 2507 </para>
2508 </listitem> 2508 </listitem>
2509 <listitem> 2509 <listitem>
2510 <para>Added new debugging ioctl &VIDIOC-DBG-G-CHIP-NAME;. 2510 <para>Added new debugging ioctl &VIDIOC-DBG-G-CHIP-INFO;.
2511 </para> 2511 </para>
2512 </listitem> 2512 </listitem>
2513 </orderedlist> 2513 </orderedlist>
diff --git a/Documentation/DocBook/media/v4l/v4l2.xml b/Documentation/DocBook/media/v4l/v4l2.xml
index c1f334084213..bfc93cdcf696 100644
--- a/Documentation/DocBook/media/v4l/v4l2.xml
+++ b/Documentation/DocBook/media/v4l/v4l2.xml
@@ -147,7 +147,7 @@ applications. -->
147 <revremark>Remove obsolete and unused DV_PRESET ioctls: 147 <revremark>Remove obsolete and unused DV_PRESET ioctls:
148 VIDIOC_G_DV_PRESET, VIDIOC_S_DV_PRESET, VIDIOC_QUERY_DV_PRESET and 148 VIDIOC_G_DV_PRESET, VIDIOC_S_DV_PRESET, VIDIOC_QUERY_DV_PRESET and
149 VIDIOC_ENUM_DV_PRESET. Remove the related v4l2_input/output capability 149 VIDIOC_ENUM_DV_PRESET. Remove the related v4l2_input/output capability
150 flags V4L2_IN_CAP_PRESETS and V4L2_OUT_CAP_PRESETS. Added VIDIOC_DBG_G_CHIP_NAME. 150 flags V4L2_IN_CAP_PRESETS and V4L2_OUT_CAP_PRESETS. Added VIDIOC_DBG_G_CHIP_INFO.
151 </revremark> 151 </revremark>
152 </revision> 152 </revision>
153 153
@@ -548,7 +548,7 @@ and discussions on the V4L mailing list.</revremark>
548 &sub-create-bufs; 548 &sub-create-bufs;
549 &sub-cropcap; 549 &sub-cropcap;
550 &sub-dbg-g-chip-ident; 550 &sub-dbg-g-chip-ident;
551 &sub-dbg-g-chip-name; 551 &sub-dbg-g-chip-info;
552 &sub-dbg-g-register; 552 &sub-dbg-g-register;
553 &sub-decoder-cmd; 553 &sub-decoder-cmd;
554 &sub-dqevent; 554 &sub-dqevent;
diff --git a/Documentation/DocBook/media/v4l/vidioc-dbg-g-chip-name.xml b/Documentation/DocBook/media/v4l/vidioc-dbg-g-chip-info.xml
index fa3bd42ab167..e1cece6c5de1 100644
--- a/Documentation/DocBook/media/v4l/vidioc-dbg-g-chip-name.xml
+++ b/Documentation/DocBook/media/v4l/vidioc-dbg-g-chip-info.xml
@@ -1,11 +1,11 @@
1<refentry id="vidioc-dbg-g-chip-name"> 1<refentry id="vidioc-dbg-g-chip-info">
2 <refmeta> 2 <refmeta>
3 <refentrytitle>ioctl VIDIOC_DBG_G_CHIP_NAME</refentrytitle> 3 <refentrytitle>ioctl VIDIOC_DBG_G_CHIP_INFO</refentrytitle>
4 &manvol; 4 &manvol;
5 </refmeta> 5 </refmeta>
6 6
7 <refnamediv> 7 <refnamediv>
8 <refname>VIDIOC_DBG_G_CHIP_NAME</refname> 8 <refname>VIDIOC_DBG_G_CHIP_INFO</refname>
9 <refpurpose>Identify the chips on a TV card</refpurpose> 9 <refpurpose>Identify the chips on a TV card</refpurpose>
10 </refnamediv> 10 </refnamediv>
11 11
@@ -15,7 +15,7 @@
15 <funcdef>int <function>ioctl</function></funcdef> 15 <funcdef>int <function>ioctl</function></funcdef>
16 <paramdef>int <parameter>fd</parameter></paramdef> 16 <paramdef>int <parameter>fd</parameter></paramdef>
17 <paramdef>int <parameter>request</parameter></paramdef> 17 <paramdef>int <parameter>request</parameter></paramdef>
18 <paramdef>struct v4l2_dbg_chip_name 18 <paramdef>struct v4l2_dbg_chip_info
19*<parameter>argp</parameter></paramdef> 19*<parameter>argp</parameter></paramdef>
20 </funcprototype> 20 </funcprototype>
21 </funcsynopsis> 21 </funcsynopsis>
@@ -34,7 +34,7 @@
34 <varlistentry> 34 <varlistentry>
35 <term><parameter>request</parameter></term> 35 <term><parameter>request</parameter></term>
36 <listitem> 36 <listitem>
37 <para>VIDIOC_DBG_G_CHIP_NAME</para> 37 <para>VIDIOC_DBG_G_CHIP_INFO</para>
38 </listitem> 38 </listitem>
39 </varlistentry> 39 </varlistentry>
40 <varlistentry> 40 <varlistentry>
@@ -69,8 +69,8 @@ so it can be fixed.</para>
69 <para>To query the driver applications must initialize the 69 <para>To query the driver applications must initialize the
70<structfield>match.type</structfield> and 70<structfield>match.type</structfield> and
71<structfield>match.addr</structfield> or <structfield>match.name</structfield> 71<structfield>match.addr</structfield> or <structfield>match.name</structfield>
72fields of a &v4l2-dbg-chip-name; 72fields of a &v4l2-dbg-chip-info;
73and call <constant>VIDIOC_DBG_G_CHIP_NAME</constant> with a pointer to 73and call <constant>VIDIOC_DBG_G_CHIP_INFO</constant> with a pointer to
74this structure. On success the driver stores information about the 74this structure. On success the driver stores information about the
75selected chip in the <structfield>name</structfield> and 75selected chip in the <structfield>name</structfield> and
76<structfield>flags</structfield> fields. On failure the structure 76<structfield>flags</structfield> fields. On failure the structure
@@ -81,7 +81,7 @@ remains unchanged.</para>
81<structfield>match.addr</structfield> selects the nth bridge 'chip' 81<structfield>match.addr</structfield> selects the nth bridge 'chip'
82on the TV card. You can enumerate all chips by starting at zero and 82on the TV card. You can enumerate all chips by starting at zero and
83incrementing <structfield>match.addr</structfield> by one until 83incrementing <structfield>match.addr</structfield> by one until
84<constant>VIDIOC_DBG_G_CHIP_NAME</constant> fails with an &EINVAL;. 84<constant>VIDIOC_DBG_G_CHIP_INFO</constant> fails with an &EINVAL;.
85The number zero always selects the bridge chip itself, &eg; the chip 85The number zero always selects the bridge chip itself, &eg; the chip
86connected to the PCI or USB bus. Non-zero numbers identify specific 86connected to the PCI or USB bus. Non-zero numbers identify specific
87parts of the bridge chip such as an AC97 register block.</para> 87parts of the bridge chip such as an AC97 register block.</para>
@@ -138,8 +138,8 @@ to the <structfield>type</structfield> field.</entry>
138 </tgroup> 138 </tgroup>
139 </table> 139 </table>
140 140
141 <table pgwide="1" frame="none" id="v4l2-dbg-chip-name"> 141 <table pgwide="1" frame="none" id="v4l2-dbg-chip-info">
142 <title>struct <structname>v4l2_dbg_chip_name</structname></title> 142 <title>struct <structname>v4l2_dbg_chip_info</structname></title>
143 <tgroup cols="3"> 143 <tgroup cols="3">
144 &cs-str; 144 &cs-str;
145 <tbody valign="top"> 145 <tbody valign="top">
diff --git a/Documentation/DocBook/media/v4l/vidioc-dbg-g-register.xml b/Documentation/DocBook/media/v4l/vidioc-dbg-g-register.xml
index db7844f2439f..d13bac9e2445 100644
--- a/Documentation/DocBook/media/v4l/vidioc-dbg-g-register.xml
+++ b/Documentation/DocBook/media/v4l/vidioc-dbg-g-register.xml
@@ -99,7 +99,7 @@ unchanged.</para>
99<structfield>match.addr</structfield> selects the nth non-sub-device chip 99<structfield>match.addr</structfield> selects the nth non-sub-device chip
100on the TV card. The number zero always selects the host chip, &eg; the 100on the TV card. The number zero always selects the host chip, &eg; the
101chip connected to the PCI or USB bus. You can find out which chips are 101chip connected to the PCI or USB bus. You can find out which chips are
102present with the &VIDIOC-DBG-G-CHIP-NAME; ioctl.</para> 102present with the &VIDIOC-DBG-G-CHIP-INFO; ioctl.</para>
103 103
104 <para>When <structfield>match.type</structfield> is 104 <para>When <structfield>match.type</structfield> is
105<constant>V4L2_CHIP_MATCH_I2C_DRIVER</constant>, 105<constant>V4L2_CHIP_MATCH_I2C_DRIVER</constant>,
@@ -109,7 +109,7 @@ For instance
109supported by the saa7127 driver, regardless of its &i2c; bus address. 109supported by the saa7127 driver, regardless of its &i2c; bus address.
110When multiple chips supported by the same driver are present, the 110When multiple chips supported by the same driver are present, the
111effect of these ioctls is undefined. Again with the 111effect of these ioctls is undefined. Again with the
112&VIDIOC-DBG-G-CHIP-NAME; ioctl you can find out which &i2c; chips are 112&VIDIOC-DBG-G-CHIP-INFO; ioctl you can find out which &i2c; chips are
113present.</para> 113present.</para>
114 114
115 <para>When <structfield>match.type</structfield> is 115 <para>When <structfield>match.type</structfield> is
@@ -131,14 +131,14 @@ on the TV card.</para>
131 131
132 <para>Due to a flaw in the Linux &i2c; bus driver these ioctls may 132 <para>Due to a flaw in the Linux &i2c; bus driver these ioctls may
133return successfully without actually reading or writing a register. To 133return successfully without actually reading or writing a register. To
134catch the most likely failure we recommend a &VIDIOC-DBG-G-CHIP-NAME; 134catch the most likely failure we recommend a &VIDIOC-DBG-G-CHIP-INFO;
135call confirming the presence of the selected &i2c; chip.</para> 135call confirming the presence of the selected &i2c; chip.</para>
136 </note> 136 </note>
137 137
138 <para>These ioctls are optional, not all drivers may support them. 138 <para>These ioctls are optional, not all drivers may support them.
139However when a driver supports these ioctls it must also support 139However when a driver supports these ioctls it must also support
140&VIDIOC-DBG-G-CHIP-NAME;. Conversely it may support 140&VIDIOC-DBG-G-CHIP-INFO;. Conversely it may support
141<constant>VIDIOC_DBG_G_CHIP_NAME</constant> but not these ioctls.</para> 141<constant>VIDIOC_DBG_G_CHIP_INFO</constant> but not these ioctls.</para>
142 142
143 <para><constant>VIDIOC_DBG_G_REGISTER</constant> and 143 <para><constant>VIDIOC_DBG_G_REGISTER</constant> and
144<constant>VIDIOC_DBG_S_REGISTER</constant> were introduced in Linux 144<constant>VIDIOC_DBG_S_REGISTER</constant> were introduced in Linux
diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c
index 39951f5731e1..c27c1f671396 100644
--- a/drivers/media/usb/em28xx/em28xx-video.c
+++ b/drivers/media/usb/em28xx/em28xx-video.c
@@ -1332,8 +1332,8 @@ static int vidioc_g_chip_ident(struct file *file, void *priv,
1332} 1332}
1333 1333
1334#ifdef CONFIG_VIDEO_ADV_DEBUG 1334#ifdef CONFIG_VIDEO_ADV_DEBUG
1335static int vidioc_g_chip_name(struct file *file, void *priv, 1335static int vidioc_g_chip_info(struct file *file, void *priv,
1336 struct v4l2_dbg_chip_name *chip) 1336 struct v4l2_dbg_chip_info *chip)
1337{ 1337{
1338 struct em28xx_fh *fh = priv; 1338 struct em28xx_fh *fh = priv;
1339 struct em28xx *dev = fh->dev; 1339 struct em28xx *dev = fh->dev;
@@ -1797,7 +1797,7 @@ static const struct v4l2_ioctl_ops video_ioctl_ops = {
1797 .vidioc_unsubscribe_event = v4l2_event_unsubscribe, 1797 .vidioc_unsubscribe_event = v4l2_event_unsubscribe,
1798 .vidioc_g_chip_ident = vidioc_g_chip_ident, 1798 .vidioc_g_chip_ident = vidioc_g_chip_ident,
1799#ifdef CONFIG_VIDEO_ADV_DEBUG 1799#ifdef CONFIG_VIDEO_ADV_DEBUG
1800 .vidioc_g_chip_name = vidioc_g_chip_name, 1800 .vidioc_g_chip_info = vidioc_g_chip_info,
1801 .vidioc_g_register = vidioc_g_register, 1801 .vidioc_g_register = vidioc_g_register,
1802 .vidioc_s_register = vidioc_s_register, 1802 .vidioc_s_register = vidioc_s_register,
1803#endif 1803#endif
@@ -1827,7 +1827,7 @@ static const struct v4l2_ioctl_ops radio_ioctl_ops = {
1827 .vidioc_subscribe_event = v4l2_ctrl_subscribe_event, 1827 .vidioc_subscribe_event = v4l2_ctrl_subscribe_event,
1828 .vidioc_unsubscribe_event = v4l2_event_unsubscribe, 1828 .vidioc_unsubscribe_event = v4l2_event_unsubscribe,
1829 .vidioc_g_chip_ident = vidioc_g_chip_ident, 1829 .vidioc_g_chip_ident = vidioc_g_chip_ident,
1830 .vidioc_g_chip_name = vidioc_g_chip_name, 1830 .vidioc_g_chip_info = vidioc_g_chip_info,
1831#ifdef CONFIG_VIDEO_ADV_DEBUG 1831#ifdef CONFIG_VIDEO_ADV_DEBUG
1832 .vidioc_g_register = vidioc_g_register, 1832 .vidioc_g_register = vidioc_g_register,
1833 .vidioc_s_register = vidioc_s_register, 1833 .vidioc_s_register = vidioc_s_register,
diff --git a/drivers/media/v4l2-core/v4l2-dev.c b/drivers/media/v4l2-core/v4l2-dev.c
index 1c3b43cf773d..5923c5dfacd5 100644
--- a/drivers/media/v4l2-core/v4l2-dev.c
+++ b/drivers/media/v4l2-core/v4l2-dev.c
@@ -592,7 +592,7 @@ static void determine_valid_ioctls(struct video_device *vdev)
592 SET_VALID_IOCTL(ops, VIDIOC_S_FREQUENCY, vidioc_s_frequency); 592 SET_VALID_IOCTL(ops, VIDIOC_S_FREQUENCY, vidioc_s_frequency);
593 SET_VALID_IOCTL(ops, VIDIOC_LOG_STATUS, vidioc_log_status); 593 SET_VALID_IOCTL(ops, VIDIOC_LOG_STATUS, vidioc_log_status);
594#ifdef CONFIG_VIDEO_ADV_DEBUG 594#ifdef CONFIG_VIDEO_ADV_DEBUG
595 set_bit(_IOC_NR(VIDIOC_DBG_G_CHIP_NAME), valid_ioctls); 595 set_bit(_IOC_NR(VIDIOC_DBG_G_CHIP_INFO), valid_ioctls);
596 set_bit(_IOC_NR(VIDIOC_DBG_G_REGISTER), valid_ioctls); 596 set_bit(_IOC_NR(VIDIOC_DBG_G_REGISTER), valid_ioctls);
597 set_bit(_IOC_NR(VIDIOC_DBG_S_REGISTER), valid_ioctls); 597 set_bit(_IOC_NR(VIDIOC_DBG_S_REGISTER), valid_ioctls);
598#endif 598#endif
diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c
index c48d0acd8bb9..f81bda1a48ec 100644
--- a/drivers/media/v4l2-core/v4l2-ioctl.c
+++ b/drivers/media/v4l2-core/v4l2-ioctl.c
@@ -638,9 +638,9 @@ static void v4l_print_dbg_chip_ident(const void *arg, bool write_only)
638 p->ident, p->revision); 638 p->ident, p->revision);
639} 639}
640 640
641static void v4l_print_dbg_chip_name(const void *arg, bool write_only) 641static void v4l_print_dbg_chip_info(const void *arg, bool write_only)
642{ 642{
643 const struct v4l2_dbg_chip_name *p = arg; 643 const struct v4l2_dbg_chip_info *p = arg;
644 644
645 pr_cont("type=%u, ", p->match.type); 645 pr_cont("type=%u, ", p->match.type);
646 if (p->match.type == V4L2_CHIP_MATCH_I2C_DRIVER) 646 if (p->match.type == V4L2_CHIP_MATCH_I2C_DRIVER)
@@ -1854,12 +1854,12 @@ static int v4l_dbg_g_chip_ident(const struct v4l2_ioctl_ops *ops,
1854 return ops->vidioc_g_chip_ident(file, fh, p); 1854 return ops->vidioc_g_chip_ident(file, fh, p);
1855} 1855}
1856 1856
1857static int v4l_dbg_g_chip_name(const struct v4l2_ioctl_ops *ops, 1857static int v4l_dbg_g_chip_info(const struct v4l2_ioctl_ops *ops,
1858 struct file *file, void *fh, void *arg) 1858 struct file *file, void *fh, void *arg)
1859{ 1859{
1860#ifdef CONFIG_VIDEO_ADV_DEBUG 1860#ifdef CONFIG_VIDEO_ADV_DEBUG
1861 struct video_device *vfd = video_devdata(file); 1861 struct video_device *vfd = video_devdata(file);
1862 struct v4l2_dbg_chip_name *p = arg; 1862 struct v4l2_dbg_chip_info *p = arg;
1863 struct v4l2_subdev *sd; 1863 struct v4l2_subdev *sd;
1864 int idx = 0; 1864 int idx = 0;
1865 1865
@@ -1875,8 +1875,8 @@ static int v4l_dbg_g_chip_name(const struct v4l2_ioctl_ops *ops,
1875 strlcpy(p->name, vfd->parent->driver->name, sizeof(p->name)); 1875 strlcpy(p->name, vfd->parent->driver->name, sizeof(p->name));
1876 else 1876 else
1877 strlcpy(p->name, "bridge", sizeof(p->name)); 1877 strlcpy(p->name, "bridge", sizeof(p->name));
1878 if (ops->vidioc_g_chip_name) 1878 if (ops->vidioc_g_chip_info)
1879 return ops->vidioc_g_chip_name(file, fh, arg); 1879 return ops->vidioc_g_chip_info(file, fh, arg);
1880 if (p->match.addr) 1880 if (p->match.addr)
1881 return -EINVAL; 1881 return -EINVAL;
1882 return 0; 1882 return 0;
@@ -2116,7 +2116,7 @@ static struct v4l2_ioctl_info v4l2_ioctls[] = {
2116 IOCTL_INFO_STD(VIDIOC_QUERY_DV_TIMINGS, vidioc_query_dv_timings, v4l_print_dv_timings, 0), 2116 IOCTL_INFO_STD(VIDIOC_QUERY_DV_TIMINGS, vidioc_query_dv_timings, v4l_print_dv_timings, 0),
2117 IOCTL_INFO_STD(VIDIOC_DV_TIMINGS_CAP, vidioc_dv_timings_cap, v4l_print_dv_timings_cap, INFO_FL_CLEAR(v4l2_dv_timings_cap, type)), 2117 IOCTL_INFO_STD(VIDIOC_DV_TIMINGS_CAP, vidioc_dv_timings_cap, v4l_print_dv_timings_cap, INFO_FL_CLEAR(v4l2_dv_timings_cap, type)),
2118 IOCTL_INFO_FNC(VIDIOC_ENUM_FREQ_BANDS, v4l_enum_freq_bands, v4l_print_freq_band, 0), 2118 IOCTL_INFO_FNC(VIDIOC_ENUM_FREQ_BANDS, v4l_enum_freq_bands, v4l_print_freq_band, 0),
2119 IOCTL_INFO_FNC(VIDIOC_DBG_G_CHIP_NAME, v4l_dbg_g_chip_name, v4l_print_dbg_chip_name, INFO_FL_CLEAR(v4l2_dbg_chip_name, match)), 2119 IOCTL_INFO_FNC(VIDIOC_DBG_G_CHIP_INFO, v4l_dbg_g_chip_info, v4l_print_dbg_chip_info, INFO_FL_CLEAR(v4l2_dbg_chip_info, match)),
2120}; 2120};
2121#define V4L2_IOCTLS ARRAY_SIZE(v4l2_ioctls) 2121#define V4L2_IOCTLS ARRAY_SIZE(v4l2_ioctls)
2122 2122
diff --git a/include/media/v4l2-ioctl.h b/include/media/v4l2-ioctl.h
index 6b917d69e408..931652f0e2af 100644
--- a/include/media/v4l2-ioctl.h
+++ b/include/media/v4l2-ioctl.h
@@ -244,8 +244,8 @@ struct v4l2_ioctl_ops {
244 int (*vidioc_s_register) (struct file *file, void *fh, 244 int (*vidioc_s_register) (struct file *file, void *fh,
245 const struct v4l2_dbg_register *reg); 245 const struct v4l2_dbg_register *reg);
246 246
247 int (*vidioc_g_chip_name) (struct file *file, void *fh, 247 int (*vidioc_g_chip_info) (struct file *file, void *fh,
248 struct v4l2_dbg_chip_name *chip); 248 struct v4l2_dbg_chip_info *chip);
249#endif 249#endif
250 int (*vidioc_g_chip_ident) (struct file *file, void *fh, 250 int (*vidioc_g_chip_ident) (struct file *file, void *fh,
251 struct v4l2_dbg_chip_ident *chip); 251 struct v4l2_dbg_chip_ident *chip);
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h
index 4c941c103c44..be43b4659527 100644
--- a/include/uapi/linux/videodev2.h
+++ b/include/uapi/linux/videodev2.h
@@ -1839,8 +1839,8 @@ struct v4l2_dbg_chip_ident {
1839#define V4L2_CHIP_FL_READABLE (1 << 0) 1839#define V4L2_CHIP_FL_READABLE (1 << 0)
1840#define V4L2_CHIP_FL_WRITABLE (1 << 1) 1840#define V4L2_CHIP_FL_WRITABLE (1 << 1)
1841 1841
1842/* VIDIOC_DBG_G_CHIP_NAME */ 1842/* VIDIOC_DBG_G_CHIP_INFO */
1843struct v4l2_dbg_chip_name { 1843struct v4l2_dbg_chip_info {
1844 struct v4l2_dbg_match match; 1844 struct v4l2_dbg_match match;
1845 char name[32]; 1845 char name[32];
1846 __u32 flags; 1846 __u32 flags;
@@ -1938,7 +1938,7 @@ struct v4l2_create_buffers {
1938 1938
1939/* Experimental, meant for debugging, testing and internal use. 1939/* Experimental, meant for debugging, testing and internal use.
1940 Never use this ioctl in applications! 1940 Never use this ioctl in applications!
1941 Note: this ioctl is deprecated in favor of VIDIOC_DBG_G_CHIP_NAME and 1941 Note: this ioctl is deprecated in favor of VIDIOC_DBG_G_CHIP_INFO and
1942 will go away in the future. */ 1942 will go away in the future. */
1943#define VIDIOC_DBG_G_CHIP_IDENT _IOWR('V', 81, struct v4l2_dbg_chip_ident) 1943#define VIDIOC_DBG_G_CHIP_IDENT _IOWR('V', 81, struct v4l2_dbg_chip_ident)
1944 1944
@@ -1976,7 +1976,7 @@ struct v4l2_create_buffers {
1976 1976
1977/* Experimental, meant for debugging, testing and internal use. 1977/* Experimental, meant for debugging, testing and internal use.
1978 Never use these in applications! */ 1978 Never use these in applications! */
1979#define VIDIOC_DBG_G_CHIP_NAME _IOWR('V', 102, struct v4l2_dbg_chip_name) 1979#define VIDIOC_DBG_G_CHIP_INFO _IOWR('V', 102, struct v4l2_dbg_chip_info)
1980 1980
1981/* Reminder: when adding new ioctls please add support for them to 1981/* Reminder: when adding new ioctls please add support for them to
1982 drivers/media/video/v4l2-compat-ioctl32.c as well! */ 1982 drivers/media/video/v4l2-compat-ioctl32.c as well! */