Lines Matching full:hd
331 static void hdmi_start_audio_stream(struct omap_hdmi *hd) in hdmi_start_audio_stream() argument
334 hdmi_wp_audio_enable(&hd->wp, true); in hdmi_start_audio_stream()
335 hdmi_wp_audio_core_req_enable(&hd->wp, true); in hdmi_start_audio_stream()
338 static void hdmi_stop_audio_stream(struct omap_hdmi *hd) in hdmi_stop_audio_stream() argument
340 hdmi_wp_audio_core_req_enable(&hd->wp, false); in hdmi_stop_audio_stream()
341 hdmi_wp_audio_enable(&hd->wp, false); in hdmi_stop_audio_stream()
342 REG_FLD_MOD(hd->wp.base, HDMI_WP_SYSCONFIG, hd->wp_idlemode, 3, 2); in hdmi_stop_audio_stream()
585 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_startup() local
588 mutex_lock(&hd->lock); in hdmi_audio_startup()
590 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_startup()
595 hd->audio_abort_cb = abort_cb; in hdmi_audio_startup()
598 mutex_unlock(&hd->lock); in hdmi_audio_startup()
605 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_shutdown() local
607 mutex_lock(&hd->lock); in hdmi_audio_shutdown()
608 hd->audio_abort_cb = NULL; in hdmi_audio_shutdown()
609 hd->audio_configured = false; in hdmi_audio_shutdown()
610 hd->audio_playing = false; in hdmi_audio_shutdown()
611 mutex_unlock(&hd->lock); in hdmi_audio_shutdown()
618 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_start() local
621 WARN_ON(!hdmi_mode_has_audio(&hd->cfg)); in hdmi_audio_start()
623 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_start()
625 if (hd->display_enabled) in hdmi_audio_start()
626 hdmi_start_audio_stream(hd); in hdmi_audio_start()
627 hd->audio_playing = true; in hdmi_audio_start()
629 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_start()
635 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_stop() local
638 WARN_ON(!hdmi_mode_has_audio(&hd->cfg)); in hdmi_audio_stop()
640 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
642 if (hd->display_enabled) in hdmi_audio_stop()
643 hdmi_stop_audio_stream(hd); in hdmi_audio_stop()
644 hd->audio_playing = false; in hdmi_audio_stop()
646 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
652 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_config() local
655 mutex_lock(&hd->lock); in hdmi_audio_config()
657 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_config()
662 ret = hdmi5_audio_config(&hd->core, &hd->wp, dss_audio, in hdmi_audio_config()
663 hd->cfg.timings.pixelclock); in hdmi_audio_config()
666 hd->audio_configured = true; in hdmi_audio_config()
667 hd->audio_config = *dss_audio; in hdmi_audio_config()
670 mutex_unlock(&hd->lock); in hdmi_audio_config()