]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - tas256xsw-android/tas2562-stereo-android-driver.git/commitdiff
Fix power control read issue.
authorwangws <wangws0709@thundersoft.com>
Fri, 23 Aug 2019 09:13:12 +0000 (17:13 +0800)
committerwangws <wangws0709@thundersoft.com>
Fri, 23 Aug 2019 09:13:12 +0000 (17:13 +0800)
tas2562-regmap.c

index 0b2482d64df7a2548c732ac6af3c71466960d586..b081c514747b90cc7026d366e68f0f7f3d88d472 100644 (file)
@@ -659,7 +659,7 @@ static void irq_work_routine(struct work_struct *work)
                                TAS2562_POWERCONTROL, &nDevInt1Status);
                if (n_result < 0)
                        goto reload;
-               if (chn && channel_right)
+               if (chn & channel_right)
                        n_result = p_tas2562->read(p_tas2562, channel_right,
                        TAS2562_POWERCONTROL, &nDevInt3Status);
                if (n_result < 0)