diff options
-rw-r--r-- | drivers/video/fbdev/omap2/dss/hdmi.h | 1 | ||||
-rw-r--r-- | drivers/video/fbdev/omap2/dss/hdmi5.c | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/drivers/video/fbdev/omap2/dss/hdmi.h b/drivers/video/fbdev/omap2/dss/hdmi.h index dde1989901a8..e4a32fe77b02 100644 --- a/drivers/video/fbdev/omap2/dss/hdmi.h +++ b/drivers/video/fbdev/omap2/dss/hdmi.h | |||
@@ -357,6 +357,7 @@ struct omap_hdmi { | |||
357 | 357 | ||
358 | struct platform_device *audio_pdev; | 358 | struct platform_device *audio_pdev; |
359 | void (*audio_abort_cb)(struct device *dev); | 359 | void (*audio_abort_cb)(struct device *dev); |
360 | int wp_idlemode; | ||
360 | }; | 361 | }; |
361 | 362 | ||
362 | #endif | 363 | #endif |
diff --git a/drivers/video/fbdev/omap2/dss/hdmi5.c b/drivers/video/fbdev/omap2/dss/hdmi5.c index 84736667e528..cbfb282f35cf 100644 --- a/drivers/video/fbdev/omap2/dss/hdmi5.c +++ b/drivers/video/fbdev/omap2/dss/hdmi5.c | |||
@@ -607,6 +607,10 @@ static int hdmi_audio_start(struct device *dev) | |||
607 | WARN_ON(!hdmi_mode_has_audio(&hd->cfg)); | 607 | WARN_ON(!hdmi_mode_has_audio(&hd->cfg)); |
608 | WARN_ON(!hd->display_enabled); | 608 | WARN_ON(!hd->display_enabled); |
609 | 609 | ||
610 | /* No-idle while playing audio, store the old value */ | ||
611 | hd->wp_idlemode = REG_GET(hdmi.wp.base, HDMI_WP_SYSCONFIG, 3, 2); | ||
612 | REG_FLD_MOD(hdmi.wp.base, HDMI_WP_SYSCONFIG, 1, 3, 2); | ||
613 | |||
610 | hdmi_wp_audio_enable(&hd->wp, true); | 614 | hdmi_wp_audio_enable(&hd->wp, true); |
611 | hdmi_wp_audio_core_req_enable(&hd->wp, true); | 615 | hdmi_wp_audio_core_req_enable(&hd->wp, true); |
612 | 616 | ||
@@ -622,6 +626,9 @@ static void hdmi_audio_stop(struct device *dev) | |||
622 | 626 | ||
623 | hdmi_wp_audio_core_req_enable(&hd->wp, false); | 627 | hdmi_wp_audio_core_req_enable(&hd->wp, false); |
624 | hdmi_wp_audio_enable(&hd->wp, false); | 628 | hdmi_wp_audio_enable(&hd->wp, false); |
629 | |||
630 | /* Playback stopped, restore original idlemode */ | ||
631 | REG_FLD_MOD(hdmi.wp.base, HDMI_WP_SYSCONFIG, hd->wp_idlemode, 3, 2); | ||
625 | } | 632 | } |
626 | 633 | ||
627 | static int hdmi_audio_config(struct device *dev, | 634 | static int hdmi_audio_config(struct device *dev, |