Home | History | Annotate | Download | only in libhwc

Lines Matching refs:hl

471                              hdmi_layer_t &hl)
473 if (hl.enabled)
481 if (exynos_v4l2_reqbufs(hl.fd, &reqbuf) < 0) {
482 ALOGE("%s: layer%d: reqbufs failed %d", __func__, hl.id, errno);
487 ALOGE("%s: layer%d: didn't get buffer", __func__, hl.id);
491 if (hl.id == 1) {
492 if (exynos_v4l2_s_ctrl(hl.fd, V4L2_CID_TV_PIXEL_BLEND_ENABLE, 1) < 0) {
494 hl.id, errno);
499 ALOGV("%s: layer%d enabled", __func__, hl.id);
500 hl.enabled = true;
505 hdmi_layer_t &hl)
507 if (!hl.enabled)
510 if (hl.streaming) {
511 if (exynos_v4l2_streamoff(hl.fd, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) < 0)
512 ALOGE("%s: layer%d: streamoff failed %d", __func__, hl.id, errno);
513 hl.streaming = false;
520 if (exynos_v4l2_reqbufs(hl.fd, &reqbuf) < 0)
521 ALOGE("%s: layer%d: reqbufs failed %d", __func__, hl.id, errno);
523 memset(&hl.cfg, 0, sizeof(hl.cfg));
524 hl.current_buf = 0;
525 hl.queued_buf = 0;
526 hl.enabled = false;
528 ALOGV("%s: layer%d disabled", __func__, hl.id);
618 hdmi_layer_t &hl,
633 if (gsc_src_cfg_changed(hl.cfg, cfg)) {
634 hdmi_disable_layer(dev, hl);
644 ret = exynos_v4l2_s_fmt(hl.fd, &fmt);
646 ALOGE("%s: layer%d: s_fmt failed %d", __func__, hl.id, errno);
652 if (hl.id == 0)
666 hdmi_enable_layer(dev, hl);
668 ALOGV("HDMI layer%d configuration:", hl.id);
670 hl.cfg = cfg;
676 if (hl.queued_buf == NUM_HDMI_BUFFERS) {
683 ret = exynos_v4l2_dqbuf(hl.fd, &buffer);
685 ALOGE("%s: layer%d: dqbuf failed %d", __func__, hl.id, errno);
688 hl.queued_buf--;
693 buffer.index = hl.current_buf;
701 if (exynos_v4l2_qbuf(hl.fd, &buffer) < 0) {
702 ALOGE("%s: layer%d: qbuf failed %d", __func__, hl.id, errno);
712 hl.queued_buf++;
713 hl.current_buf = (hl.current_buf + 1) % NUM_HDMI_BUFFERS;
715 if (!hl.streaming) {
716 if (exynos_v4l2_streamon(hl.fd, buffer.type) < 0) {
717 ALOGE("%s: layer%d: streamon failed %d", __func__, hl.id, errno);
721 hl.streaming = true;