.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Auvitek AU8522 QAM/8VSB demodulator driver and video decoder |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2009 Devin Heitmueller <dheitmueller@linuxtv.org> |
---|
5 | 6 | * Copyright (C) 2005-2008 Auvitek International, Ltd. |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or |
---|
8 | | - * modify it under the terms of the GNU General Public License |
---|
9 | | - * As published by the Free Software Foundation; either version 2 |
---|
10 | | - * of the License, or (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 | 7 | */ |
---|
17 | 8 | |
---|
18 | 9 | /* Developer notes: |
---|
.. | .. |
---|
571 | 562 | { |
---|
572 | 563 | struct au8522_state *state = to_state(sd); |
---|
573 | 564 | |
---|
574 | | - switch(input) { |
---|
| 565 | + switch (input) { |
---|
575 | 566 | case AU8522_COMPOSITE_CH1: |
---|
576 | 567 | case AU8522_SVIDEO_CH13: |
---|
577 | 568 | case AU8522_COMPOSITE_CH4_SIF: |
---|
.. | .. |
---|
718 | 709 | v4l2_i2c_subdev_init(sd, client, &au8522_ops); |
---|
719 | 710 | #if defined(CONFIG_MEDIA_CONTROLLER) |
---|
720 | 711 | |
---|
721 | | - state->pads[DEMOD_PAD_IF_INPUT].flags = MEDIA_PAD_FL_SINK; |
---|
722 | | - state->pads[DEMOD_PAD_VID_OUT].flags = MEDIA_PAD_FL_SOURCE; |
---|
723 | | - state->pads[DEMOD_PAD_VBI_OUT].flags = MEDIA_PAD_FL_SOURCE; |
---|
724 | | - state->pads[DEMOD_PAD_AUDIO_OUT].flags = MEDIA_PAD_FL_SOURCE; |
---|
| 712 | + state->pads[AU8522_PAD_IF_INPUT].flags = MEDIA_PAD_FL_SINK; |
---|
| 713 | + state->pads[AU8522_PAD_IF_INPUT].sig_type = PAD_SIGNAL_ANALOG; |
---|
| 714 | + state->pads[AU8522_PAD_VID_OUT].flags = MEDIA_PAD_FL_SOURCE; |
---|
| 715 | + state->pads[AU8522_PAD_VID_OUT].sig_type = PAD_SIGNAL_DV; |
---|
| 716 | + state->pads[AU8522_PAD_AUDIO_OUT].flags = MEDIA_PAD_FL_SOURCE; |
---|
| 717 | + state->pads[AU8522_PAD_AUDIO_OUT].sig_type = PAD_SIGNAL_AUDIO; |
---|
725 | 718 | sd->entity.function = MEDIA_ENT_F_ATV_DECODER; |
---|
726 | 719 | |
---|
727 | 720 | ret = media_entity_pads_init(&sd->entity, ARRAY_SIZE(state->pads), |
---|