Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp573366rdb; Thu, 19 Oct 2023 12:26:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHLyW3zdPjm4jhj13WEy26tJ6WGMkwmt4SknwkH5sK7gg7iYYzMu8GxZAQQiJlz2/r0zSGJ X-Received: by 2002:a17:90a:4008:b0:27d:2054:27b1 with SMTP id u8-20020a17090a400800b0027d205427b1mr3200017pjc.32.1697743589452; Thu, 19 Oct 2023 12:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697743589; cv=none; d=google.com; s=arc-20160816; b=cBfmTBFtOuqXYTKde/KaD88wcWRcy9Rt97rAU2KULTt3KvqckEmOJqP4uwCeWbqbEe zHoERTQUCn1hAOmfxIefEUhJZ8NrSwJkw5WOpZy11zHFCq9JgPzVFdkXTn3CUVLQ+v7u jn3WL2dO4GkQgKx+CJz09KsnLyUWb2BYS24l7tFTirf+EPpHxxhEHnrZ/xK0J+nASu6B ZcBtdJZnCTAbKvRfPBHWwckhJosxXj8Y/mIoj486xVbYVu3s+mkykmUxeYy8SbXv4t4g g5vlWGAcW/BGH7P4Qfw0yVAWHaaINTz3zIQIKOYa7IAFqBMESiLhvghwhgoiDfA3BAAu iGYA== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=7nZlr836Z1yRwKSJGkQXZps55FXeuMStkqXPcw7VZbM=; fh=9+IEscr4WmNbE41gibPc+AZ0nx0+/tccCXbA5gmgnS8=; b=fVBiZgCTCA5FvLKBLfODrAVCnUI2fmDx8ha2vKVy0DPPA5/fTT7LhQq5YmdVdXDhd6 ygcIGgzVvL4FSF5cTeysRidmIf0craTivz3LcTAsqCn0GGNbtG1pOr2T79xz+KhhX3zX MWUphIl+HYBLF9k063KUySJ4wEBDqCDqHyxJbS2K6PXnq70pDtaMGfl63b7GnBu/VxcZ dmGnTVm7tgERiaVb8LYziqsLZfe6rDxCBv37Z1m+cXKzqpD8En2klVTzUJ+3Grg5IMDS AkRTkj8Sa3L2X3tiVZl3+n1G1/XWvwjdCjD9byThsZ9R8xg5E1+Z+E0PEmES3lBRt6bD p81g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=md0+6fSV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id 24-20020a17090a191800b0027d1a77c766si274995pjg.118.2023.10.19.12.26.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 12:26:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=md0+6fSV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 370E981BC4BF; Thu, 19 Oct 2023 12:26:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346488AbjJST0C (ORCPT + 99 others); Thu, 19 Oct 2023 15:26:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346477AbjJST0A (ORCPT ); Thu, 19 Oct 2023 15:26:00 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E016126; Thu, 19 Oct 2023 12:25:57 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39JHS4wG021989; Thu, 19 Oct 2023 19:25:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : from : to : cc : references : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=7nZlr836Z1yRwKSJGkQXZps55FXeuMStkqXPcw7VZbM=; b=md0+6fSVejV8AMgpKlPvnBLl4J3FgpVtckN9oWAateqmPfpdkPBiI86G6LuaSblLw6UL r8DyTGz9RV+c/V2HTw5AesWtqrxjTxwXfgB8mxMm0UFqbmrO3fMq07cmq4yj7FdYmfyH 8nrCTTZ6DL4nMFLP0NMMqU7pEI+ZZeXUzmql10dl+Nyz4OVUqdo4wNitnAFjlrtWIb8f DHe3yjPLyUFi2UBC1FoDOQgopgqP4HP/AXmrN0ls7nkxL0c3vRNo+JYD30clGBtGHLoX LOBd1TafidfkchfJfwD8eAUYCeuCD75TfJ/GkGhyP4gTfve0uhE2RsLSzyrE9EJcWk9l ew== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tu14csexk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Oct 2023 19:25:37 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39JJPZKQ008993 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Oct 2023 19:25:35 GMT Received: from [10.110.99.208] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Thu, 19 Oct 2023 12:25:35 -0700 Message-ID: <2e300bef-3722-8b00-2bdf-e9386796f38f@quicinc.com> Date: Thu, 19 Oct 2023 12:25:34 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v9 30/34] ASoC: qcom: qdsp6: Add SND kcontrol for fetching offload status Content-Language: en-US From: Wesley Cheng To: Pierre-Louis Bossart , , , , , , , , , , , , , , , CC: , , , , References: <20231017200109.11407-1-quic_wcheng@quicinc.com> <20231017200109.11407-31-quic_wcheng@quicinc.com> <92971bbf-b890-4e41-8ef1-9213e15d81b2@linux.intel.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: szZLkW7qgmVniayGieMMDVKlAabQiICH X-Proofpoint-ORIG-GUID: szZLkW7qgmVniayGieMMDVKlAabQiICH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-19_18,2023-10-19_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxlogscore=459 clxscore=1015 suspectscore=0 impostorscore=0 adultscore=0 bulkscore=0 mlxscore=0 spamscore=0 phishscore=0 lowpriorityscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310190164 X-Spam-Status: No, score=-4.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 19 Oct 2023 12:26:27 -0700 (PDT) Hi Pierre, On 10/18/2023 6:41 PM, Wesley Cheng wrote: > Hi Pierre, > > On 10/17/2023 3:53 PM, Pierre-Louis Bossart wrote: >> >> >> 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. >> >> > > Will take a look at this based on the comments you had in the other > kcontrol patch.  Seeing if we can move it to a more generic layer. > I think it would make more sense to see if we can keep all the offload kcontrols under the sound card exposed by the platform. Especially, if we are going to modify the components string of the card to signify that it supports USB offload. Thanks Wesley Cheng