.. | .. |
---|
1 | | -Chinese translated version of Documentation/media/media_kapi.rst |
---|
| 1 | +Chinese translated version of Documentation/driver-api/media/index.rst |
---|
2 | 2 | |
---|
3 | 3 | If you have any comment or update to the content, please contact the |
---|
4 | 4 | original document maintainer directly. However, if you have a problem |
---|
.. | .. |
---|
9 | 9 | Maintainer: Mauro Carvalho Chehab <mchehab@kernel.org> |
---|
10 | 10 | Chinese maintainer: Fu Wei <tekkamanninja@gmail.com> |
---|
11 | 11 | --------------------------------------------------------------------- |
---|
12 | | -Documentation/media/media_kapi.rst 的中文翻译 |
---|
| 12 | +Documentation/driver-api/media/index.rst 的中文翻译 |
---|
13 | 13 | |
---|
14 | 14 | 如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文 |
---|
15 | 15 | 交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻 |
---|
.. | .. |
---|
488 | 488 | |
---|
489 | 489 | 这个函数会加载给定的模块(如果没有模块需要加载,可以为 NULL), |
---|
490 | 490 | 并用给定的 i2c 适配器结构体指针(i2c_adapter)和 器件地址(chip/address) |
---|
491 | | -作为参数调用 i2c_new_device()。如果一切顺利,则就在 v4l2_device |
---|
| 491 | +作为参数调用 i2c_new_client_device()。如果一切顺利,则就在 v4l2_device |
---|
492 | 492 | 中注册了子设备。 |
---|
493 | 493 | |
---|
494 | 494 | 你也可以利用 v4l2_i2c_new_subdev()的最后一个参数,传递一个可能的 |
---|
.. | .. |
---|
649 | 649 | |
---|
650 | 650 | 接下来你需要注册视频设备:这会为你创建一个字符设备。 |
---|
651 | 651 | |
---|
652 | | - err = video_register_device(vdev, VFL_TYPE_GRABBER, -1); |
---|
| 652 | + err = video_register_device(vdev, VFL_TYPE_VIDEO, -1); |
---|
653 | 653 | if (err) { |
---|
654 | 654 | video_device_release(vdev); /* or kfree(my_vdev); */ |
---|
655 | 655 | return err; |
---|
.. | .. |
---|
660 | 660 | |
---|
661 | 661 | 注册哪种设备是根据类型(type)参数。存在以下类型: |
---|
662 | 662 | |
---|
663 | | -VFL_TYPE_GRABBER: 用于视频输入/输出设备的 videoX |
---|
| 663 | +VFL_TYPE_VIDEO: 用于视频输入/输出设备的 videoX |
---|
664 | 664 | VFL_TYPE_VBI: 用于垂直消隐数据的 vbiX (例如,隐藏式字幕,图文电视) |
---|
665 | 665 | VFL_TYPE_RADIO: 用于广播调谐器的 radioX |
---|
666 | 666 | |
---|
.. | .. |
---|
777 | 777 | 线性 DMA(videobuf-dma-contig)以及大多用于 USB 设备的用 vmalloc |
---|
778 | 778 | 分配的缓冲(videobuf-vmalloc)。 |
---|
779 | 779 | |
---|
780 | | -请参阅 Documentation/media/kapi/v4l2-videobuf.rst,以获得更多关于 videobuf |
---|
| 780 | +请参阅 Documentation/driver-api/media/v4l2-videobuf.rst,以获得更多关于 videobuf |
---|
781 | 781 | 层的使用信息。 |
---|
782 | 782 | |
---|
783 | 783 | v4l2_fh 结构体 |
---|