/** * drm_connector_hdmi_audio_init - Initialize HDMI Codec device for the DRM connector * @connector: A pointer to the connector to allocate codec for * @hdmi_codec_dev: device to be used as a parent for the HDMI Codec * @funcs: callbacks for this HDMI Codec * @max_i2s_playback_channels: maximum number of playback I2S channels * @i2s_formats: set of I2S formats (use 0 for a bus-specific set) * @spdif_playback: set if HDMI codec has S/PDIF playback port * @dai_port: sound DAI port, -1 if it is not enabled * * Create a HDMI codec device to be used with the specified connector. * * Returns: * Zero on success, error code on failure.
*/ int drm_connector_hdmi_audio_init(struct drm_connector *connector, struct device *hdmi_codec_dev, conststruct drm_connector_hdmi_audio_funcs *funcs, unsignedint max_i2s_playback_channels,
u64 i2s_formats, bool spdif_playback, int dai_port)
{ struct hdmi_codec_pdata codec_pdata = {
.ops = &drm_connector_hdmi_audio_ops,
.max_i2s_channels = max_i2s_playback_channels,
.i2s = !!max_i2s_playback_channels,
.i2s_formats = i2s_formats,
.spdif = spdif_playback,
.no_i2s_capture = true,
.no_spdif_capture = true,
.data = connector,
}; struct platform_device *pdev;
if (!funcs ||
!funcs->prepare ||
!funcs->shutdown) return -EINVAL;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.