| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * STK1160 driver |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 8 | 9 | * Copyright (C) 2010 R.M. Thomas |
|---|
| 9 | 10 | * <rmthomas--a.t--sciolus.org> |
|---|
| 10 | 11 | * |
|---|
| 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 | | - * |
|---|
| 21 | 12 | * TODO: |
|---|
| 22 | 13 | * |
|---|
| 23 | 14 | * 1. Support stream at lower speed: lower frame rate or lower frame size. |
|---|
| 24 | | - * |
|---|
| 25 | 15 | */ |
|---|
| 26 | 16 | |
|---|
| 27 | 17 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 297 | 287 | return -ENOMEM; |
|---|
| 298 | 288 | |
|---|
| 299 | 289 | /* |
|---|
| 300 | | - * Scan usb posibilities and populate alt_max_pkt_size array. |
|---|
| 290 | + * Scan usb possibilities and populate alt_max_pkt_size array. |
|---|
| 301 | 291 | * Also, check if device speed is fast enough. |
|---|
| 302 | 292 | */ |
|---|
| 303 | 293 | rc = stk1160_scan_usb(interface, udev, alt_max_pkt_size); |
|---|
| .. | .. |
|---|
| 413 | 403 | /* Here is the only place where isoc get released */ |
|---|
| 414 | 404 | stk1160_uninit_isoc(dev); |
|---|
| 415 | 405 | |
|---|
| 416 | | - stk1160_clear_queue(dev); |
|---|
| 406 | + stk1160_clear_queue(dev, VB2_BUF_STATE_ERROR); |
|---|
| 417 | 407 | |
|---|
| 418 | 408 | video_unregister_device(&dev->vdev); |
|---|
| 419 | 409 | v4l2_device_disconnect(&dev->v4l2_dev); |
|---|
| .. | .. |
|---|
| 426 | 416 | |
|---|
| 427 | 417 | /* |
|---|
| 428 | 418 | * 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. |
|---|
| 430 | 420 | */ |
|---|
| 431 | 421 | v4l2_device_put(&dev->v4l2_dev); |
|---|
| 432 | 422 | } |
|---|