Home | History | Annotate | Download | only in libhwc

Lines Matching refs:hl

482                              hdmi_layer_t &hl)
484 if (hl.enabled)
492 if (exynos_v4l2_reqbufs(hl.fd, &reqbuf) < 0) {
493 ALOGE("%s: layer%d: reqbufs failed %d", __func__, hl.id, errno);
498 ALOGE("%s: layer%d: didn't get buffer", __func__, hl.id);
502 if (hl.id == 1) {
503 if (exynos_v4l2_s_ctrl(hl.fd, V4L2_CID_TV_PIXEL_BLEND_ENABLE, 1) < 0) {
505 hl.id, errno);
510 ALOGV("%s: layer%d enabled", __func__, hl.id);
511 hl.enabled = true;
516 hdmi_layer_t &hl)
518 if (!hl.enabled)
521 if (hl.streaming) {
522 if (exynos_v4l2_streamoff(hl.fd, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) < 0)
523 ALOGE("%s: layer%d: streamoff failed %d", __func__, hl.id, errno);
524 hl.streaming = false;
531 if (exynos_v4l2_reqbufs(hl.fd, &reqbuf) < 0)
532 ALOGE("%s: layer%d: reqbufs failed %d", __func__, hl.id, errno);
534 memset(&hl.cfg, 0, sizeof(hl.cfg));
535 hl.current_buf = 0;
536 hl.queued_buf = 0;
537 hl.enabled = false;
539 ALOGV("%s: layer%d disabled", __func__, hl.id);
543 hdmi_layer_t &hl)
545 if (exynos_v4l2_s_ctrl(hl.fd, V4L2_CID_TV_LAYER_PRIO, 0) < 0)
547 hl.id, errno);
551 hdmi_layer_t &hl)
553 int prio = hl.id ? 3 : 2;
555 if (exynos_v4l2_s_ctrl(hl.fd, V4L2_CID_TV_LAYER_PRIO, prio) < 0)
557 hl.id, errno);
651 hdmi_layer_t &hl,
666 if (gsc_src_cfg_changed(hl.cfg, cfg)) {
667 hdmi_disable_layer(dev, hl);
677 ret = exynos_v4l2_s_fmt(hl.fd, &fmt);
679 ALOGE("%s: layer%d: s_fmt failed %d", __func__, hl.id, errno);
685 if (hl.id == 0)
699 hdmi_enable_layer(dev, hl);
701 ALOGV("HDMI layer%d configuration:", hl.id);
703 hl.cfg = cfg;
709 if (hl.queued_buf == NUM_HDMI_BUFFERS) {
716 ret = exynos_v4l2_dqbuf(hl.fd, &buffer);
718 ALOGE("%s: layer%d: dqbuf failed %d", __func__, hl.id, errno);
721 hl.queued_buf--;
726 buffer.index = hl.current_buf;
734 if (exynos_v4l2_qbuf(hl.fd, &buffer) < 0) {
735 ALOGE("%s: layer%d: qbuf failed %d", __func__, hl.id, errno);
745 hl.queued_buf++;
746 hl.current_buf = (hl.current_buf + 1) % NUM_HDMI_BUFFERS;
748 if (!hl.streaming) {
749 if (exynos_v4l2_streamon(hl.fd, buffer.type) < 0) {
750 ALOGE("%s: layer%d: streamon failed %d", __func__, hl.id, errno);
754 hl.streaming = true;