Lines Matching full:hd

330 static void hdmi_start_audio_stream(struct omap_hdmi *hd)  in hdmi_start_audio_stream()  argument
333 hdmi_wp_audio_enable(&hd->wp, true); in hdmi_start_audio_stream()
334 hdmi_wp_audio_core_req_enable(&hd->wp, true); in hdmi_start_audio_stream()
337 static void hdmi_stop_audio_stream(struct omap_hdmi *hd) in hdmi_stop_audio_stream() argument
339 hdmi_wp_audio_core_req_enable(&hd->wp, false); in hdmi_stop_audio_stream()
340 hdmi_wp_audio_enable(&hd->wp, false); in hdmi_stop_audio_stream()
341 REG_FLD_MOD(hd->wp.base, HDMI_WP_SYSCONFIG, hd->wp_idlemode, 3, 2); in hdmi_stop_audio_stream()
584 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_startup() local
587 mutex_lock(&hd->lock); in hdmi_audio_startup()
589 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_startup()
594 hd->audio_abort_cb = abort_cb; in hdmi_audio_startup()
597 mutex_unlock(&hd->lock); in hdmi_audio_startup()
604 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_shutdown() local
606 mutex_lock(&hd->lock); in hdmi_audio_shutdown()
607 hd->audio_abort_cb = NULL; in hdmi_audio_shutdown()
608 hd->audio_configured = false; in hdmi_audio_shutdown()
609 hd->audio_playing = false; in hdmi_audio_shutdown()
610 mutex_unlock(&hd->lock); in hdmi_audio_shutdown()
617 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_start() local
620 WARN_ON(!hdmi_mode_has_audio(&hd->cfg)); in hdmi_audio_start()
622 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_start()
624 if (hd->display_enabled) in hdmi_audio_start()
625 hdmi_start_audio_stream(hd); in hdmi_audio_start()
626 hd->audio_playing = true; in hdmi_audio_start()
628 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_start()
634 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_stop() local
637 WARN_ON(!hdmi_mode_has_audio(&hd->cfg)); in hdmi_audio_stop()
639 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
641 if (hd->display_enabled) in hdmi_audio_stop()
642 hdmi_stop_audio_stream(hd); in hdmi_audio_stop()
643 hd->audio_playing = false; in hdmi_audio_stop()
645 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
651 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_config() local
654 mutex_lock(&hd->lock); in hdmi_audio_config()
656 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_config()
661 ret = hdmi5_audio_config(&hd->core, &hd->wp, dss_audio, in hdmi_audio_config()
662 hd->cfg.timings.pixelclock); in hdmi_audio_config()
665 hd->audio_configured = true; in hdmi_audio_config()
666 hd->audio_config = *dss_audio; in hdmi_audio_config()
669 mutex_unlock(&hd->lock); in hdmi_audio_config()