mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
media: ipu6: Always close firmware stream
Close the firmware stream even when disabling a stream on an upstream sub-device fails. This allows the firmware to release resources related to a stream that is stopped in any case. Suggested-by: Bingbu Cao <bingbu.cao@linux.intel.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Bingbu Cao <bingbu.cao@intel.com> Tested-by: Mehdi Djait <mehdi.djait@linux.intel.com> # Dell XPS 9315 Reviewed-by: Mehdi Djait <mehdi.djait@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
5925a92cc7
commit
2b08b7007e
|
|
@ -1036,11 +1036,10 @@ int ipu6_isys_video_set_streaming(struct ipu6_isys_video *av, int state,
|
|||
sd->name, r_pad->index, stream_mask);
|
||||
ret = v4l2_subdev_disable_streams(sd, r_pad->index,
|
||||
stream_mask);
|
||||
if (ret) {
|
||||
if (ret)
|
||||
dev_err(dev, "stream off %s failed with %d\n", sd->name,
|
||||
ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
close_streaming_firmware(av);
|
||||
} else {
|
||||
ret = start_stream_firmware(av, bl);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user