From: Robert Paciorek <robert@opcode.eu.org>
To: linux-media@vger.kernel.org
Subject: [PATCH] [libdvbv5] basic support for videoX and audioX devices
Date: Mon, 25 Jun 2018 20:08:09 +0000 [thread overview]
Message-ID: <20180625200809.7fb10f6f@pc-b29> (raw)
[-- Attachment #1: Type: text/plain, Size: 581 bytes --]
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
[-- Attachment #2: video_audio_dev.patch --]
[-- Type: text/x-patch, Size: 700 bytes --]
diff --git a/lib/include/libdvbv5/dvb-dev.h b/lib/include/libdvbv5/dvb-dev.h
index 6dbd2ae..2eeae51 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 9a0952b..c379f40 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
reply other threads:[~2018-06-25 20:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180625200809.7fb10f6f@pc-b29 \
--to=robert@opcode.eu.org \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox