Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp669962rwd; Sun, 14 May 2023 04:39:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7vbSNF0JqXN1MO+bTB++2JlwkDKBlzkbz3Q9R1/iwjv8Ie1B2YFe2qF75FQbzQHKYB9HIU X-Received: by 2002:a05:6a00:240a:b0:63d:3a18:4a08 with SMTP id z10-20020a056a00240a00b0063d3a184a08mr38125199pfh.24.1684064371787; Sun, 14 May 2023 04:39:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684064371; cv=none; d=google.com; s=arc-20160816; b=aWuxRnoO9jfNhCJXMid2tUEYbZ4MozM9pxb4KXvIYUd5xwNAa9XVywXN79e6++zTxi W/IMfUFt0yeVFgaGcXwIOE4emKAGuDCc+6NW0rTTQ7cvyzOYpX9tO9ii4bHvHGUDSDko onTR8FU8cXmzQgw8eudb2Zav7hXEre0wtiwTkGhHWvECrjuT+6UP0if2IpHZeoZs3wFA PpDZ2BoJEVKXh62qKKK+/QLKRqjKD8+cZgqmjyPnXJ3TlU0Qyo/7J5+h9nsa5GXwp+YK qMRh3qIMM8tXXMVaBa0gWOgE7i945oALlRnJpujakDexOj8QGk/dqp6Zv8YqpwoC0jJW Z4FA== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Ie9tiZWx0j0qso2N+/tHJUjGfMip0OumDCuv0l96kj8=; b=hrcr1SJ8I9kNMIV1YYjtqI9PRA9lak8Rxtvl63+s8SwhKS7UGQ5Cc+DdWJe/TuNLPU RpRoEfMVOhGqGnbHajkLwyUYudXKxN/tW0Ig99LZHAxyI8k/QCMUCHRUBBzmQrajG4pn XV0ZIIFT6Qsvz8FKOG5hukjDFjEzT1mJcgLj29+hJ6/x/uklp/cTBIKg9qzjfeRDArII izgN/oTgvy1HlP/0Fdf9h/SLaSK30sxnHjxgu2aalKTsO1eFCxlJdGGXiHc8kokS/yld Q2YBkcijQJjLCmndAu8ii+zdQLKsNhbJvEE09UxQXYAJFv2BsUE0MTC/OvGGT6a0cF12 LZeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=WgvlRw8u; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z16-20020aa79490000000b006430573bd4fsi14853951pfk.66.2023.05.14.04.39.08; Sun, 14 May 2023 04:39:31 -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=@gmail.com header.s=20221208 header.b=WgvlRw8u; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237159AbjENKJA (ORCPT + 99 others); Sun, 14 May 2023 06:09:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbjENKI7 (ORCPT ); Sun, 14 May 2023 06:08:59 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC001171B; Sun, 14 May 2023 03:08:57 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-50c079eb705so2851915a12.1; Sun, 14 May 2023 03:08:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684058936; x=1686650936; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Ie9tiZWx0j0qso2N+/tHJUjGfMip0OumDCuv0l96kj8=; b=WgvlRw8uZZxNk/hWPkNXit0p+MkX0JNCyI7Vzy7yJY+OsvwTCNXVGUhs1wWVsvUX21 nXH/U8P2buAlKk/QRUpPPlXwZ6xNSMN6Ie6c/P8o7+U+TpPiXqw9cHPQjufjQaP2oH5Z 2ogGG7SzwoCreXK0QZcfN8Vr/5p2DNlO0+EVTN8Ri05js0mr8AoxvR+iELR9nMwsZ3eX 0jkh0jQ8AObDYgvzUWBh6JBIamixp/DoIj7xEXrCplepepbHVOhrtVNq1s6jsaAgz15J 6aPjtcKnlAQO8J9gHOrvTKum+grQaRuZiDsoQgJQpFsjgWYa2kNloSVD3NMmgFoodj29 ZKuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684058936; x=1686650936; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ie9tiZWx0j0qso2N+/tHJUjGfMip0OumDCuv0l96kj8=; b=bHDm9wumCfVyGgQReF+RGNFgmnjl3qnjZwrTy+6aXPeLIedziqqVhXvDghAzA3CaiH Bs2ARKK7oZf3q47zuEewP2K/fKa30Td+gdMNevNpSQOxl7GUBXnqMxY3uey2tEDHFvhm g069sym6jgAKnAhavdpKm3uWhXNhPstXLsnaqUpMefs1OI3NCKbuIDQHFCOsqe8c33+s JSsujAJ1iSb20sGC29HgzoXsvG88WZkTSuu6Y6Ad5UIs2u+pZ3mEtpawrn31gWgATzo3 0oaR0FeM7hYGzgL9Wb3ktsKx+SYnpTEIS5b6HQP5xsbjHXWrLdFKK44rpIiPvpW5eo9F hUOA== X-Gm-Message-State: AC+VfDxsCgP5mg4Tye2DgKqeJO7n+sIA2qVNaKrSvVSNS0wmyfXF535x nw8CqqdgB96XQHm4nnpLYow= X-Received: by 2002:a05:6402:2742:b0:50d:9ba4:52dc with SMTP id z2-20020a056402274200b0050d9ba452dcmr4516415edd.0.1684058935703; Sun, 14 May 2023 03:08:55 -0700 (PDT) Received: from [192.168.10.10] ([37.252.94.55]) by smtp.gmail.com with ESMTPSA id v17-20020aa7cd51000000b0050daa883545sm5679306edw.64.2023.05.14.03.08.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 14 May 2023 03:08:55 -0700 (PDT) Message-ID: <6f6d09b3-39e7-58b6-221f-6276d3ce213a@gmail.com> Date: Sun, 14 May 2023 14:08:53 +0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 2/3] ALSA: Implement the new virtual driver To: Takashi Iwai 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 References: <20230513202037.158777-1-ivan.orlov0322@gmail.com> <20230513202037.158777-2-ivan.orlov0322@gmail.com> <878rdr8e5f.wl-tiwai@suse.de> Content-Language: en-US From: Ivan Orlov In-Reply-To: <878rdr8e5f.wl-tiwai@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,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 5/14/23 13:18, Takashi Iwai wrote: > The idea is interesting, and it's a definitely good thing to have. > > I wonder, though, whether it could be better provided as an extention > to the existing snd-dummy driver. The advantage of extending > snd-dummy driver would be that it already supports different formats, > etc. OTOH, if we create an individual driver, the pro side is the > simpleness of the code. > > I'm inclined to go with a separate driver, but I'm open about this. > Maybe Jaroslav and Mark have some opinions? > > About this patch set: the driver name should be a bit more specific, > as this isn't a generic virtual driver that is used for general > purpose but it's only for testing. And it's only for testing PCM. > So, a name like snd-test-pcm would be more appropriate, IMO. > > And, we want the coverage of different formats, channels, rates and > accesses (interleaved vs non-interleaved). How can we extend somehow > more for that? > > > thanks, > > Takashi Hello Takashi! Thank you for your reply. I fully agree with the naming issue, and I'll change it in the future versions of the patch set in case we choose to have it as a separate driver. I also prefer this option because in my opinion the use cases of these drivers are a little bit different. Also, I believe I can extend the driver to support different formats, channels and accesses in the near future. Additionally, implementing these changes would be a perfect task for the end of the Linux Kernel Mentorship program I'm going through :) However, I'm open to other views on this, and I'm ready to move the functionality from my driver to the snd-dummy in case we prefer this option. Thanks again for considering my changes! Kind regards, Ivan Orlov.