From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29059C54EBD for ; Thu, 5 Jan 2023 18:09:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233287AbjAESJT (ORCPT ); Thu, 5 Jan 2023 13:09:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234094AbjAESJP (ORCPT ); Thu, 5 Jan 2023 13:09:15 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC0BD1E1 for ; Thu, 5 Jan 2023 10:09:13 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id fm16-20020a05600c0c1000b003d96fb976efso1928414wmb.3 for ; Thu, 05 Jan 2023 10:09:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=jTQXXh/dvztKjFBUGXCZQrUJyMbJ1vzV92prLWcVbIc=; b=JotekkWG9cVcUN6JY5FzoA6/kA2g/fpF4KEGZQR4qRVkQrBx7ji6MfDeBlrZKVbtoD e1TGJFo8OiWTEB4CXAtheRcgYGPawNmGwECJO2hWU8KgNJbFeep1MeJmDKdLk3N74yBA hb5DyDUqepXDN3MaZHPOmpfQBnig6p9rN+pXNnl44HUk+ekcSxSX4NtYeCzbcBYvXIk2 ZiMVyIAYAM/PdVJBth2HVITnWn8fSH87jNjrJ87Ev2NS4eKnXiUaO4lHvkmSFKawZ4JX UZZYgmqX/R9RWhDaZ5oxfXD6cTDLB86HkXBhKC3J3i6VynGfqx6yphTzQN7xXUMpHTdP t9gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jTQXXh/dvztKjFBUGXCZQrUJyMbJ1vzV92prLWcVbIc=; b=vrYWz0NyyhV6k9E7GIoY1IFaFODqJRejE0djea7MA2BLtdYT+DPVQr1EyTJE61+dyv 0ayzIuh3lSZrd/OziDJQeUe0kCu2Bo/mVWy0vwZvv/djaB7ILLv4BekBquwdmmRevOQO 6cg769MBkJYuDmuvkmGYu4aTAaY3zMFMq6PG9V1V3+YwBuKh/HwwoAzsvgS17TKxOScA URTzHQC5qrTttKC34aruKR8qQ4oNmO6k4G2y0fanBzsN6RU0uNuRYfK/9OLAwxM5dAzA qd8S/bHtKx8GVVTX+qNzBbRsyzk4y0S5oILttX+nxoZuAPRt1yVaP31AjVazjSXsWXL4 pQ9g== X-Gm-Message-State: AFqh2kqgqiX2EXGMa01ZUovxz8VQFC4b/cevoDbbVHlCZt6+6rgXjKsE 8w4sIhng65MhnLMQ37JYxyNEJQ== X-Google-Smtp-Source: AMrXdXtBbeH+ZaXZOnq96Ei2bJF3s4ZyM0k0lkiNPTScKXqcfHEVHc8v7Uqft1oLtnScRAJaxPzzaA== X-Received: by 2002:a7b:cb89:0:b0:3d2:2101:1f54 with SMTP id m9-20020a7bcb89000000b003d221011f54mr36891279wmi.4.1672942152244; Thu, 05 Jan 2023 10:09:12 -0800 (PST) Received: from [192.168.1.100] ([178.197.217.234]) by smtp.gmail.com with ESMTPSA id b22-20020a05600c4e1600b003d34faca949sm3211743wmq.39.2023.01.05.10.09.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Jan 2023 10:09:11 -0800 (PST) Message-ID: <5b4d657c-1acf-f90b-be64-3e36cca96686@linaro.org> Date: Thu, 5 Jan 2023 19:09:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [RFC PATCH 02/14] ASoC: qcom: qdsp6: Introduce USB AFE port to q6dsp To: Wesley Cheng , srinivas.kandagatla@linaro.org, mathias.nyman@intel.com, perex@perex.cz, broonie@kernel.org, lgirdwood@gmail.com, andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, gregkh@linuxfoundation.org, Thinh.Nguyen@synopsys.com, bgoswami@quicinc.com, tiwai@suse.com, robh+dt@kernel.org, agross@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, quic_jackp@quicinc.com, quic_plai@quicinc.com References: <20221223233200.26089-1-quic_wcheng@quicinc.com> <20221223233200.26089-3-quic_wcheng@quicinc.com> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: <20221223233200.26089-3-quic_wcheng@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On 24/12/2022 00:31, Wesley Cheng wrote: > The QC ADSP is able to support USB playback and capture, so that the > main application processor can be placed into lower CPU power modes. This > adds the required AFE port configurations and port start command to start > an audio session. > > Signed-off-by: Wesley Cheng > --- > .../sound/qcom,q6dsp-lpass-ports.h | 1 + > sound/soc/qcom/qdsp6/q6afe-dai.c | 47 +++++ > sound/soc/qcom/qdsp6/q6afe.c | 183 ++++++++++++++++++ > sound/soc/qcom/qdsp6/q6afe.h | 46 ++++- > sound/soc/qcom/qdsp6/q6dsp-lpass-ports.c | 23 +++ > sound/soc/qcom/qdsp6/q6dsp-lpass-ports.h | 1 + > sound/soc/qcom/qdsp6/q6routing.c | 8 + > 7 files changed, 308 insertions(+), 1 deletion(-) > > diff --git a/include/dt-bindings/sound/qcom,q6dsp-lpass-ports.h b/include/dt-bindings/sound/qcom,q6dsp-lpass-ports.h > index 9f7c5103bc82..746bc462bb2e 100644 > --- a/include/dt-bindings/sound/qcom,q6dsp-lpass-ports.h > +++ b/include/dt-bindings/sound/qcom,q6dsp-lpass-ports.h > @@ -131,6 +131,7 @@ > #define RX_CODEC_DMA_RX_7 126 > #define QUINARY_MI2S_RX 127 > #define QUINARY_MI2S_TX 128 > +#define USB_RX 129 > > #define LPASS_CLK_ID_PRI_MI2S_IBIT 1 Bindings are separate patches. Please split. Best regards, Krzysztof From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1DB9AC5479D for ; Thu, 5 Jan 2023 18:10:18 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 3932C11C1D; Thu, 5 Jan 2023 19:09:26 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3932C11C1D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1672942216; bh=A7b+MSJTZrJEgJWlxhJX5XZNEsE/p1S0Kk86O/Oax44=; h=Date:Subject:To:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=bXBxMtlf7rBb6/4CN5JrmmtUGsGOmtz+NU3ENh9iobqGTElYqZlS1lDnQKM2N6zAI MUF2WkqKBGUAVthSAHg5m5Sb+UobAf0T0Pqx/whzzWKS8SrBRC4setYFRUEYCt+0sT WyCcfwxq0m2/HHt6BkRPe5zPTjSFbSiXkldSeAEc= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id DCF2BF8047B; Thu, 5 Jan 2023 19:09:25 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6C9E3F8047B; Thu, 5 Jan 2023 19:09:24 +0100 (CET) Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 6ECE0F8022B for ; Thu, 5 Jan 2023 19:09:14 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6ECE0F8022B Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=JotekkWG Received: by mail-wm1-x32b.google.com with SMTP id i17-20020a05600c355100b003d99434b1cfso1967886wmq.1 for ; Thu, 05 Jan 2023 10:09:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=jTQXXh/dvztKjFBUGXCZQrUJyMbJ1vzV92prLWcVbIc=; b=JotekkWG9cVcUN6JY5FzoA6/kA2g/fpF4KEGZQR4qRVkQrBx7ji6MfDeBlrZKVbtoD e1TGJFo8OiWTEB4CXAtheRcgYGPawNmGwECJO2hWU8KgNJbFeep1MeJmDKdLk3N74yBA hb5DyDUqepXDN3MaZHPOmpfQBnig6p9rN+pXNnl44HUk+ekcSxSX4NtYeCzbcBYvXIk2 ZiMVyIAYAM/PdVJBth2HVITnWn8fSH87jNjrJ87Ev2NS4eKnXiUaO4lHvkmSFKawZ4JX UZZYgmqX/R9RWhDaZ5oxfXD6cTDLB86HkXBhKC3J3i6VynGfqx6yphTzQN7xXUMpHTdP t9gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jTQXXh/dvztKjFBUGXCZQrUJyMbJ1vzV92prLWcVbIc=; b=77R4kjHxtL83ZKiXF7fUZ/obw0eqeA5PJLQRiRU2lr9tAxlNx8jzO4UmoGxCpa1KJa iHkwEAairfusPw4aDlpHP7slnkzIUYdbeizTxNbt1QOwZiB5CiSEvL5cc/q05Z2D8D30 QJFa4cC3iEP+MqMuvXsjaOIOdxY5noGnjCKcLFvLeYkvk+Zcr36uHCOSc0hLZM6DaZrI 071SGtYBSGUQWpYP2yyGSGeypznkUwiHPzwjJadRk7HPXU7afHvib9T8ewJodsxkiSHH AamL/4QARq68iOgHKOC10EePhTA9dNUzO+V1l/7voWCgn2bOH+ft+n3maRnC2YL/r/Ev 1eMQ== X-Gm-Message-State: AFqh2krLUqYksnTfpBfq4TUxNelpV4WLVVm9pV06r321ppYvz0NBs5dn 0ZP6kWUZSfA0NwBBDYDclr+iaw== X-Google-Smtp-Source: AMrXdXtBbeH+ZaXZOnq96Ei2bJF3s4ZyM0k0lkiNPTScKXqcfHEVHc8v7Uqft1oLtnScRAJaxPzzaA== X-Received: by 2002:a7b:cb89:0:b0:3d2:2101:1f54 with SMTP id m9-20020a7bcb89000000b003d221011f54mr36891279wmi.4.1672942152244; Thu, 05 Jan 2023 10:09:12 -0800 (PST) Received: from [192.168.1.100] ([178.197.217.234]) by smtp.gmail.com with ESMTPSA id b22-20020a05600c4e1600b003d34faca949sm3211743wmq.39.2023.01.05.10.09.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Jan 2023 10:09:11 -0800 (PST) Message-ID: <5b4d657c-1acf-f90b-be64-3e36cca96686@linaro.org> Date: Thu, 5 Jan 2023 19:09:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [RFC PATCH 02/14] ASoC: qcom: qdsp6: Introduce USB AFE port to q6dsp To: Wesley Cheng , srinivas.kandagatla@linaro.org, mathias.nyman@intel.com, perex@perex.cz, broonie@kernel.org, lgirdwood@gmail.com, andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, gregkh@linuxfoundation.org, Thinh.Nguyen@synopsys.com, bgoswami@quicinc.com, tiwai@suse.com, robh+dt@kernel.org, agross@kernel.org References: <20221223233200.26089-1-quic_wcheng@quicinc.com> <20221223233200.26089-3-quic_wcheng@quicinc.com> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: <20221223233200.26089-3-quic_wcheng@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, quic_jackp@quicinc.com, quic_plai@quicinc.com Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On 24/12/2022 00:31, Wesley Cheng wrote: > The QC ADSP is able to support USB playback and capture, so that the > main application processor can be placed into lower CPU power modes. This > adds the required AFE port configurations and port start command to start > an audio session. > > Signed-off-by: Wesley Cheng > --- > .../sound/qcom,q6dsp-lpass-ports.h | 1 + > sound/soc/qcom/qdsp6/q6afe-dai.c | 47 +++++ > sound/soc/qcom/qdsp6/q6afe.c | 183 ++++++++++++++++++ > sound/soc/qcom/qdsp6/q6afe.h | 46 ++++- > sound/soc/qcom/qdsp6/q6dsp-lpass-ports.c | 23 +++ > sound/soc/qcom/qdsp6/q6dsp-lpass-ports.h | 1 + > sound/soc/qcom/qdsp6/q6routing.c | 8 + > 7 files changed, 308 insertions(+), 1 deletion(-) > > diff --git a/include/dt-bindings/sound/qcom,q6dsp-lpass-ports.h b/include/dt-bindings/sound/qcom,q6dsp-lpass-ports.h > index 9f7c5103bc82..746bc462bb2e 100644 > --- a/include/dt-bindings/sound/qcom,q6dsp-lpass-ports.h > +++ b/include/dt-bindings/sound/qcom,q6dsp-lpass-ports.h > @@ -131,6 +131,7 @@ > #define RX_CODEC_DMA_RX_7 126 > #define QUINARY_MI2S_RX 127 > #define QUINARY_MI2S_TX 128 > +#define USB_RX 129 > > #define LPASS_CLK_ID_PRI_MI2S_IBIT 1 Bindings are separate patches. Please split. Best regards, Krzysztof