• Home
  • Raw
  • Download

Lines Matching refs:hd

314 static void hdmi_start_audio_stream(struct omap_hdmi *hd)  in hdmi_start_audio_stream()  argument
316 hdmi_wp_audio_enable(&hd->wp, true); in hdmi_start_audio_stream()
317 hdmi4_audio_start(&hd->core, &hd->wp); in hdmi_start_audio_stream()
320 static void hdmi_stop_audio_stream(struct omap_hdmi *hd) in hdmi_stop_audio_stream() argument
322 hdmi4_audio_stop(&hd->core, &hd->wp); in hdmi_stop_audio_stream()
323 hdmi_wp_audio_enable(&hd->wp, false); in hdmi_stop_audio_stream()
566 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_startup() local
569 mutex_lock(&hd->lock); in hdmi_audio_startup()
571 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_startup()
576 hd->audio_abort_cb = abort_cb; in hdmi_audio_startup()
579 mutex_unlock(&hd->lock); in hdmi_audio_startup()
586 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_shutdown() local
588 mutex_lock(&hd->lock); in hdmi_audio_shutdown()
589 hd->audio_abort_cb = NULL; in hdmi_audio_shutdown()
590 hd->audio_configured = false; in hdmi_audio_shutdown()
591 hd->audio_playing = false; in hdmi_audio_shutdown()
592 mutex_unlock(&hd->lock); in hdmi_audio_shutdown()
599 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_start() local
602 WARN_ON(!hdmi_mode_has_audio(&hd->cfg)); in hdmi_audio_start()
604 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_start()
606 if (hd->display_enabled) in hdmi_audio_start()
607 hdmi_start_audio_stream(hd); in hdmi_audio_start()
608 hd->audio_playing = true; in hdmi_audio_start()
610 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_start()
616 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_stop() local
619 WARN_ON(!hdmi_mode_has_audio(&hd->cfg)); in hdmi_audio_stop()
621 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
623 if (hd->display_enabled) in hdmi_audio_stop()
624 hdmi_stop_audio_stream(hd); in hdmi_audio_stop()
625 hd->audio_playing = false; in hdmi_audio_stop()
627 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
633 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_config() local
636 mutex_lock(&hd->lock); in hdmi_audio_config()
638 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_config()
643 ret = hdmi4_audio_config(&hd->core, &hd->wp, dss_audio, in hdmi_audio_config()
644 hd->cfg.timings.pixelclock); in hdmi_audio_config()
646 hd->audio_configured = true; in hdmi_audio_config()
647 hd->audio_config = *dss_audio; in hdmi_audio_config()
650 mutex_unlock(&hd->lock); in hdmi_audio_config()