aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Paciorek <robert@opcode.eu.org>2018-06-25 16:08:09 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-12-07 09:02:35 -0500
commit516595495957cbc18b578e6c1598bec21858b4e5 (patch)
treef1d9366683d57c2048228a8913f9ef79cd6839b3
parent7a118f166609c0d05c6447cc79484af37875d6fc (diff)
basic support for videoX and audioX devices
Hi, currently libdvbv5 generate warning about ignoring dvb output devices (videoX and audioX): WARNING Ignoring device /dev/dvb/adapter0/audio0 WARNING Ignoring device /dev/dvb/adapter0/video0 and does not allow search and open those devices. DVB output device are used (for example) in Linux based STB devices and IMHO would be nice to be able to handle them with libdvbv5. Attached patch enabled elementary support for those devices - remove warning and allow search it by dvb_dev_seek_by_adapter(), open and close with dvb_dev_* functions. Best Regards, Robert Paciorek Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--lib/include/libdvbv5/dvb-dev.h2
-rw-r--r--lib/libdvbv5/dvb-dev.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/include/libdvbv5/dvb-dev.h b/lib/include/libdvbv5/dvb-dev.h
index 6dbd2ae7..2eeae516 100644
--- a/lib/include/libdvbv5/dvb-dev.h
+++ b/lib/include/libdvbv5/dvb-dev.h
@@ -62,6 +62,8 @@ enum dvb_dev_type {
DVB_DEVICE_NET,
DVB_DEVICE_CA,
DVB_DEVICE_CA_SEC,
+ DVB_DEVICE_VIDEO,
+ DVB_DEVICE_AUDIO,
};
/**
diff --git a/lib/libdvbv5/dvb-dev.c b/lib/libdvbv5/dvb-dev.c
index 9a0952b4..c379f402 100644
--- a/lib/libdvbv5/dvb-dev.c
+++ b/lib/libdvbv5/dvb-dev.c
@@ -37,7 +37,7 @@
#endif
const char * const dev_type_names[] = {
- "frontend", "demux", "dvr", "net", "ca", "sec"
+ "frontend", "demux", "dvr", "net", "ca", "sec", "video", "audio"
};
const unsigned int

Privacy Policy