Lines Matching refs:hd

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