#include "hw_clk.h"
#include <linux/arm-smccc.h>
#include "checksha.h"
+#include <linux/amlogic/media/sound/spdif_info.h>
static void mode420_half_horizontal_para(void);
static void hdmi_phy_suspend(void);
hdev->hdmitx_event |= HDMI_TX_HPD_PLUGIN;
hdev->hdmitx_event &= ~HDMI_TX_HPD_PLUGOUT;
hdev->rhpd_state = 1;
+ earc_hdmitx_hpdst(1);
queue_delayed_work(hdev->hdmi_wq,
&hdev->work_hpd_plugin, HZ / 2);
}
hdev->hdmitx_event |= HDMI_TX_HPD_PLUGOUT;
hdev->hdmitx_event &= ~HDMI_TX_HPD_PLUGIN;
hdev->rhpd_state = 0;
+ earc_hdmitx_hpdst(0);
queue_delayed_work(hdev->hdmi_wq,
&hdev->work_hpd_plugout, HZ / 20);
}
int aml_set_hdmi_out_audio(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol);
#endif
+
+extern void earc_hdmitx_hpdst(bool st);
+/* prevent compile error in no HDMIRX case */
+void __attribute__((weak))earc_hdmitx_hpdst(bool st)
+{
+ pr_info("TODO, NEED TO REWRITE THIS FUNCTION\n");
+}
+
#endif