22 #include <linux/kernel.h>
26 #include <linux/module.h>
28 #include <linux/slab.h>
35 #if defined(CONFIG_OMAP4_DSS_HDMI_AUDIO)
62 DSSDBG(
"ENTER hdmi_panel_probe\n");
64 dssdev->
panel.timings = default_timings;
66 DSSDBG(
"hdmi_panel_probe x_res= %d y_res = %d\n",
67 dssdev->
panel.timings.x_res,
68 dssdev->
panel.timings.y_res);
80 #if defined(CONFIG_OMAP4_DSS_HDMI_AUDIO)
91 !hdmi_mode_has_audio()) {
92 DSSERR(
"audio not supported or display is off\n");
97 r = hdmi_audio_enable();
103 spin_unlock_irqrestore(&hdmi.audio_lock, flags);
114 hdmi_audio_disable();
118 spin_unlock_irqrestore(&hdmi.audio_lock, flags);
132 DSSERR(
"audio start from invalid state\n");
137 r = hdmi_audio_start();
143 spin_unlock_irqrestore(&hdmi.audio_lock, flags);
156 spin_unlock_irqrestore(&hdmi.audio_lock, flags);
168 if (!hdmi_mode_has_audio())
188 !hdmi_mode_has_audio()) {
189 DSSERR(
"audio not supported or display is off\n");
194 r = hdmi_audio_config(audio);
200 spin_unlock_irqrestore(&hdmi.audio_lock, flags);
239 DSSDBG(
"ENTER hdmi_panel_enable\n");
252 DSSERR(
"failed to power on\n");
274 hdmi_panel_audio_disable(dssdev);
298 hdmi_panel_audio_disable(dssdev);
322 DSSERR(
"failed to power on\n");
340 *timings = dssdev->
panel.timings;
348 DSSDBG(
"hdmi_set_timings\n");
356 hdmi_panel_audio_disable(dssdev);
359 dssdev->
panel.timings = *timings;
369 DSSDBG(
"hdmi_check_timings\n");
426 .probe = hdmi_panel_probe,
427 .remove = hdmi_panel_remove,
428 .enable = hdmi_panel_enable,
429 .disable = hdmi_panel_disable,
430 .suspend = hdmi_panel_suspend,
431 .resume = hdmi_panel_resume,
432 .get_timings = hdmi_get_timings,
433 .set_timings = hdmi_set_timings,
434 .check_timings = hdmi_check_timings,
435 .read_edid = hdmi_read_edid,
436 .detect = hdmi_detect,
437 .audio_enable = hdmi_panel_audio_enable,
438 .audio_disable = hdmi_panel_audio_disable,
439 .audio_start = hdmi_panel_audio_start,
440 .audio_stop = hdmi_panel_audio_stop,
441 .audio_supported = hdmi_panel_audio_supported,
442 .audio_config = hdmi_panel_audio_config,
444 .name =
"hdmi_panel",
453 #if defined(CONFIG_OMAP4_DSS_HDMI_AUDIO)