Lines Matching full:hd
303 static void hdmi_start_audio_stream(struct omap_hdmi *hd) in hdmi_start_audio_stream() argument
305 hdmi_wp_audio_enable(&hd->wp, true); in hdmi_start_audio_stream()
306 hdmi4_audio_start(&hd->core, &hd->wp); in hdmi_start_audio_stream()
309 static void hdmi_stop_audio_stream(struct omap_hdmi *hd) in hdmi_stop_audio_stream() argument
311 hdmi4_audio_stop(&hd->core, &hd->wp); in hdmi_stop_audio_stream()
312 hdmi_wp_audio_enable(&hd->wp, false); in hdmi_stop_audio_stream()
553 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_startup() local
556 mutex_lock(&hd->lock); in hdmi_audio_startup()
558 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_startup()
563 hd->audio_abort_cb = abort_cb; in hdmi_audio_startup()
566 mutex_unlock(&hd->lock); in hdmi_audio_startup()
573 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_shutdown() local
575 mutex_lock(&hd->lock); in hdmi_audio_shutdown()
576 hd->audio_abort_cb = NULL; in hdmi_audio_shutdown()
577 hd->audio_configured = false; in hdmi_audio_shutdown()
578 hd->audio_playing = false; in hdmi_audio_shutdown()
579 mutex_unlock(&hd->lock); in hdmi_audio_shutdown()
586 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_start() local
589 WARN_ON(!hdmi_mode_has_audio(&hd->cfg)); in hdmi_audio_start()
591 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_start()
593 if (hd->display_enabled) in hdmi_audio_start()
594 hdmi_start_audio_stream(hd); in hdmi_audio_start()
595 hd->audio_playing = true; in hdmi_audio_start()
597 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_start()
603 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_stop() local
606 WARN_ON(!hdmi_mode_has_audio(&hd->cfg)); in hdmi_audio_stop()
608 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
610 if (hd->display_enabled) in hdmi_audio_stop()
611 hdmi_stop_audio_stream(hd); in hdmi_audio_stop()
612 hd->audio_playing = false; in hdmi_audio_stop()
614 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
620 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_config() local
623 mutex_lock(&hd->lock); in hdmi_audio_config()
625 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_config()
630 ret = hdmi4_audio_config(&hd->core, &hd->wp, dss_audio, in hdmi_audio_config()
631 hd->cfg.timings.pixelclock); in hdmi_audio_config()
633 hd->audio_configured = true; in hdmi_audio_config()
634 hd->audio_config = *dss_audio; in hdmi_audio_config()
637 mutex_unlock(&hd->lock); in hdmi_audio_config()