Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1378138lqj; Mon, 3 Jun 2024 22:15:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWRqKKDcX8zzzDCEp6OQLhsiY45vGOfFKuADlVB0DY1nJ2JAK7bMHElSnXoUo/em4k7dJsc95yQwaRYxvAtDewCRdPMCUS81kq8WYo/+w== X-Google-Smtp-Source: AGHT+IGDO22oc1eXKe8dKGSTa2ibXVpV+dRoeFiHurkMJn2/MkIgJ07EQriaYLD67JbrYQyAWyzZ X-Received: by 2002:ac8:5e53:0:b0:43a:d7a9:386 with SMTP id d75a77b69052e-4401999c429mr34644471cf.17.1717478119215; Mon, 03 Jun 2024 22:15:19 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-4401ad17cfesi13393911cf.481.2024.06.03.22.15.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 22:15:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chipsnmedia.com header.s=selector1 header.b=ThzMeHuZ; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-200048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200048-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D18151C22841 for ; Tue, 4 Jun 2024 05:15:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 55E3D13FD9B; Tue, 4 Jun 2024 05:11:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chipsnmedia.com header.i=@chipsnmedia.com header.b="ThzMeHuZ" Received: from SEVP216CU002.outbound.protection.outlook.com (mail-koreacentralazon11022018.outbound.protection.outlook.com [52.101.154.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F3A313E052; Tue, 4 Jun 2024 05:11:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.154.18 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717477908; cv=fail; b=XDbFgw+/5pEyQCZKQocUCa4NAQsTPidRpl/q6qMsyOvnK8EBlLYeWCqnb1DjcUtp0mYyVDyAXzmYSY6Pe98FSdYZhjfUhoy5tvm9bV8F19+/sbv13ODfT61JVSZaUYZTahGZFpVN1GrIhICxNkN0WGzWuU1qIyDd0QFM+3Tdm6Q= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717477908; c=relaxed/simple; bh=cv0fou/XWV81AXyGQz0fk1wU/LNHDn7XpV3UNu8iWlk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=tSZuDSZOxI4MczYYGqPqgHshjvEIRl+/f+254hs82CNgy6CQxocbtwAHAMJXsL3BuFxzvm0d5tJR/MvwFXTGDGjFzx+Ka27Y0pBrMUV0D1k0hakXAoqrrF2ppfZAN3FFq02PecjjH9A2iXRgBs3Jvr9pm8Bh4c/0zPdQIjbz+4c= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chipsnmedia.com; spf=pass smtp.mailfrom=chipsnmedia.com; dkim=pass (1024-bit key) header.d=chipsnmedia.com header.i=@chipsnmedia.com header.b=ThzMeHuZ; arc=fail smtp.client-ip=52.101.154.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chipsnmedia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chipsnmedia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m7TsZMhaRKSUeMsBFzndR1YCcKppbHf31y3lq6blmQM9QT02IaK6HvN0skJub/GVT7XJ2oTh1mLjn7n2rfXxm4kJuzLCazSzDq+tnUOmh/0d1eotgXfy8PS6bsZ7X8prgyUCMaCw6NfWkVmpCoF2e666CR/iI3Sps3IrBElpduDF3c+0RwIZBBgjkOPmAZuEK3yaVnc6MJxAbOksZpnv+qzGCrdCAIAIh6rAmgVaPXu0MuS/QLoF9oe1mVc5wjnpSOkdSkftrZMlyimYXCiWP93MhEbUA+Mk8mi/H29MRsjUzNeaqM+aq+d6HKJUhPOmCggAwjdSH3pwYEebYCvLiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YHIeEa0zLSmQQFnKk7KsbDjHEmwlqEJ2wWNK4xLlky0=; b=PuHbIWwsENGX1kFLf/TF6tYLhCeGz97xpFfYZUSrbVMWgpsM+bm++9M4ue+ReaRsCSTz3rtDCBRiuw6tPYOktNHayJipb9M7V8J8DLrRHynApcrQNaR32RcFtRkpER5gESEwSphXswonBIsch2iJF0gyjRzTOU7r8IsxHZA4tgRx6UntDD1llrslBM6CD3e11SujNexP8dg8CHZezj4DWC+PGWGBScMDSMVQL8gJdYHElQRsp4eTy/1giEiaKlnHD3qoHYN7DwmOlhlblV9dybLaesoy+Zr+AwbngCxVcvAae43v7BkuvOO49jRVGDaGJaEn4m2Oa3vDqw0lZ+9MHA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=chipsnmedia.com; dmarc=pass action=none header.from=chipsnmedia.com; dkim=pass header.d=chipsnmedia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chipsnmedia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YHIeEa0zLSmQQFnKk7KsbDjHEmwlqEJ2wWNK4xLlky0=; b=ThzMeHuZZvvpbc5djke4Dd8Ttn+j+iF8K3MkwreFCddVl0An1jcIbLalD9DjV4q8RTCcCbFU7sRswb4wSPN7SkSByEI0LmY43nxIVq0EQ9Q7q0fZ6U0zBr23sME/kHylJdnXRegfm1Xr4+VXNMvZO7QJXOd1BnHpkfwOR7s6uus= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=chipsnmedia.com; Received: from SL2P216MB1246.KORP216.PROD.OUTLOOK.COM (2603:1096:101:a::9) by SE2P216MB1537.KORP216.PROD.OUTLOOK.COM (2603:1096:101:2c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.27; Tue, 4 Jun 2024 05:11:43 +0000 Received: from SL2P216MB1246.KORP216.PROD.OUTLOOK.COM ([fe80::9e3d:ee20:8cc7:3c07]) by SL2P216MB1246.KORP216.PROD.OUTLOOK.COM ([fe80::9e3d:ee20:8cc7:3c07%4]) with mapi id 15.20.7633.021; Tue, 4 Jun 2024 05:11:43 +0000 From: Nas Chung To: mchehab@kernel.org, hverkuil@xs4all.nl, bryan.odonoghue@linaro.org, linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Nas Chung Subject: [PATCH v3 3/3] media: uapi: v4l: Fix V4L2_TYPE_IS_OUTPUT condition Date: Tue, 4 Jun 2024 14:11:20 +0900 Message-Id: <20240604051120.9441-3-nas.chung@chipsnmedia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240604051120.9441-1-nas.chung@chipsnmedia.com> References: <20240604051120.9441-1-nas.chung@chipsnmedia.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SE2P216CA0068.KORP216.PROD.OUTLOOK.COM (2603:1096:101:118::11) To SL2P216MB1246.KORP216.PROD.OUTLOOK.COM (2603:1096:101:a::9) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SL2P216MB1246:EE_|SE2P216MB1537:EE_ X-MS-Office365-Filtering-Correlation-Id: 8081110e-3bad-4b19-07b2-08dc8454d2e4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|52116005|366007|1800799015|38350700005; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?Y9Sh8bj+S+wNoSOsz0TU8cYG89uXzDFH0qM7BACzwRovCFR0p4cifmOQuJ+C?= =?us-ascii?Q?Q5jiGa1zusrHXbtQ9R+E+1rD+GGQkVt6OojhIpqnDXl+nE6eR4jJWRpFV2BA?= =?us-ascii?Q?hkc5yAOcNj68sHnoxRCzLxjddlQi4PrYOf6e5FoLcCukpAHs2KUFhvuxWoZm?= =?us-ascii?Q?5VzGtPAt56Qug0XoekvVbP02DYIrd4rpu+AdIS/H0Wsn7alADcOBfyDqiLwn?= =?us-ascii?Q?3YN8gAtKf663F9kaRWn9vw8/Z7mJqr7WIod9BqCNqKBqoeha1ySMBIBGlPCl?= =?us-ascii?Q?Frij1XjiNJy7shnJgdzqSZ5f5E8WnaZtWZfFheCJCcAtKs2g/K8ieD/JauFa?= =?us-ascii?Q?WmOn7CQh/vDuOyYOnGi+AsMZXiMYV8sNdQWoOdWjs6exTRhygFuHEo33s3TK?= =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u2LAHGKdqhDF3LZH26?= =?us-ascii?Q?1RbUTKZqq4REAF5HhpMkZQ7biJJ8+tVScxs2enp0qhKCLw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SL2P216MB1246.KORP216.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(376005)(52116005)(366007)(1800799015)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?TBydkJ0bjAJI3YpFkYJFQS2K8bmoXP7WV93M4v8CpmTxeERTK622CWCuWHx4?= =?us-ascii?Q?DjkB2+2vH5UmbhjY8j1QnHGGv7dQrKjA6hd0zAyq93+cNa268pqru8OJoygr?= =?us-ascii?Q?5UtDrrFsUPIRb2vkG0zGClkzmS4kAznAsxbjjeeWqKG+jwj9YUukZzFdWDl9?= =?us-ascii?Q?uuo69bWoaiSiCg8gXQO5gRdAHNHvJDmKT0SneprG7uAgaDgEhSBbPm7exEx0?= =?us-ascii?Q?dnRp7YuHgZvinDmUayWeAMyYAqBaowO+Q2ar1pbJy20SkyBKRxsC8cQmNvRS?= =?us-ascii?Q?LvYpT1DWctplu7yFIOt1DUluBrq2q5UTD7gNslCJllr542X/VYwkeBLlTVHR?= =?us-ascii?Q?tmtiHFIV8SXLHrwc1WkFUK2KQVW01EQ3Wwf0s7UM4NV6Z1rLnLfoDtP3huRx?= =?us-ascii?Q?K/VRGo0KB5VsWHb7xKh2IbD/abFM/xDp03DCuDiEoETXOKiDKAwLkIdduPe5?= =?us-ascii?Q?QbCqpO0YbiwSyV30ybdIkqWQZaufUxXaKzVh0Yej1S3H6nG9nOn2xIF4CG2N?= =?us-ascii?Q?tZ18jMcq55uc/hY136ZnCPRfXcL6CmhROTzVjpHEaEswpXldBwoCyFJc1zD0?= =?us-ascii?Q?96wpimBQjbTlXvwGl+vKK4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us-ascii?Q?0ZyTsyhkK9RMBghar2vqoVcs9BwuJyyozQkokz8kkleGypkjqzZaTvtJ0Ej2?= =?us-ascii?Q?+sLpmhtpoOWxt5FghBmuufdocAv7anzKTb6h49mhpvAxovj0k3+evuckU6Z8?= =?us-ascii?Q?FA=3D=3D?= X-OriginatorOrg: chipsnmedia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8081110e-3bad-4b19-07b2-08dc8454d2e4 X-MS-Exchange-CrossTenant-AuthSource: SL2P216MB1246.KORP216.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 05:11:43.1080 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4d70c8e9-142b-4389-b7f2-fa8a3c68c467 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 60RQYxpmB8ddwGp4oH6WoayX0+b0/h8nEUo+x/c80/zjawoTS7+mcuMn9Z5Mml+bywUy8BuziITFf4EfeHvvRckXbelsj11S7riY25loIbo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SE2P216MB1537 V4L2_TYPE_IS_OUTPUT() returns true for V4L2_BUF_TYPE_VIDEO_OVERLAY which definitely belongs to CAPTURE. Signed-off-by: Nas Chung --- include/uapi/linux/videodev2.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 51da63173a98..9e2bccaea462 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -171,7 +171,6 @@ enum v4l2_buf_type { #define V4L2_TYPE_IS_OUTPUT(type) \ ((type) == V4L2_BUF_TYPE_VIDEO_OUTPUT \ || (type) == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE \ - || (type) == V4L2_BUF_TYPE_VIDEO_OVERLAY \ || (type) == V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY \ || (type) == V4L2_BUF_TYPE_VBI_OUTPUT \ || (type) == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT \ -- 2.25.1