Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp447580rdh; Tue, 19 Dec 2023 04:04:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtlM/vn+WOMbNOxpWbk1zfcKNp6OJXjBwedhXTuBqY40gDZB06LHuMS8pjvahcTGKM8SjK X-Received: by 2002:a17:902:c412:b0:1d0:5ac4:4959 with SMTP id k18-20020a170902c41200b001d05ac44959mr23931275plk.6.1702987452089; Tue, 19 Dec 2023 04:04:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702987452; cv=none; d=google.com; s=arc-20160816; b=r3ji2UNUv3eMR6dxJumoq0PWZpujjWwEPdL245TKzCEPL5fcPwDkK4SgcevL+VxH1H 56rLde6zNnSFYwowy4P7KApaQzpEQVDnJuNe1x86YmP7mwfvzqdbHqcZCUzivhJzy+9G qPfXXp9DB1PTXQrvIUSSIWqG+CFAEG7XOaPCET1Q8REE18zJCR6J/9JUhGAFwMSGxgg4 Uhfd6YeW14Cn3XSnzJNIHNGnhvY27Fy/L4iqkOuICITsMlDuuxQ+vegu2u9MXTn5Y5/W 7r661frXU72+QNR/XHU9XfJdzdcR/S/NEri9POhdPS7agqGQOW6+DoRG/0+Jr+pHCs4l Rk6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=YVvvKQRps43iz6LpvgBs+AvFLcUj1lrxhvkgfLbhk5Y=; fh=IgL3xOihmn1C5xzn8y/0RtbauniPyf6LtG15lav5+KA=; b=T6XndovieI1HXXV87yPkfJrGDn7w4oPrRwTXT+x/4mWVyJRnLK27uhiuecrJVAIsYz FZo7l9I7Kn6KaZShupAA3GlAYt8VQHb+k6kC5R1xVOJYvr3ca2ZWTPBuRmsqGXTIeNOj /m21hKxbrpJfzcX3j4+QKc8IK8TgUj3ys32VXK387o+bwglvdxyCZIg6O10bClgINLkz 3I0SnYPEpR5Xd7bGIuwHAsTlVfIoeO+jMtI6Wk/wdsdgO9MEwd+q0obmyxNk6Bjr1h9j nCHRtoPfQwF0N7pW2fm6xS2aEa6VBhtFPCOi3hxN8z54mVx1OakjemVPmrLVotJObUMl XmLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i17N1M1o; spf=pass (google.com: domain of linux-kernel+bounces-5136-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5136-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s18-20020a170902ea1200b001d3aba845a4si3245981plg.344.2023.12.19.04.04.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 04:04:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5136-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i17N1M1o; spf=pass (google.com: domain of linux-kernel+bounces-5136-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5136-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 3316BB24188 for ; Tue, 19 Dec 2023 12:03:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77CB61862E; Tue, 19 Dec 2023 12:01:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="i17N1M1o" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0B4018B0D for ; Tue, 19 Dec 2023 12:01:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a2356bb40e3so203427566b.1 for ; Tue, 19 Dec 2023 04:01:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702987311; x=1703592111; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=YVvvKQRps43iz6LpvgBs+AvFLcUj1lrxhvkgfLbhk5Y=; b=i17N1M1os7ATsdSlPugI18vzAk9gf7sNtVpEMQH5+PNf9v17gu3QXv1L/w9eUU03cY R3xNipBeTD0nVFTzrbrhqtpI4+6kE11kkoSz80z4RsUZkEcAeBjrp/mwr42HShThhIBV d/wigBpBTDXfT4DQV3jyW28OQUDUOTzNZANHvrDaBqopHxirmc3s6fL8bfxVaa+pI4Ba SyUmQcpGmwh3BHRV6fU5xTfDAoilM5QKYT1NZsjsajZaydcX7eCPenYRcUwOCvDuxqlJ ylbNVuvgHYCy5qxbXltMlpaXhUKTeU5yUOaJyt6Vobu2eKytvTSBjdJqAE9fifmFBBIB Lc9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702987311; x=1703592111; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YVvvKQRps43iz6LpvgBs+AvFLcUj1lrxhvkgfLbhk5Y=; b=xG9hn1P5fAsjMQVm+tm/X6pwUeJMqNTI5/oM1YqVS7iFw4mlBVZlq3rqcQmu8n2YLJ 6/88fOIW0KwAty/6niPqQRwMdz8ckEJZBOINqyd83YhBQkbYYr80sknbRPs22RMA1gTg D12aeVM8fE1ConiOorcj282NtTYrX0/h6nxtzxssa835Qt5TNsSdy/hTBvUVS21aozum osKyAx7AH0JYE4m519P2zwtucHM3KuQJhqHe98LabXTnfLCamIQsZzkLo/hxoRc48/gL Y5NSbquzqvAka+0qXVkxqq5Hi+XBkwaNZusOU6ILEClyw3KJ3dbvcVQg1CSWfKlQd8+x QMPw== X-Gm-Message-State: AOJu0YyiFrISxrbKvsEojThxoXSok5r9N+Dbz5g+SniJGjUkBx04JqvS U+KW23Rcf9T2bFAX5TY55rh7WQ== X-Received: by 2002:a17:907:9016:b0:a23:339f:3313 with SMTP id ay22-20020a170907901600b00a23339f3313mr2181362ejc.55.1702987311149; Tue, 19 Dec 2023 04:01:51 -0800 (PST) Received: from [192.168.199.59] (178235179206.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.206]) by smtp.gmail.com with ESMTPSA id lm11-20020a17090718cb00b00a1db76f99c8sm15508227ejc.93.2023.12.19.04.01.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Dec 2023 04:01:50 -0800 (PST) Message-ID: Date: Tue, 19 Dec 2023 13:01:48 +0100 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 From: Konrad Dybcio To: Wesley Cheng , srinivas.kandagatla@linaro.org, mathias.nyman@intel.com, perex@perex.cz, conor+dt@kernel.org, corbet@lwn.net, gregkh@linuxfoundation.org, lgirdwood@gmail.com, andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, Thinh.Nguyen@synopsys.com, broonie@kernel.org, bgoswami@quicinc.com, tiwai@suse.com, robh+dt@kernel.org, agross@kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-sound@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-doc@vger.kernel.org, alsa-devel@alsa-project.org References: <20231215214955.12110-1-quic_wcheng@quicinc.com> <20231215214955.12110-19-quic_wcheng@quicinc.com> <4b644ed4-358d-4caa-bed8-ca76e0baadb3@linaro.org> Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZ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X1KmTkdRtcgC6F3NfuNYkYDAQgHwsF2BBgBCAAgFiEEU24if9oCL2zd AAQVR4cBcg5dfFgFAmQ5bvICGwwACgkQR4cBcg5dfFju1Q//Xta1ShwL0MLSC1KL1lXGXeRM 8arzfyiB5wJ9tb9U/nZvhhdfilEDLe0jKJY0RJErbdRHsalwQCrtq/1ewQpMpsRxXzAjgfRN jc4tgxRWmI+aVTzSRpywNahzZBT695hMz81cVZJoZzaV0KaMTlSnBkrviPz1nIGHYCHJxF9r cIu0GSIyUjZ/7xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <4b644ed4-358d-4caa-bed8-ca76e0baadb3@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 19.12.2023 13:01, Konrad Dybcio wrote: > On 15.12.2023 22:49, 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[] = { > can these be const? Sorry, it was already pointed out. Konrad