From mboxrd@z Thu Jan 1 00:00:00 1970 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 64362CDB474 for ; Tue, 17 Oct 2023 23:26:40 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 85773DF9; Wed, 18 Oct 2023 01:25:48 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 85773DF9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1697585198; bh=fcGdtcGbZ+8Z7UotHMU4eStWI/J/qCQZxuZvh4H0eGA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=CUWgJWB+MOXh7q9fbiwu/WYAlwYbMabvsk3t1uY0WfcPkz7Va6tLMi0nGPDtUrs0m qgbkJ99nb+jLumaHFwDVNYwKaP+LiJTOhQm8ZxB3Pq7DCgarlM9Qqi9UjNjLqUsgf3 YcCPHgQBUMLueBrOl994tWqqTr6WIlx/W2ILArPQ= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 510B3F80563; Wed, 18 Oct 2023 01:23:49 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id F1B26F805DF; Wed, 18 Oct 2023 01:23:48 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 40402F8057F; Wed, 18 Oct 2023 01:23:37 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 350E6F80570 for ; Wed, 18 Oct 2023 01:23:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 350E6F80570 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Udktsjh9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697585010; x=1729121010; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=fcGdtcGbZ+8Z7UotHMU4eStWI/J/qCQZxuZvh4H0eGA=; b=Udktsjh9xPdjd4eoluoqmRGL/tW0RVSJbDlQ2NnWWGqM6+fCvZ8/G+Qi ekgRj3Sgr0OfJt1PT+lljooyH7wWCSGbGi3z6FMVQJYpr5OI/SV0ohyG2 HR9aNQuY6N2qUWgRlEq90vT+lrmWWpOlt5/uyD9OmuJPI+NxeyffNx2Y+ A9Y/x4SiPwZlMf0f4IZ9agWAtyHl/UAQqZUpR9dXFsclyc0erEQuSufG/ 1e1kwnMTxyocCUS4xh9CU0uMkmmyUheSBW1sptBVwfn1dE4NjebLZRSoH Mow6YOTOyjwinyX3SiSr+AUJMYc1JLTJPos3PoItE3fWtHnZ4faqt6yLK g==; X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="384778207" X-IronPort-AV: E=Sophos;i="6.03,233,1694761200"; d="scan'208";a="384778207" 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 Message-ID-Hash: ZLQ7W4YZM7CBKB6GFUDU3UPYYSABUNO5 X-Message-ID-Hash: ZLQ7W4YZM7CBKB6GFUDU3UPYYSABUNO5 X-MailFrom: pierre-louis.bossart@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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.