@@ -23,6 +23,7 @@
#include "../../codecs/hdac_hdmi.h"
#include "../../codecs/rt5660.h"
+#include "hdac_hdmi_common.h"
#define KBL_RT5660_CODEC_DAI "rt5660-aif1"
#define DUAL_CHANNEL 2
@@ -41,6 +42,7 @@ struct kbl_hdmi_pcm {
struct kbl_codec_private {
struct gpio_desc *gpio_lo_mute;
struct list_head hdmi_pcm_list;
+ struct device_link *link;
};
enum {
@@ -222,7 +224,8 @@ static int kabylake_hdmi_init(struct snd_soc_pcm_runtime *rtd, int device)
list_add_tail(&pcm->head, &ctx->hdmi_pcm_list);
- return 0;
+ /* Setup a device_link between machine device and HDMI codec device. */
+ return hdac_hdmi_add_device_link(rtd->card->dev, dai->dev, &ctx->link);
}
static int kabylake_hdmi1_init(struct snd_soc_pcm_runtime *rtd)