Lines Matching full:hd

263 static void hdmi_start_audio_stream(struct omap_hdmi *hd)  in hdmi_start_audio_stream()  argument
265 REG_FLD_MOD(hd->wp.base, HDMI_WP_SYSCONFIG, 1, 3, 2); in hdmi_start_audio_stream()
266 hdmi_wp_audio_enable(&hd->wp, true); in hdmi_start_audio_stream()
267 hdmi_wp_audio_core_req_enable(&hd->wp, true); in hdmi_start_audio_stream()
270 static void hdmi_stop_audio_stream(struct omap_hdmi *hd) in hdmi_stop_audio_stream() argument
272 hdmi_wp_audio_core_req_enable(&hd->wp, false); in hdmi_stop_audio_stream()
273 hdmi_wp_audio_enable(&hd->wp, false); in hdmi_stop_audio_stream()
274 REG_FLD_MOD(hd->wp.base, HDMI_WP_SYSCONFIG, hd->wp_idlemode, 3, 2); in hdmi_stop_audio_stream()
503 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_startup() local
505 mutex_lock(&hd->lock); in hdmi_audio_startup()
507 WARN_ON(hd->audio_abort_cb != NULL); in hdmi_audio_startup()
509 hd->audio_abort_cb = abort_cb; in hdmi_audio_startup()
511 mutex_unlock(&hd->lock); in hdmi_audio_startup()
518 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_shutdown() local
520 mutex_lock(&hd->lock); in hdmi_audio_shutdown()
521 hd->audio_abort_cb = NULL; in hdmi_audio_shutdown()
522 hd->audio_configured = false; in hdmi_audio_shutdown()
523 hd->audio_playing = false; in hdmi_audio_shutdown()
524 mutex_unlock(&hd->lock); in hdmi_audio_shutdown()
531 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_start() local
534 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_start()
536 if (hd->display_enabled) { in hdmi_audio_start()
537 if (!hdmi_mode_has_audio(&hd->cfg)) in hdmi_audio_start()
540 hdmi_start_audio_stream(hd); in hdmi_audio_start()
542 hd->audio_playing = true; in hdmi_audio_start()
544 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_start()
550 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_stop() local
553 if (!hdmi_mode_has_audio(&hd->cfg)) in hdmi_audio_stop()
556 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
558 if (hd->display_enabled) in hdmi_audio_stop()
559 hdmi_stop_audio_stream(hd); in hdmi_audio_stop()
560 hd->audio_playing = false; in hdmi_audio_stop()
562 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
568 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_config() local
571 mutex_lock(&hd->lock); in hdmi_audio_config()
573 if (hd->display_enabled) { in hdmi_audio_config()
574 ret = hdmi5_audio_config(&hd->core, &hd->wp, dss_audio, in hdmi_audio_config()
575 hd->cfg.vm.pixelclock); in hdmi_audio_config()
580 hd->audio_configured = true; in hdmi_audio_config()
581 hd->audio_config = *dss_audio; in hdmi_audio_config()
583 mutex_unlock(&hd->lock); in hdmi_audio_config()