]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
v4l: xilinx-multi-scaler: Check any channel is still running in streamoff
authorSuresh Gupta <suresh.gupta@xilinx.com>
Fri, 5 Oct 2018 14:13:06 +0000 (19:43 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 7 Nov 2018 10:05:43 +0000 (11:05 +0100)
commit6941cc467892c56ec267ef1639b8d07bc6b20545
tree51278c582e41dd95feab973f06b6ecebec9ec73f
parent5b0f397d975f6588e2552a7d5ed0549a2d50796f
v4l: xilinx-multi-scaler: Check any channel is still running in streamoff

If an application queued buffer while the device is busy in processing
of previous buffer, the application will not call device_run () again.
And at this point if some application running higher channel stops stream,
the device_run () return as there is no buffere for stopping channel.
In this situation the first channel does not get chance to call
device_run() again and will wait for infinite time.

This patch checks if there is/are any continues channels are still running
and if running, start the process again.

Signed-off-by: Suresh Gupta <suresh.gupta@xilinx.com>
Reviewed-by: Satish Kumar Nagireddy <satish.nagireddy.nagireddy@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/media/platform/xilinx/xilinx-multi-scaler.c