diff options
author | Changyeon Lee <cyeon.lee@samsung.com> | 2024-08-20 12:41:02 +0900 |
---|---|---|
committer | Changyeon Lee <cyeon.lee@samsung.com> | 2024-08-20 12:41:10 +0900 |
commit | efc8b5133dd3c41418d6dda8ee932171274035b4 (patch) | |
tree | eabea8a0d761d127db33cbce2a4133a2af9b44d3 | |
parent | d792e92e816dd6a3fac54a8214ea7b4dda4b722f (diff) | |
download | libtdm-drm-efc8b5133dd3c41418d6dda8ee932171274035b4.tar.gz libtdm-drm-efc8b5133dd3c41418d6dda8ee932171274035b4.tar.bz2 libtdm-drm-efc8b5133dd3c41418d6dda8ee932171274035b4.zip |
Fix undefined symbol
Change-Id: Ib6a233a15bd7bddc61761a9d828ec46278e82379
-rw-r--r-- | src/tdm_backend_drm.c | 4 | ||||
-rw-r--r-- | src/tdm_backend_drm.h | 6 | ||||
-rw-r--r-- | src/tdm_drm_display.c | 4 |
3 files changed, 14 insertions, 0 deletions
diff --git a/src/tdm_backend_drm.c b/src/tdm_backend_drm.c index f519631..cb6b4b0 100644 --- a/src/tdm_backend_drm.c +++ b/src/tdm_backend_drm.c @@ -490,11 +490,15 @@ hal_backend_tdm_drm_init(void **data) backend_data->num_event_sources++; backend_data->display_funcs->display_get_capability = drm_display_get_capability; +#ifdef ENABLE_PP backend_data->display_funcs->display_get_pp_capability = drm_display_get_pp_capability; +#endif backend_data->display_funcs->display_get_outputs = drm_display_get_outputs; backend_data->display_funcs->display_get_fd = drm_display_get_fd; backend_data->display_funcs->display_handle_events = drm_display_handle_events; +#ifdef ENABLE_PP backend_data->display_funcs->display_create_pp = drm_display_create_pp; +#endif backend_data->output_funcs->output_get_capability = drm_output_get_capability; backend_data->output_funcs->output_set_property = drm_output_set_property; diff --git a/src/tdm_backend_drm.h b/src/tdm_backend_drm.h index 4cc8fc2..0c1ef10 100644 --- a/src/tdm_backend_drm.h +++ b/src/tdm_backend_drm.h @@ -39,11 +39,15 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. /* display funcs */ hal_tdm_error drm_display_get_capability(hal_tdm_display *display, hal_tdm_caps_display *caps); +#ifdef ENABLE_PP hal_tdm_error drm_display_get_pp_capability(hal_tdm_display *display, hal_tdm_caps_pp *caps); +#endif hal_tdm_output **drm_display_get_outputs(hal_tdm_display *display, int *count, hal_tdm_error *error); hal_tdm_error drm_display_get_fd(hal_tdm_display *display, int *fd); hal_tdm_error drm_display_handle_events(hal_tdm_display *display); +#ifdef ENABLE_PP hal_tdm_pp* drm_display_create_pp(hal_tdm_display *display, hal_tdm_error *error); +#endif /* output funcs */ hal_tdm_error drm_output_get_capability(hal_tdm_output *output, hal_tdm_caps_output *caps); @@ -114,11 +118,13 @@ hal_tdm_error drm_layer_get_info(tdm_drm_layer *layer, tdm_drm_layer_info *inf hal_tdm_error drm_layer_set_buffer(tdm_drm_layer *layer, tbm_surface_h buffer); hal_tdm_error drm_layer_unset_buffer(tdm_drm_layer *layer); +#ifdef ENABLE_PP /* drm pp */ hal_tdm_error tdm_drm_pp_get_capability(tdm_drm_display *display_data, hal_tdm_caps_pp *caps); hal_tdm_pp *tdm_drm_pp_create(tdm_drm_display *display_data, hal_tdm_error *error); void tdm_drm_pp_handler(unsigned int prop_id, unsigned int *buf_idx, unsigned int tv_sec, unsigned int tv_usec, void *data); void tdm_drm_pp_cb(int fd, unsigned int prop_id, unsigned int *buf_idx, unsigned int tv_sec, unsigned int tv_usec, void *user_data); +#endif /* drm format */ uint32_t tdm_drm_format_to_drm_format(tbm_format format); diff --git a/src/tdm_drm_display.c b/src/tdm_drm_display.c index 407620e..0cecd7a 100644 --- a/src/tdm_drm_display.c +++ b/src/tdm_drm_display.c @@ -888,11 +888,13 @@ drm_display_get_capability(hal_tdm_display *display, hal_tdm_caps_display *caps) return HAL_TDM_ERROR_NONE; } +#ifdef ENABLE_PP hal_tdm_error drm_display_get_pp_capability(hal_tdm_display *display, hal_tdm_caps_pp *caps) { return tdm_drm_pp_get_capability(display, caps); } +#endif hal_tdm_output ** drm_display_get_outputs(hal_tdm_display *display, int *count, hal_tdm_error *error) @@ -970,6 +972,7 @@ drm_display_handle_events(hal_tdm_display *display) return HAL_TDM_ERROR_NONE; } +#ifdef ENABLE_PP hal_tdm_pp * drm_display_create_pp(hal_tdm_display *display, hal_tdm_error *error) { @@ -979,6 +982,7 @@ drm_display_create_pp(hal_tdm_display *display, hal_tdm_error *error) return tdm_drm_pp_create(display_data, error); } +#endif hal_tdm_error drm_output_get_capability(hal_tdm_output *output, hal_tdm_caps_output *caps) |