Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6998427rdb; Fri, 15 Dec 2023 14:39:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGKjDhOTYFZr57CDLWo/up8dXK/yMozO0D8hU3140Pg3Zy+HEdo/oDgTYmWLJEqCQgzelW X-Received: by 2002:a05:6870:470b:b0:203:3890:795f with SMTP id b11-20020a056870470b00b002033890795fmr4809026oaq.29.1702679983510; Fri, 15 Dec 2023 14:39:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702679983; cv=none; d=google.com; s=arc-20160816; b=ygpWiP66YudTk0aGiZW8g276kYr2tpS1Ewt9pS99na1RyHoddWdWsb63cL+jgR6Qrb rxzHOk1EVaO23aaSy3ooagFvd/dVWdtEbDDyyM0FakCthYZ7DoQgg2v9sDFWIBb5EMEw a881YcTeVSNVU4wls/gPgEeJ+mm0kKP2sU+NDeJIZPj8FQeJJ1jxqJ/2Tvknu9k/pmAM 3tQ6w8/ddbc4Q2yT0rlE4dICib0x3nWd0T+UNayulCYtYTJacXEVKfsrQjTkmorXNM9r j3XaYBFtXEZy7zmMheOxeduzPCeFOQ/726bbub5/9rESNyWHa+fJpPFvGFRwDje5WX9v xi1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=i5e3VNsHMtLdnZjKEnpBG17/DfBO8lIAIhhbJZLJYwE=; fh=Blq5f/VqcrdgMkYv+MgQ2U++XFqTDNVXMuMuf9s6IlY=; b=c1KugzPO9A2jzy5RmFg8HPo7psAQIbZphQUetYF/Rtu6xOHlXAQaQCLIiX+aBPrW6k S8cdzJyaUhvjuPQQDIPymmb95ZpGMveKBN6qgbDyCDjbJjFnprTeZfIbJLfyB3Jvm69b hw3dUe4ph0yfo8/tELGwDBVQgkhtwro279/hlvbQaM3EEGc4jxGlOCReVHf8x5hSGbfB qiwsfjmyURrUQvmy5JGJgq4qe5g3Z91czPsjRvzNh3JoTYTFKDKwhOGzPKEqa+C4fzOR uEvbOvnpSHh5bNbvEsJDElgWCeFhlehJd3I7kTlMqk2yBAAegsOLhk58Hs4FxP33SWxL mq3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FnRbQ5ZE; spf=pass (google.com: domain of linux-kernel+bounces-1778-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1778-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g18-20020a056a000b9200b006cb6b7aa192si13857441pfj.331.2023.12.15.14.39.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 14:39:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1778-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FnRbQ5ZE; spf=pass (google.com: domain of linux-kernel+bounces-1778-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1778-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 21C04281E11 for ; Fri, 15 Dec 2023 22:39:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42A0F4653B; Fri, 15 Dec 2023 22:39:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="FnRbQ5ZE" X-Original-To: linux-kernel@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 183D013B12E; Fri, 15 Dec 2023 22:39:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BFLVMlU023006; Fri, 15 Dec 2023 22:38:56 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=i5e3VNsHMtLdnZjKEnpBG17/DfBO8lIAIhhbJZLJYwE=; b=Fn RbQ5ZEXEHBuX4ttkNQ3M26mGIGsNg+wmUPp6CqOydH0nusvg8tWBlYDjqu4R515P M6JPdi1pZRKj2oiaLOB7/TbqlHISBFpqGsMY34Wyk7nOFyvNr3V+8+E2EpdRLjT7 TiNUDoHwPFLLMLpSoGrECEDlDeXr9OF+F8dc50JpJtoxAf+qqkxmGesOZXKZqKSz 8l+msL9CiH43M8XgJbHQeilIGAmXG1d/WZJYH102Z9ZmsGvHBIgkYefwo38sVoDn hkgAu7M3DuOP/LBoquOzViJd1H3A5BqJKjODHH0z7yf9jJ4vimXkDJ5OJ0eIuFZb thCIunEJ7q6mR+pN6Rhg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3v0m46hrg1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Dec 2023 22:38:56 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3BFMct9A027457 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Dec 2023 22:38:55 GMT Received: from [10.110.36.237] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 15 Dec 2023 14:38:54 -0800 Message-ID: <80111881-13dd-4b05-876a-a97eb3889726@quicinc.com> Date: Fri, 15 Dec 2023 14:38:53 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v10 18/41] ALSA: usb-audio: qcom: Add USB QMI definitions Content-Language: en-US To: Wesley Cheng , , , , , , , , , , , , , , , , CC: , , , , , , References: <20231215214955.12110-1-quic_wcheng@quicinc.com> <20231215214955.12110-19-quic_wcheng@quicinc.com> From: Jeff Johnson In-Reply-To: <20231215214955.12110-19-quic_wcheng@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: y0Zvylxqky0dYnXVoe0CvMAArWBxbEqy X-Proofpoint-ORIG-GUID: y0Zvylxqky0dYnXVoe0CvMAArWBxbEqy X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 adultscore=0 phishscore=0 mlxscore=0 clxscore=1011 mlxlogscore=899 impostorscore=0 malwarescore=0 bulkscore=0 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2312150159 On 12/15/2023 1:49 PM, Wesley Cheng wrote: > The Qualcomm USB audio offload driver utilizes the QMI protocol to > communicate with the audio DSP. Add the necessary QMI header and field > definitions, so the QMI interface driver is able to route the QMI packet > received to the USB audio offload driver. > > Signed-off-by: Wesley Cheng > --- > sound/usb/qcom/usb_audio_qmi_v01.c | 892 +++++++++++++++++++++++++++++ > sound/usb/qcom/usb_audio_qmi_v01.h | 162 ++++++ > 2 files changed, 1054 insertions(+) > create mode 100644 sound/usb/qcom/usb_audio_qmi_v01.c > create mode 100644 sound/usb/qcom/usb_audio_qmi_v01.h > > diff --git a/sound/usb/qcom/usb_audio_qmi_v01.c b/sound/usb/qcom/usb_audio_qmi_v01.c > new file mode 100644 > index 000000000000..bdfd67d980eb > --- /dev/null > +++ b/sound/usb/qcom/usb_audio_qmi_v01.c > @@ -0,0 +1,892 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. > + */ > + > +#include > + > +#include "usb_audio_qmi_v01.h" > + > +static struct qmi_elem_info mem_info_v01_ei[] = { I believe all of the struct qmi_elem_info arrays can be const. At least that was the goal of commit ff6d365898d4 ("soc: qcom: qmi: use const for struct qmi_elem_info") /jeff