Lines Matching defs:ctrl
454 struct v4l2_control ctrl;
460 ctrl.id = V4L2_CID_TV_ENABLE_HDMI_AUDIO;
461 ctrl.value = !!enable;
462 ret = ioctl(adev->hdmi_drv_fd, VIDIOC_S_CTRL, &ctrl);
476 struct v4l2_control ctrl;
482 ctrl.id = V4L2_CID_TV_MAX_AUDIO_CHANNELS;
483 ret = ioctl(adev->hdmi_drv_fd, VIDIOC_G_CTRL, &ctrl);
489 ALOGV("%s ioctl %d got %d max channels", __func__, ret, ctrl.value);
491 if (ctrl.value != 6 && ctrl.value != 8)
495 if (ctrl.value == 8)
504 struct v4l2_control ctrl;
510 ctrl.id = V4L2_CID_TV_SET_NUM_CHANNELS;
511 ctrl.value = channels;
512 ret = ioctl(adev->hdmi_drv_fd, VIDIOC_S_CTRL, &ctrl);