Lines Matching defs:ctrl
437 struct v4l2_control ctrl;
443 ctrl.id = V4L2_CID_TV_ENABLE_HDMI_AUDIO;
444 ctrl.value = !!enable;
445 ret = ioctl(adev->hdmi_drv_fd, VIDIOC_S_CTRL, &ctrl);
456 struct v4l2_control ctrl;
462 ctrl.id = V4L2_CID_TV_MAX_AUDIO_CHANNELS;
463 ret = ioctl(adev->hdmi_drv_fd, VIDIOC_G_CTRL, &ctrl);
469 ALOGV("%s ioctl %d got %d max channels", __func__, ret, ctrl.value);
471 if (ctrl.value != 6 && ctrl.value != 8)
475 if (ctrl.value == 8)
484 struct v4l2_control ctrl;
490 ctrl.id = V4L2_CID_TV_SET_NUM_CHANNELS;
491 ctrl.value = channels;
492 ret = ioctl(adev->hdmi_drv_fd, VIDIOC_S_CTRL, &ctrl);