mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
media: rockchip: vicap change stream suspend/resume early
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com> Change-Id: I80eb4105d640b334126c74c48ad4edaf4cb40fb1
This commit is contained in:
@@ -2240,7 +2240,7 @@ static int rkcif_plat_remove(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __maybe_unused rkcif_runtime_prepare(struct device *dev)
|
||||
static int __maybe_unused rkcif_sleep_suspend(struct device *dev)
|
||||
{
|
||||
struct rkcif_device *cif_dev = dev_get_drvdata(dev);
|
||||
|
||||
@@ -2248,11 +2248,12 @@ static int __maybe_unused rkcif_runtime_prepare(struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void __maybe_unused rkcif_runtime_complete(struct device *dev)
|
||||
static int __maybe_unused rkcif_sleep_resume(struct device *dev)
|
||||
{
|
||||
struct rkcif_device *cif_dev = dev_get_drvdata(dev);
|
||||
|
||||
rkcif_stream_resume(cif_dev, RKCIF_RESUME_CIF);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __maybe_unused rkcif_runtime_suspend(struct device *dev)
|
||||
@@ -2325,8 +2326,7 @@ late_initcall(rkcif_clr_unready_dev);
|
||||
#endif
|
||||
|
||||
static const struct dev_pm_ops rkcif_plat_pm_ops = {
|
||||
.prepare = rkcif_runtime_prepare,
|
||||
.complete = rkcif_runtime_complete,
|
||||
SET_SYSTEM_SLEEP_PM_OPS(rkcif_sleep_suspend, rkcif_sleep_resume)
|
||||
SET_RUNTIME_PM_OPS(rkcif_runtime_suspend, rkcif_runtime_resume, NULL)
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user