Changeset 82
- Timestamp:
- 05/19/09 03:45:37 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/reader-videoguard2.c
r80 r82 463 463 unsigned char atr_bskyb[] = { 0x3F, 0x7F, 0x13, 0x25, 0x03, 0x33, 0xB0, 0x06, 0x69, 0xFF, 0x4A, 0x50, 0xD0, 0x00, 0x00, 0x53, 0x59, 0x00, 0x00, 0x00 }; 464 464 unsigned char atr_skyitalia[] = { 0x3F, 0xFF, 0x13, 0x25, 0x03, 0x10, 0x80, 0x33, 0xB0, 0x0E, 0x69, 0xFF, 0x4A, 0x50, 0x70, 0x00, 0x00, 0x49, 0x54, 0x02, 0x00, 0x00 }; 465 466 if ((atrsize == sizeof (atr_bskyb)) && (memcmp (atr, atr_bskyb, atrsize) == 0)) { 467 cs_log("Type: Videoguard BSkyB"); 468 /* BSkyB seems to need one additionnal byte in the serial communication... */ 469 io_serial_need_dummy_char = 1; 470 } else if ((atrsize == sizeof (atr_skyitalia)) && (memcmp (atr, atr_skyitalia, atrsize) == 0)) { 471 cs_log("Type: Videoguard Sky Italia"); 472 } else { 465 unsigned char atr_directv[] = { 0x3F, 0x78, 0x13, 0x25, 0x03, 0x40, 0xB0, 0x20, 0xFF, 0xFF, 0x4A, 0x50, 0x00 }; 466 467 if ((atrsize == sizeof (atr_bskyb)) && (memcmp (atr, atr_bskyb, atrsize) == 0)) 468 { 469 cs_log("Type: Videoguard BSkyB"); 470 /* BSkyB seems to need one additionnal byte in the serial communication... */ 471 io_serial_need_dummy_char = 1; 472 } 473 else if ((atrsize == sizeof (atr_skyitalia)) && (memcmp (atr, atr_skyitalia, atrsize) == 0)) 474 { 475 cs_log("Type: Videoguard Sky Italia"); 476 } 477 else if ((atrsize == sizeof (atr_directv)) && (memcmp (atr, atr_directv, atrsize) == 0)) 478 { 479 cs_log("Type: Videoguard DirecTV"); 480 } 481 else 482 { 473 483 /* not a known videoguard */ 474 484 return (0);
Note:
See TracChangeset
for help on using the changeset viewer.