Lines Matching refs:hd

302 static void hdmi_start_audio_stream(struct omap_hdmi *hd)
304 hdmi_wp_audio_enable(&hd->wp, true);
305 hdmi4_audio_start(&hd->core, &hd->wp);
308 static void hdmi_stop_audio_stream(struct omap_hdmi *hd)
310 hdmi4_audio_stop(&hd->core, &hd->wp);
311 hdmi_wp_audio_enable(&hd->wp, false);
552 struct omap_hdmi *hd = dev_get_drvdata(dev);
555 mutex_lock(&hd->lock);
557 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) {
562 hd->audio_abort_cb = abort_cb;
565 mutex_unlock(&hd->lock);
572 struct omap_hdmi *hd = dev_get_drvdata(dev);
574 mutex_lock(&hd->lock);
575 hd->audio_abort_cb = NULL;
576 hd->audio_configured = false;
577 hd->audio_playing = false;
578 mutex_unlock(&hd->lock);
585 struct omap_hdmi *hd = dev_get_drvdata(dev);
588 WARN_ON(!hdmi_mode_has_audio(&hd->cfg));
590 spin_lock_irqsave(&hd->audio_playing_lock, flags);
592 if (hd->display_enabled)
593 hdmi_start_audio_stream(hd);
594 hd->audio_playing = true;
596 spin_unlock_irqrestore(&hd->audio_playing_lock, flags);
602 struct omap_hdmi *hd = dev_get_drvdata(dev);
605 WARN_ON(!hdmi_mode_has_audio(&hd->cfg));
607 spin_lock_irqsave(&hd->audio_playing_lock, flags);
609 if (hd->display_enabled)
610 hdmi_stop_audio_stream(hd);
611 hd->audio_playing = false;
613 spin_unlock_irqrestore(&hd->audio_playing_lock, flags);
619 struct omap_hdmi *hd = dev_get_drvdata(dev);
622 mutex_lock(&hd->lock);
624 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) {
629 ret = hdmi4_audio_config(&hd->core, &hd->wp, dss_audio,
630 hd->cfg.timings.pixelclock);
632 hd->audio_configured = true;
633 hd->audio_config = *dss_audio;
636 mutex_unlock(&hd->lock);