| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * DVB USB framework |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2004-6 Patrick Boettcher <patrick.boettcher@posteo.de> |
|---|
| 5 | 6 | * Copyright (C) 2012 Antti Palosaari <crope@iki.fi> |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 8 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 9 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 10 | | - * (at your option) any later version. |
|---|
| 11 | | - * |
|---|
| 12 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 13 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 14 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 15 | | - * GNU General Public License for more details. |
|---|
| 16 | | - * |
|---|
| 17 | | - * You should have received a copy of the GNU General Public License along |
|---|
| 18 | | - * with this program; if not, write to the Free Software Foundation, Inc., |
|---|
| 19 | | - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|---|
| 20 | 7 | */ |
|---|
| 21 | 8 | |
|---|
| 22 | 9 | #ifndef DVB_USB_H |
|---|
| .. | .. |
|---|
| 134 | 121 | * @interval: time in ms between two queries |
|---|
| 135 | 122 | * @driver_type: used to point if a device supports raw mode |
|---|
| 136 | 123 | * @bulk_mode: device supports bulk mode for rc (disable polling mode) |
|---|
| 124 | + * @timeout: set to length of last space before raw IR goes idle |
|---|
| 137 | 125 | */ |
|---|
| 138 | 126 | struct dvb_usb_rc { |
|---|
| 139 | 127 | const char *map_name; |
|---|
| .. | .. |
|---|
| 143 | 131 | unsigned int interval; |
|---|
| 144 | 132 | enum rc_driver_type driver_type; |
|---|
| 145 | 133 | bool bulk_mode; |
|---|
| 134 | + int timeout; |
|---|
| 146 | 135 | }; |
|---|
| 147 | 136 | |
|---|
| 148 | 137 | /** |
|---|
| 149 | | - * usb streaming configration for adapter |
|---|
| 138 | + * usb streaming configuration for adapter |
|---|
| 150 | 139 | * @type: urb type |
|---|
| 151 | 140 | * @count: count of used urbs |
|---|
| 152 | 141 | * @endpoint: stream usb endpoint number |
|---|