forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/usb/dvb-usb-v2/dvb_usb.h
....@@ -1,22 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * DVB USB framework
34 *
45 * Copyright (C) 2004-6 Patrick Boettcher <patrick.boettcher@posteo.de>
56 * 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.
207 */
218
229 #ifndef DVB_USB_H
....@@ -134,6 +121,7 @@
134121 * @interval: time in ms between two queries
135122 * @driver_type: used to point if a device supports raw mode
136123 * @bulk_mode: device supports bulk mode for rc (disable polling mode)
124
+ * @timeout: set to length of last space before raw IR goes idle
137125 */
138126 struct dvb_usb_rc {
139127 const char *map_name;
....@@ -143,10 +131,11 @@
143131 unsigned int interval;
144132 enum rc_driver_type driver_type;
145133 bool bulk_mode;
134
+ int timeout;
146135 };
147136
148137 /**
149
- * usb streaming configration for adapter
138
+ * usb streaming configuration for adapter
150139 * @type: urb type
151140 * @count: count of used urbs
152141 * @endpoint: stream usb endpoint number