forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/cx18/cx18-cards.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * cx18 functions to query card hardware
34 *
....@@ -5,16 +6,6 @@
56 *
67 * Copyright (C) 2007 Hans Verkuil <hverkuil@xs4all.nl>
78 * Copyright (C) 2008 Andy Walls <awalls@md.metrocast.net>
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License as published by
11
- * the Free Software Foundation; either version 2 of the License, or
12
- * (at your option) any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- * GNU General Public License for more details.
189 */
1910
2011 #include "cx18-driver.h"
....@@ -44,7 +35,7 @@
4435 .tv = { 0x61, 0x60, I2C_CLIENT_END },
4536 };
4637
47
-/* Please add new PCI IDs to: http://pci-ids.ucw.cz/
38
+/* Please add new PCI IDs to: https://pci-ids.ucw.cz/
4839 This keeps the PCI ID database up to date. Note that the entries
4940 must be added under vendor 0x4444 (Conexant) as subsystem IDs.
5041 New vendor IDs should still be added to the vendor ID list. */
....@@ -254,7 +245,7 @@
254245 .type = CX18_CARD_YUAN_MPC718,
255246 .name = "Yuan MPC718 MiniPCI DVB-T/Analog",
256247 .comment = "Experimenters needed for device to work well.\n"
257
- "\tTo help, mail the ivtv-devel list (www.ivtvdriver.org).\n",
248
+ "\tTo help, mail the linux-media list (www.linuxtv.org).\n",
258249 .v4l2_capabilities = CX18_CAP_ENCODER,
259250 .hw_audio_ctrl = CX18_HW_418_AV,
260251 .hw_muxer = CX18_HW_GPIO_MUX,
....@@ -314,7 +305,7 @@
314305 .type = CX18_CARD_GOTVIEW_PCI_DVD3,
315306 .name = "GoTView PCI DVD3 Hybrid",
316307 .comment = "Experimenters needed for device to work well.\n"
317
- "\tTo help, mail the ivtv-devel list (www.ivtvdriver.org).\n",
308
+ "\tTo help, mail the linux-media list (www.linuxtv.org).\n",
318309 .v4l2_capabilities = CX18_CAP_ENCODER,
319310 .hw_audio_ctrl = CX18_HW_418_AV,
320311 .hw_muxer = CX18_HW_GPIO_MUX,
....@@ -428,7 +419,7 @@
428419 .type = CX18_CARD_TOSHIBA_QOSMIO_DVBT,
429420 .name = "Toshiba Qosmio DVB-T/Analog",
430421 .comment = "Experimenters and photos needed for device to work well.\n"
431
- "\tTo help, mail the ivtv-devel list (www.ivtvdriver.org).\n",
422
+ "\tTo help, mail the linux-media list (www.linuxtv.org).\n",
432423 .v4l2_capabilities = CX18_CAP_ENCODER,
433424 .hw_audio_ctrl = CX18_HW_418_AV,
434425 .hw_all = CX18_HW_418_AV | CX18_HW_TUNER | CX18_HW_GPIO_RESET_CTRL,
....@@ -471,7 +462,7 @@
471462 .type = CX18_CARD_LEADTEK_PVR2100,
472463 .name = "Leadtek WinFast PVR2100",
473464 .comment = "Experimenters and photos needed for device to work well.\n"
474
- "\tTo help, mail the ivtv-devel list (www.ivtvdriver.org).\n",
465
+ "\tTo help, mail the linux-media list (www.linuxtv.org).\n",
475466 .v4l2_capabilities = CX18_CAP_ENCODER,
476467 .hw_audio_ctrl = CX18_HW_418_AV,
477468 .hw_muxer = CX18_HW_GPIO_MUX,
....@@ -602,8 +593,8 @@
602593 if (index >= cx->nof_inputs)
603594 return -EINVAL;
604595 input->index = index;
605
- strlcpy(input->name, input_strs[card_input->video_type - 1],
606
- sizeof(input->name));
596
+ strscpy(input->name, input_strs[card_input->video_type - 1],
597
+ sizeof(input->name));
607598 input->type = (card_input->video_type == CX18_CARD_INPUT_VID_TUNER ?
608599 V4L2_INPUT_TYPE_TUNER : V4L2_INPUT_TYPE_CAMERA);
609600 input->audioset = (1 << cx->nof_audio_inputs) - 1;
....@@ -625,8 +616,8 @@
625616 memset(audio, 0, sizeof(*audio));
626617 if (index >= cx->nof_audio_inputs)
627618 return -EINVAL;
628
- strlcpy(audio->name, input_strs[aud_input->audio_type - 1],
629
- sizeof(audio->name));
619
+ strscpy(audio->name, input_strs[aud_input->audio_type - 1],
620
+ sizeof(audio->name));
630621 audio->index = index;
631622 audio->capability = V4L2_AUDCAP_STEREO;
632623 return 0;