Lines Matching refs:hd

330 static void hdmi_start_audio_stream(struct omap_hdmi *hd)
333 hdmi_wp_audio_enable(&hd->wp, true);
334 hdmi_wp_audio_core_req_enable(&hd->wp, true);
337 static void hdmi_stop_audio_stream(struct omap_hdmi *hd)
339 hdmi_wp_audio_core_req_enable(&hd->wp, false);
340 hdmi_wp_audio_enable(&hd->wp, false);
341 REG_FLD_MOD(hd->wp.base, HDMI_WP_SYSCONFIG, hd->wp_idlemode, 3, 2);
584 struct omap_hdmi *hd = dev_get_drvdata(dev);
587 mutex_lock(&hd->lock);
589 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) {
594 hd->audio_abort_cb = abort_cb;
597 mutex_unlock(&hd->lock);
604 struct omap_hdmi *hd = dev_get_drvdata(dev);
606 mutex_lock(&hd->lock);
607 hd->audio_abort_cb = NULL;
608 hd->audio_configured = false;
609 hd->audio_playing = false;
610 mutex_unlock(&hd->lock);
617 struct omap_hdmi *hd = dev_get_drvdata(dev);
620 WARN_ON(!hdmi_mode_has_audio(&hd->cfg));
622 spin_lock_irqsave(&hd->audio_playing_lock, flags);
624 if (hd->display_enabled)
625 hdmi_start_audio_stream(hd);
626 hd->audio_playing = true;
628 spin_unlock_irqrestore(&hd->audio_playing_lock, flags);
634 struct omap_hdmi *hd = dev_get_drvdata(dev);
637 WARN_ON(!hdmi_mode_has_audio(&hd->cfg));
639 spin_lock_irqsave(&hd->audio_playing_lock, flags);
641 if (hd->display_enabled)
642 hdmi_stop_audio_stream(hd);
643 hd->audio_playing = false;
645 spin_unlock_irqrestore(&hd->audio_playing_lock, flags);
651 struct omap_hdmi *hd = dev_get_drvdata(dev);
654 mutex_lock(&hd->lock);
656 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) {
661 ret = hdmi5_audio_config(&hd->core, &hd->wp, dss_audio,
662 hd->cfg.timings.pixelclock);
665 hd->audio_configured = true;
666 hd->audio_config = *dss_audio;
669 mutex_unlock(&hd->lock);