mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 06:12:08 +00:00
1e4a91db10
Most of the TV connectors will need a similar get_modes implementation that will, depending on the drivers' capabilities, register the 480i and 576i modes. That implementation will also need to set the preferred flag and order the modes based on the driver and users preferrence. This is especially important to guarantee that a userspace stack such as Xorg can start and pick up the preferred mode while maintaining a working output. Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Tested-by: Mateusz Kwiatkowski <kfyatek+publicgit@gmail.com> Acked-in-principle-or-something-like-that-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://lore.kernel.org/r/20220728-rpi-analog-tv-properties-v10-12-256dad125326@cerno.tech Signed-off-by: Maxime Ripard <maxime@cerno.tech>
41 lines
1.5 KiB
C
41 lines
1.5 KiB
C
// SPDX-License-Identifier: GPL-2.0 OR MIT
|
|
|
|
#ifndef __DRM_PROBE_HELPER_H__
|
|
#define __DRM_PROBE_HELPER_H__
|
|
|
|
#include <drm/drm_modes.h>
|
|
|
|
struct drm_connector;
|
|
struct drm_crtc;
|
|
struct drm_device;
|
|
struct drm_modeset_acquire_ctx;
|
|
|
|
int drm_helper_probe_single_connector_modes(struct drm_connector
|
|
*connector, uint32_t maxX,
|
|
uint32_t maxY);
|
|
int drm_helper_probe_detect(struct drm_connector *connector,
|
|
struct drm_modeset_acquire_ctx *ctx,
|
|
bool force);
|
|
void drm_kms_helper_poll_init(struct drm_device *dev);
|
|
void drm_kms_helper_poll_fini(struct drm_device *dev);
|
|
bool drm_helper_hpd_irq_event(struct drm_device *dev);
|
|
bool drm_connector_helper_hpd_irq_event(struct drm_connector *connector);
|
|
void drm_kms_helper_hotplug_event(struct drm_device *dev);
|
|
void drm_kms_helper_connector_hotplug_event(struct drm_connector *connector);
|
|
|
|
void drm_kms_helper_poll_disable(struct drm_device *dev);
|
|
void drm_kms_helper_poll_enable(struct drm_device *dev);
|
|
bool drm_kms_helper_is_poll_worker(void);
|
|
|
|
enum drm_mode_status drm_crtc_helper_mode_valid_fixed(struct drm_crtc *crtc,
|
|
const struct drm_display_mode *mode,
|
|
const struct drm_display_mode *fixed_mode);
|
|
|
|
int drm_connector_helper_get_modes_from_ddc(struct drm_connector *connector);
|
|
int drm_connector_helper_get_modes_fixed(struct drm_connector *connector,
|
|
const struct drm_display_mode *fixed_mode);
|
|
int drm_connector_helper_get_modes(struct drm_connector *connector);
|
|
int drm_connector_helper_tv_get_modes(struct drm_connector *connector);
|
|
|
|
#endif
|