Lines Matching full:hd
263 static void hdmi_start_audio_stream(struct omap_hdmi *hd) in hdmi_start_audio_stream() argument
265 hdmi_wp_audio_enable(&hd->wp, true); in hdmi_start_audio_stream()
266 hdmi4_audio_start(&hd->core, &hd->wp); in hdmi_start_audio_stream()
269 static void hdmi_stop_audio_stream(struct omap_hdmi *hd) in hdmi_stop_audio_stream() argument
271 hdmi4_audio_stop(&hd->core, &hd->wp); in hdmi_stop_audio_stream()
272 hdmi_wp_audio_enable(&hd->wp, false); in hdmi_stop_audio_stream()
519 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_startup() local
521 mutex_lock(&hd->lock); in hdmi_audio_startup()
523 WARN_ON(hd->audio_abort_cb != NULL); in hdmi_audio_startup()
525 hd->audio_abort_cb = abort_cb; in hdmi_audio_startup()
527 mutex_unlock(&hd->lock); in hdmi_audio_startup()
534 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_shutdown() local
536 mutex_lock(&hd->lock); in hdmi_audio_shutdown()
537 hd->audio_abort_cb = NULL; in hdmi_audio_shutdown()
538 hd->audio_configured = false; in hdmi_audio_shutdown()
539 hd->audio_playing = false; in hdmi_audio_shutdown()
540 mutex_unlock(&hd->lock); in hdmi_audio_shutdown()
547 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_start() local
550 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_start()
552 if (hd->display_enabled) { in hdmi_audio_start()
553 if (!hdmi_mode_has_audio(&hd->cfg)) in hdmi_audio_start()
556 hdmi_start_audio_stream(hd); in hdmi_audio_start()
558 hd->audio_playing = true; in hdmi_audio_start()
560 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_start()
566 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_stop() local
569 WARN_ON(!hdmi_mode_has_audio(&hd->cfg)); in hdmi_audio_stop()
571 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
573 if (hd->display_enabled) in hdmi_audio_stop()
574 hdmi_stop_audio_stream(hd); in hdmi_audio_stop()
575 hd->audio_playing = false; in hdmi_audio_stop()
577 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
583 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_config() local
586 mutex_lock(&hd->lock); in hdmi_audio_config()
588 if (hd->display_enabled) { in hdmi_audio_config()
589 ret = hdmi4_audio_config(&hd->core, &hd->wp, dss_audio, in hdmi_audio_config()
590 hd->cfg.vm.pixelclock); in hdmi_audio_config()
595 hd->audio_configured = true; in hdmi_audio_config()
596 hd->audio_config = *dss_audio; in hdmi_audio_config()
598 mutex_unlock(&hd->lock); in hdmi_audio_config()