Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp74231rdh; Mon, 18 Dec 2023 11:58:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4vXrNxB6LgxmGsv2Y6SnvH91BqEZ+oi5DvRR6bvPWUrKYUQpJnQjd4shBsnB43DfIQ8Os X-Received: by 2002:a17:90b:391:b0:28b:9117:d070 with SMTP id ga17-20020a17090b039100b0028b9117d070mr1158459pjb.74.1702929530758; Mon, 18 Dec 2023 11:58:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702929530; cv=none; d=google.com; s=arc-20160816; b=Q1Qu2i9TZdbaQ6Fv0HbbO0Cuct6zJF7rXwOas1J8uhk7MBtZjXRgK7og5g363SqOds vijd5TooABj/XPQf3slBHzlzV/p8pX4PQHv0DXZMHFpijGru+TvfzEIzlrtdquWkWsTc bzoxTlCjP46eApd2jPwLb2vjE47TrVFsy6mQzwpy/EHZlirWbfrZgIsA0LerOUc3GcNY 2te0J7RdUP/ViWYo8keEzUSZZpe7VNhvk/LWsbqh/2TFW3V6Rde7nWP4PKwAsRxyYY1M meJ6aLWVLlk9EKYdbN+KDogySXtndLFWYbSirvEjCikQ2JGWMDJSmT7G5EJDmsoMnTWS laSw== 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=t0bpCimWvMhWfdI+TsPYGoHOoVAQBV1OEIZbPnpfoak=; fh=VjjVNdsD3VU/1n6DvK/qgRlM0+mr2iB6UTaFVlYE6cs=; b=Sk9pjmgP9wwx/884nU401fdZa+SJgrrefiokeLx7H2gBbjEaFg5Le2szrVkrlhsaIo s0iCABWxjhsyLPgz2uAAHefTnq4eaQWgSh+LANmoWwp6s7Dn30XruNROlC8yQfOOc2E1 Dxd+mzAimqedJNk09TPcGglbEu2GHrsDJqRRncDzE1nLiTxhJFFKPOWyRUpTVkeNbLQk VbZ1/D7W1MrnOTHsYwE0NwdsvENvFIH1c48j4m+mhZw0MeUjpsN2REcVL1F3EMLx6irQ I1iMh4oDADzyZDW3UjBHvBEyOhqmSW/SnVpM1aTaV3g6RRCeRajAMygFkqNeGkQZKXz+ GFYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=OR2h4lEM; spf=pass (google.com: domain of linux-kernel+bounces-4328-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4328-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id q7-20020a17090a9f4700b0028b7888f1c3si2716314pjv.132.2023.12.18.11.58.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 11:58:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4328-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=OR2h4lEM; spf=pass (google.com: domain of linux-kernel+bounces-4328-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4328-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 46006B221BE for ; Mon, 18 Dec 2023 19:58:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B03C371477; Mon, 18 Dec 2023 19:58:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="OR2h4lEM" 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 492581DDFC; Mon, 18 Dec 2023 19:58:33 +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 (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BII7awl009072; Mon, 18 Dec 2023 19:58:09 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=t0bpCimWvMhWfdI+TsPYGoHOoVAQBV1OEIZbPnpfoak=; b=OR 2h4lEM4dBzCsLd+KqD8zxpFrlQcglcplmQPVD6bBdBUEtesGx8DRYqcbadwSyAX5 jmEiOQcHKgdSvekkRMgu9/U7x2Li4Pfk0oD+VytunYIV4/Zu9CzuGNsd64EHQGHx 0h/KLdwKGOZ1bxSjn740snWNNAyIdoFnB0R0rlP4H309nRNyae940OtHLcoDVNFR 9kwAtUEG8ocQ1EmG9hIUXLQc6xsBO0xwZ4lTk7GSRi4anORUkKffrYR7LsalsFhK 6kPH+oFrTklJRRu9hpxsGH7MOU+qSRZ48m1HJpCUP9NU3z8d6oyGYbIL8Y4A5DvK 9AY1uv0JExp/EJLocjBw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3v2mfe1euh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Dec 2023 19:58:09 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3BIJw8YC027591 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Dec 2023 19:58:08 GMT Received: from [10.110.97.107] (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.40; Mon, 18 Dec 2023 11:58:06 -0800 Message-ID: <0a3a6277-62f6-2d6c-d36a-46a442c89b67@quicinc.com> Date: Mon, 18 Dec 2023 11:58:02 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 v10 18/41] ALSA: usb-audio: qcom: Add USB QMI definitions Content-Language: en-US To: Jeff Johnson , , , , , , , , , , , , , , , , CC: , , , , , , References: <20231215214955.12110-1-quic_wcheng@quicinc.com> <20231215214955.12110-19-quic_wcheng@quicinc.com> <80111881-13dd-4b05-876a-a97eb3889726@quicinc.com> From: Wesley Cheng In-Reply-To: <80111881-13dd-4b05-876a-a97eb3889726@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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-ORIG-GUID: P-tbYw2YI5KNM16_-dyXNk1fYgg76NOe X-Proofpoint-GUID: P-tbYw2YI5KNM16_-dyXNk1fYgg76NOe 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 clxscore=1015 suspectscore=0 malwarescore=0 lowpriorityscore=0 mlxscore=0 mlxlogscore=999 phishscore=0 adultscore=0 impostorscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2312180148 Hi Jeff, On 12/15/2023 2:38 PM, Jeff Johnson wrote: > 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") > Thanks for the review. Will fix this. Thanks Wesley Cheng