Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp839356rwd; Wed, 7 Jun 2023 07:33:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4PNuceZLoiCcazCbQ+I/CBM8ORp7+AKGWR1rcIgpSC/RHZGgyCKqr3mHmHiLB2WdS1LULu X-Received: by 2002:a17:90a:738e:b0:256:3491:a256 with SMTP id j14-20020a17090a738e00b002563491a256mr2402206pjg.15.1686148433991; Wed, 07 Jun 2023 07:33:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686148433; cv=none; d=google.com; s=arc-20160816; b=aX7H9aoZuR41zPdoEv98+WR/YmeJz1M//h020U4VJCksdHHxAeebaZHH/s/y1JUffw o8Gg5DwFUmQG0+8333Nmj5Y06rd8ZleG51ht9JlVpYWOXgoDaJGtqVPI0to83njp4gQX 1PHxiDrSkqzGeOjFlp9S8NVRSLF4k4Fd2bCfeSjzPbT9diWGTA2Xu609zDeLb78r78eA rEidW9Nz2hBeCgKG67pxNO/Ob72ny6xo2Aqt9C4Np+YjtFYuGnEIPUbgqKkRytu9JMoj sr4gDaxoCmehOzD00K0xa9wkvOvQ6p2B6U/LGs45MK+idUPyaoXxywXAI10Yl/oZCuE6 o+Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=BYiTeYmwLMBlpKvFU+nNSlpL2e+cOtcyKH6DxhJ12bE=; b=sFKltSUrygqw9D2STYp+sRIWEnVG4/y6Zvq4Mk3sRDF5dUscecpokPSc5vgr6BU64H Xs2lE/s4fwmevawex6UTbCtMNSIYoaddt++UmpAnwnicMA7OBckklOwY5L9I/fvIXda5 7G2Ir1R0dcw8d2hiGkobfyQR1t9ToAA5rFQO7x3acpESK+C5gjapFFu/O/N+IgcXgxzK 55NKzX+WZGMf4qkHKt6D6pPDgAb5WH1vOlX+NJAA2gSj8g8uS4U/hi3wPT3VmrnWIuqQ F3BOYTvsRITExE0aRNqa1ZPFoGUlgTAGRL8JBAeGE6cFKhnXvAeck6G0awDYYe4qPwJs v6KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=oTdZBSxn; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=jkIjQP+4; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 68-20020a630047000000b0051b1966e6b6si8937208pga.521.2023.06.07.07.33.41; Wed, 07 Jun 2023 07:33:53 -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=@suse.de header.s=susede2_rsa header.b=oTdZBSxn; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=jkIjQP+4; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240838AbjFGNfp (ORCPT + 99 others); Wed, 7 Jun 2023 09:35:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239276AbjFGNfh (ORCPT ); Wed, 7 Jun 2023 09:35:37 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 497BB1BF0; Wed, 7 Jun 2023 06:35:27 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id EC54C1FDAA; Wed, 7 Jun 2023 13:35:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1686144925; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BYiTeYmwLMBlpKvFU+nNSlpL2e+cOtcyKH6DxhJ12bE=; b=oTdZBSxnsMNNnKsTVUYGnj1R+CFFp6oJFX1LZD2LOn7NxJ03J2hx5m06KB3yhl+47oM4Qk 3rC1hqbqThHZv3AcZqsAHFUwGRDnCgp3zcvtNlk1Uez3IlfPt65ZKOs2hp0831I2xcFGgx hhqvJ4HnuUT+kLiXAOlzfih0pUm8pRg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1686144925; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BYiTeYmwLMBlpKvFU+nNSlpL2e+cOtcyKH6DxhJ12bE=; b=jkIjQP+4LWHQuK8dPKrwoIRgYghRjTfYsAXtJBvC5sFDLFGG80lhe7Rs3ilL2p+G8p8VG9 zFIyAPWuoplKj4Aw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C97E81346D; Wed, 7 Jun 2023 13:35:25 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id i5G+MJ2HgGQSbQAAMHmgww (envelope-from ); Wed, 07 Jun 2023 13:35:25 +0000 Date: Wed, 07 Jun 2023 15:35:25 +0200 Message-ID: <87ilbzgztu.wl-tiwai@suse.de> From: Takashi Iwai To: Ivan Orlov Cc: perex@perex.cz, tiwai@suse.com, corbet@lwn.net, broonie@kernel.org, skhan@linuxfoundation.org, alsa-devel@alsa-project.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, gregkh@linuxfoundation.org, himadrispandya@gmail.com, linux-kernel-mentees@lists.linuxfoundation.org Subject: Re: [PATCH v4 1/3] docs: sound: add 'pcmtest' driver documentation In-Reply-To: <20230606193254.20791-1-ivan.orlov0322@gmail.com> References: <20230606193254.20791-1-ivan.orlov0322@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Tue, 06 Jun 2023 21:32:52 +0200, Ivan Orlov wrote: > > Add documentation for the new Virtual PCM Test Driver. It covers all > possible usage cases: errors and delay injections, random and > pattern-based data generation, playback and ioctl redefinition > functionalities testing. > > We have a lot of different virtual media drivers, which can be used for > testing of the userspace applications and media subsystem middle layer. > However, all of them are aimed at testing the video functionality and > simulating the video devices. For audio devices we have only snd-dummy > module, which is good in simulating the correct behavior of an ALSA device. > I decided to write a tool, which would help to test the userspace ALSA > programs (and the PCM middle layer as well) under unusual circumstances > to figure out how they would behave. So I came up with this Virtual PCM > Test Driver. > > This new Virtual PCM Test Driver has several features which can be useful > during the userspace ALSA applications testing/fuzzing, or testing/fuzzing > of the PCM middle layer. Not all of them can be implemented using the > existing virtual drivers (like dummy or loopback). Here is what can this > driver do: > > - Simulate both capture and playback processes > - Check the playback stream for containing the looped pattern > - Generate random or pattern-based capture data > - Inject delays into the playback and capturing processes > - Inject errors during the PCM callbacks > > Also, this driver can check the playback stream for containing the > predefined pattern, which is used in the corresponding selftest to check > the PCM middle layer data transferring functionality. Additionally, this > driver redefines the default RESET ioctl, and the selftest covers this PCM > API functionality as well. > > The driver supports both interleaved and non-interleaved access modes, and > have separate pattern buffers for each channel. The driver supports up to > 4 channels and up to 8 substreams. > > Signed-off-by: Ivan Orlov Now I merged all three patches. thanks, Takashi