| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | Auvitek AU8522 QAM/8VSB demodulator driver |
|---|
| 3 | 4 | |
|---|
| .. | .. |
|---|
| 5 | 6 | Copyright (C) 2008 Devin Heitmueller <dheitmueller@linuxtv.org> |
|---|
| 6 | 7 | Copyright (C) 2005-2008 Auvitek International, Ltd. |
|---|
| 7 | 8 | |
|---|
| 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. |
|---|
| 21 | 9 | |
|---|
| 22 | 10 | */ |
|---|
| 23 | 11 | |
|---|
| .. | .. |
|---|
| 39 | 27 | #define AU8522_ANALOG_MODE 0 |
|---|
| 40 | 28 | #define AU8522_DIGITAL_MODE 1 |
|---|
| 41 | 29 | #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 | +}; |
|---|
| 42 | 37 | |
|---|
| 43 | 38 | struct au8522_state { |
|---|
| 44 | 39 | struct i2c_client *c; |
|---|
| .. | .. |
|---|
| 71 | 66 | struct v4l2_ctrl_handler hdl; |
|---|
| 72 | 67 | |
|---|
| 73 | 68 | #ifdef CONFIG_MEDIA_CONTROLLER |
|---|
| 74 | | - struct media_pad pads[DEMOD_NUM_PADS]; |
|---|
| 69 | + struct media_pad pads[AU8522_NUM_PADS]; |
|---|
| 75 | 70 | #endif |
|---|
| 76 | 71 | }; |
|---|
| 77 | 72 | |
|---|