hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/dvb-frontends/au8522_priv.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 Auvitek AU8522 QAM/8VSB demodulator driver
34
....@@ -5,19 +6,6 @@
56 Copyright (C) 2008 Devin Heitmueller <dheitmueller@linuxtv.org>
67 Copyright (C) 2005-2008 Auvitek International, Ltd.
78
8
- This program is free software; you can redistribute it and/or modify
9
- it under the terms of the GNU General Public License as published by
10
- the Free Software Foundation; either version 2 of the License, or
11
- (at your option) any later version.
12
-
13
- This program is distributed in the hope that it will be useful,
14
- but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- GNU General Public License for more details.
17
-
18
- You should have received a copy of the GNU General Public License
19
- along with this program; if not, write to the Free Software
20
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
219
2210 */
2311
....@@ -39,6 +27,13 @@
3927 #define AU8522_ANALOG_MODE 0
4028 #define AU8522_DIGITAL_MODE 1
4129 #define AU8522_SUSPEND_MODE 2
30
+
31
+enum au8522_pads {
32
+ AU8522_PAD_IF_INPUT,
33
+ AU8522_PAD_VID_OUT,
34
+ AU8522_PAD_AUDIO_OUT,
35
+ AU8522_NUM_PADS
36
+};
4237
4338 struct au8522_state {
4439 struct i2c_client *c;
....@@ -71,7 +66,7 @@
7166 struct v4l2_ctrl_handler hdl;
7267
7368 #ifdef CONFIG_MEDIA_CONTROLLER
74
- struct media_pad pads[DEMOD_NUM_PADS];
69
+ struct media_pad pads[AU8522_NUM_PADS];
7570 #endif
7671 };
7772