const struct tmds_config *tmds_ptr;
size_t tmds_len;
bool edid_read;
-#ifdef CONFIG_SWITCH
- int state;
-#endif
/* enable power, clocks, resets, etc. */
*/
tegra_nvhdcp_set_plug(hdmi->nvhdcp, tegra_dc_hpd(dc));
tegra_dc_io_end(dc);
-
-#ifdef CONFIG_SWITCH
- state = tegra_edid_audio_supported(hdmi->edid) ? 1 : 0;
- switch_set_state(&hdmi->audio_switch, state);
- pr_info("%s: audio_switch %d\n", __func__, state);
-#endif
-
}
static void tegra_dc_hdmi_disable(struct tegra_dc *dc)
static void handle_check_edid_l(struct tegra_dc_hdmi_data *hdmi)
{
struct fb_monspecs specs;
+#ifdef CONFIG_SWITCH
+ int state;
+#endif
memset(&specs, 0, sizeof(specs));
#ifdef CONFIG_FRAMEBUFFER_CONSOLE
tegra_dc_hdmi_mode_filter);
#endif
#ifdef CONFIG_SWITCH
+ state = tegra_edid_audio_supported(hdmi->edid) ? 1 : 0;
+ switch_set_state(&hdmi->audio_switch, state);
+ pr_info("%s: audio_switch %d\n", __func__, state);
switch_set_state(&hdmi->hpd_switch, 1);
pr_info("Display connected, hpd_switch 1\n");
#endif