From patchwork Thu Jun 24 04:06:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deborah Brouwer X-Patchwork-Id: 12340859 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D043C48BDF for ; Thu, 24 Jun 2021 04:06:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 09457613D0 for ; Thu, 24 Jun 2021 04:06:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229799AbhFXEJK (ORCPT ); Thu, 24 Jun 2021 00:09:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbhFXEJK (ORCPT ); Thu, 24 Jun 2021 00:09:10 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 454E6C061574 for ; Wed, 23 Jun 2021 21:06:51 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id c7-20020a17090ad907b029016faeeab0ccso5061249pjv.4 for ; Wed, 23 Jun 2021 21:06:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7wjgxXTuvTHga7zAZfu9Y6J0O7Z6sVCSgLZP4AKyGRs=; b=lcwMPiWFuSnnO3tXqlh/FZUnkhMCSzbhkeJkH0HCmhuGkHf+CSbEvmHcn6mIuXd8zL xwQWgqkJzC8RQkR5HRrDdbQ6fpPUjgx//CaMVaQ2gdPszU7bcqwGXtdWRF0EAhThGLAI klINU2t0drpDc9NW8zgMVvuYEdEPAMVs3aLigM7ZpnLT9SR09bQE9Y1ujRb+iLzkSA+l i69iZVqk+/haxpWuRn8d1nRmo+2SpvUHOPLSynwgEC9N28cQsKWD7rgd7lXe81gndcR2 gs/dut84aPyqg9zPSzeY3JNBQYv+5KB9kG/W56bnZdZyw6TDzokb/Mo1lekN0MYJnJbe 8tsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7wjgxXTuvTHga7zAZfu9Y6J0O7Z6sVCSgLZP4AKyGRs=; b=oyXjnVvQgrn9MPaApWPT7681uiMYZhP9bz6cWR2QleLCEtypDphPav7wRkgl9ZMPot Pg4/wttKFjyku1L5yxD1/HI0dTiImp0jdPoyf60a8m/Yrv9lbrvHeyXNdykzKUEghuUN /5mEzHPG5a/22QXnp5DX9lmjIrjKBNl1aE01ZAgSo2aJOV7oKjAVjNgaeVw4uXk0zWdn w1l9+2uZM6BrE2iQOZkoUR0re7yDUl8MeOvzHOxoPQ+NFRes+LsoKQHGQtZ4dWQs8J1C SK3NzaHHquqW7zHFKS104ySNKYHsnONQfcU4fWPn3+ph6EWGPb7eunDMmvZJzk1X9b+E gS8w== X-Gm-Message-State: AOAM530PbulmFg69U1KwlAuSX1PktXHV5cJ4KTCk7vJz1vNBwCH8Zkng pbcJjBXGemqmA1LXm+EdnY095p9fhkftYw== X-Google-Smtp-Source: ABdhPJywhHxCk9x5LnRy0kb7YJXzOZgsjzQ+mfko9ZY3aqunf9paRTX85uzHFY8WFbxWUHErrcuJnQ== X-Received: by 2002:a17:90a:6b01:: with SMTP id v1mr3207067pjj.10.1624507610756; Wed, 23 Jun 2021 21:06:50 -0700 (PDT) Received: from ada-comp.hitronhub.home (S0106ac202ecb0523.gv.shawcable.net. [70.67.120.89]) by smtp.gmail.com with ESMTPSA id s20sm7094320pjn.23.2021.06.23.21.06.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Jun 2021 21:06:50 -0700 (PDT) From: Deborah Brouwer To: linux-media@vger.kernel.org Cc: hverkuil@xs4all.nl, jaffe1@gmail.com, Deborah Brouwer Subject: [PATCH v4 0/3] cec: One Touch Record tests Date: Wed, 23 Jun 2021 21:06:41 -0700 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This is part of an Outreachy project to expand the testing of One Touch Record messages as handled by CEC adapters. Changes since v3: Patch 1/3: cec-follower: use log_addr_type to get local device type - new patch Patch 2/3: cec: expand One Touch Record tests - this patch combines the previously separate patches for One Touch Record TV Screen and On/Off tests - accurately check if the initiator is a recording device - add digital service and analog service validation - add invalid operand tests - create a new helper function to send invalid record on operands without the 10s reply timeout - always require feature abort in response to an invalid operand Patch 3/3 cec: add One Touch Record Standby tests - no change Changes since v2: Patch 1/3 cec: expand One Touch Record TV Screen test: - replace numbers with corresponding defines Patch 2/3 cec: expand One Touch Record On/Off tests - rename commit to reflect expanded scope of tests - increase msg timeout for reply to 10s - rename helper function and invert return value - use primary device type to identify remote follower - use logical address type to identify remote initiator - limit range of accepted external plug numbers to 6 - disallow external physical address source - keep track of whether the device is recording - add additional invalid tests Patch 3/3 cec: add One Touch Record Standby tests - new patch Changes since v1: Patch 1/2 cec: expand One Touch Record TV Screen test: - add space after 'switch' - add "return" before fail - check analog broadcast type and broadcast system operand - add a comment when follower ignores message Patch 2/2 cec: expand One Touch Record On test - new patch Deborah Brouwer (3): cec-follower: use log_addr_type to get local device type cec: expand One Touch Record tests cec: add One Touch Record Standby tests utils/cec-compliance/cec-compliance.cpp | 1 + utils/cec-compliance/cec-compliance.h | 1 + utils/cec-compliance/cec-test-power.cpp | 63 ++++ utils/cec-compliance/cec-test.cpp | 366 ++++++++++++++++++++++-- utils/cec-follower/cec-follower.cpp | 1 + utils/cec-follower/cec-follower.h | 7 +- utils/cec-follower/cec-processing.cpp | 19 +- utils/cec-follower/cec-tuner.cpp | 233 +++++++++++++-- 8 files changed, 635 insertions(+), 56 deletions(-)