Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-08 Thread Trent Piepho
On Thu, 6 Sep 2007, Manu Abraham wrote: Trent Piepho wrote: At least for many demods, the frequency range supported is determined by the tuner. One could have a chip that combines the demod and tuner functions, or a system where the demod is somehow involved in tuning and has some

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-08 Thread Manu Abraham
Trent Piepho wrote: On Thu, 6 Sep 2007, Manu Abraham wrote: Trent Piepho wrote: At least for many demods, the frequency range supported is determined by the tuner. One could have a chip that combines the demod and tuner functions, or a system where the demod is somehow involved in tuning

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-07 Thread Paolo Dell'Aquila
hermann pitton wrote: Can not reproduce your problem on a 32bit machine with the Asus P7131 Dual. If I fake frequencies out of range in my tzap channels.conf, the error behavior is OK, also I can still tune to the valid frequencies. YEP YEP YEP SOLVED I want to thank you all.

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-07 Thread hermann pitton
Hi Paolo, Am Freitag, den 07.09.2007, 10:15 +0200 schrieb Paolo Dell'Aquila: hermann pitton wrote: Can not reproduce your problem on a 32bit machine with the Asus P7131 Dual. If I fake frequencies out of range in my tzap channels.conf, the error behavior is OK, also I can still tune to

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-07 Thread hermann pitton
Hi Paolo, Am Freitag, den 07.09.2007, 10:15 +0200 schrieb Paolo Dell'Aquila: hermann pitton wrote: Can not reproduce your problem on a 32bit machine with the Asus P7131 Dual. If I fake frequencies out of range in my tzap channels.conf, the error behavior is OK, also I can still tune to

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-06 Thread Mauro Carvalho Chehab
The limits are comming from the tda10046 info. I think the correct thing to do here is to not have the tda1004x driver define frequency limits, as it's the tuner that has the limits. Nak. You must not remove these limits unless you make sure that all tuner drivers which might be

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-06 Thread Manu Abraham
IMO, the better would be not to initialize frequency ranges at the demods (since this is tuner stuff). Ninny approach ___ linux-dvb mailing list linux-dvb@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-06 Thread Manu Abraham
Hi Obi, Andreas Oberritter wrote: The strtol() function returns the result of the conversion, unless the value would underflow or overflow. If an underflow occurs, strtol() returns LONG_MIN. If an overflow occurs, strtol() returns LONG_MAX. In both cases, errno is set to ERANGE.

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-06 Thread Manu Abraham
Hi Obi, Andreas Oberritter wrote: The strtol() function returns the result of the conversion, unless the value would underflow or overflow. If an underflow occurs, strtol() returns LONG_MIN. If an overflow occurs, strtol() returns LONG_MAX. In both cases, errno is set to ERANGE.

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-06 Thread Johannes Stezenbach
On Thu, Sep 06, 2007, Andreas Oberritter wrote: Quoting from the manpage of strtol(): The strtol() function returns the result of the conversion, unless the value would underflow or overflow. If an underflow occurs, strtol() returns LONG_MIN. If an overflow occurs, strtol() returns

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-06 Thread Trent Piepho
On Thu, 6 Sep 2007, Andreas Oberritter wrote: Trent Piepho wrote: But, 2147483647 is not a valid DVB-T frequency. It looks like some random number. It's not that random: 2147483647 equals INT_MAX and also LONG_MAX on 32 bit systems. Quoting from the manpage of strtol(): The strtol()

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-06 Thread Trent Piepho
On Thu, 6 Sep 2007, Mauro Carvalho Chehab wrote: The limits are comming from the tda10046 info. I think the correct thing to do here is to not have the tda1004x driver define frequency limits, as it's the tuner that has the limits. Nak. You must not remove these limits unless you

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-06 Thread Andreas Oberritter
Hello Johannes, Johannes Stezenbach wrote: Since strtol() can legitimately return 0, LONG_MAX, or LONG_MIN (LLONG_MAX or LLONG_MIN for str‐ toll()) on both success and failure, the calling program should set errno to 0 before the call, and then determine if an

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-06 Thread Michael Krufky
Andreas Oberritter wrote: @Manu: I am using hg anonymously and I don't even know whether I have write access or not. It would be nice if you can commit it. Everybody that had commit access to cvs also now has commit rights to hg/dvb-apps -Mike ___

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-06 Thread Manu Abraham
Trent Piepho wrote: At least for many demods, the frequency range supported is determined by the tuner. One could have a chip that combines the demod and tuner functions, or a system where the demod is somehow involved in tuning and has some limit. But that is not the case here. Fmclk 2 *

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-06 Thread hermann pitton
Hi Paolo, Am Donnerstag, den 06.09.2007, 10:01 +0200 schrieb Paolo Dell'Aquila: hermann pitton wrote: OK, you are using the patch to change the digital antenna input, no analog used after latest module unload and the IR receiver is not plugged. I've tried both applying your patch for

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-06 Thread Mauro Carvalho Chehab
This would be easy to do. There is already a function, dvb_frontend_get_frequeny_limits(), that does this. It prints a warning message if neither the demod nor the tuner define a limit. In this case, it returns zero for the max frequency, so any attempt to tune with a driver broken like

[linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-05 Thread Paolo Dell'Aquila
This morning I upgraded the kernel of my linux box. After that I cloned v4l-dvb and compiled everything. I've done it because couldn't watch digital tv with mplayer but only with kaffeine. Mplayer error was: vb_streaming_read, attempt N. 6 failed with errno 0 when reading ... So I tried to update

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-05 Thread hermann pitton
Hi Paolo, Am Mittwoch, den 05.09.2007, 13:29 +0200 schrieb Paolo Dell'Aquila: This morning I upgraded the kernel of my linux box. After that I cloned v4l-dvb and compiled everything. I've done it because couldn't watch digital tv with mplayer but only with kaffeine. Mplayer error was:

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-05 Thread Trent Piepho
On Thu, 6 Sep 2007, hermann pitton wrote: Am Mittwoch, den 05.09.2007, 13:29 +0200 schrieb Paolo Dell'Aquila: Than I've done some test with Mythtv and auto-scanning for channels... and now... ...now I'm having the following (BIG) problem: dvb-t doesn't work anymore (also in kaffeiene

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-05 Thread Andreas Oberritter
Trent Piepho wrote: On Thu, 6 Sep 2007, hermann pitton wrote: Am Mittwoch, den 05.09.2007, 13:29 +0200 schrieb Paolo Dell'Aquila: Than I've done some test with Mythtv and auto-scanning for channels... and now... ...now I'm having the following (BIG) problem: dvb-t doesn't work anymore

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-05 Thread Oliver Endriss
Trent Piepho wrote: On Thu, 6 Sep 2007, hermann pitton wrote: Am Mittwoch, den 05.09.2007, 13:29 +0200 schrieb Paolo Dell'Aquila: Than I've done some test with Mythtv and auto-scanning for channels... and now... ...now I'm having the following (BIG) problem: dvb-t doesn't work

Re: [linux-dvb] Asys P7131 Hybrid: DVB out of range

2007-09-05 Thread hermann pitton
Am Mittwoch, den 05.09.2007, 16:36 -0700 schrieb Trent Piepho: On Thu, 6 Sep 2007, hermann pitton wrote: Am Mittwoch, den 05.09.2007, 13:29 +0200 schrieb Paolo Dell'Aquila: Than I've done some test with Mythtv and auto-scanning for channels... and now... ...now I'm having the