hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/dvb-frontends/au8522_decoder.c
....@@ -1,18 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Auvitek AU8522 QAM/8VSB demodulator driver and video decoder
34 *
45 * Copyright (C) 2009 Devin Heitmueller <dheitmueller@linuxtv.org>
56 * 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.
167 */
178
189 /* Developer notes:
....@@ -571,7 +562,7 @@
571562 {
572563 struct au8522_state *state = to_state(sd);
573564
574
- switch(input) {
565
+ switch (input) {
575566 case AU8522_COMPOSITE_CH1:
576567 case AU8522_SVIDEO_CH13:
577568 case AU8522_COMPOSITE_CH4_SIF:
....@@ -718,10 +709,12 @@
718709 v4l2_i2c_subdev_init(sd, client, &au8522_ops);
719710 #if defined(CONFIG_MEDIA_CONTROLLER)
720711
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;
725718 sd->entity.function = MEDIA_ENT_F_ATV_DECODER;
726719
727720 ret = media_entity_pads_init(&sd->entity, ARRAY_SIZE(state->pads),