client: add tdm_client_output_get_mode function