Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 663dc7f3 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

[media] DocBook: document when to return ENODATA



ENODATA should be returned if the API used for getting, changing, querying
or enumerating the current video timings is not supported by the current input
or output.
This was decided during the 2012 Media Workshop.

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 2cca7d4e
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -229,6 +229,12 @@ intended for the user.</entry>
is out of bounds.</para>
is out of bounds.</para>
	</listitem>
	</listitem>
      </varlistentry>
      </varlistentry>
      <varlistentry>
	<term><errorcode>ENODATA</errorcode></term>
	<listitem>
	  <para>Digital video presets are not supported for this input or output.</para>
	</listitem>
      </varlistentry>
    </variablelist>
    </variablelist>
  </refsect1>
  </refsect1>
</refentry>
</refentry>
+6 −0
Original line number Original line Diff line number Diff line
@@ -106,6 +106,12 @@ application.</entry>
is out of bounds.</para>
is out of bounds.</para>
	</listitem>
	</listitem>
      </varlistentry>
      </varlistentry>
      <varlistentry>
	<term><errorcode>ENODATA</errorcode></term>
	<listitem>
	  <para>Digital video presets are not supported for this input or output.</para>
	</listitem>
      </varlistentry>
    </variablelist>
    </variablelist>
  </refsect1>
  </refsect1>
</refentry>
</refentry>
+6 −0
Original line number Original line Diff line number Diff line
@@ -378,6 +378,12 @@ system)</para></footnote></para></entry>
is out of bounds.</para>
is out of bounds.</para>
	</listitem>
	</listitem>
      </varlistentry>
      </varlistentry>
      <varlistentry>
	<term><errorcode>ENODATA</errorcode></term>
	<listitem>
	  <para>Standard video timings are not supported for this input or output.</para>
	</listitem>
      </varlistentry>
    </variablelist>
    </variablelist>
  </refsect1>
  </refsect1>
</refentry>
</refentry>
+6 −3
Original line number Original line Diff line number Diff line
@@ -77,6 +77,12 @@ If the preset is not supported, it returns an &EINVAL; </para>
<constant>VIDIOC_S_DV_PRESET</constant>,<constant>VIDIOC_S_DV_PRESET</constant> parameter was unsuitable.</para>
<constant>VIDIOC_S_DV_PRESET</constant>,<constant>VIDIOC_S_DV_PRESET</constant> parameter was unsuitable.</para>
	</listitem>
	</listitem>
      </varlistentry>
      </varlistentry>
      <varlistentry>
	<term><errorcode>ENODATA</errorcode></term>
	<listitem>
	  <para>Digital video presets are not supported for this input or output.</para>
	</listitem>
      </varlistentry>
      <varlistentry>
      <varlistentry>
	<term><errorcode>EBUSY</errorcode></term>
	<term><errorcode>EBUSY</errorcode></term>
	<listitem>
	<listitem>
@@ -104,7 +110,4 @@ If the preset is not supported, it returns an &EINVAL; </para>
      </tgroup>
      </tgroup>
    </table>
    </table>
  </refsect1>
  </refsect1>
  <refsect1>
    &return-value;
  </refsect1>
</refentry>
</refentry>
+9 −4
Original line number Original line Diff line number Diff line
@@ -56,7 +56,9 @@ a pointer to the &v4l2-dv-timings; structure as argument. If the ioctl is not su
or the timing values are not correct, the driver returns &EINVAL;.</para>
or the timing values are not correct, the driver returns &EINVAL;.</para>
<para>The <filename>linux/v4l2-dv-timings.h</filename> header can be used to get the
<para>The <filename>linux/v4l2-dv-timings.h</filename> header can be used to get the
timings of the formats in the <xref linkend="cea861" /> and <xref linkend="vesadmt" />
timings of the formats in the <xref linkend="cea861" /> and <xref linkend="vesadmt" />
standards.</para>
standards. If the current input or output does not support DV timings (e.g. if
&VIDIOC-ENUMINPUT; does not set the <constant>V4L2_IN_CAP_CUSTOM_TIMINGS</constant> flag), then
&ENODATA; is returned.</para>
  </refsect1>
  </refsect1>


  <refsect1>
  <refsect1>
@@ -70,6 +72,12 @@ standards.</para>
<constant>VIDIOC_S_DV_TIMINGS</constant> parameter was unsuitable.</para>
<constant>VIDIOC_S_DV_TIMINGS</constant> parameter was unsuitable.</para>
	</listitem>
	</listitem>
      </varlistentry>
      </varlistentry>
      <varlistentry>
	<term><errorcode>ENODATA</errorcode></term>
	<listitem>
	  <para>Digital video timings are not supported for this input or output.</para>
	</listitem>
      </varlistentry>
      <varlistentry>
      <varlistentry>
	<term><errorcode>EBUSY</errorcode></term>
	<term><errorcode>EBUSY</errorcode></term>
	<listitem>
	<listitem>
@@ -320,7 +328,4 @@ detected or used depends on the hardware.
      </tgroup>
      </tgroup>
    </table>
    </table>
  </refsect1>
  </refsect1>
  <refsect1>
    &return-value;
  </refsect1>
</refentry>
</refentry>
Loading