forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/media/usb/stk1160/stk1160-core.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * STK1160 driver
34 *
....@@ -8,20 +9,9 @@
89 * Copyright (C) 2010 R.M. Thomas
910 * <rmthomas--a.t--sciolus.org>
1011 *
11
- * This program is free software; you can redistribute it and/or modify
12
- * it under the terms of the GNU General Public License as published by
13
- * the Free Software Foundation; either version 2 of the License, or
14
- * (at your option) any later version.
15
- *
16
- * This program is distributed in the hope that it will be useful,
17
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- * GNU General Public License for more details.
20
- *
2112 * TODO:
2213 *
2314 * 1. Support stream at lower speed: lower frame rate or lower frame size.
24
- *
2515 */
2616
2717 #include <linux/module.h>
....@@ -297,7 +287,7 @@
297287 return -ENOMEM;
298288
299289 /*
300
- * Scan usb posibilities and populate alt_max_pkt_size array.
290
+ * Scan usb possibilities and populate alt_max_pkt_size array.
301291 * Also, check if device speed is fast enough.
302292 */
303293 rc = stk1160_scan_usb(interface, udev, alt_max_pkt_size);
....@@ -413,7 +403,7 @@
413403 /* Here is the only place where isoc get released */
414404 stk1160_uninit_isoc(dev);
415405
416
- stk1160_clear_queue(dev);
406
+ stk1160_clear_queue(dev, VB2_BUF_STATE_ERROR);
417407
418408 video_unregister_device(&dev->vdev);
419409 v4l2_device_disconnect(&dev->v4l2_dev);
....@@ -426,7 +416,7 @@
426416
427417 /*
428418 * This calls stk1160_release if it's the last reference.
429
- * Otherwise, release is posponed until there are no users left.
419
+ * Otherwise, release is postponed until there are no users left.
430420 */
431421 v4l2_device_put(&dev->v4l2_dev);
432422 }