Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3965264ioo; Wed, 25 May 2022 11:40:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrA8eEefTUeFSpKTGGEV5qkuabwLMSartDS8H1qBusebLnxHVWypSkQOXnm7oj2mHW1/WW X-Received: by 2002:a17:906:3087:b0:6f4:2901:608a with SMTP id 7-20020a170906308700b006f42901608amr30999484ejv.646.1653504041913; Wed, 25 May 2022 11:40:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653504041; cv=none; d=google.com; s=arc-20160816; b=V1tA5gG28m1KFGCW/Fiq26p2FtBnHFOzfp/mw3S4IHIHA44HhD3akl0okVO/7hIkN3 VSd/a2ih+kxt9LqTgbGT+7K39RfNTG2zaqntqPBjwxHOoJiDJ7Uk+CBk4wqi1+OcZRsB 5CXGr5yZ721zn/NYD+Oz/G5vaG5BPd5oT28YFkU+S5w+bauplIhwcuX5z1SYPoM5TwSP nUEH8ze0aPEACC+vxn7FGKiNhXHmk2iq8RTxbT4pSghnxAB7Hnqd2Eb5Jij/vGf/eksx elHV3tTtqTsb6Vr+e+E5GwShMQ3OQYIlzkdpqGBVyIXg9mhJLN1Z8rEwr9Gjs7+16JWP U3CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Lk8ll/3dvktY12815bS3l6ioJOFrpLMlEpnItPLP5k0=; b=KFSq6kQ6cMj2574DqS5/izEHCVXnt2y6YsBQd5BMOtPbpcfcuAIBwFDltbmKcru5bW W+o53VFubEDB+RjSGzOdt7mE27TvHmXAMzm7NeoPSFaZdUa0A+svRg+zUS8yKgXFDnrf yF6ZCH5zvDlFysL4G6UsPwMRP9PbTANEm/3J03d8XtijWeG+JUrB2c0xgwihY4IleQjm esE+glZVRkMPRxreybVSSjdRAyXinB9yb5bIddPnPc2E11jpX8COB6kY9Q5jD1+XXak7 7KGIvVJ1xli2qMTCs3+OZKwX/G9lQ7sKjc420ZjbvBDkOAhXlAjBSHCsw4XPkg9rTOsO AmvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=N3AXUqtB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g10-20020a056402320a00b0042bcf62f97asi1634962eda.106.2022.05.25.11.40.08; Wed, 25 May 2022 11:40:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=N3AXUqtB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242167AbiEYMcP (ORCPT + 99 others); Wed, 25 May 2022 08:32:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236767AbiEYMcI (ORCPT ); Wed, 25 May 2022 08:32:08 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 639A56D4D9; Wed, 25 May 2022 05:32:07 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: kholk11) with ESMTPSA id AC9251F44DDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1653481926; bh=KKdgy9/aog9w2qO3pPEy2MN18u1D22mqf36NY6y+1tQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=N3AXUqtBIPjyyZiUQSQ3UKLRlNb1+ta9KrXc3ZG5Pj2NXlpsWDh57ypRCyxBT9ZHt 8Bk5ZDFmS7Wlu9Yf4E7SAhE/+czJouD42S8MzxON0JFQw954iX+y18oQeLPOB9n+Xu kGcg+Y2mUIiRDuPI8xlMDbjR6V2OI3pntHYGkwQCa2LiTWTejpzmAVPuyBZPnkfNj7 bETGwxcd3g0w3tJ4jX8eio3c/x7dkyDWOaD8VRTMDifDMavcJzxjulfhzDxRAB/JcE DsboFWBlIzQ2szds3t70nWQWCl7aZX2rA0GynN0DWgIEJ2J/f09+qJX81KbOXspld0 pXPHxXGdKDUZw== Message-ID: <7ae7e42c-9225-2ff2-f167-8235ab4cadc3@collabora.com> Date: Wed, 25 May 2022 14:32:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v10 05/21] video/hdmi: Add audio_infoframe packing for DP Content-Language: en-US To: Guillaume Ranquet , Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Matthias Brugger , Chunfeng Yun , Kishon Vijay Abraham I , Vinod Koul , Helge Deller , CK Hu , Jitao shi Cc: Markus Schneider-Pargmann , dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, linux-fbdev@vger.kernel.org References: <20220523104758.29531-1-granquet@baylibre.com> <20220523104758.29531-6-granquet@baylibre.com> From: AngeloGioacchino Del Regno In-Reply-To: <20220523104758.29531-6-granquet@baylibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 23/05/22 12:47, Guillaume Ranquet ha scritto: > From: Markus Schneider-Pargmann > > Similar to HDMI, DP uses audio infoframes as well which are structured > very similar to the HDMI ones. > > This patch adds a helper function to pack the HDMI audio infoframe for > DP, called hdmi_audio_infoframe_pack_for_dp(). > hdmi_audio_infoframe_pack_only() is split into two parts. One of them > packs the payload only and can be used for HDMI and DP. > > Also constify the frame parameter in hdmi_audio_infoframe_check() as > it is passed to hdmi_audio_infoframe_check_only() which expects a const. > > Signed-off-by: Markus Schneider-Pargmann > Signed-off-by: Guillaume Ranquet > --- > drivers/video/hdmi.c | 82 ++++++++++++++++++++++++++-------- > include/drm/dp/drm_dp_helper.h | 2 + this has been moved... again... this time it's include/drm/display/drm_dp_helper.h > include/linux/hdmi.h | 7 ++- > 3 files changed, 71 insertions(+), 20 deletions(-) >