forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/media/usb/au0828/au0828.h
....@@ -1,18 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Driver for the Auvitek AU0828 USB bridge
34 *
45 * Copyright (c) 2008 Steven Toth <stoth@linuxtv.org>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- *
15
- * GNU General Public License for more details.
166 */
177
188 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -31,6 +21,7 @@
3121 #include <media/v4l2-ctrls.h>
3222 #include <media/v4l2-fh.h>
3323 #include <media/media-device.h>
24
+#include <media/media-dev-allocator.h>
3425
3526 /* DVB */
3627 #include <media/demux.h>
....@@ -52,7 +43,7 @@
5243
5344 #define AU0828_INTERLACED_DEFAULT 1
5445
55
-/* Defination for AU0828 USB transfer */
46
+/* Definition for AU0828 USB transfer */
5647 #define AU0828_MAX_ISO_BUFS 12 /* maybe resize this value in the future */
5748 #define AU0828_ISO_PACKETS_PER_URB 128
5849
....@@ -283,9 +274,12 @@
283274 struct media_entity_notify entity_notify;
284275 struct media_entity *tuner;
285276 struct media_link *active_link;
286
- struct media_entity *active_link_owner;
287277 struct media_entity *active_source;
288278 struct media_entity *active_sink;
279
+ struct media_entity *active_link_owner;
280
+ struct media_entity *active_link_user;
281
+ struct media_pipeline *active_link_user_pipe;
282
+ bool active_link_shared;
289283 #endif
290284 };
291285