aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/DocBook/media/v4l/media-ioc-enum-entities.xml16
-rw-r--r--include/uapi/linux/media.h26
2 files changed, 36 insertions, 6 deletions
diff --git a/Documentation/DocBook/media/v4l/media-ioc-enum-entities.xml b/Documentation/DocBook/media/v4l/media-ioc-enum-entities.xml
index cbf307f21a63..5872f8bbf774 100644
--- a/Documentation/DocBook/media/v4l/media-ioc-enum-entities.xml
+++ b/Documentation/DocBook/media/v4l/media-ioc-enum-entities.xml
@@ -145,7 +145,21 @@
145 <entry>struct</entry> 145 <entry>struct</entry>
146 <entry><structfield>dev</structfield></entry> 146 <entry><structfield>dev</structfield></entry>
147 <entry></entry> 147 <entry></entry>
148 <entry>Valid for (sub-)devices that create devnodes.</entry> 148 <entry>Valid for (sub-)devices that create a single device node.</entry>
149 </row>
150 <row>
151 <entry></entry>
152 <entry></entry>
153 <entry>__u32</entry>
154 <entry><structfield>major</structfield></entry>
155 <entry>Device node major number.</entry>
156 </row>
157 <row>
158 <entry></entry>
159 <entry></entry>
160 <entry>__u32</entry>
161 <entry><structfield>minor</structfield></entry>
162 <entry>Device node minor number.</entry>
149 </row> 163 </row>
150 <row> 164 <row>
151 <entry></entry> 165 <entry></entry>
diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h
index 52cc2a6b19b7..4e816be3de39 100644
--- a/include/uapi/linux/media.h
+++ b/include/uapi/linux/media.h
@@ -91,6 +91,27 @@ struct media_entity_desc {
91 91
92#if 1 92#if 1
93 /* 93 /*
94 * TODO: this shouldn't have been added without
95 * actual drivers that use this. When the first real driver
96 * appears that sets this information, special attention
97 * should be given whether this information is 1) enough, and
98 * 2) can deal with udev rules that rename devices. The struct
99 * dev would not be sufficient for this since that does not
100 * contain the subdevice information. In addition, struct dev
101 * can only refer to a single device, and not to multiple (e.g.
102 * pcm and mixer devices).
103 *
104 * So for now mark this as a to do.
105 */
106 struct {
107 __u32 card;
108 __u32 device;
109 __u32 subdevice;
110 } alsa;
111#endif
112
113#if 1
114 /*
94 * DEPRECATED: previous node specifications. Kept just to 115 * DEPRECATED: previous node specifications. Kept just to
95 * avoid breaking compilation, but media_entity_desc.dev 116 * avoid breaking compilation, but media_entity_desc.dev
96 * should be used instead. In particular, alsa and dvb 117 * should be used instead. In particular, alsa and dvb
@@ -106,11 +127,6 @@ struct media_entity_desc {
106 __u32 major; 127 __u32 major;
107 __u32 minor; 128 __u32 minor;
108 } fb; 129 } fb;
109 struct {
110 __u32 card;
111 __u32 device;
112 __u32 subdevice;
113 } alsa;
114 int dvb; 130 int dvb;
115#endif 131#endif
116 132