Lines Matching refs:hd

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