#include <linux/delay.h>
#include <linux/of_gpio.h>
#include <linux/amlogic/media/frame_provider/tvin/tvin.h>
+#include <linux/amlogic/media/sound/hdmi_earc.h>
/* Local include */
#include "hdmi_rx_repeater.h"
pre_sts = sts;
}
}
+
/* ---------------------------------------------------------- */
/* func: port A,B,C,D hdmitx-5v monitor & HPD control */
/* note: G9TV portD no used */
{
static uint8_t check_cnt;
uint8_t tmp_5v = rx_get_hdmi5v_sts();
+ bool tmp_arc_5v;
if (auto_switch_off)
tmp_5v = 0x0f;
else
hdcp_mode_sel = false;
}
+ if (rx.chip_id == CHIP_ID_TM2) {
+ tmp_arc_5v = (pwr_sts >> rx.arc_port) & 1;
+ if (rx.arc_5vsts != tmp_arc_5v) {
+ rx.arc_5vsts = tmp_arc_5v;
+ earc_hdmirx_hpdst(rx.arc_port, rx.arc_5vsts);
+ }
+ }
}
/*
int sysclk_freq;
};
+#include <linux/amlogic/media/sound/hdmi_earc.h>
+
+void earc_hdmirx_hpdst(int earc_port, bool st)
+{
+};
+
+void earc_hdmitx_hpdst(bool st)
+{
+};
+
#define PREALLOC_BUFFER_MAX (256 * 1024)
#define EARC_RATES (SNDRV_PCM_RATE_8000_192000)