Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp65884rdb; Wed, 18 Oct 2023 18:42:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEQUXvJb13tC2B7VzK/4HHmjZxX3PwPY0x/4qGRLpmLHVZ9cvj+uH3JKU418W+AjWWitnEv X-Received: by 2002:a17:902:e542:b0:1c6:11ca:8861 with SMTP id n2-20020a170902e54200b001c611ca8861mr801236plf.21.1697679776721; Wed, 18 Oct 2023 18:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697679776; cv=none; d=google.com; s=arc-20160816; b=wsEHHFg0bAcuCGssnll0BaY0cRlx2yBg5w8wgnTWmCnENNT/jZSjVdjCoyLSVkOXdx 5RROcuPW9UlYKSBLOStPkMII3m+Gbmckw0Gim05NucfuxnqE0BmlAKfU3qQ40GcD23dk 2QIL1IQfBq3DQKPAQL/qXlDtxpV3LhUBIl05m51kwduP6kkqlflB5VF/q7etBEzD/HZ8 lhXjW3aj/qAOc6d7Xdq1+7r+M0Ydg77R9Szv8Otyeqo3IjJk0c6HCjMDu0t9c1/aBMuk l8Erb2LE+lUrWpyEU5vtkgb1PuUarkz/Bh2xmtEjh2zgzsZapWfiwbKESejTACyV10eQ JJ5A== 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=JmLobK+FUz/CjlAbQ3SocOsnFlEbnUpw2VUID+SlFqU=; fh=9+IEscr4WmNbE41gibPc+AZ0nx0+/tccCXbA5gmgnS8=; b=ZDKSoLCShqo0BdunXTvvS1hDA3yoC4ymIyJAN8Q+x3/RfNJR+bWQlTzhp1aSKfXgW3 He3xJ0cwxTK6tAkMZ43oB6FJZEDFf/FNmBczJE8hXVUNkIHuVWX420avln17KJAgXGiT W+vwtj7akuCvZpPLXirN5Lx7xUp6jOI92afKCvN70uQJJ5xe99+hqG8wgC0eRWhTUHd2 52nN9smsSQT0v5jyP5OQw19lJMSxoisvbbdrBDBLDjaXXEKPIcNn7mjvPOaiXBMbEymW pDJbcM7SpGi5PWNsnWvAL6fRFl6Q++INrOnkbxTxlAGpIgs9kBHDdmN5zjPnfEZQvZWp J/eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=XRx+e2fp; 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=quicinc.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id o4-20020a170902d4c400b001ca86a9caa9si1097935plg.582.2023.10.18.18.42.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 18:42:56 -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=@quicinc.com header.s=qcppdkim1 header.b=XRx+e2fp; 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=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2D3CA8255489; Wed, 18 Oct 2023 18:42:52 -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 S232047AbjJSBmc (ORCPT + 99 others); Wed, 18 Oct 2023 21:42:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjJSBma (ORCPT ); Wed, 18 Oct 2023 21:42:30 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4005B9F; Wed, 18 Oct 2023 18:42:29 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39J132Sb017678; Thu, 19 Oct 2023 01:41:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=JmLobK+FUz/CjlAbQ3SocOsnFlEbnUpw2VUID+SlFqU=; b=XRx+e2fpwY+o6my+UFFGKjZ4w9iqcLxfmSm+ESmzw243b4GqYBH9RqlklpVqdjwzHoXx audNlsLH6vKaRYA8snKkJvo3eeoWOTk1PmKhfgYD6lL5JEmcLi3wFqxFWBM1iJ+IDro0 WQxIImV7/BJgLirr3nCiwk7AjUATO0rncwpO2W1Z/1YeziMnnBUyPDvAhcQH7B68+tC9 BSTE8PzWFD0tekbCSe0gqg8TGU0o37cvdZ/zVgd5uHeV/e8u8+1kSewue2BtH/PM0Ibo L5sV0aXbQ1Ewzm5Z6RCgHTuswW/d4D61kJ4LkInKOOyTE73rpTNs9jlBBBIE0r+JSMoB iw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ttnnagjmt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Oct 2023 01:41:46 +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 39J1fkTt026830 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Oct 2023 01:41:46 GMT Received: from [10.110.123.255] (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; Wed, 18 Oct 2023 18:41:45 -0700 Message-ID: Date: Wed, 18 Oct 2023 18:41:45 -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 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> From: Wesley Cheng In-Reply-To: <92971bbf-b890-4e41-8ef1-9213e15d81b2@linux.intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: r88HwueC7gBxxspnCMLJlPg1rg9lw74V X-Proofpoint-ORIG-GUID: r88HwueC7gBxxspnCMLJlPg1rg9lw74V 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_02,2023-10-18_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxscore=0 phishscore=0 adultscore=0 malwarescore=0 spamscore=0 bulkscore=0 clxscore=1015 mlxlogscore=275 impostorscore=0 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310190011 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 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]); Wed, 18 Oct 2023 18:42:52 -0700 (PDT) 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. Thanks Wesley Cheng