Reload FW after i2c recover master
authorTracy Yi <tracy-yi@ti.com>
Fri, 9 Nov 2018 09:30:05 +0000 (17:30 +0800)
committerTracy Yi <tracy-yi@ti.com>
Fri, 9 Nov 2018 09:30:05 +0000 (17:30 +0800)
Signed-off-by: Tracy Yi <tracy-yi@ti.com>
tas2557-core.c

index 5b2e9db8bc36545ab761a4c8c4235670d1b86e07..de9897dab44731f9280db24a11cd81179a0d709a 100755 (executable)
@@ -323,6 +323,8 @@ static void failsafe(struct tas2557_priv *pTAS2557)
                dev_dbg(pTAS2557->dev, "failed in spk ctrl\n");
        if (pTAS2557->mpFirmware != NULL)
                tas2557_clear_firmware(pTAS2557->mpFirmware);
+
+       pTAS2557->mpFirmware->mnPrograms = 0;
 }
 
 int tas2557_checkPLL(struct tas2557_priv *pTAS2557)