diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2015-02-25 10:05:13 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-02-26 06:40:10 -0500 |
commit | 7e182f78988404717e27aed5a9d4150631b323f4 (patch) | |
tree | efcd563055878ece6d94c497edfe916a7d9cf1cc /Documentation/DocBook/media/v4l | |
parent | 8a26a258bdb82db241cdc35f332f88dd67bdb9c9 (diff) |
[media] media.h: mark alsa struct in media_entity_desc as TODO
The alsa struct in struct media_entity_desc is now marked as deprecated.
However, the alsa struct should remain as it is since it cannot be replaced
by a simple major/minor device node description. The alsa struct was designed
to be used as an alsa card description so V4L2 drivers could use this to expose
the alsa card that they create to carry the captured audio. Such a card is not
just a PCM device, but also needs to contain the alsa subdevice information,
and it may map to multiple devices, e.g. a PCM and a mixer device, such as the
au0828 usb stick creates.
This is exactly as intended and this cannot and should not be replaced by a
simple major/minor.
However, whether this information is in the right form for an ALSA device such
that it can handle udev renaming rules as well is another matter. So mark this
alsa struct as TODO and document the problems involved.
Updated the documentation as well to reflect this and to add the 'major'
and 'minor' field documentation.
Updated the documentation to clearly state that struct dev is to be used for
(sub-)devices that create a single device node. Other devices need their own
structure here.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'Documentation/DocBook/media/v4l')
-rw-r--r-- | Documentation/DocBook/media/v4l/media-ioc-enum-entities.xml | 16 |
1 files changed, 15 insertions, 1 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> |