Ticket #3727: 3727-v2.patch

File 3727-v2.patch, 3.0 KB (added by danielk, 16 years ago)

Updated patch

  • contrib/channel_changers/sa3250ch.c

     
    3232
    3333/* SA3250HD IDs */
    3434/* WARNING: Please update firewiredevice.cpp when adding to this list. */
    35 #define SA3250HD_VENDOR_ID1     0x000011e6
    36 #define SA3250HD_VENDOR_ID2     0x000014f8
    37 #define SA3250HD_VENDOR_ID3     0x00001692
    38 #define SA3250HD_VENDOR_ID4     0x00001947
    39 #define SA3250HD_VENDOR_ID5     0x00000f21
     35#define SA_VENDOR_ID1           0x000011e6
     36#define SA_VENDOR_ID2           0x000014f8
     37#define SA_VENDOR_ID3           0x00001692
     38#define SA_VENDOR_ID4           0x00001947
     39#define SA_VENDOR_ID5           0x00000f21
    4040#define SA3250HD_MODEL_ID1      0x00000be0
    41 #define SA4200HD_VENDOR_ID1     0x000014f8
    42 #define SA4200HD_VENDOR_ID2     0x00001692
    4341#define SA4200HD_MODEL_ID1      0x00001072
     42#define SA4250HDC_MODEL_ID1     0x000010cc
    4443
    4544#define AVC1394_SA3250_COMMAND_CHANNEL 0x000007c00   /* subunit command */
    4645#define AVC1394_SA3250_OPERAND_KEY_PRESS 0xe7
     
    129128                 i, dir.vendor_id, dir.model_id);
    130129               
    131130      /* WARNING: Please update firewiredevice.cpp when adding to this list. */
    132       if ((((dir.vendor_id == SA4200HD_VENDOR_ID1) ||
    133             (dir.vendor_id == SA4200HD_VENDOR_ID2)) &&
    134             (dir.model_id == SA4200HD_MODEL_ID1))  ||
    135           (((dir.vendor_id == SA3250HD_VENDOR_ID1) ||
    136             (dir.vendor_id == SA3250HD_VENDOR_ID2) ||
    137             (dir.vendor_id == SA3250HD_VENDOR_ID3) ||
    138             (dir.vendor_id == SA3250HD_VENDOR_ID4) ||
    139             (dir.vendor_id == SA3250HD_VENDOR_ID5)) &&
    140             (dir.model_id == SA3250HD_MODEL_ID1)))
     131      if (((dir.vendor_id == SA_VENDOR_ID1) ||
     132           (dir.vendor_id == SA_VENDOR_ID2) ||
     133           (dir.vendor_id == SA_VENDOR_ID3) ||
     134           (dir.vendor_id == SA_VENDOR_ID4) ||
     135           (dir.vendor_id == SA_VENDOR_ID5)) &&
     136          ((dir.model_id == SA3250HD_MODEL_ID1)  ||
     137           (dir.model_id == SA4200HD_MODEL_ID1)  ||
     138           (dir.model_id == SA4250HDC_MODEL_ID1)))
    141139      {
    142140            device = i;
    143141            break;
  • libs/libmythtv/firewiredevice.cpp

     
    386386    id_to_model[0x1947ULL << 32 | 0x1072] = "SA4200HD";
    387387    id_to_model[0x0f21ULL << 32 | 0x1072] = "SA4200HD";
    388388
     389    id_to_model[0x11e6ULL << 32 | 0x10cc] = "SA4200HD"; // "SA4250HDC";
     390    id_to_model[0x14f8ULL << 32 | 0x10cc] = "SA4200HD"; // "SA4250HDC";
     391    id_to_model[0x1692ULL << 32 | 0x10cc] = "SA4200HD"; // "SA4250HDC";
     392    id_to_model[0x1947ULL << 32 | 0x10cc] = "SA4200HD"; // "SA4250HDC";
     393    id_to_model[0x0f21ULL << 32 | 0x10cc] = "SA4200HD"; // "SA4250HDC";
     394
    389395    const uint64_t motorola_vendor_ids[] =
    390396    {   /* 6200 */
    391397        0x0ce5,    0x0e5c,    0x1225,    0x0f9f,    0x1180,