Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e92bbe0 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] dvb: don't keep support for undocumented features



There are two DVB demux callbacks and ioctls that aren't documented
and aren't used at all by the DVB core or by any DVB driver upstream.

Let's comment out the code for those two ioctls and remove on some
future version.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 28cff82c
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -411,10 +411,12 @@ struct dmx_demux {

	int (*get_pes_pids) (struct dmx_demux* demux, u16 *pids);

	/* private: Not used upstream and never documented */
#if 0
	int (*get_caps) (struct dmx_demux* demux, struct dmx_caps *caps);

	int (*set_source) (struct dmx_demux* demux, const dmx_source_t *src);

#endif
	/* public: */
	int (*get_stc) (struct dmx_demux* demux, unsigned int num,
			u64 *stc, unsigned int *base);
};
+4 −0
Original line number Diff line number Diff line
@@ -1023,6 +1023,9 @@ static int dvb_demux_do_ioctl(struct file *file,
		dmxdev->demux->get_pes_pids(dmxdev->demux, parg);
		break;

#if 0
	/* Not used upstream and never documented */

	case DMX_GET_CAPS:
		if (!dmxdev->demux->get_caps) {
			ret = -EINVAL;
@@ -1038,6 +1041,7 @@ static int dvb_demux_do_ioctl(struct file *file,
		}
		ret = dmxdev->demux->set_source(dmxdev->demux, parg);
		break;
#endif

	case DMX_GET_STC:
		if (!dmxdev->demux->get_stc) {