Changeset 1186

Show
Ignore:
Timestamp:
05/18/08 12:47:01 (13 years ago)
Author:
ppalmers
Message:

slow down the reading of the config rom, it seems to confuse older bebob devices

Files:

Legend:

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

    r1154 r1186  
    105105#define IEEE1394SERVICE_CYCLETIMER_HELPER_RUN_REALTIME       1 
    106106#define IEEE1394SERVICE_CYCLETIMER_HELPER_PRIO_INCREASE    -10 
     107 
     108// config rom read wait interval 
     109#define IEEE1394SERVICE_CONFIGROM_READ_WAIT_USECS         1000 
     110 
    107111 
    108112// The current version of libiec61883 doesn't seem to calculate 
  • trunk/libffado/src/libieee1394/configrom.cpp

    r1158 r1186  
    2929#include "vendor_model_ids.h" 
    3030 
     31#include "libutil/SystemTimeSource.h" 
     32 
    3133#include <stdio.h> 
    3234#include <string.h> 
     
    240242                                         ( quadlet_t* )buffer)  ) 
    241243    {// failed, retry 
    242     } 
     244        Util::SystemTimeSource::SleepUsecRelative(IEEE1394SERVICE_CONFIGROM_READ_WAIT_USECS); 
     245    } 
     246    Util::SystemTimeSource::SleepUsecRelative(IEEE1394SERVICE_CONFIGROM_READ_WAIT_USECS); 
    243247 
    244248    if (nb_retries > -1) return 0; // success