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);
520 struct omap_hdmi *hd = dev_get_drvdata(dev);
522 mutex_lock(&hd->lock);
524 WARN_ON(hd->audio_abort_cb != NULL);
526 hd->audio_abort_cb = abort_cb;
528 mutex_unlock(&hd->lock);
535 struct omap_hdmi *hd = dev_get_drvdata(dev);
537 mutex_lock(&hd->lock);
538 hd->audio_abort_cb = NULL;
539 hd->audio_configured = false;
540 hd->audio_playing = false;
541 mutex_unlock(&hd->lock);
548 struct omap_hdmi *hd = dev_get_drvdata(dev);
551 spin_lock_irqsave(&hd->audio_playing_lock, flags);
553 if (hd->display_enabled) {
554 if (!hdmi_mode_has_audio(&hd->cfg))
557 hdmi_start_audio_stream(hd);
559 hd->audio_playing = true;
561 spin_unlock_irqrestore(&hd->audio_playing_lock, flags);
567 struct omap_hdmi *hd = dev_get_drvdata(dev);
570 WARN_ON(!hdmi_mode_has_audio(&hd->cfg));
572 spin_lock_irqsave(&hd->audio_playing_lock, flags);
574 if (hd->display_enabled)
575 hdmi_stop_audio_stream(hd);
576 hd->audio_playing = false;
578 spin_unlock_irqrestore(&hd->audio_playing_lock, flags);
584 struct omap_hdmi *hd = dev_get_drvdata(dev);
587 mutex_lock(&hd->lock);
589 if (hd->display_enabled) {
590 ret = hdmi4_audio_config(&hd->core, &hd->wp, dss_audio,
591 hd->cfg.vm.pixelclock);
596 hd->audio_configured = true;
597 hd->audio_config = *dss_audio;
599 mutex_unlock(&hd->lock);