From patchwork Tue Jul 10 08:45:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 10516571 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9C06D601D4 for ; Tue, 10 Jul 2018 08:45:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 87BD328A78 for ; Tue, 10 Jul 2018 08:45:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C4A928BBB; Tue, 10 Jul 2018 08:45:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2796128A78 for ; Tue, 10 Jul 2018 08:45:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751548AbeGJIpb (ORCPT ); Tue, 10 Jul 2018 04:45:31 -0400 Received: from lb2-smtp-cloud8.xs4all.net ([194.109.24.25]:44698 "EHLO lb2-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751715AbeGJIpO (ORCPT ); Tue, 10 Jul 2018 04:45:14 -0400 Received: from marune.fritz.box ([IPv6:2001:983:e9a7:1:e904:375f:eccf:b43d]) by smtp-cloud8.xs4all.net with ESMTPA id coGmfpjdfoj71coGnfctNt; Tue, 10 Jul 2018 10:45:13 +0200 From: Hans Verkuil To: linux-media@vger.kernel.org Cc: Hans Verkuil Subject: [PATCHv6 06/12] media.h: add MEDIA_ENT_F_DV_ENCODER Date: Tue, 10 Jul 2018 10:45:06 +0200 Message-Id: <20180710084512.99238-7-hverkuil@xs4all.nl> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180710084512.99238-1-hverkuil@xs4all.nl> References: <20180710084512.99238-1-hverkuil@xs4all.nl> X-CMAE-Envelope: MS4wfOcAnhDxXXHoqYaKh8F+JJXx+4RJ21bx1NgWhDkIGoDw0sNBF+SnTD8BIAcuKTrjMQTC9OHMYCEr6n/ecJcikZOQhHPQl6DTyOdghbA/ODjms61T7/bf LY4VFnHn+aCnm8TTlY6ecGR7DuB6+Wynfu6pJorkEzzoJolgiku5sSNZpkHN/QsUp2mq30xFv9DasWNn7tgi43G5w9FwyodltISxWoWrwuiPuE8SaHCrO0Qe FKENlKfTDZM8y831n5154HqVLgljEh6/ThcswZmm2Ic= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Hans Verkuil Add a new function for digital video encoders such as HDMI transmitters. Signed-off-by: Hans Verkuil Acked-by: Sakari Ailus Reviewed-by: Laurent Pinchart --- Documentation/media/uapi/mediactl/media-types.rst | 7 +++++++ include/uapi/linux/media.h | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/media/uapi/mediactl/media-types.rst b/Documentation/media/uapi/mediactl/media-types.rst index c11b0c7e890b..e90d4d0a7f8b 100644 --- a/Documentation/media/uapi/mediactl/media-types.rst +++ b/Documentation/media/uapi/mediactl/media-types.rst @@ -206,6 +206,13 @@ Types and flags used to represent the media graph elements and output it in some digital video standard, with appropriate timing signals. + * - ``MEDIA_ENT_F_DV_ENCODER`` + - Digital video encoder. The basic function of the video encoder is + to accept digital video from some digital video standard with + appropriate timing signals (usually a parallel video bus with sync + signals) and output this to a digital video output connector such + as HDMI or DisplayPort. + .. tabularcolumns:: |p{5.5cm}|p{12.0cm}| .. _media-entity-flag: diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h index 99f5e0978ebb..6f594fa238c2 100644 --- a/include/uapi/linux/media.h +++ b/include/uapi/linux/media.h @@ -90,10 +90,11 @@ struct media_device_info { #define MEDIA_ENT_F_LENS (MEDIA_ENT_F_OLD_SUBDEV_BASE + 3) /* - * Video decoder functions + * Video decoder/encoder functions */ #define MEDIA_ENT_F_ATV_DECODER (MEDIA_ENT_F_OLD_SUBDEV_BASE + 4) #define MEDIA_ENT_F_DV_DECODER (MEDIA_ENT_F_BASE + 0x6001) +#define MEDIA_ENT_F_DV_ENCODER (MEDIA_ENT_F_BASE + 0x6002) /* * Digital TV, analog TV, radio and/or software defined radio tuner functions.