On 02/22/2018 07:15 PM, Raman Shyshniou wrote: > Currently the pipe-source will remain running even if no > writer is connected and therefore no data is produced. > This patch prevets this by auto-suspending source > when all writers are disconnected. This a draft. I applied Tanu's patch to next branch [PATCH 6/8] pass pa_suspend_cause_t to SINK/SOURCE_SET_STATE handlers to make it possible to track a suspend cause. So tracking part should be rewritten when Tanu push his new patch with set_state_in_io_thread() callbacks. Also I temporary dropped autosuspend option and frame size keeping code to make my code simple. I'll add them later. -- Raman