Skip to contentSkip to conversation

Ngene cam device name

PATCH Issa Gorissen 2 participants 3 messages May 6, 2011 – May 8, 2011 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

From: Andreas Oberritter <[email protected]>

Quoted 3 lines · Issa Gorissen
Quoted 2 lines

From: Andreas Oberritter <[email protected]>

Quoted 1 line
Quoted 1 line

The best would be to create independent adapters for each independent

CA

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

device (ca0/caio0 pair) - they are independent after all (physically

and

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line

in the way they're used).

Physically, it's a general purpose TS I/O interface of the nGene chipset. It just happens to be connected to a CI slot. On another board, it might be connected to a modulator or just to some kind of socket.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

If the next version gets a connector for two switchable CI modules, then the physical independence is gone. You'd have two ca nodes but only one caio node. Or two caio nodes, that can't be used concurrently.

Maybe the next version gets the ability to directly connect the TS input from the frontend to the TS output to the CI slot to save copying around the data, by using some kind of pin mux. Not physically independent

either.

Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

It just looks physically independent in the one configuration implemented now.

When I read the cxd2099ar datasheet, I can see that in dual slot configuration, there is still one communication channel for the TS and one

for

Quoted 5 lines
Quoted 1 line

the control.

It doesn't matter how the cxd2099ar works, because I'm talking about the nGene chipset in place of any chipset having at least two TS inputs and one TS output.

Don't know the ngene bridge enough to comment on this.

Quoted 5 lines

Btw., I don't think the cxd2099 driver has any obvious problems. It's the nGene driver that registers the sec/caio interface.

Quoted 1 line

Also, it seems linux en50221 stack provides for the slot selection. So,

why

Quoted 11 lines
Quoted 1 line

would you need two ca nodes ?

Because it's the most obvious way to use it. And more importantly because the API sucks, if you have more than one device per node. You can have only one reader, one writer, one poll function per node. For example, you can't use one instance of mplayer to watch one channel with fe0+dmx0+ca0 and a second instance of mplayer to watch or record another channel with fe1+dmx1+ca0. You won't know which device has an event if you use poll. The API even allows mixing multiple CI slots and built-in descramblers in the same node. But try calling CA_RESET on a specific slot or on a descrambler. It won't work. It's broken by design.

You need to write a userspace soft which will handle the concurrent access of your ca device...

But for your given example, is there any card allowing you to do that (one ci slot, two tuners) ?

#1 lore raw

Hello Issa,

Quoted 17 lines · Issa Gorissen

From: Andreas Oberritter <[email protected]>

Quoted 2 lines · Issa Gorissen
Quoted 1 line

Also, it seems linux en50221 stack provides for the slot selection. So,

why

Quoted 11 lines
Quoted 1 line

would you need two ca nodes ?

Because it's the most obvious way to use it. And more importantly because the API sucks, if you have more than one device per node. You can have only one reader, one writer, one poll function per node. For example, you can't use one instance of mplayer to watch one channel with fe0+dmx0+ca0 and a second instance of mplayer to watch or record another channel with fe1+dmx1+ca0. You won't know which device has an event if you use poll. The API even allows mixing multiple CI slots and built-in descramblers in the same node. But try calling CA_RESET on a specific slot or on a descrambler. It won't work. It's broken by design.

Quoted 2 lines

You need to write a userspace soft which will handle the concurrent access of your ca device...

... to gain what exactly over using two distinct nodes?

How do you propose solving the problem with CA_RESET with a userspace soft?

Quoted 2 lines

But for your given example, is there any card allowing you to do that (one ci slot, two tuners) ?

You don't seem to have understood my example. I was explaining some drawbacks of having more than one CI slot, but only one node, answering your prior question.

Besides that, it's highly probable that such a card exists. It wouldn't make much sense to hardwire CI slots to tuners, if multiple tuners exist on a board.

Disregarding the term "cards", there are variants of the Dreambox with 1, 2 or 4 CI slots combined with 1 to 4 tuners.

Regards,
Andreas

#2 lore raw
Quoted 18 lines · Andreas Oberritter

Hello Issa,

Quoted 15 lines · Issa Gorissen

From: Andreas Oberritter <[email protected]>

Quoted 2 lines · Issa Gorissen
Quoted 1 line

Also, it seems linux en50221 stack provides for the slot selection. So,

why

Quoted 10 lines
Quoted 1 line

would you need two ca nodes ?

Because it's the most obvious way to use it. And more importantly because the API sucks, if you have more than one device per node. You can have only one reader, one writer, one poll function per node. For example, you can't use one instance of mplayer to watch one channel with fe0+dmx0+ca0 and a second instance of mplayer to watch or record another channel with fe1+dmx1+ca0. You won't know which device has an event if you use poll. The API even allows mixing multiple CI slots and built-in descramblers in the same node. But try calling CA_RESET on a specific slot or on a descrambler. It won't work. It's broken by design.

Quoted 5 lines
Quoted 2 lines

You need to write a userspace soft which will handle the concurrent access of your ca device...

... to gain what exactly over using two distinct nodes?

How do you propose solving the problem with CA_RESET with a userspace soft?

Well, solving your problem of having two mplayer instances!

The CA_RESET ioctl will not reset one slot at a time obviously. But you can do an interface reset via the control register, no ? In cases when you remove/add a second/third/... module from one of the slot of a CI device, then I guess the CA_RESET is broken because it will reset everything... Have you got patches for that ?

Quoted 10 lines
Quoted 2 lines

But for your given example, is there any card allowing you to do that (one ci slot, two tuners) ?

You don't seem to have understood my example. I was explaining some drawbacks of having more than one CI slot, but only one node, answering your prior question.

Besides that, it's highly probable that such a card exists. It wouldn't make much sense to hardwire CI slots to tuners, if multiple tuners exist on a board.

Quoted 5 lines

Disregarding the term "cards", there are variants of the Dreambox with 1, 2 or 4 CI slots combined with 1 to 4 tuners.

Regards,
Andreas

I guess your point is valid, maybe the improvement you would like to see will pop up when the need will be created...