author | Nanxin Qin <nanxin.qin@amlogic.com> | 2020-04-08 06:42:19 (GMT) |
---|---|---|
committer | Hui Zhang <hui.zhang@amlogic.com> | 2020-04-08 08:00:39 (GMT) |
commit | ca629df20ce12c96104d255fd437f194e7c57892 (patch) | |
tree | f818032a7df8636425fca8aa0ed39d796a66876f | |
parent | d20f4d9ecd73d359f0c4d4bf1f94fcaae54b842d (diff) | |
download | media_modules-ca629df20ce12c96104d255fd437f194e7c57892.zip media_modules-ca629df20ce12c96104d255fd437f194e7c57892.tar.gz media_modules-ca629df20ce12c96104d255fd437f194e7c57892.tar.bz2 |
fw: fixed issue of loading faild on aosp. [1/1]
PD#SWPL-23530
Problem:
fixed issue of loading faild on aosp.
Solution:
the dup feature default size is 0, we must be reset the
value after parser the fw data.
Verify:
ab311
Change-Id: If7b36ca3b91ec81499da4f49ff5cff6385524035
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
-rw-r--r-- | drivers/common/firmware/firmware_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/common/firmware/firmware_drv.c b/drivers/common/firmware/firmware_drv.c index fe09724..85e904e 100644 --- a/drivers/common/firmware/firmware_drv.c +++ b/drivers/common/firmware/firmware_drv.c @@ -548,6 +548,7 @@ static int fw_replace_dup_data(char *buf) goto out; } + info->data->head.data_size = len; memcpy(data, pinfo->data, len); memcpy(data, info->data, sizeof(*data)); |