Commit 3ceb66ed authored by Brent Lu's avatar Brent Lu Committed by Mark Brown

ASoC: Intel: sof_hdmi: add common header for HDMI

Add a common header for Intel HDMI dai link (idisp) initialization.
Declare the sof_hdmi_private structure in machine driver private data
and use it to initialize dai link.
Reviewed-by: default avatarBard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: default avatarBrent Lu <brent.lu@intel.com>
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20231012190826.142619-13-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 64b9f311
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright(c) 2023 Intel Corporation.
*/
#ifndef __SOF_HDMI_COMMON_H
#define __SOF_HDMI_COMMON_H
#include <sound/soc.h>
#define IDISP_CODEC_MASK 0x4
/*
* sof_hdmi_private: data for Intel HDMI dai link (idisp) initialization
*
* @hdmi_comp: ASoC component of idisp codec
* @idisp_codec: true to indicate idisp codec is present
*/
struct sof_hdmi_private {
struct snd_soc_component *hdmi_comp;
bool idisp_codec;
};
#endif /* __SOF_HDMI_COMMON_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment