Skip to content

Commit

Permalink
fix kernel exceptions when turn on/off streaming on JP 5.1.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
mengyui committed Jul 24, 2024
1 parent a5e8ae8 commit c8a3862
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
+ }
+
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c8a3862

Please sign in to comment.