Lines Matching full:hd
262 static void hdmi_start_audio_stream(struct omap_hdmi *hd) in hdmi_start_audio_stream() argument
264 REG_FLD_MOD(hd->wp.base, HDMI_WP_SYSCONFIG, 1, 3, 2); in hdmi_start_audio_stream()
265 hdmi_wp_audio_enable(&hd->wp, true); in hdmi_start_audio_stream()
266 hdmi_wp_audio_core_req_enable(&hd->wp, true); in hdmi_start_audio_stream()
269 static void hdmi_stop_audio_stream(struct omap_hdmi *hd) in hdmi_stop_audio_stream() argument
271 hdmi_wp_audio_core_req_enable(&hd->wp, false); in hdmi_stop_audio_stream()
272 hdmi_wp_audio_enable(&hd->wp, false); in hdmi_stop_audio_stream()
273 REG_FLD_MOD(hd->wp.base, HDMI_WP_SYSCONFIG, hd->wp_idlemode, 3, 2); in hdmi_stop_audio_stream()
502 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_startup() local
504 mutex_lock(&hd->lock); in hdmi_audio_startup()
506 WARN_ON(hd->audio_abort_cb != NULL); in hdmi_audio_startup()
508 hd->audio_abort_cb = abort_cb; in hdmi_audio_startup()
510 mutex_unlock(&hd->lock); in hdmi_audio_startup()
517 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_shutdown() local
519 mutex_lock(&hd->lock); in hdmi_audio_shutdown()
520 hd->audio_abort_cb = NULL; in hdmi_audio_shutdown()
521 hd->audio_configured = false; in hdmi_audio_shutdown()
522 hd->audio_playing = false; in hdmi_audio_shutdown()
523 mutex_unlock(&hd->lock); in hdmi_audio_shutdown()
530 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_start() local
533 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_start()
535 if (hd->display_enabled) { in hdmi_audio_start()
536 if (!hdmi_mode_has_audio(&hd->cfg)) in hdmi_audio_start()
539 hdmi_start_audio_stream(hd); in hdmi_audio_start()
541 hd->audio_playing = true; in hdmi_audio_start()
543 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_start()
549 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_stop() local
552 if (!hdmi_mode_has_audio(&hd->cfg)) in hdmi_audio_stop()
555 spin_lock_irqsave(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
557 if (hd->display_enabled) in hdmi_audio_stop()
558 hdmi_stop_audio_stream(hd); in hdmi_audio_stop()
559 hd->audio_playing = false; in hdmi_audio_stop()
561 spin_unlock_irqrestore(&hd->audio_playing_lock, flags); in hdmi_audio_stop()
567 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_config() local
570 mutex_lock(&hd->lock); in hdmi_audio_config()
572 if (hd->display_enabled) { in hdmi_audio_config()
573 ret = hdmi5_audio_config(&hd->core, &hd->wp, dss_audio, in hdmi_audio_config()
574 hd->cfg.vm.pixelclock); in hdmi_audio_config()
579 hd->audio_configured = true; in hdmi_audio_config()
580 hd->audio_config = *dss_audio; in hdmi_audio_config()
582 mutex_unlock(&hd->lock); in hdmi_audio_config()