With the attached patch, tveeprom now reads the following off my NTSC PVR-500MCE:
tveeprom: Hauppauge: model = 23552, rev = D292, serial# = 7725799 tveeprom: tuner = Philips FQ1236A MK4 (idx = 92, type = 55) tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000) tveeprom: audio_processor = MSP3410D (type = 5) Patch is against a clean 0.3.2e, should apply to both a clean 0.3.2e and a 0.3.2e with the earlier megapatch, but needs at least the FQ1236A MK4 tuner def from the megapatch to be fully functional. -- Jarod Wilson [EMAIL PROTECTED]
--- tveeprom.c.orig 2005-02-26 21:56:58.992014388 -0800
+++ tveeprom.c 2005-02-26 22:07:08.225990292 -0800
@@ -254,7 +254,7 @@
/* 90-99 */
{ TUNER_ABSENT, "LG TALN H202T"},
{ TUNER_ABSENT, "Philips FQ1216AME MK4"},
- { TUNER_ABSENT, "Philips FQ1236A MK4"},
+ { TUNER_PHILIPS_FQ1236A_MK4, "Philips FQ1236A MK4"},
{ TUNER_ABSENT, "Philips FQ1286A MK4"},
{ TUNER_ABSENT, "Philips FQ1216ME MK5"},
{ TUNER_ABSENT, "Philips FQ1236 MK5"},
@@ -303,6 +303,7 @@
case 61: //PNPEnv_TUNER_TAPE_M001D_MK3:
case 78: //PNPEnv_TUNER_TDA8275C1_8290_FM:
case 89: //PNPEnv_TUNER_TCL_MFPE05_2:
+ case 92: //PNPEnv_TUNER_PHILIPS_FQ1236A_MK4:
return 1;
}
return 0;
@@ -318,8 +319,8 @@
** if packet[0] & f8 == f8, then EOD and packet[1] == checksum
**
** In our (ivtv) case we're interested in the following:
- ** tuner type: tag [00].05 or [0a].01 (index into hauppauge_tuners)
- ** tuner fmts: tag [00].04 or [0a].00 (bitmask index into hauppauge_fmts)
+ ** tuner type: tag [00].05 or [0a].01 (index into hauppauge_tuner)
+ ** tuner fmts: tag [00].04 or [0a].00 (bitmask index into hauppauge_tuner_fmt)
** radio: tag [00].{last} or [0e].00 (bitmask. bit2=FM)
** audio proc: tag [02].01 or [05].00 (lower nibble indexes lut?)
@@ -331,10 +332,10 @@
** # of inputs/outputs ???
*/
- int i, j, len, done, tag, tuner = 0, t_format = 0;
+ int i, j, len, done, beenhere, tag, tuner = 0, t_format = 0;
char *t_name = NULL, *t_fmt_name = NULL;
- tvee->revision = done = len = 0;
+ tvee->revision = done = len = beenhere = 0;
for (i = 0; !done && i < 256; i += len) {
dprintk(2, "processing pos = %02x (%02x, %02x)\n",
i, eeprom_data[i], eeprom_data[i + 1]);
@@ -403,9 +404,14 @@
(eeprom_data[i+7] << 16);
break;
case 0x0a:
- tuner = eeprom_data[i+2];
- t_format = eeprom_data[i+1];
- break;
+ if(beenhere == 0) {
+ tuner = eeprom_data[i+2];
+ t_format = eeprom_data[i+1];
+ beenhere = 1;
+ break;
+ } else {
+ break;
+ }
case 0x0e:
tvee->has_radio = eeprom_data[i+1];
break;
pgpmxEwEIZvts.pgp
Description: PGP signature
