Selaa lähdekoodia

fixed boot logo/animation delay invalid issue

lixh 3 vuotta sitten
vanhempi
commit
c31c11f99e
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      linux/drivers/soc/arkmicro/hx170dec/hx170dec.c

+ 2 - 1
linux/drivers/soc/arkmicro/hx170dec/hx170dec.c

@@ -211,7 +211,8 @@ static void animation_dec_work(struct work_struct *work)
 	if (timeout_count > 50) {
 		printk(KERN_ALERT "%s Error! Dec timeout.\n", __FUNCTION__);
 		context->animation_end = true;
-	} else if (context->animation_file_phyaddr + size >= context->animation_data_phyaddr + context->animation_data_size) {
+	} else if (context->animation_file_phyaddr + size >= context->animation_data_phyaddr + context->animation_data_size
+		&& frame < header->aniCount + header->hasBootlogo ? 1 : 0) {
 		printk(KERN_ALERT "%s Error! Animation data is beyond the mark.\n", __FUNCTION__);
 		context->animation_end = true;
 	}