diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-08-31 12:23:03 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-01-11 09:18:55 -0500 |
commit | 188d2d551244f4196b616c90f3411732a6ebb2ab (patch) | |
tree | 15bbd0268e55cf0234425cece53748a28c2ea88c /drivers/media/dvb-core | |
parent | a08fad1ec80c69c79b3ffb6d84968b0952d32da1 (diff) |
[media] tuner-core: add an input pad
Tuners actually have at least one connector on its input.
Add a PAD to connect it.
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-core')
-rw-r--r-- | drivers/media/dvb-core/dvbdev.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core/dvbdev.c index f00f1a5f279c..a8e7e2398f7a 100644 --- a/drivers/media/dvb-core/dvbdev.c +++ b/drivers/media/dvb-core/dvbdev.c | |||
@@ -34,6 +34,9 @@ | |||
34 | #include <linux/mutex.h> | 34 | #include <linux/mutex.h> |
35 | #include "dvbdev.h" | 35 | #include "dvbdev.h" |
36 | 36 | ||
37 | /* Due to enum tuner_pad_index */ | ||
38 | #include <media/tuner.h> | ||
39 | |||
37 | static DEFINE_MUTEX(dvbdev_mutex); | 40 | static DEFINE_MUTEX(dvbdev_mutex); |
38 | static int dvbdev_debug; | 41 | static int dvbdev_debug; |
39 | 42 | ||
@@ -552,7 +555,7 @@ void dvb_create_media_graph(struct dvb_adapter *adap) | |||
552 | } | 555 | } |
553 | 556 | ||
554 | if (tuner && demod) | 557 | if (tuner && demod) |
555 | media_create_pad_link(tuner, 0, demod, 0, 0); | 558 | media_create_pad_link(tuner, TUNER_PAD_IF_OUTPUT, demod, 0, 0); |
556 | 559 | ||
557 | if (demod && demux) | 560 | if (demod && demux) |
558 | media_create_pad_link(demod, 1, demux, 0, MEDIA_LNK_FL_ENABLED); | 561 | media_create_pad_link(demod, 1, demux, 0, MEDIA_LNK_FL_ENABLED); |