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

Commit 4e3cd001 authored by Sean Young's avatar Sean Young Committed by Mauro Carvalho Chehab
Browse files

media: lirc: remove LIRCCODE and LIRC_GET_LENGTH



LIRCCODE is a lirc mode where a driver produces driver-dependent
codes for receive and transmit. No driver uses this any more. The
LIRC_GET_LENGTH ioctl was used for this mode only.

Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 794348e8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -28,6 +28,10 @@ ignore define LIRC_CAN_SEND_MASK
ignore define LIRC_CAN_REC_MASK
ignore define LIRC_CAN_SET_REC_DUTY_CYCLE

# Obsolete ioctls

ignore ioctl LIRC_GET_LENGTH

# Undocumented macros

ignore define PULSE_BIT
@@ -40,3 +44,4 @@ ignore define LIRC_VALUE_MASK
ignore define LIRC_MODE2_MASK

ignore define LIRC_MODE_RAW
ignore define LIRC_MODE_LIRCCODE
+0 −15
Original line number Diff line number Diff line
@@ -72,21 +72,6 @@ on the following table.
        this packet will be sent, with the number of microseconds with
        no IR.

.. _lirc-mode-lirccode:

``LIRC_MODE_LIRCCODE``

    This mode can be used for IR receive and send.

    The IR signal is decoded internally by the receiver, or encoded by the
    transmitter. The LIRC interface represents the scancode as byte string,
    which might not be a u32, it can be any length. The value is entirely
    driver dependent. This mode is used by some older lirc drivers.

    The length of each code depends on the driver, which can be retrieved
    with :ref:`lirc_get_length`. This length is used both
    for transmitting and receiving IR.

.. _lirc-mode-pulse:

``LIRC_MODE_PULSE``
+0 −1
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ LIRC Function Reference
    lirc-set-send-duty-cycle
    lirc-get-timeout
    lirc-set-rec-timeout
    lirc-get-length
    lirc-set-rec-carrier
    lirc-set-rec-carrier-range
    lirc-set-send-carrier
+2 −5
Original line number Diff line number Diff line
@@ -62,8 +62,7 @@ LIRC features

``LIRC_CAN_REC_LIRCCODE``

    The driver is capable of receiving using
    :ref:`LIRC_MODE_LIRCCODE <lirc-mode-LIRCCODE>`.
    Unused. Kept just to avoid breaking uAPI.

.. _LIRC-CAN-SET-SEND-CARRIER:

@@ -170,9 +169,7 @@ LIRC features

``LIRC_CAN_SEND_LIRCCODE``

    The driver supports sending (also called as IR blasting or IR TX) using
    :ref:`LIRC_MODE_LIRCCODE <lirc-mode-LIRCCODE>`.

    Unused. Kept just to avoid breaking uAPI.

Return Value
============
+0 −44
Original line number Diff line number Diff line
.. -*- coding: utf-8; mode: rst -*-

.. _lirc_get_length:

*********************
ioctl LIRC_GET_LENGTH
*********************

Name
====

LIRC_GET_LENGTH - Retrieves the code length in bits.

Synopsis
========

.. c:function:: int ioctl( int fd, LIRC_GET_LENGTH, __u32 *length )
    :name: LIRC_GET_LENGTH

Arguments
=========

``fd``
    File descriptor returned by open().

``length``
    length, in bits


Description
===========

Retrieves the code length in bits (only for
:ref:`LIRC_MODE_LIRCCODE <lirc-mode-lirccode>`).
Reads on the device must be done in blocks matching the bit count.
The bit could should be rounded up so that it matches full bytes.


Return Value
============

On success 0 is returned, on error -1 and the ``errno`` variable is set
appropriately. The generic error codes are described at the
:ref:`Generic Error Codes <gen-errors>` chapter.
Loading