I guess the real problem is the subdev s_stream cannot be called multiple
times, please correct me if I am wrong as I have not touch IPU3 for long
time. :)
You can ignore my previous comment - 's_stream' is fine here.
Just a nit, stop_stream and s_stream only happen after imgu_s_stream(), so I
think they can be together and no need 'stop_streaming'. I think the mutex
is mainly for imgu_s_stream, subdev stream on/off should work without it.
It depends on you. :)
It'll be better that others who is still working on IPU3 devices can review.
Besides,
Reviewed-by: Bingbu Cao <bingbu.cao@xxxxxxxxx>