mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

The MSM DisplayPort driver implements several HDMI codec functions in the driver, e.g. it manually manages HDMI codec device registration, returning ELD and plugged_cb support. In order to reduce code duplication reuse drm_hdmi_audio_* helpers and drm_bridge_connector integration. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> Patchwork: https://patchwork.freedesktop.org/patch/649728/ Link: https://lore.kernel.org/r/20250423-dp-hdmi-audio-v7-1-8407a23e55b2@oss.qualcomm.com
38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _DP_DISPLAY_H_
|
|
#define _DP_DISPLAY_H_
|
|
|
|
#include "dp_panel.h"
|
|
#include "disp/msm_disp_snapshot.h"
|
|
|
|
#define DP_MAX_PIXEL_CLK_KHZ 675000
|
|
|
|
struct msm_dp {
|
|
struct drm_device *drm_dev;
|
|
struct platform_device *pdev;
|
|
struct drm_connector *connector;
|
|
struct drm_bridge *next_bridge;
|
|
bool link_ready;
|
|
bool audio_enabled;
|
|
bool power_on;
|
|
unsigned int connector_type;
|
|
bool is_edp;
|
|
bool internal_hpd;
|
|
|
|
struct msm_dp_audio *msm_dp_audio;
|
|
bool psr_supported;
|
|
};
|
|
|
|
int msm_dp_display_get_modes(struct msm_dp *msm_dp_display);
|
|
bool msm_dp_display_check_video_test(struct msm_dp *msm_dp_display);
|
|
int msm_dp_display_get_test_bpp(struct msm_dp *msm_dp_display);
|
|
void msm_dp_display_signal_audio_start(struct msm_dp *msm_dp_display);
|
|
void msm_dp_display_signal_audio_complete(struct msm_dp *msm_dp_display);
|
|
void msm_dp_display_set_psr(struct msm_dp *dp, bool enter);
|
|
void msm_dp_display_debugfs_init(struct msm_dp *msm_dp_display, struct dentry *dentry, bool is_edp);
|
|
|
|
#endif /* _DP_DISPLAY_H_ */
|