Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344657
b: refs/heads/master
c: 15f5e73
h: refs/heads/master
i:
  344655: 5aade06
v: v3
  • Loading branch information
Tomi Valkeinen committed Nov 27, 2012
1 parent faf536f commit d4b2bf5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cffa947d2769f3249beecb499b7d4083feeeb267
refs/heads/master: 15f5e7324a683ee1c2991a9953103dd9b3b6fa5e
19 changes: 10 additions & 9 deletions trunk/drivers/video/omap2/dss/dispc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2732,26 +2732,27 @@ static void dispc_mgr_enable_digit_out(void)
static void dispc_mgr_disable_digit_out(void)
{
DECLARE_COMPLETION_ONSTACK(framedone_compl);
enum dss_hdmi_venc_clk_source_select src;
int r, i;
u32 irq_mask;
int num_irqs;

if (dispc_mgr_is_enabled(OMAP_DSS_CHANNEL_DIGIT) == false)
return;

src = dss_get_hdmi_venc_clk_source();

/*
* When we disable the digit output, we need to wait for FRAMEDONE to
* know that DISPC has finished with the output. For analog tv out we'll
* use vsync, as omap2/3 don't have framedone for TV.
* know that DISPC has finished with the output.
*/

if (src == DSS_HDMI_M_PCLK) {
irq_mask = DISPC_IRQ_FRAMEDONETV;
num_irqs = 1;
} else {
irq_mask = dispc_mgr_get_framedone_irq(OMAP_DSS_CHANNEL_DIGIT);
num_irqs = 1;

if (!irq_mask) {
/*
* omap 2/3 don't have framedone irq for TV, so we need to use
* vsyncs for this.
*/

irq_mask = dispc_mgr_get_vsync_irq(OMAP_DSS_CHANNEL_DIGIT);
/*
* We need to wait for both even and odd vsyncs. Note that this
Expand Down

0 comments on commit d4b2bf5

Please sign in to comment.