summaryrefslogtreecommitdiff
path: root/drivers/media/usb/em28xx/em28xx-video.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-02-11 17:17:30 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-02-16 08:44:24 -0200
commite9ef88bd161b9147a18844668e6aa202fcfdab8e (patch)
treec6a39051ae53be9e7ce62b092e9dd694481cbf84 /drivers/media/usb/em28xx/em28xx-video.c
parent67873d4e751e400149df7ab61ba04cbb4cc0d449 (diff)
downloadlinux-e9ef88bd161b9147a18844668e6aa202fcfdab8e.tar.gz
linux-e9ef88bd161b9147a18844668e6aa202fcfdab8e.tar.xz
[media] em28xx-dvb: create RF connector on DVB-only mode
When in analog mode, the RF connector will be created by em28xx-video. However, when the device is in digital mode only, the RF connector is not shown. In this case, let the DVB core to create it for us. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/usb/em28xx/em28xx-video.c')
-rw-r--r--drivers/media/usb/em28xx/em28xx-video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c
index e7fd0bac4a08..f772e2612608 100644
--- a/drivers/media/usb/em28xx/em28xx-video.c
+++ b/drivers/media/usb/em28xx/em28xx-video.c
@@ -990,7 +990,8 @@ static void em28xx_v4l2_create_entities(struct em28xx *dev)
ent->function = MEDIA_ENT_F_CONN_SVIDEO;
break;
default: /* EM28XX_VMUX_TELEVISION or EM28XX_RADIO */
- ent->function = MEDIA_ENT_F_CONN_RF;
+ if (dev->tuner_type != TUNER_ABSENT)
+ ent->function = MEDIA_ENT_F_CONN_RF;
break;
}