set PGID before FTC starts
authorPeter Li <peter-li@ti.com>
Thu, 23 Feb 2017 00:16:00 +0000 (08:16 +0800)
committerPeter Li <peter-li@ti.com>
Thu, 23 Feb 2017 00:16:00 +0000 (08:16 +0800)
tas2557dm_ftc.c

index f3f6e72994bb348a14841b6d0280531875d1025b..61eb47ab555b994abb91a9da4ddf528609a922c1 100755 (executable)
@@ -59,16 +59,17 @@ uint32_t tas2557_ftc(double t_cal, TFTCConfiguration *pFTCC)
 \r
     gpFTCC = pFTCC;\r
 \r
+       /* get device PGID */\r
+       nPGID = tas2557_get_PGID();\r
+       /* set device PGID to FTC process */\r
+       tas2557_ftc_set_PGID(nPGID);\r
+\r
     // STEP 1: Load TAS2555 calibration configuration\r
     tas2557_load_configuration(gpFTCC->nConfigurationCalibration);\r
 \r
     // STEP 2: Play calibration signal\r
        tas2557_mixer_command("PRI_MI2S_RX Audio Mixer MultiMedia1", 1); //platform dependent\r
     nPlaybackProcess = sys_play_wav("silense.wav", "loop");\r
-       /* get device PGID */\r
-       nPGID = tas2557_get_PGID();\r
-       /* set device PGID to FTC process */\r
-       tas2557_ftc_set_PGID(nPGID);\r
 \r
        // STEP 3: Play calibration signal\r
        tas2557_switch_device(gpFTCC->nTSpkCharDevA.nDevAddr);\r