mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00

Several DRM drivers implement HDMI codec support (despite its name it applies to both HDMI and DisplayPort drivers). Implement generic framework to be used by these drivers. This removes a requirement to implement get_eld() callback and provides default implementation for codec's plug handling. Acked-by: Maxime Ripard <mripard@kernel.org> Tested-by: Dave Stevenson <dave.stevenson@raspberrypi.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241224-drm-bridge-hdmi-connector-v10-3-dc89577cd438@linaro.org Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
23 lines
596 B
C
23 lines
596 B
C
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef DRM_DISPLAY_HDMI_AUDIO_HELPER_H_
|
|
#define DRM_DISPLAY_HDMI_AUDIO_HELPER_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_connector;
|
|
struct drm_connector_hdmi_audio_funcs;
|
|
|
|
struct device;
|
|
|
|
int drm_connector_hdmi_audio_init(struct drm_connector *connector,
|
|
struct device *hdmi_codec_dev,
|
|
const struct drm_connector_hdmi_audio_funcs *funcs,
|
|
unsigned int max_i2s_playback_channels,
|
|
bool spdif_playback,
|
|
int sound_dai_port);
|
|
void drm_connector_hdmi_audio_plugged_notify(struct drm_connector *connector,
|
|
bool plugged);
|
|
|
|
#endif
|