Lines Matching full:hd
332 static void hdmi_start_audio_stream(struct omap_hdmi *hd) in hdmi_start_audio_stream() argument
335 hdmi_wp_audio_enable(&hd->wp, true); in hdmi_start_audio_stream()
336 hdmi_wp_audio_core_req_enable(&hd->wp, true); in hdmi_start_audio_stream()
339 static void hdmi_stop_audio_stream(struct omap_hdmi *hd) in hdmi_stop_audio_stream() argument
341 hdmi_wp_audio_core_req_enable(&hd->wp, false); in hdmi_stop_audio_stream()
342 hdmi_wp_audio_enable(&hd->wp, false); in hdmi_stop_audio_stream()
343 REG_FLD_MOD(hd->wp.base, HDMI_WP_SYSCONFIG, hd->wp_idlemode, 3, 2); in hdmi_stop_audio_stream()
586 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_startup() local
589 mutex_lock(&hd->lock); in hdmi_audio_startup()
591 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_startup()
596 hd->audio_abort_cb = abort_cb; in hdmi_audio_startup()
599 mutex_unlock(&hd->lock); in hdmi_audio_startup()
606 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_shutdown() local
608 mutex_lock(&hd->lock); in hdmi_audio_shutdown()
609 hd->audio_abort_cb = NULL; in hdmi_audio_shutdown()
610 hd->audio_configured = false; in hdmi_audio_shutdown()
611 hd->audio_playing = false; in hdmi_audio_shutdown()
612 mutex_unlock(&hd->lock); in hdmi_audio_shutdown()
619 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_start() local
622 WARN_ON(!hdmi_mode_has_audio(&hd->cfg)); in hdmi_audio_start()
624 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_start()
626 if (hd->display_enabled) in hdmi_audio_start()
627 hdmi_start_audio_stream(hd); in hdmi_audio_start()
628 hd->audio_playing = true; in hdmi_audio_start()
630 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_start()
636 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_stop() local
639 WARN_ON(!hdmi_mode_has_audio(&hd->cfg)); in hdmi_audio_stop()
641 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
643 if (hd->display_enabled) in hdmi_audio_stop()
644 hdmi_stop_audio_stream(hd); in hdmi_audio_stop()
645 hd->audio_playing = false; in hdmi_audio_stop()
647 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
653 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_config() local
656 mutex_lock(&hd->lock); in hdmi_audio_config()
658 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_config()
663 ret = hdmi5_audio_config(&hd->core, &hd->wp, dss_audio, in hdmi_audio_config()
664 hd->cfg.timings.pixelclock); in hdmi_audio_config()
667 hd->audio_configured = true; in hdmi_audio_config()
668 hd->audio_config = *dss_audio; in hdmi_audio_config()
671 mutex_unlock(&hd->lock); in hdmi_audio_config()