Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3467226rdg; Tue, 17 Oct 2023 16:24:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZj0Cz1Ma8PwIiooqg6jzBSjHzsB3Qrx7f35+Xa6+T78PilUY/X3F1RIC44UMpEetRzYmV X-Received: by 2002:a17:90b:1d87:b0:27c:edd5:6137 with SMTP id pf7-20020a17090b1d8700b0027cedd56137mr3550010pjb.25.1697585049459; Tue, 17 Oct 2023 16:24:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697585049; cv=none; d=google.com; s=arc-20160816; b=y1NZ0nGSr05av3lHJMKE+oOYrEWfIqekLLZYQL3Ackgs1nN7SfAWhlYmra0QixSTL3 ihI+ZeDRRbnYzOVND5R01TPRKJ0fN1xpJ8xJ2fla8V6JxfPfU4fFLHkQvkY+ZXr9HEX3 cgzHCVz9BqNYkXsECmAk/9cqTiE/pqqoLRk62+2vT8XPe77vmnSzp19CS3agAW+pdfAd UK/siHUgoux1wDnWJO9VMlvxVB3MlDVPtyMLp800ZiB+KaLHx4nN+6CRWe2k5G9C7l4C DYDLFWLkm+g6xfaKwg+1KqD2jXKCN/hSZwIaVSp7tZGFY3Q23Scqif/9yftlOG0w8VDe 3QKA== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=anQIgpoTOeuvoKccwMKZVgcJsxWfihAnydXrqKhTG+0=; fh=T2kIl/luTXifFXsTyrv3SMMIMK/cqEF9ESJJzecA3Cs=; b=kbx/5JGu9xVAILLdHuE4PSjwmx4e3cCi+2sPtQEdR4fymLQtWBpAqpVoAQwcaSAqlw dP5U6Iu1cBCs5BfVzT7EiDvwVvnGuxgsViHhlqWrdrSj5n1ONdAXAaJDXYR7DBD8FmK7 grwF2mC3xCKnbhcdqcAUm5fK+WPsx8xtEOgEMlTs0B99KYKb9Bu1RQ+BJTqyWJ7UY1iB MDxUgmHB/rsMkMWvbGBeGm5Fi1PbiNj+2CSMnTvvl6iPi6fyrSmOc6f4r0VxodUiQC5B A1qVOh1Rn75KB6e/9G/yaKZACg2ZmJv+1A6/gT9sWqL0j2uzUstH2B/R8JnQ+E4MK0W6 gTXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GWv83Lzq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id na9-20020a17090b4c0900b002736ff3cc79si222107pjb.23.2023.10.17.16.24.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 16:24:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GWv83Lzq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id DB2CD808FBCA; Tue, 17 Oct 2023 16:24:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344419AbjJQXX6 (ORCPT + 99 others); Tue, 17 Oct 2023 19:23:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344378AbjJQXXb (ORCPT ); Tue, 17 Oct 2023 19:23:31 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03414120; Tue, 17 Oct 2023 16:23:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697585009; x=1729121009; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=fcGdtcGbZ+8Z7UotHMU4eStWI/J/qCQZxuZvh4H0eGA=; b=GWv83LzqN3WJe7XqbYDMyd9M4UaZ4oCeTjbdqQvUkJ0F5liImhgPzEIc Nx7AuDBvEZJCxI41hy0ciTwQPNb2yT39I+4pGHNILRbCopXzmXyXywS4c bv255lHjdVhlNAxO18E3UFINZsVu9wqF7qtRdggWYOCyC3RT7HG07RXng a+65apdWuKgDjFpXqu4Nap4i/6ZkW5LLLpXBHLYNaGm+YDlcIPgyTRXZo WZGCnq0Op8nWZstLDMvwtDeybzKHR+mWV6M2Uc/K+YEPMzmD08ursbsYh MgiKViw/lA0/VADUYPxb6f/Dn4Y1n68oynoheSsQ1tv1UG+I//ivLtWOZ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="384778203" X-IronPort-AV: E=Sophos;i="6.03,233,1694761200"; d="scan'208";a="384778203" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2023 16:23:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="826637513" X-IronPort-AV: E=Sophos;i="6.03,233,1694761200"; d="scan'208";a="826637513" Received: from asprado-mobl2.amr.corp.intel.com (HELO [10.212.55.179]) ([10.212.55.179]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2023 16:23:27 -0700 Message-ID: <92971bbf-b890-4e41-8ef1-9213e15d81b2@linux.intel.com> Date: Tue, 17 Oct 2023 17:53:44 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 30/34] ASoC: qcom: qdsp6: Add SND kcontrol for fetching offload status Content-Language: en-US To: Wesley Cheng , mathias.nyman@intel.com, gregkh@linuxfoundation.org, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, srinivas.kandagatla@linaro.org, bgoswami@quicinc.com, Thinh.Nguyen@synopsys.com Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org References: <20231017200109.11407-1-quic_wcheng@quicinc.com> <20231017200109.11407-31-quic_wcheng@quicinc.com> From: Pierre-Louis Bossart In-Reply-To: <20231017200109.11407-31-quic_wcheng@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 17 Oct 2023 16:24:07 -0700 (PDT) On 10/17/23 15:01, Wesley Cheng wrote: > Add a kcontrol to the platform sound card to fetch the current offload > status. This can allow for userspace to ensure/check which USB SND > resources are actually busy versus having to attempt opening the USB SND > devices, which will result in an error if offloading is active. I think I mentioned this a while back, but why not add the status in the USB card itself? That's a generic component that all userspace agent could query. Having a QCOM-specific control doesn't make the life of userspace easier IMHO.