Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp571947rwd; Sun, 14 May 2023 02:23:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4RYemrKeTX0+PwGYI1zkUNaIBd/RD5KV1/LnkmNDMIL6PaVF0l+ipBr+kab9kZ+OXpzPVG X-Received: by 2002:a05:6a20:549c:b0:102:6b0:a648 with SMTP id i28-20020a056a20549c00b0010206b0a648mr19172680pzk.4.1684056216260; Sun, 14 May 2023 02:23:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684056216; cv=none; d=google.com; s=arc-20160816; b=VjzNhQluhQ9QC5FyRSc46yvigEkZAm2K7sJfLVA75m1XFMVZUi4r4ZTQFOxAwcVN7X uqCN1wBCsgvhjFwLauVGgpPzzKkbLcBHf8/8gpmxKt99pJbGa1HSN0CSrl4BRmQdZdMQ l4BOzYoZMOeSF9hY2vYs7rMV7KWmmDvfc6OLJY8Jzj1/7EDyRQE/RfoPCKzBKKMsPgO1 pVTHIo0nH11v4jDUPPOlbu2SRANefmzC+MFpZf65CXMPaRnmop9cGLGe91uIkoEHQxnt Y3s8W5J8YDeI/+39Kj9ZbsiWTkzhbsoY5y91CqXpYG4lI2bupR2XWEmShXseBDabvNrU nccA== 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=NrSVGuN+ZkxpGnBq9VKUcBsPewYH/G3H0ud++SHyqbo=; b=v/uL6vqrfFPBK5olseCXho8CPYAoaF3Sjo3lUZqKNQBhVEiyfzFfZgAqSS6etAdLFx OP0/IV8F8DGqgHBH/DPEgTblA4ByCRMKl8hwdrWSnGK1ZOlYSRS9BYc6Cz2KjyEWPlUz tsCKVdJiQl0aKwIXSG4Z+0HrkKE2FdBTIMzhNpsaCUhZU/8k7W6n5YNpFiuRdGbUBGL9 hY+4r9WB3gZCJPnv7mIxL95OtlL/3X86pOR6OMQU4BKU2nfgI9QecvzFZM3jBgZy9fLE H1guSevfaISr2St/kB0enoDw80w+pJfe5OYlru79GUrP72EeTCb0cFw2u449jz+I1dnh He0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="QpgO/QJZ"; dkim=neutral (no key) header.i=@suse.de header.b=ernnJwYM; 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 q15-20020aa7982f000000b0063d2e0cf58esi14518908pfl.10.2023.05.14.02.23.23; Sun, 14 May 2023 02:23:36 -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="QpgO/QJZ"; dkim=neutral (no key) header.i=@suse.de header.b=ernnJwYM; 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 S232109AbjENJVO (ORCPT + 99 others); Sun, 14 May 2023 05:21:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbjENJVN (ORCPT ); Sun, 14 May 2023 05:21:13 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A035C4; Sun, 14 May 2023 02:21:12 -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-out1.suse.de (Postfix) with ESMTPS id ED0AD22043; Sun, 14 May 2023 09:21:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1684056070; 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=NrSVGuN+ZkxpGnBq9VKUcBsPewYH/G3H0ud++SHyqbo=; b=QpgO/QJZg2n4S4sEymYKQ+VxgADrvGa1ctJTJRfJsTZIX3dMxhRsFq0NkVATQFCZXJh3Sb AMdI32XW2aMiLRODBHYAhrIqiL15afWYwy6uj/eH/kfF0/fNdsEiAvAeyawDkO7YOn/swW 7r2bCaase5KBE8U76mljZZGO/r5MWwk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1684056070; 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=NrSVGuN+ZkxpGnBq9VKUcBsPewYH/G3H0ud++SHyqbo=; b=ernnJwYMplEK4bqZIK9iCYJ69gRhfvoYnM7M0SDoYFwZXFwDbEEv6VGuFKz1JMpAeklBih h9ZARNAI7gJW6zBQ== 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 99E29138F5; Sun, 14 May 2023 09:21:10 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 52S+JAaoYGSxUAAAMHmgww (envelope-from ); Sun, 14 May 2023 09:21:10 +0000 Date: Sun, 14 May 2023 11:21:10 +0200 Message-ID: <877ctb8e0p.wl-tiwai@suse.de> From: Takashi Iwai To: Ivan Orlov Cc: corbet@lwn.net, akpm@linux-foundation.org, perex@perex.cz, tiwai@suse.com, broonie@kernel.org, skhan@linuxfoundation.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-kselftest@vger.kernel.org, gregkh@linuxfoundation.org, himadrispandya@gmail.com, linux-kernel-mentees@lists.linuxfoundation.org Subject: Re: [PATCH 1/3] docs: admin-guide: add valsa driver documentation In-Reply-To: <20230513202037.158777-1-ivan.orlov0322@gmail.com> References: <20230513202037.158777-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 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 Sat, 13 May 2023 22:20:35 +0200, Ivan Orlov wrote: > > Add documentation for the new Virtual ALSA 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 ALSA > Driver. > > This new Virtual ALSA 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. > > Signed-off-by: Ivan Orlov > --- > Documentation/admin-guide/index.rst | 1 + > Documentation/admin-guide/valsa.rst | 114 ++++++++++++++++++++++++++++ We have already subdirectories for the sound stuff (Documentation/sound/*), and this should go to there, I suppose (unless there is somewhere dedicated for each selftest scenario). thanks, Takashi