From bfc8f4c32b451e0f4a49e8fc7ff9ad4aa40b622b Mon Sep 17 00:00:00 2001 From: Hui Zhang Date: Fri, 15 Jun 2018 14:39:58 +0800 Subject: [PATCH] decoder: fix hevc suspend/resume bug PD#168278: previously use wrong(amvdec_xxx()) suspend/resume call. it will cause system crash after resume. Now, fix it Change-Id: I91fac08d138e5fcef38db91c7d44a029d76dd596 Signed-off-by: Hui Zhang --- .../amlogic/media_modules/frame_provider/decoder/h265/vh265.c | 4 ++-- .../amlogic/media_modules/frame_provider/decoder/vp9/vvp9.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/amlogic/media_modules/frame_provider/decoder/h265/vh265.c b/drivers/amlogic/media_modules/frame_provider/decoder/h265/vh265.c index 12c4add45961..efb908d42697 100644 --- a/drivers/amlogic/media_modules/frame_provider/decoder/h265/vh265.c +++ b/drivers/amlogic/media_modules/frame_provider/decoder/h265/vh265.c @@ -10510,8 +10510,8 @@ static struct platform_driver ammvdec_h265_driver = { .probe = ammvdec_h265_probe, .remove = ammvdec_h265_remove, #ifdef CONFIG_PM - .suspend = amvdec_suspend, - .resume = amvdec_resume, + .suspend = amhevc_suspend, + .resume = amhevc_resume, #endif .driver = { .name = MULTI_DRIVER_NAME, diff --git a/drivers/amlogic/media_modules/frame_provider/decoder/vp9/vvp9.c b/drivers/amlogic/media_modules/frame_provider/decoder/vp9/vvp9.c index fed0e5f317f1..df2880dffd39 100644 --- a/drivers/amlogic/media_modules/frame_provider/decoder/vp9/vvp9.c +++ b/drivers/amlogic/media_modules/frame_provider/decoder/vp9/vvp9.c @@ -9464,8 +9464,8 @@ static struct platform_driver ammvdec_vp9_driver = { .probe = ammvdec_vp9_probe, .remove = ammvdec_vp9_remove, #ifdef CONFIG_PM - .suspend = amvdec_suspend, - .resume = amvdec_resume, + .suspend = amhevc_suspend, + .resume = amhevc_resume, #endif .driver = { .name = MULTI_DRIVER_NAME,