summaryrefslogtreecommitdiff
path: root/include/drm/display/drm_hdmi_audio_helper.h
blob: c9a6faef4109f20ba79b610a9d5e8d5980efe2d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* 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