From ebb1cbd983e6251a7d4869538c75916a996ef3d9 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Thu, 22 Mar 2018 17:39:45 +0900 Subject: [PATCH] output: set output connection status if needed Change-Id: I8352ba1d63193ecf97ab64d568e8673451f9f766 --- src/tdm_output.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/tdm_output.c b/src/tdm_output.c index bb2710c..0669b08 100644 --- a/src/tdm_output.c +++ b/src/tdm_output.c @@ -1160,6 +1160,16 @@ tdm_output_commit_internal(tdm_output *output, int sync, tdm_output_commit_handl output_commit_handler); TDM_GOTO_IF_FAIL(ret == TDM_ERROR_NONE, commit_failed); + if (ret == TDM_ERROR_NONE) { + if (private_output->current_mode && + private_output->caps.status != TDM_OUTPUT_CONN_STATUS_MODE_SETTED) { + TDM_WRN("backend doesn't change the output connection status"); + tdm_output_cb_status(private_output->output_backend, + TDM_OUTPUT_CONN_STATUS_MODE_SETTED, + private_output); + } + } + if (tdm_debug_module & TDM_DEBUG_COMMIT) TDM_INFO("output(%d) backend commit: handle(%p) func(%p) user_data(%p)", private_output->pipe, output_commit_handler, func, user_data); -- 2.7.4