]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - tas256xsw-android/tas2563-android-driver.git/commitdiff
fixed the null point issue
authorShenghao Ding <shenghao-ding@ti.com>
Mon, 29 Mar 2021 10:28:59 +0000 (05:28 -0500)
committerShenghao Ding <shenghao-ding@ti.com>
Mon, 29 Mar 2021 10:28:59 +0000 (05:28 -0500)
tas2563-codec.c

index 3b97b1d47e743420486bcb1d69df6caaf42fdfb6..cb2ac69273a08f7c65646d580f0ab904e3698aa9 100644 (file)
@@ -1602,6 +1602,7 @@ static int tas2563_load_coefficient(struct tas2563_priv *pTAS2563,
                nResult = tas2563_set_power_state(pTAS2563, TAS2563_POWER_ACTIVE);
                if (nResult < 0)
                        goto end;
+               pProgram = &(pTAS2563->mpFirmware->mpPrograms[pTAS2563->mnCurrentProgram]);
                if (pProgram->mnAppMode == TAS2563_APP_TUNINGMODE) {
                        pTAS2563->enableIRQ(pTAS2563, true);
                        if (!hrtimer_active(&pTAS2563->mtimerwork)) {
@@ -2483,4 +2484,4 @@ int tas2563_deregister_codec(struct tas2563_priv *pTAS2563)
 MODULE_AUTHOR("Texas Instruments Inc.");
 MODULE_DESCRIPTION("TAS2563 ALSA SOC Smart Amplifier driver");
 MODULE_LICENSE("GPL v2");
-#endif /* CONFIG_TAS2563_CODEC */
+#endif /* CONFIG_TAS2563_CODEC */
\ No newline at end of file