Ngene cam device name
From: Andreas Oberritter <[email protected]>
To: Issa Gorissen <[email protected]>Cc: [email protected], [email protected]
Subject: Re: [PATCH] Ngene cam device name
Quoted 2 lines · Issa Gorissen
Quoted 1 line
As the cxd20099 driver is in staging due to abuse of the sec0 device,
this
Quoted 1 line
Quoted 1 line
patch renames it to cam0. The sec0 device is not in use and can be
removed
Quoted 7 lines
That doesn't solve anything. Besides, your patch doesn't even do what you describe.
Wouldn't it be possible to extend the current CA API? If not, shouldn't a new API be created that covers both old and new requirements?
Quoted 6 lines
It's rather unintuitive that some CAMs appear as ca0, while others as cam0.
If it was that easy to fix, it wouldn't be in staging today.
Regards,
Andreas
Yes indeed, this patch is missing the update of dnames arrays in dvbdev.c
Now, according to Mauro comments, he has put this code into staging because of the usage of sec0 name for a cam device.
Please comment on Oliver's explanations from this thread
http://www.mail-archive.com/[email protected]/msg26901.html
Thx
--
Issa
Quoted 40 lines
Quoted 39 lines
Signed-off-by Issa Gorissen <[email protected]>--- drivers/media/dvb/dvb-core/dvbdev.h | 2 +- drivers/media/dvb/ngene/ngene-core.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/media/dvb/dvb-core/dvbdev.h +1
-1@@ -40,7 +40,7 @@#define DVB_DEVICE_VIDEO 0#define DVB_DEVICE_AUDIO 1 -#define DVB_DEVICE_SEC 2 +#define DVB_DEVICE_CAM 2#define DVB_DEVICE_FRONTEND 3#define DVB_DEVICE_DEMUX 4#define DVB_DEVICE_DVR 5drivers/media/dvb/ngene/ngene-core.c +1
-2@@ -1523,7 +1523,7 @@ static int init_channel(struct ngene_channel *chan)set_transfer (&chan->dev->channel[2 ],1 );dvb_register_device (adapter, &chan->ci_dev, &ngene_dvbdev_ci, (void *) chan, -DVB_DEVICE_SEC ); +DVB_DEVICE_CAM );if (!chan->ci_dev) goto err; } --To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 20 lines
Quoted 2 lines · Issa Gorissen
Quoted 1 line
As the cxd20099 driver is in staging due to abuse of the sec0 device,
this
Quoted 1 line
Quoted 1 line
patch renames it to cam0. The sec0 device is not in use and can be
removed
Quoted 7 lines
That doesn't solve anything. Besides, your patch doesn't even do what you describe.
Wouldn't it be possible to extend the current CA API? If not, shouldn't a new API be created that covers both old and new requirements?
Quoted 6 lines
It's rather unintuitive that some CAMs appear as ca0, while others as cam0.
If it was that easy to fix, it wouldn't be in staging today.
Regards,
Andreas
Quoted 8 lines
Yes indeed, this patch is missing the update of dnames arrays in
dvbdev.cNow, according to Mauro comments, he has put this code into staging because of the usage of sec0 name for a cam device.
Please comment on Oliver's explanations from this thread
Oliver explained that he's not going to put work into this driver, because he's not using it.
Until now, I haven't heard any reasons for just adding another device node other than it being easier than defining a proper interface. The fact that a solution "just works as is" is not sufficient to move a driver from staging. IMO the CI driver should not have been included at all in its current shape.
Regards,
Andreas
Quoted 8 lines · Andreas Oberritter
Quoted 7 lines
Quoted 1 line · Issa Gorissen
Now, according to Mauro comments, he has put this code into staging because of the usage of sec0 name for a cam device.
Please comment on Oliver's explanations from this thread
Quoted 8 lines
Oliver explained that he's not going to put work into this driver, because he's not using it.
Until now, I haven't heard any reasons for just adding another device node other than it being easier than defining a proper interface. The fact that a solution "just works as is" is not sufficient to move a driver from staging. IMO the CI driver should not have been included at all in its current shape.
Unless you want to move the writing to/reading from the CI module into ioctls of the ci device you need another node.
Even nicer would be having the control messages moved to ioctls and the TS IO in read/write of ci, but this would break the old interface.
What kind of proper interface were you thinking about?
Regarding usage of dvr/demux mentioned in the linked thread above, this would add major overhead and lots more nodes.
You would need dvr0/demux0 for output and dvr1/demux1 for input and both would PID-filter the stream yet again although it probably already was when being read from the demux or dvr device belonging to the tuner.
Regards,
Ralph
Quoted 18 lines · Ralph Metzler
Quoted 8 lines · Andreas Oberritter
Quoted 7 lines
Quoted 1 line · Issa Gorissen
Now, according to Mauro comments, he has put this code into staging because of the usage of sec0 name for a cam device.
Please comment on Oliver's explanations from this thread
Quoted 8 lines
Oliver explained that he's not going to put work into this driver, because he's not using it.
Until now, I haven't heard any reasons for just adding another device node other than it being easier than defining a proper interface. The fact that a solution "just works as is" is not sufficient to move a driver from staging. IMO the CI driver should not have been included at all in its current shape.
Quoted 4 lines
Unless you want to move the writing to/reading from the CI module into ioctls of the ci device you need another node.
Even nicer would be having the control messages moved to ioctls and the TS IO in read/write of ci, but this would break the old interface.
It's possible to keep compatibility. Just add ioctls to get and set the interface version. Default to the current version, not supporting TS I/O. If the version is set to e.g. 1, switch from the current interface to the new one, using ioctls for control messages.
Quoted 1 line
What kind of proper interface were you thinking about?
At least something that's documented and has a defined behaviour.
Regards,
Andreas
Quoted 9 lines · Andreas Oberritter
Quoted 4 lines
Unless you want to move the writing to/reading from the CI module into ioctls of the ci device you need another node.
Even nicer would be having the control messages moved to ioctls and the TS IO in read/write of ci, but this would break the old interface.It's possible to keep compatibility. Just add ioctls to get and set the interface version. Default to the current version, not supporting TS I/O. If the version is set to e.g. 1, switch from the current interface to the new one, using ioctls for control messages.
A possibility, but also requires rewrites in existing software like libdvben50221. Right now you can e.g. tune with /dev/dvb/adapter0/frontend0, point an unchanged libdvben50221 to /dev/dvb/adapter1/ci0 (separate adapter since it can even be on a different card) and pipe all PIDs of cam_pmt of the program you are watching through /dev/dvb/adapter1/sec0(cam0) and it is decoded.
Regards,
Ralph