Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: Still problem with Hauppauge Nova-T



I can tell you this much:

if (param->inversion != INVERSION_ON &&
    param->inversion != INVERSION_OFF)
 return -EINVAL;

The driver will only accept INVERSION_ON and INVERSION_OFF, but dvbscan
used INVERSION_AUTO in your case, that's why you got these "WARNING: >>>
tuning failed!!!" messages with it. You need to tell dvbscan to use
INVERSION_OFF. Not sure how to do that, though.
I checked it and you're right. I patched scan.c (from dvbscan) to use INVERSION_OFF:

line 56:
static enum fe_spectral_inversion spectral_inversion = INVERSION_OFF;

And this is the output:

tune to: 706000000:INVERSION_OFF:BANDWIDTH_8_MHZ:FEC_1_2:FEC_AUTO:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE
WARNING: >>> tuning failed!!!

So I looked inside grundig_29504-401.c and I saw that the part you quoted was inside:

static int apply_frontend_param (struct dvb_i2c_bus *i2c,
struct dvb_frontend_parameters *param)

Called by the ioctl manager for FE_SET_FRONTEND.

In scan.c (from dvbscan) there is:

if (ioctl(frontend_fd, FE_SET_FRONTEND, &p) == -1) {
errorn("Setting frontend parameters failed");
return -1;
}

So I think I should get a "Setting frontend parameters failed" not a "WARNING: >>> tuning failed!!!" in case the ioctl(frontend_fd, FE_SET_FRONTEND, &p) fails.

Am I wrong? I checked with a printf... ioctl(frontend_fd, FE_SET_FRONTEND, &p) is 0x00.

--
Simon.





Home | Main Index | Thread Index