public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [linux-dvb] [PATCH] Add missing S2 caps flag to S2API
@ 2008-11-24 16:14 Niels Wagenaar
  2008-11-24 16:26 ` Klaus Schmidinger
  2008-11-24 16:50 ` VDR User
  0 siblings, 2 replies; 45+ messages in thread
From: Niels Wagenaar @ 2008-11-24 16:14 UTC (permalink / raw)
  To: linux-dvb

Op Ma, 24 november, 2008 16:59, schreef VDR User:
> If the multiproto method is superior, which it certainly seems to be,
> why can't that method be adopted into s2api?  It seems silly that this
> problem hasn't been addressed in the conception of s2api.
>

Is multiproto superior? Perhaps on several points it's indeed better or
more complete. But then again, it was allready 2 years in development so
it's bound to have additional enhancements which S2API doesn't have atm.

But then again, we're comparing multiproto with S2API which was build from
the ground in just little over 3 months. So yeah, it doesn't have it all.

>From my personal POV. I think S2API isn't missing something concerning
tuning. The latest VDR 1.7.0 patch (which I made available on 7-10), still
works in my configuration. And I heard from several others that it works
for them also. Even after updating the v4l repo to the latest editions. So
DVB tuning works with S2API.

So, what we're missing are enhancements! Well, we can add that since it's
OpenSource and all. So add it allready instead of complaining ;)

Regards,

Niels Wagenaar




_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 45+ messages in thread
* [linux-dvb]  [PATCH] Add missing S2 caps flag to S2API
@ 2008-11-25  9:15 jean-paul
  2008-11-25 10:31 ` Manu Abraham
  0 siblings, 1 reply; 45+ messages in thread
From: jean-paul @ 2008-11-25  9:15 UTC (permalink / raw)
  To: linux-dvb

When can we get a final version of multiproto. I hate al the  
discussions around over bits and bytes without carry on  customers and  
working versions. There are more then 1000 pathes around and it takes  
weeks to get some things work.   Is it really to mach work to makes  
thinks
work on a simple way?

Can I say, if I want to have a working system, switch to windows?

Please crow up and  let thinks make working as it shoot be.






_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 45+ messages in thread
* Re: [linux-dvb] [PATCH] Add missing S2 caps flag to S2API
@ 2008-11-25  8:46 Niels Wagenaar
  2008-11-25  9:05 ` Klaus Schmidinger
  0 siblings, 1 reply; 45+ messages in thread
From: Niels Wagenaar @ 2008-11-25  8:46 UTC (permalink / raw)
  To: linux-dvb

Op Ma, 24 november, 2008 20:33, schreef Manu Abraham:
> Klaus Schmidinger wrote:
>> On 24.11.2008 16:55, Niels Wagenaar wrote:
>>> ...
>>> For the time being I have only two options which will work without any
>>> additional patching in S2API:
>>>
>>> - Let the user set this as an option
>>> - Use my VUP (very ugly patch) by checking the deliverystem for the
>>> string
>>> "DVBS2".
>>
>> Both are ugly workarounds and any reasonable API requiring them instead
>> of simply reporting the -S2 capability of a device should
>> be ashamed, go home and do its homework.
>
> ACK
>

And still, I see many popular/free/commercial DVB software on the Windows
platform where you need to select the DVB-S2 option on the DVB-card. So I
wouldn't just throw away this option as an ugly work-around.

In fact, I would like to set the specific type for my DVB cards if I
could. So an override option is definately not a ugly work-around and for
several people this will not be problem.

But, the other option is definately a very ugly work-around. But then
again, it works ;)

>> For the time being I'll work with my suggested FE_CAN_2ND_GEN_MODULATION
>> patch - until somebody can suggest a different way of doing this
>> (without
>> parsing strings or requiring the user to do it).
>
> ACK.
>
> That is a saner way of doing it rather than anything else, as it stands.
>
> Anyway, we won't be seeing professional device support as it stands with
> the current API anytime soon, so as it stands the better alternative is
> thus.
>
> But it would be nice to have something shorter: say FE_IS_2G or
> something that way, for the minimal typing.
>

I disagree on both of the proposals. Add an other flag is indeed the way
(I ACK that), but not a general one like you both proposed. When DVB-T2
(or DVB-S3 or DVB-C2 or whatever new enhancement of past DVB standards)
becomes mainstream we get the exact same discussion again.

IMHO, an non-general flag like FE_CAN_DVBT, FE_CAN_DVBS, FE_CAN_DVBS2,
FE_CAN_DVBC, etc would be more clearer. Since it's an DVB standard, it
must support certain modulation types, etc. So if the driver set its
frontendtype to FE_CAN_DVBT, you know for sure what tuning types it
supports.

But it al depends if people want to add this in the v4l driver also. If
they don't, it doesn't matter which proposal or patch makes it. And for
that a manual override or setting would become very handy.

> Regards,
> Manu
>

Look, I'm not an developer perse and you can ignore what I just wrote. But
my logic tells me that an manual override or a non-general FE_CAN flag for
the current DVB standards is a very clean sollution. Just my € 0,02.

Regards,

Niels Wagenaar



_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 45+ messages in thread
* Re: [linux-dvb] [PATCH] Add missing S2 caps flag to S2API
@ 2008-11-24 15:55 Niels Wagenaar
  2008-11-24 15:59 ` VDR User
  2008-11-24 16:25 ` Klaus Schmidinger
  0 siblings, 2 replies; 45+ messages in thread
From: Niels Wagenaar @ 2008-11-24 15:55 UTC (permalink / raw)
  To: linux-dvb

-----Original message-----
From: Klaus Schmidinger <Klaus.Schmidinger@cadsoft.de>
Sent: Mon 24-11-2008 10:07
To: linux-dvb@linuxtv.org;
Subject: Re: [linux-dvb] [PATCH] Add missing S2 caps flag to S2API

> On 24.11.2008 08:12, Artem Makhutov wrote:
> > Hello,
> >
> > Klaus Schmidinger schrieb:
> >> The attached patch adds a capability flag that allows an application
> >> to determine whether a particular device can handle "second generation
> >> modulation" transponders. This is necessary in order for applications
> >> to be able to decide which device to use for a given channel in
> >> a multi device environment, where DVB-S and DVB-S2 devices are mixed.
> >>
> >> It is assumed that a device capable of handling "second generation
> >> modulation" can implicitly handle "first generation modulation".
> >> The flag is not named anything with DVBS2 in order to allow its
> >> use with future DVBT2 devices as well (should they ever come).
> >>
> >> Signed-off by: Klaus Schmidinger <Klaus.Schmidinger@cadsoft.de>
> >
> > Wouldn't it be better to add something like this:
> >
> > FE_CAN_8PSK
> > FE_CAN_16APSK
> > FE_CAN_32APSK
> >
> > or
> >
> > FE_CAN_DVBS2
> >
> > Instead of FE_CAN_2ND_GEN_MODULATION ? It is too generic for me.
>

I agree with Artem on this one.

> Well, it's bad enough that we have to "guess" which kind of
> delivery system it is by looking at feinfo.type. If it's FE_QPSK
> then it's DVB-S (or DVB-S2), if it's FE_OFDM then it's DVB-T etc.,

With most software I used on Windows (DVB Viewer Pro and Mediaportal) I
have to enable "DVB-S2" features on my card. Perhaps since we don't have a
FE_CAN_8PSK or an other sollution to check this, this might be the best
option you seek. Or use my very ugly patch (tm) where I check for the
string "DVBS2" in the card's deliverysystem and then set the frontendtype
to SYS_DVBS2 (which is backwards compatible with DVB-S).

> etc. The "multiproto" API had this cleaned up and introduced a
> clean way of finding out the delivery systems(!) a particular device
> can handle. Unfortunately, as we all know, this approach has been
> dismissed.

I don't know multiproto perse and I didn't check the multiproto code
within VDR in general. I just used Igor's S2API patch for VDR 1.7.0 which
only had DVB-S2. I then added the other SYS_ types and added the VUP I
wrote about earlier.

> Using some additional flags for "guessing" whether it's DVB-S2
> doesn't seem like a clean solution to me. Why not simply state
> the obvious? After all, the DVB standard for DVB-S2 speaks of
> "second generation modulation", that's why I named this flag
> that way.

With DVB-S2, I rather speak of an enhancement then of second generation.
But this is my oppinion and you can simply ignore this! ;)

> And since S2API can only handle a single delivery system
> at a time (as opposed to multiproto, where the delivery systems
> were flags, so a device could support several of them), it
> somehow made sense to me to have a flag that could later also
> be used for "second generation DVB-T" devices.
>

If I am correct, S2API will handle multiple delivery systems without any
problems. A device can handle multiple delivery systems because the
frontend (/dev/dvb/adapter[0,1,2,etc]/frontend[0,1,2,3,etc]) is the real
device(-location which) will handle the DVB delivery/transport. This can
be DVB-T, DVB-S, DVB-S2 or DVB-C (not and!). And we open a frontend
adapter of the device for tuning and that will only support one DVB
transport (we don't ask the card to tune, we ask the frontend
device-location to tune).

At least, this is the way as I understand how tuning with DVB-cards works
in general. And this is also the way how I implented the S2API patch. But
I'm not 100% sure if the patch does indeed work with MFE devices like the
HVR-3000, HVR-4000, etc because I didn't had the option to check if the
code - which checks the frontend of de device - can handle multiple
frontend device-locations.

> But I don't want to start another political fight here. All I need
> is a way to determine whether or not a device supports DVB-S2.
> If the commonly agreed on way to do this is to guess it by
> looking at FE_CAN_xyPSK capability flags, so be it. However, so
> far none of the "experts" cared about answering my initial
> question "How to determine DVB-S2 capability in S2API?", so
> I guessed the only way to get something to work was doing something
> about it ;-)
>

For the time being I have only two options which will work without any
additional patching in S2API:

- Let the user set this as an option
- Use my VUP (very ugly patch) by checking the deliverystem for the string
"DVBS2".

> Klaus

Niels Wagenaar



_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 45+ messages in thread
* [linux-dvb] [PATCH] Add missing S2 caps flag to S2API
@ 2008-11-23 10:53 Klaus Schmidinger
  2008-11-24  7:12 ` Artem Makhutov
  2008-12-18 15:48 ` Steven Toth
  0 siblings, 2 replies; 45+ messages in thread
From: Klaus Schmidinger @ 2008-11-23 10:53 UTC (permalink / raw)
  To: linux-dvb

[-- Attachment #1: Type: text/plain, Size: 767 bytes --]

The attached patch adds a capability flag that allows an application
to determine whether a particular device can handle "second generation
modulation" transponders. This is necessary in order for applications
to be able to decide which device to use for a given channel in
a multi device environment, where DVB-S and DVB-S2 devices are mixed.

It is assumed that a device capable of handling "second generation
modulation" can implicitly handle "first generation modulation".
The flag is not named anything with DVBS2 in order to allow its
use with future DVBT2 devices as well (should they ever come).

Signed-off by: Klaus Schmidinger <Klaus.Schmidinger@cadsoft.de>


PS: why an API named *S2*API didn't contain this in the first place
    is totally beyond me...

[-- Attachment #2: v4l-dvb-s2api-add-s2-capability.diff --]
[-- Type: text/x-patch, Size: 2046 bytes --]

diff -ru v4l-dvb-17754ef554b0/linux/drivers/media/dvb/frontends/cx24116.c v4l-dvb-2008-11-22-17754ef554b0/linux/drivers/media/dvb/frontends/cx24116.c
--- v4l-dvb-17754ef554b0/linux/drivers/media/dvb/frontends/cx24116.c	2008-11-21 23:00:55.000000000 +0100
+++ v4l-dvb-2008-11-22-17754ef554b0/linux/drivers/media/dvb/frontends/cx24116.c	2008-11-23 11:36:31.000000000 +0100
@@ -1459,6 +1459,7 @@
 			FE_CAN_FEC_1_2 | FE_CAN_FEC_2_3 | FE_CAN_FEC_3_4 |
 			FE_CAN_FEC_4_5 | FE_CAN_FEC_5_6 | FE_CAN_FEC_6_7 |
 			FE_CAN_FEC_7_8 | FE_CAN_FEC_AUTO |
+			FE_CAN_2ND_GEN_MODULATION |
 			FE_CAN_QPSK | FE_CAN_RECOVER
 	},
 
diff -ru v4l-dvb-17754ef554b0/linux/drivers/media/dvb/frontends/stb0899_drv.c v4l-dvb-2008-11-22-17754ef554b0/linux/drivers/media/dvb/frontends/stb0899_drv.c
--- v4l-dvb-17754ef554b0/linux/drivers/media/dvb/frontends/stb0899_drv.c	2008-11-21 23:00:55.000000000 +0100
+++ v4l-dvb-2008-11-22-17754ef554b0/linux/drivers/media/dvb/frontends/stb0899_drv.c	2008-11-23 11:37:01.000000000 +0100
@@ -1913,6 +1913,7 @@
 
 		.caps 			= FE_CAN_INVERSION_AUTO	|
 					  FE_CAN_FEC_AUTO	|
+					  FE_CAN_2ND_GEN_MODULATION |
 					  FE_CAN_QPSK
 	},
 
diff -ru v4l-dvb-17754ef554b0/linux/include/linux/dvb/frontend.h v4l-dvb-2008-11-22-17754ef554b0/linux/include/linux/dvb/frontend.h
--- v4l-dvb-17754ef554b0/linux/include/linux/dvb/frontend.h	2008-11-21 23:00:55.000000000 +0100
+++ v4l-dvb-2008-11-22-17754ef554b0/linux/include/linux/dvb/frontend.h	2008-11-23 11:27:21.000000000 +0100
@@ -63,6 +63,7 @@
 	FE_CAN_8VSB			= 0x200000,
 	FE_CAN_16VSB			= 0x400000,
 	FE_HAS_EXTENDED_CAPS		= 0x800000,   // We need more bitspace for newer APIs, indicate this.
+        FE_CAN_2ND_GEN_MODULATION       = 0x10000000, // frontend supports "2nd generation modulation" (DVB-S2)
 	FE_NEEDS_BENDING		= 0x20000000, // not supported anymore, don't use (frontend requires frequency bending)
 	FE_CAN_RECOVER			= 0x40000000, // frontend can recover from a cable unplug automatically
 	FE_CAN_MUTE_TS			= 0x80000000  // frontend can stop spurious TS data output

[-- Attachment #3: Type: text/plain, Size: 150 bytes --]

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 45+ messages in thread

end of thread, other threads:[~2008-12-31 17:28 UTC | newest]

Thread overview: 45+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-24 16:14 [linux-dvb] [PATCH] Add missing S2 caps flag to S2API Niels Wagenaar
2008-11-24 16:26 ` Klaus Schmidinger
2008-11-24 16:50 ` VDR User
  -- strict thread matches above, loose matches on Subject: below --
2008-11-25  9:15 jean-paul
2008-11-25 10:31 ` Manu Abraham
2008-11-25 12:33   ` jean-paul
2008-11-25  8:46 Niels Wagenaar
2008-11-25  9:05 ` Klaus Schmidinger
2008-11-25 16:32   ` VDR User
2008-11-25 18:34     ` Morgan Tørvolt
2008-11-25 18:48       ` Alex Betis
2008-11-26 19:45       ` Seppo Ingalsuo
2008-11-26 20:10         ` Christophe Thommeret
2008-11-26  1:44   ` hermann pitton
2008-11-24 15:55 Niels Wagenaar
2008-11-24 15:59 ` VDR User
2008-11-24 16:25 ` Klaus Schmidinger
2008-11-24 19:33   ` Manu Abraham
2008-11-25  8:35     ` Klaus Schmidinger
2008-11-23 10:53 Klaus Schmidinger
2008-11-24  7:12 ` Artem Makhutov
2008-11-24  8:24   ` BOUWSMA Barry
2008-11-24  9:06   ` Klaus Schmidinger
2008-11-24 13:37     ` vdr
2008-11-24 15:12     ` Artem Makhutov
2008-12-22 13:39       ` Thomas Creutz
2008-11-26 21:56   ` Udo Richter
2008-11-27  7:13     ` Alex Betis
2008-11-27 12:35     ` Artem Makhutov
2008-11-27 14:08       ` VDR User
2008-11-27 15:21         ` Andy Walls
2008-11-27 17:19           ` VDR User
2008-11-27 19:20             ` CityK
2008-11-28  2:34               ` hermann pitton
2008-11-28  7:58                 ` VDR User
2008-11-28  2:05             ` hermann pitton
2008-11-28  2:10             ` Andy Walls
2008-11-27 19:29           ` Igor M. Liplianin
2008-12-22 16:33     ` Udo Richter
2008-12-25  9:44       ` Helmut Auer
     [not found]         ` <1230219306.2336.25.camel@pc10.localdom.local>
2008-12-31 11:13           ` Mauro Carvalho Chehab
     [not found]             ` <495B5CE6.9010902@cadsoft.de>
2008-12-31 12:50               ` Mauro Carvalho Chehab
     [not found]                 ` <495B6C25.9010307@cadsoft.de>
2008-12-31 17:28                   ` Mauro Carvalho Chehab
2008-12-31 13:45               ` Gregoire Favre
2008-12-18 15:48 ` Steven Toth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox