xref: /linux/include/drm/display/drm_hdmi_audio_helper.h (revision 2c1ed907520c50326b8f604907a8478b27881a2e)
1 /* SPDX-License-Identifier: MIT */
2 
3 #ifndef DRM_DISPLAY_HDMI_AUDIO_HELPER_H_
4 #define DRM_DISPLAY_HDMI_AUDIO_HELPER_H_
5 
6 #include <linux/types.h>
7 
8 struct drm_connector;
9 struct drm_connector_hdmi_audio_funcs;
10 
11 struct device;
12 
13 int drm_connector_hdmi_audio_init(struct drm_connector *connector,
14 				  struct device *hdmi_codec_dev,
15 				  const struct drm_connector_hdmi_audio_funcs *funcs,
16 				  unsigned int max_i2s_playback_channels,
17 				  bool spdif_playback,
18 				  int sound_dai_port);
19 void drm_connector_hdmi_audio_plugged_notify(struct drm_connector *connector,
20 					     bool plugged);
21 
22 #endif
23