Lines Matching refs:hd
320 static void hdmi_start_audio_stream(struct omap_hdmi *hd) in hdmi_start_audio_stream() argument
322 hdmi_wp_audio_enable(&hd->wp, true); in hdmi_start_audio_stream()
323 hdmi4_audio_start(&hd->core, &hd->wp); in hdmi_start_audio_stream()
326 static void hdmi_stop_audio_stream(struct omap_hdmi *hd) in hdmi_stop_audio_stream() argument
328 hdmi4_audio_stop(&hd->core, &hd->wp); in hdmi_stop_audio_stream()
329 hdmi_wp_audio_enable(&hd->wp, false); in hdmi_stop_audio_stream()
569 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_startup() local
572 mutex_lock(&hd->lock); in hdmi_audio_startup()
574 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_startup()
579 hd->audio_abort_cb = abort_cb; in hdmi_audio_startup()
582 mutex_unlock(&hd->lock); in hdmi_audio_startup()
589 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_shutdown() local
591 mutex_lock(&hd->lock); in hdmi_audio_shutdown()
592 hd->audio_abort_cb = NULL; in hdmi_audio_shutdown()
593 hd->audio_configured = false; in hdmi_audio_shutdown()
594 hd->audio_playing = false; in hdmi_audio_shutdown()
595 mutex_unlock(&hd->lock); in hdmi_audio_shutdown()
602 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_start() local
605 WARN_ON(!hdmi_mode_has_audio(&hd->cfg)); in hdmi_audio_start()
607 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_start()
609 if (hd->display_enabled) in hdmi_audio_start()
610 hdmi_start_audio_stream(hd); in hdmi_audio_start()
611 hd->audio_playing = true; in hdmi_audio_start()
613 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_start()
619 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_stop() local
622 WARN_ON(!hdmi_mode_has_audio(&hd->cfg)); in hdmi_audio_stop()
624 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
626 if (hd->display_enabled) in hdmi_audio_stop()
627 hdmi_stop_audio_stream(hd); in hdmi_audio_stop()
628 hd->audio_playing = false; in hdmi_audio_stop()
630 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
636 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_config() local
639 mutex_lock(&hd->lock); in hdmi_audio_config()
641 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_config()
646 ret = hdmi4_audio_config(&hd->core, &hd->wp, dss_audio, in hdmi_audio_config()
647 hd->cfg.vm.pixelclock); in hdmi_audio_config()
649 hd->audio_configured = true; in hdmi_audio_config()
650 hd->audio_config = *dss_audio; in hdmi_audio_config()
653 mutex_unlock(&hd->lock); in hdmi_audio_config()