hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/Documentation/translations/zh_CN/video4linux/v4l2-framework.txt
....@@ -1,4 +1,4 @@
1
-Chinese translated version of Documentation/media/media_kapi.rst
1
+Chinese translated version of Documentation/driver-api/media/index.rst
22
33 If you have any comment or update to the content, please contact the
44 original document maintainer directly. However, if you have a problem
....@@ -9,7 +9,7 @@
99 Maintainer: Mauro Carvalho Chehab <mchehab@kernel.org>
1010 Chinese maintainer: Fu Wei <tekkamanninja@gmail.com>
1111 ---------------------------------------------------------------------
12
-Documentation/media/media_kapi.rst 的中文翻译
12
+Documentation/driver-api/media/index.rst 的中文翻译
1313
1414 如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文
1515 交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻
....@@ -488,7 +488,7 @@
488488
489489 这个函数会加载给定的模块(如果没有模块需要加载,可以为 NULL),
490490 并用给定的 i2c 适配器结构体指针(i2c_adapter)和 器件地址(chip/address)
491
-作为参数调用 i2c_new_device()。如果一切顺利,则就在 v4l2_device
491
+作为参数调用 i2c_new_client_device()。如果一切顺利,则就在 v4l2_device
492492 中注册了子设备。
493493
494494 你也可以利用 v4l2_i2c_new_subdev()的最后一个参数,传递一个可能的
....@@ -649,7 +649,7 @@
649649
650650 接下来你需要注册视频设备:这会为你创建一个字符设备。
651651
652
- err = video_register_device(vdev, VFL_TYPE_GRABBER, -1);
652
+ err = video_register_device(vdev, VFL_TYPE_VIDEO, -1);
653653 if (err) {
654654 video_device_release(vdev); /* or kfree(my_vdev); */
655655 return err;
....@@ -660,7 +660,7 @@
660660
661661 注册哪种设备是根据类型(type)参数。存在以下类型:
662662
663
-VFL_TYPE_GRABBER: 用于视频输入/输出设备的 videoX
663
+VFL_TYPE_VIDEO: 用于视频输入/输出设备的 videoX
664664 VFL_TYPE_VBI: 用于垂直消隐数据的 vbiX (例如,隐藏式字幕,图文电视)
665665 VFL_TYPE_RADIO: 用于广播调谐器的 radioX
666666
....@@ -777,7 +777,7 @@
777777 线性 DMA(videobuf-dma-contig)以及大多用于 USB 设备的用 vmalloc
778778 分配的缓冲(videobuf-vmalloc)。
779779
780
-请参阅 Documentation/media/kapi/v4l2-videobuf.rst,以获得更多关于 videobuf
780
+请参阅 Documentation/driver-api/media/v4l2-videobuf.rst,以获得更多关于 videobuf
781781 层的使用信息。
782782
783783 v4l2_fh 结构体