[mythtv-users] PVR-250/350: How to determine tuner type
DS
mythtv at dystopic.org
Mon Feb 16 05:58:21 EST 2004
On Mon, 16 Feb 2004, Thomas Börkel wrote:
> HI!
>
> DS wrote:
>
> >>Can I determine the type when I have the card sitting in my PCI slot
> >>(via some command)?
> >
> > When you insmod tveeprom you'll get something like this in your dmesg:
> >
> > tvee: Hauppauge: model=48139, rev=J352, serial#=6813652
> > tvee: tuner=<unknown> (idx=52, type=-1)
> >
> > This is typically the new Microtune 4049 FM. However, if you've got one of
> > those, you can feel relieved that there are patches available that will
> > make it work in the ivtv lists.
>
> Will that also work, if I have one card with the old one and one with
> the new one? I think this has been asked here recently, but not been
> answered.
>
> Thomas
>
Well, not straight off, no. I changed my driver a bit more to load my
specific tuners to get that working. Here's the relevant section of code,
which should work if you have a 350 card with the microtune and a 250
card with a type 29 tuner. If you two 350 cards you'd have to find a
slightly different way to determine which card should load what tuner:
(note, tuner type should not be set in modules.conf if you do it this
way.)
if (itv->card_type != IVTV_350_V1) {
IVTV_DEBUG(IVTV_DEBUG_INFO, "Attempting LG
Tuner\n");
tuner=29;
ivtv_call_i2c_client(itv,
IVTV_TUNER_I2C_ADDR,
TUNER_SET_TYPE,
&tuner );
}
if (itv->card_type == IVTV_350_V1) {
IVTV_DEBUG(IVTV_DEBUG_INFO, "Attempting
TDA9887 and Microtune 4049\n");
tuner=44;
ivtv_call_i2c_client(itv,
IVTV_TUNER_I2C_ADDR,
TUNER_SET_TYPE,
&tuner );
ivtv_call_i2c_client(itv,
IVTV_TDA9887_I2C_ADDR,
AUDC_CONFIG_PINNACLE,
&tda9887 );
}
(yes, its' a horrendous way of doing it, but as far as I could tell off
the mailing list they're working on getting tuner autoprobing into the
driver in the next version which should solve the problem in a better
way).
/DS
More information about the mythtv-users
mailing list