forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/drivers/media/usb/cx231xx/cx231xx-cards.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 cx231xx-cards.c - driver for Conexant Cx23100/101/102
34 USB video capture devices
....@@ -5,19 +6,6 @@
56 Copyright (C) 2008 <srinivasa.deevi at conexant dot com>
67 Based on em28xx driver
78
8
- This program is free software; you can redistribute it and/or modify
9
- it under the terms of the GNU General Public License as published by
10
- the Free Software Foundation; either version 2 of the License, or
11
- (at your option) any later version.
12
-
13
- This program is distributed in the hope that it will be useful,
14
- but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- GNU General Public License for more details.
17
-
18
- You should have received a copy of the GNU General Public License
19
- along with this program; if not, write to the Free Software
20
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
219 */
2210
2311 #include "cx231xx.h"
....@@ -1035,6 +1023,8 @@
10351023 .driver_info = CX231XX_BOARD_HAUPPAUGE_EXETER},
10361024 {USB_DEVICE(0x2040, 0xb123),
10371025 .driver_info = CX231XX_BOARD_HAUPPAUGE_955Q},
1026
+ {USB_DEVICE(0x2040, 0xb124),
1027
+ .driver_info = CX231XX_BOARD_HAUPPAUGE_955Q},
10381028 {USB_DEVICE(0x2040, 0xb151),
10391029 .driver_info = CX231XX_BOARD_HAUPPAUGE_935C},
10401030 {USB_DEVICE(0x2040, 0xb150),
....@@ -1361,7 +1351,7 @@
13611351 /*
13621352 * cx231xx_realease_resources()
13631353 * unregisters the v4l2,i2c and usb devices
1364
- * called when the device gets disconected or at module unload
1354
+ * called when the device gets disconnected or at module unload
13651355 */
13661356 void cx231xx_release_resources(struct cx231xx *dev)
13671357 {
....@@ -1489,13 +1479,11 @@
14891479 goto err_dev_init;
14901480 }
14911481
1492
- /* init video dma queues */
1482
+ /* init video dma queue */
14931483 INIT_LIST_HEAD(&dev->video_mode.vidq.active);
1494
- INIT_LIST_HEAD(&dev->video_mode.vidq.queued);
14951484
1496
- /* init vbi dma queues */
1485
+ /* init vbi dma queue */
14971486 INIT_LIST_HEAD(&dev->vbi_mode.vidq.active);
1498
- INIT_LIST_HEAD(&dev->vbi_mode.vidq.queued);
14991487
15001488 /* Reset other chips required if they are tied up with GPIO pins */
15011489 cx231xx_add_into_devlist(dev);
....@@ -1934,7 +1922,7 @@
19341922
19351923 /*
19361924 * cx231xx_usb_disconnect()
1937
- * called when the device gets diconencted
1925
+ * called when the device gets disconnected
19381926 * video device will be unregistered on v4l2_close in case it is still open
19391927 */
19401928 static void cx231xx_usb_disconnect(struct usb_interface *interface)