Lines Matching full:hd
304 static void hdmi_start_audio_stream(struct omap_hdmi *hd) in hdmi_start_audio_stream() argument
306 hdmi_wp_audio_enable(&hd->wp, true); in hdmi_start_audio_stream()
307 hdmi4_audio_start(&hd->core, &hd->wp); in hdmi_start_audio_stream()
310 static void hdmi_stop_audio_stream(struct omap_hdmi *hd) in hdmi_stop_audio_stream() argument
312 hdmi4_audio_stop(&hd->core, &hd->wp); in hdmi_stop_audio_stream()
313 hdmi_wp_audio_enable(&hd->wp, false); in hdmi_stop_audio_stream()
554 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_startup() local
557 mutex_lock(&hd->lock); in hdmi_audio_startup()
559 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_startup()
564 hd->audio_abort_cb = abort_cb; in hdmi_audio_startup()
567 mutex_unlock(&hd->lock); in hdmi_audio_startup()
574 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_shutdown() local
576 mutex_lock(&hd->lock); in hdmi_audio_shutdown()
577 hd->audio_abort_cb = NULL; in hdmi_audio_shutdown()
578 hd->audio_configured = false; in hdmi_audio_shutdown()
579 hd->audio_playing = false; in hdmi_audio_shutdown()
580 mutex_unlock(&hd->lock); in hdmi_audio_shutdown()
587 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_start() local
590 WARN_ON(!hdmi_mode_has_audio(&hd->cfg)); in hdmi_audio_start()
592 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_start()
594 if (hd->display_enabled) in hdmi_audio_start()
595 hdmi_start_audio_stream(hd); in hdmi_audio_start()
596 hd->audio_playing = true; in hdmi_audio_start()
598 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_start()
604 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_stop() local
607 WARN_ON(!hdmi_mode_has_audio(&hd->cfg)); in hdmi_audio_stop()
609 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
611 if (hd->display_enabled) in hdmi_audio_stop()
612 hdmi_stop_audio_stream(hd); in hdmi_audio_stop()
613 hd->audio_playing = false; in hdmi_audio_stop()
615 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
621 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_config() local
624 mutex_lock(&hd->lock); in hdmi_audio_config()
626 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_config()
631 ret = hdmi4_audio_config(&hd->core, &hd->wp, dss_audio, in hdmi_audio_config()
632 hd->cfg.timings.pixelclock); in hdmi_audio_config()
634 hd->audio_configured = true; in hdmi_audio_config()
635 hd->audio_config = *dss_audio; in hdmi_audio_config()
638 mutex_unlock(&hd->lock); in hdmi_audio_config()