blob: bbeb7b5f516b1b056cc96716985bb8d3c6c8182a [file] [log] [blame]
Markus Heiser5377d912016-06-30 15:18:56 +02001.. -*- coding: utf-8; mode: rst -*-
2
Mauro Carvalho Chehabaf4a4d02016-07-01 13:42:29 -03003.. _VIDIOC_LOG_STATUS:
Markus Heiser5377d912016-06-30 15:18:56 +02004
5***********************
6ioctl VIDIOC_LOG_STATUS
7***********************
8
Mauro Carvalho Chehab15e7d612016-07-05 15:14:35 -03009Name
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030010====
Markus Heiser5377d912016-06-30 15:18:56 +020011
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030012VIDIOC_LOG_STATUS - Log driver status information
Markus Heiser5377d912016-06-30 15:18:56 +020013
Mauro Carvalho Chehab15e7d612016-07-05 15:14:35 -030014
15Synopsis
Markus Heiser5377d912016-06-30 15:18:56 +020016========
17
Mauro Carvalho Chehab41d80462016-08-19 16:53:38 -030018.. c:function:: int ioctl( int fd, VIDIOC_LOG_STATUS)
19 :name: VIDIOC_LOG_STATUS
Markus Heiser5377d912016-06-30 15:18:56 +020020
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030021
Mauro Carvalho Chehab15e7d612016-07-05 15:14:35 -030022Arguments
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030023=========
24
Mauro Carvalho Chehab41d80462016-08-19 16:53:38 -030025``fd``
26 File descriptor returned by :ref:`open() <func-open>`.
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030027
28
Mauro Carvalho Chehab15e7d612016-07-05 15:14:35 -030029Description
Markus Heiser5377d912016-06-30 15:18:56 +020030===========
31
32As the video/audio devices become more complicated it becomes harder to
33debug problems. When this ioctl is called the driver will output the
34current device status to the kernel log. This is particular useful when
35dealing with problems like no sound, no video and incorrectly tuned
36channels. Also many modern devices autodetect video and audio standards
37and this ioctl will report what the device thinks what the standard is.
38Mismatches may give an indication where the problem is.
39
40This ioctl is optional and not all drivers support it. It was introduced
41in Linux 2.6.15.
42
43
Mauro Carvalho Chehab15e7d612016-07-05 15:14:35 -030044Return Value
Markus Heiser5377d912016-06-30 15:18:56 +020045============
46
47On success 0 is returned, on error -1 and the ``errno`` variable is set
48appropriately. The generic error codes are described at the
49:ref:`Generic Error Codes <gen-errors>` chapter.