summaryrefslogtreecommitdiff
path: root/drivers/media/usb/au0828/au0828-video.c
diff options
context:
space:
mode:
authorShuah Khan <shuahkh@osg.samsung.com>2016-02-11 21:41:35 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-02-27 09:29:20 -0300
commitc94903f1f7cc7649b0c2c46c75d6b8b56fd9acb8 (patch)
tree8a0efe51f35f5483ba8a9c17b7bb9d1e43f69776 /drivers/media/usb/au0828/au0828-video.c
parentf90c5d79e5156e523a6bd560b7da76e842992229 (diff)
[media] media: au0828 add enable, disable source handlers
Add enable_source and disable_source handlers. The enable source handler is called from v4l2-core, dvb-core, and ALSA drivers to check if the shared media source is free. The disable source handler is called to release the shared media source. [mchehab@osg.samsung.com: fix merge conflicts] Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/usb/au0828/au0828-video.c')
-rw-r--r--drivers/media/usb/au0828/au0828-video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/usb/au0828/au0828-video.c b/drivers/media/usb/au0828/au0828-video.c
index 5c51e3766d47..25e27c86e9ca 100644
--- a/drivers/media/usb/au0828/au0828-video.c
+++ b/drivers/media/usb/au0828/au0828-video.c
@@ -684,6 +684,7 @@ static int au0828_create_media_graph(struct au0828_dev *dev)
return -EINVAL;
if (tuner) {
+ dev->tuner = tuner;
ret = media_create_pad_link(tuner, TUNER_PAD_OUTPUT,
decoder, AU8522_PAD_INPUT, 0);
if (ret)