Explorar o código

fixed boot logo/animation delay invalid issue

lixh %!s(int64=3) %!d(string=hai) anos
pai
achega
c31c11f99e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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;
 	}