vi5:fix channel status inconsistency

set chan->is_streaming status to vi5_channel_stop_streaming to prevent
an error when restarting streaming next time after a failure.

Bug 5318702

Change-Id: I129811f932e8fb99c60d82f4cb1846adb87e1b34
Signed-off-by: yunzhao <yunzhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3500460
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Jackie Chen <jackchen@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Anubhav Rai <arai@nvidia.com>
This commit is contained in:
yunzhao
2025-11-27 14:46:28 +08:00
committed by mobile promotions
parent e4ded64e88
commit 9dc6ab65c2

View File

@@ -1019,6 +1019,7 @@ static void tegra_channel_stop_streaming(struct vb2_queue *vq)
if (vi->fops) { if (vi->fops) {
vi->fops->vi_stop_streaming(vq); vi->fops->vi_stop_streaming(vq);
atomic_set(&chan->is_streaming, DISABLE);
vi->fops->vi_power_off(chan); vi->fops->vi_power_off(chan);
} }