]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
media: cec.h: CEC_OP_REC_FLAG_ values were swapped
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 16 Sep 2019 05:47:41 +0000 (02:47 -0300)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:22:42 +0000 (14:22 -0300)
BugLink: https://bugs.launchpad.net/bugs/1857158
commit 806e0cdfee0b99efbb450f9f6e69deb7118602fc upstream.

CEC_OP_REC_FLAG_NOT_USED is 0 and CEC_OP_REC_FLAG_USED is 1, not the
other way around.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reported-by: Jiunn Chang <c0d1n61at3@gmail.com>
Cc: <stable@vger.kernel.org> # for v4.10 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
include/uapi/linux/cec.h

index b51fbe1941a7a136731687828a990ff6d3c0dc53..7f0aa455fdcaa7060db3d4e179bee0044558da3a 100644 (file)
@@ -791,8 +791,8 @@ struct cec_event {
 #define CEC_MSG_SELECT_DIGITAL_SERVICE                 0x93
 #define CEC_MSG_TUNER_DEVICE_STATUS                    0x07
 /* Recording Flag Operand (rec_flag) */
-#define CEC_OP_REC_FLAG_USED                           0
-#define CEC_OP_REC_FLAG_NOT_USED                       1
+#define CEC_OP_REC_FLAG_NOT_USED                       0
+#define CEC_OP_REC_FLAG_USED                           1
 /* Tuner Display Info Operand (tuner_display_info) */
 #define CEC_OP_TUNER_DISPLAY_INFO_DIGITAL              0
 #define CEC_OP_TUNER_DISPLAY_INFO_NONE                 1