Ticket #1671: internalfw4200.patch

File internalfw4200.patch, 2.1 KB (added by chris@…, 18 years ago)

Patch to add support for SA4200HD into internal firewire ch. changer

  • firewirechannel.cpp

     
    22 *  FirewireChannel
    33 *  Copyright (c) 2005 by Jim Westfall
    44 *  SA3250HD support Copyright (c) 2005 by Matt Porter
     5 *  SA4200HD/Alternate 3250 support Copyright (c) 2006 by Chris Ingrassia
    56 *  Distributed as part of MythTV under GPL v2 and later.
    67 */
    78
     
    3940static bool is_supported(const QString &model)
    4041{
    4142    return ((model == "DCT-6200") ||
    42             (model == "SA3250HD"));
     43            (model == "SA3250HD") ||
     44            (model == "SA4200HD"));
    4345}
    4446
    4547FirewireChannel::FirewireChannel(FireWireDBOptions firewire_opts,
     
    121123
    122124        avc1394_transaction_block(fwhandle, fw_opts.node, cmd, 3, 1);
    123125    }
     126    else if(fw_opts.model == "SA4200HD") {
     127        quadlet_t cmd[3] =
     128        {
     129            SA3250_CMD0 | AVC1394_SA3250_OPERAND_KEY_PRESS,
     130            SA3250_CMD1 | (channel << 8),
     131            SA3250_CMD2,
     132        };
     133        VERBOSE(VB_CHANNEL, LOC +
     134                QString("SA4200Channel: %1 cmds: 0x%2 0x%3 0%4")
     135                .arg(channel).arg(cmd[0], 0, 16)
     136                .arg(cmd[1], 0, 16)
     137                .arg(cmd[2], 0, 16));
     138        avc1394_transaction_block(fwhandle, fw_opts.node, cmd, 3, 1);
     139    }
    124140
    125141    return true;
    126142}
  • videosource.cpp

     
    845845        addSelection(QObject::tr("Other"));
    846846        addSelection("DCT-6200");
    847847        addSelection("SA3250HD");
    848         setHelpText(QObject::tr("Firewire Model is for future use in case "
    849                                 "there is a need to model specific "
    850                                 "workarounds."));
     848        addSelection("SA4200HD");
     849        setHelpText(QObject::tr("Choose the model that most closely resembles your set top box.  If you have a Scientific Atlanta 3250HD and channel changing does not work correctly, try the SA4200HD option"));
    851850    }
    852851};
    853852