From c8a386219c2daafcc9da6436ce8b465e0e4b94fd Mon Sep 17 00:00:00 2001 From: Yu Meng Date: Wed, 24 Jul 2024 14:04:09 +0800 Subject: [PATCH] fix kernel exceptions when turn on/off streaming on JP 5.1.2. --- .../5.1.2/0001-Porting-driver-patches-to-jetpack-5.1.2.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/nvidia/5.1.2/0001-Porting-driver-patches-to-jetpack-5.1.2.patch b/kernel/nvidia/5.1.2/0001-Porting-driver-patches-to-jetpack-5.1.2.patch index 2a21571..f25537e 100644 --- a/kernel/nvidia/5.1.2/0001-Porting-driver-patches-to-jetpack-5.1.2.patch +++ b/kernel/nvidia/5.1.2/0001-Porting-driver-patches-to-jetpack-5.1.2.patch @@ -1205,7 +1205,7 @@ index b54833d3f..042a80e51 100644 + dev_err(&chan->video->dev, "vi capture release failed\n"); + goto done; + } -+ vi_channel_close_ex(chan->id, chan->tegra_vi_channel[vi_port]); ++ vi_channel_close_ex(chan->vi_channel_id[vi_port], chan->tegra_vi_channel[vi_port]); + chan->tegra_vi_channel[vi_port] = NULL; + } + @@ -1243,7 +1243,7 @@ index b54833d3f..042a80e51 100644 + + /* restart vi channel */ + for(vi_port = 0; vi_port < chan->valid_ports; vi_port++) { -+ chan->tegra_vi_channel[vi_port] = vi_channel_open_ex(chan->id + vi_port, false); ++ chan->tegra_vi_channel[vi_port] = vi_channel_open_ex(chan->vi_channel_id[vi_port], false); + if (IS_ERR(chan->tegra_vi_channel[vi_port])) { + err = PTR_ERR(chan); + goto done;