Lines Matching full:hd
264 static void hdmi_start_audio_stream(struct omap_hdmi *hd) in hdmi_start_audio_stream() argument
266 hdmi_wp_audio_enable(&hd->wp, true); in hdmi_start_audio_stream()
267 hdmi4_audio_start(&hd->core, &hd->wp); in hdmi_start_audio_stream()
270 static void hdmi_stop_audio_stream(struct omap_hdmi *hd) in hdmi_stop_audio_stream() argument
272 hdmi4_audio_stop(&hd->core, &hd->wp); in hdmi_stop_audio_stream()
273 hdmi_wp_audio_enable(&hd->wp, false); in hdmi_stop_audio_stream()
528 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_startup() local
530 mutex_lock(&hd->lock); in hdmi_audio_startup()
532 WARN_ON(hd->audio_abort_cb != NULL); in hdmi_audio_startup()
534 hd->audio_abort_cb = abort_cb; in hdmi_audio_startup()
536 mutex_unlock(&hd->lock); in hdmi_audio_startup()
543 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_shutdown() local
545 mutex_lock(&hd->lock); in hdmi_audio_shutdown()
546 hd->audio_abort_cb = NULL; in hdmi_audio_shutdown()
547 hd->audio_configured = false; in hdmi_audio_shutdown()
548 hd->audio_playing = false; in hdmi_audio_shutdown()
549 mutex_unlock(&hd->lock); in hdmi_audio_shutdown()
556 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_start() local
559 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_start()
561 if (hd->display_enabled) { in hdmi_audio_start()
562 if (!hdmi_mode_has_audio(&hd->cfg)) in hdmi_audio_start()
565 hdmi_start_audio_stream(hd); in hdmi_audio_start()
567 hd->audio_playing = true; in hdmi_audio_start()
569 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_start()
575 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_stop() local
578 WARN_ON(!hdmi_mode_has_audio(&hd->cfg)); in hdmi_audio_stop()
580 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
582 if (hd->display_enabled) in hdmi_audio_stop()
583 hdmi_stop_audio_stream(hd); in hdmi_audio_stop()
584 hd->audio_playing = false; in hdmi_audio_stop()
586 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
592 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_config() local
595 mutex_lock(&hd->lock); in hdmi_audio_config()
597 if (hd->display_enabled) { in hdmi_audio_config()
598 ret = hdmi4_audio_config(&hd->core, &hd->wp, dss_audio, in hdmi_audio_config()
599 hd->cfg.vm.pixelclock); in hdmi_audio_config()
604 hd->audio_configured = true; in hdmi_audio_config()
605 hd->audio_config = *dss_audio; in hdmi_audio_config()
607 mutex_unlock(&hd->lock); in hdmi_audio_config()