| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Driver for the Auvitek AU0828 USB bridge |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 16 | 6 | */ |
|---|
| 17 | 7 | |
|---|
| 18 | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
|---|
| .. | .. |
|---|
| 31 | 21 | #include <media/v4l2-ctrls.h> |
|---|
| 32 | 22 | #include <media/v4l2-fh.h> |
|---|
| 33 | 23 | #include <media/media-device.h> |
|---|
| 24 | +#include <media/media-dev-allocator.h> |
|---|
| 34 | 25 | |
|---|
| 35 | 26 | /* DVB */ |
|---|
| 36 | 27 | #include <media/demux.h> |
|---|
| .. | .. |
|---|
| 52 | 43 | |
|---|
| 53 | 44 | #define AU0828_INTERLACED_DEFAULT 1 |
|---|
| 54 | 45 | |
|---|
| 55 | | -/* Defination for AU0828 USB transfer */ |
|---|
| 46 | +/* Definition for AU0828 USB transfer */ |
|---|
| 56 | 47 | #define AU0828_MAX_ISO_BUFS 12 /* maybe resize this value in the future */ |
|---|
| 57 | 48 | #define AU0828_ISO_PACKETS_PER_URB 128 |
|---|
| 58 | 49 | |
|---|
| .. | .. |
|---|
| 283 | 274 | struct media_entity_notify entity_notify; |
|---|
| 284 | 275 | struct media_entity *tuner; |
|---|
| 285 | 276 | struct media_link *active_link; |
|---|
| 286 | | - struct media_entity *active_link_owner; |
|---|
| 287 | 277 | struct media_entity *active_source; |
|---|
| 288 | 278 | 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; |
|---|
| 289 | 283 | #endif |
|---|
| 290 | 284 | }; |
|---|
| 291 | 285 | |
|---|