From patchwork Wed Dec 8 21:17:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12665277 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D64C7C433EF for ; Wed, 8 Dec 2021 21:19:51 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id B77752670; Wed, 8 Dec 2021 22:18:59 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B77752670 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1638998389; bh=2FpH5VoXr9ueY5bDrwm6B2Tr7onF5v+ChxxrbUuG+c4=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=tmNNpid3Jrve/B+p9rJCDq84ppyOrtfmJaABYRQ8JpdAgWp1KM6B5odGrVdfAWJGr rkQK8iAWSufv5l4N6IEFWHDYaJYrcGsCo3qG6PO4vl2TgoLDWf51s9QfmPcQUeaNZC rcmHx9pAAxEsxkT0TGRwBmpQFsmEJsa8z17eHaQw= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 3BBFFF804F2; Wed, 8 Dec 2021 22:18:10 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 32732F804EC; Wed, 8 Dec 2021 22:18:07 +0100 (CET) Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id EE956F804CC for ; Wed, 8 Dec 2021 22:17:57 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz EE956F804CC Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Yrr3Nmue" Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id C0337CE23C4; Wed, 8 Dec 2021 21:17:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18597C00446; Wed, 8 Dec 2021 21:17:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638998270; bh=2FpH5VoXr9ueY5bDrwm6B2Tr7onF5v+ChxxrbUuG+c4=; h=From:To:Cc:Subject:Date:From; b=Yrr3NmueTLsshhKaA0OTAVsBNNaEOqI0SplQLGafRKHlZV9Rg+BWlODz5fkO2qZjx shKfp5iTSQ2TrZX0UGSYFvTyexHp2L1p7BaWbxHrmcuoEJpcqo7YBVWCnmZQpfMmO4 vnyv3Qyipi42SA/NgHxhaI1GYa5X1rP3jY8ycfzuaFYHrUF10+c7QQTnVzS5GzZ/uJ Z1F4yc0ORMJY4sJrTwO2p/Aur0yshIJ3awaQoHiIznCs8ca0/NCCvA4np26Ifu5l6A hp7dEt4KnenPx8I75oRwlbSi/f+sfRrxEP01AMh7Yb4aMDKyuH4vjO9bOzL8szol+d FeNoL9z7fmN5g== From: Mark Brown To: Takashi Iwai , Jaroslav Kysela , Shuah Khan Subject: [PATCH v3 0/3] kselftest: alsa: Add basic mixer selftest Date: Wed, 8 Dec 2021 21:17:42 +0000 Message-Id: <20211208211745.533603-1-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1333; h=from:subject; bh=2FpH5VoXr9ueY5bDrwm6B2Tr7onF5v+ChxxrbUuG+c4=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhsSD1HVS5LAtgAeA5KjgYRZbZjE0afMZo56TjpTcw pW5Bls2JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYbEg9QAKCRAk1otyXVSH0KBeB/ 0dZ+rG5/EXHfvNPwe4qrkUcWql9pkBALACyp40hoSflqojOri1+5Xn+Mmk92m4uau3QlGZLU/+bxG2 QngGXfYMsBBDF89jj3pxn7fG5mIeCRjnqxx3xxSPy/pPowa/c2IwBGJPsQd/mn1VP144SbkB+Q5Fn5 ov9DQUTEbI5E5M7vv6JqcD0grTwVhdL/tNkUSjKTPrYoZzo0yeB67HPSbltxUW5g/xpSskX5MDqq9G NI+WGJwRqhfrA6KJRkSjl0UfgRjDpkRQJqDL2BcWGZDqpOkFdOuzQ6YXBxNvKVFUOBYeF0N7hs7vKO trA9xVBFAia3mhLmB9fxrMTAovH4WN X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Cc: alsa-devel@alsa-project.org, Mark Brown , Pierre-Louis Bossart , linux-kselftest@vger.kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" This series adds a basic selftest for the mixer interface, as discussed in the cover letter for the main patch there's plenty of additional coverage that could be added but this is a good starting point. v3: - Pull in incremental updates adding a fixed library configuration from Jaroslav and support for volatile controls from Takashi Sakamoto. - Stylistic updates suggested by Shuah. v2: - Use pkg-config to get CFLAGS and LDLIBS for alsa-lib. Jaroslav Kysela (1): kselftest: alsa: Use private alsa-lib configuration in mixer test Mark Brown (1): kselftest: alsa: Add simplistic test for ALSA mixer controls kselftest Takashi Sakamoto (1): kselftest: alsa: optimization for SNDRV_CTL_ELEM_ACCESS_VOLATILE MAINTAINERS | 8 + tools/testing/selftests/Makefile | 3 +- tools/testing/selftests/alsa/.gitignore | 1 + tools/testing/selftests/alsa/Makefile | 9 + tools/testing/selftests/alsa/mixer-test.c | 663 ++++++++++++++++++++++ 5 files changed, 683 insertions(+), 1 deletion(-) create mode 100644 tools/testing/selftests/alsa/.gitignore create mode 100644 tools/testing/selftests/alsa/Makefile create mode 100644 tools/testing/selftests/alsa/mixer-test.c base-commit: fa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf