mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-23 17:47:28 +08:00

These patches were generated from: https://github.com/raspberrypi/linux/commits/rpi-6.12.y With the following command: git format-patch -N v6.12.27..HEAD (HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e) Exceptions: - (def)configs patches - github workflows patches - applied & reverted patches - readme patches - wireless patches Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
40 lines
1.4 KiB
Diff
40 lines
1.4 KiB
Diff
From 382fc9a2fefd0d7093c9b35aad27d7a8de83c1fc Mon Sep 17 00:00:00 2001
|
|
From: Dom Cobley <popcornmix@gmail.com>
|
|
Date: Mon, 24 Oct 2022 13:57:23 +0100
|
|
Subject: [PATCH] media: bcm2835-unicam: Fix up start/stop api change
|
|
|
|
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
|
---
|
|
drivers/media/platform/bcm2835/bcm2835-unicam.c | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
--- a/drivers/media/platform/bcm2835/bcm2835-unicam.c
|
|
+++ b/drivers/media/platform/bcm2835/bcm2835-unicam.c
|
|
@@ -2513,7 +2513,7 @@ static int unicam_start_streaming(struct
|
|
goto err_streaming;
|
|
}
|
|
|
|
- ret = media_pipeline_start(&node->video_dev.entity, &node->pipe);
|
|
+ ret = media_pipeline_start(node->video_dev.entity.pads, &node->pipe);
|
|
if (ret < 0) {
|
|
unicam_err(dev, "Failed to start media pipeline: %d\n", ret);
|
|
goto err_pm_put;
|
|
@@ -2607,7 +2607,7 @@ err_vpu_clock:
|
|
unicam_err(dev, "failed to reset the VPU clock\n");
|
|
clk_disable_unprepare(dev->vpu_clock);
|
|
error_pipeline:
|
|
- media_pipeline_stop(&node->video_dev.entity);
|
|
+ media_pipeline_stop(node->video_dev.entity.pads);
|
|
err_pm_put:
|
|
unicam_runtime_put(dev);
|
|
err_streaming:
|
|
@@ -2635,7 +2635,7 @@ static void unicam_stop_streaming(struct
|
|
|
|
unicam_disable(dev);
|
|
|
|
- media_pipeline_stop(&node->video_dev.entity);
|
|
+ media_pipeline_stop(node->video_dev.entity.pads);
|
|
|
|
if (dev->clocks_enabled) {
|
|
if (clk_set_min_rate(dev->vpu_clock, 0))
|