print out PGID and libversion
authorPeter Li <peter-li@ti.com>
Thu, 23 Feb 2017 00:20:08 +0000 (08:20 +0800)
committerPeter Li <peter-li@ti.com>
Thu, 23 Feb 2017 00:20:08 +0000 (08:20 +0800)
tas2557dm_ftc.c

index 61eb47ab555b994abb91a9da4ddf528609a922c1..2bd848796d47f190bb565bef1e8d160be92e4976 100755 (executable)
@@ -54,6 +54,7 @@ uint32_t tas2557_ftc(double t_cal, TFTCConfiguration *pFTCC)
     uint32_t dev_b_prm_pow = 0;           // Total RMS power coefficient\r
     uint32_t dev_b_prm_tlimit = 0;        // Delta temperature limit coefficient       \r
        uint8_t nPGID;\r
+       uint32_t libVersion;\r
     uint32_t result = 0;\r
     pid_t nPlaybackProcess;\r
 \r
@@ -63,6 +64,8 @@ uint32_t tas2557_ftc(double t_cal, TFTCConfiguration *pFTCC)
        nPGID = tas2557_get_PGID();\r
        /* set device PGID to FTC process */\r
        tas2557_ftc_set_PGID(nPGID);\r
+       libVersion = get_lib_ver();\r
+       printf("PGID=0x%x, libVersion=0x%x\r\n", nPGID, libVersion);\r
 \r
     // STEP 1: Load TAS2555 calibration configuration\r
     tas2557_load_configuration(gpFTCC->nConfigurationCalibration);\r