media: mgb4: Fix inconsistent input/output alignment in loopback mode

Fixes broken output due to different input/output alignment in loopback
mode when the (last) input device is closed. Instead of on device close,
do the alignment synchronisation when starting the stream (and clear
it when streaming is stopped).

Signed-off-by: Martin Tůma <martin.tuma@digiteqautomotive.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
Martin Tůma 2024-11-01 15:59:11 +01:00 • committed by Hans Verkuil
commit 54a7ca1bf3