source: branches/backfire/package/ltq-tapidemo/patches/110-filename.patch @ 27547

Last change on this file since 27547 was 27547, checked in by blogic, 5 years ago

adds lantiq packages/drivers

File size: 4.3 KB
  • configure.in

    a b AC_ARG_WITH(cflags, 
    16651665    ] 
    16661666) 
    16671667 
     1668dnl overwrite default FW file name 
     1669AC_ARG_WITH(fw-file, 
     1670    AS_HELP_STRING( 
     1671        [--with-fw-file=val], 
     1672        [overwrite default FW file name] 
     1673    ), 
     1674    [ 
     1675        AC_MSG_RESULT([using firmware file $withval]) 
     1676        AC_DEFINE_UNQUOTED([TD_FW_FILE], ["$withval"], [using firmware file]) 
     1677    ] 
     1678) 
     1679 
     1680dnl overwrite default BBD file name 
     1681AC_ARG_WITH(bbd-file, 
     1682    AS_HELP_STRING( 
     1683        [--with-bbd-file=val], 
     1684        [overwrite default BBD file name] 
     1685    ), 
     1686    [ 
     1687        AC_MSG_RESULT([using BBD file $withval]) 
     1688        AC_DEFINE_UNQUOTED([TD_BBD_FILE], ["$withval"], [using BBD file]) 
     1689    ] 
     1690) 
     1691 
    16681692AC_CONFIG_FILES([Makefile]) 
    16691693AC_CONFIG_FILES([src/Makefile]) 
    16701694 
  • src/device_vmmc.c

    a b  
    4949 
    5050 
    5151#ifdef USE_FILESYSTEM 
     52#ifdef TD_BBD_FILE 
     53   IFX_char_t* sBBD_CRAM_File_VMMC = TD_BBD_FILE; 
     54   IFX_char_t* sBBD_CRAM_File_VMMC_Old = TD_BBD_FILE; 
     55#else 
     56   /** File holding coefficients. */ 
     57#ifdef DANUBE 
     58   /** Prepare file names for DANUBE */ 
     59   IFX_char_t* sBBD_CRAM_File_VMMC = "danube_bbd.bin"; 
     60   IFX_char_t* sBBD_CRAM_File_VMMC_Old = "danube_bbd_fxs.bin"; 
     61#elif AR9 
     62   IFX_char_t* sBBD_CRAM_File_VMMC = "ar9_bbd.bin"; 
     63   IFX_char_t* sBBD_CRAM_File_VMMC_Old = "ar9_bbd_fxs.bin"; 
     64#elif VINAX 
     65   IFX_char_t* sBBD_CRAM_File_VMMC = "bbd.bin"; 
     66   IFX_char_t* sBBD_CRAM_File_VMMC_Old = ""; 
     67#elif VR9 
     68   IFX_char_t* sBBD_CRAM_File_VMMC = "vr9_bbd.bin"; 
     69   IFX_char_t* sBBD_CRAM_File_VMMC_Old = "vr9_bbd_fxs.bin"; 
     70#else 
     71#endif 
     72#endif /* TD_BBD_FILE */ 
     73#ifdef TD_FW_FILE 
     74   IFX_char_t* sPRAMFile_VMMC = TD_FW_FILE; 
     75   IFX_char_t* sPRAMFile_VMMC_Old = TD_FW_FILE; 
     76   IFX_char_t* sDRAMFile_VMMC = ""; 
     77#else 
    5278#ifdef DANUBE 
    5379   /** Prepare file names for DANUBE */ 
    5480   IFX_char_t* sPRAMFile_VMMC = "voice_danube_firmware.bin"; 
    5581   IFX_char_t* sPRAMFile_VMMC_Old = "danube_firmware.bin"; 
    5682   IFX_char_t* sDRAMFile_VMMC = ""; 
    57    /** File holding coefficients. */ 
    58    IFX_char_t* sBBD_CRAM_File_VMMC = "danube_bbd.bin"; 
    59    IFX_char_t* sBBD_CRAM_File_VMMC_Old = "danube_bbd_fxs.bin"; 
    6083#elif AR9 
    6184   /** Prepare file names for AR9 */ 
    6285   IFX_char_t* sPRAMFile_VMMC = "voice_ar9_firmware.bin"; 
    6386   IFX_char_t* sPRAMFile_VMMC_Old = "ar9_firmware.bin"; 
    6487   IFX_char_t* sDRAMFile_VMMC = ""; 
    65    /** File holding coefficients. */ 
    66    IFX_char_t* sBBD_CRAM_File_VMMC = "ar9_bbd.bin"; 
    67    IFX_char_t* sBBD_CRAM_File_VMMC_Old = "ar9_bbd_fxs.bin"; 
    6888#elif VINAX 
    6989   /** Prepare file names for VINAX */ 
    7090   IFX_char_t* sPRAMFile_VMMC = "voice_vinax_firmware.bin"; 
    7191   IFX_char_t* sPRAMFile_VMMC_Old = "firmware.bin"; 
    7292   IFX_char_t* sDRAMFile_VMMC = ""; 
    73    /** File holding coefficients. */ 
    74    IFX_char_t* sBBD_CRAM_File_VMMC = "bbd.bin"; 
    75    IFX_char_t* sBBD_CRAM_File_VMMC_Old = ""; 
    7693#elif VR9 
    7794   /** Prepare file names for VR9 */ 
    7895   IFX_char_t* sPRAMFile_VMMC = "voice_vr9_firmware.bin"; 
    7996   IFX_char_t* sPRAMFile_VMMC_Old = "vr9_firmware.bin"; 
    8097   IFX_char_t* sDRAMFile_VMMC = ""; 
    81    /** File holding coefficients. */ 
    82    IFX_char_t* sBBD_CRAM_File_VMMC = "vr9_bbd.bin"; 
    83    IFX_char_t* sBBD_CRAM_File_VMMC_Old = "vr9_bbd_fxs.bin"; 
    8498#else 
    8599#endif 
     100#endif /* TD_FW_FILE */ 
    86101#endif /* USE_FILESYSTEM */ 
    87102 
    88103/** Device names */ 
  • src/common.c

    a b IFX_return_t Common_CheckDownloadPath(IF 
    509509   if (IFX_TRUE != Common_FindBBD_CRAM(pCpuDevice, psPath, psFile)) 
    510510   { 
    511511      ret = IFX_ERROR; 
     512      if(bPrintTrace) 
     513         TRACE(TAPIDEMO, DBG_LEVEL_LOW, 
     514               ("Download path %s does not contain the required file %s.\n", 
     515                psPath, psFile)); 
    512516   } 
    513517 
    514518   if ((IFX_SUCCESS == ret) && 
    IFX_return_t Common_CheckDownloadPath(IF 
    521525      { 
    522526         ret = Common_CheckFileExists(psFile); 
    523527      } 
     528      if(bPrintTrace && ret != IFX_SUCCESS) 
     529         TRACE(TAPIDEMO, DBG_LEVEL_LOW, 
     530               ("Download path %s does not contain the required file %s.\n", 
     531                psPath, psFile)); 
    524532   } 
    525533#ifndef TAPI_VERSION4 
    526534   if (IFX_SUCCESS == ret) 
    IFX_return_t Common_CheckDownloadPath(IF 
    532540   } 
    533541#endif 
    534542 
    535    if (IFX_ERROR == ret) 
    536    { 
    537       if(bPrintTrace) 
    538          TRACE(TAPIDEMO, DBG_LEVEL_LOW, 
    539                ("Download path %s does not contain the required files.\n", 
    540                 psPath)); 
    541    } 
    542543 
    543544   return ret; 
    544545} /* Common_CheckDownloadPath */ 
Note: See TracBrowser for help on using the repository browser.