Changeset 1028

Show
Ignore:
Timestamp:
04/25/08 08:07:43 (12 years ago)
Author:
ppalmers
Message:

fix no-data packets for bebob's

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/config.h.in

    r1021 r1028  
    151151 
    152152// Allow that devices request that the AMDTP transmit SP adds 
    153 // payload to the NO-DATA packets. Normally this should not be 
    154 // necessary, and it even breaks some devices (DICE-II based). 
    155 #define AMDTP_ALLOW_PAYLOAD_IN_NODATA_XMIT                  0 
     153// payload to the NO-DATA packets. 
     154#define AMDTP_ALLOW_PAYLOAD_IN_NODATA_XMIT                  1 
    156155 
    157156// Default setting for the payload setting if 
    158157// AMDTP_ALLOW_PAYLOAD_IN_NODATA_XMIT is enabled. Devices can 
    159158// explicity override this 
    160 #define AMDTP_SEND_PAYLOAD_IN_NODATA_XMIT_BY_DEFAULT    fals
     159#define AMDTP_SEND_PAYLOAD_IN_NODATA_XMIT_BY_DEFAULT    tru
    161160 
    162161// -- MOTU options -- // 
  • trunk/libffado/src/genericavc/avc_avdevice.cpp

    r967 r1028  
    521521    } 
    522522 
     523#if AMDTP_ALLOW_PAYLOAD_IN_NODATA_XMIT 
     524    // FIXME: it seems that some BeBoB devices can't handle NO-DATA without payload 
     525    p->sendPayloadForNoDataPackets(true); 
     526#endif 
     527 
    523528    // we put this SP into the transmit SP vector, 
    524529    // no matter if we are in snoop mode or not