Message ID | 20230308235751.495-22-quic_wcheng@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:570d:b0:a1:2e52:cf23 with SMTP id h13csp892592dyk; Wed, 8 Mar 2023 16:25:56 -0800 (PST) X-Google-Smtp-Source: AK7set8tLBhWFA22IuISB14OOL0XEKYR0xf+qCTFwLaHVwMeFwQjstcqf4GdKgh3md8nQMhs44WE X-Received: by 2002:a17:902:ab98:b0:19e:7628:8bfc with SMTP id f24-20020a170902ab9800b0019e76288bfcmr16605254plr.27.1678321556156; Wed, 08 Mar 2023 16:25:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678321556; cv=none; d=google.com; s=arc-20160816; b=n4t3dO9HfdOOyD+y0O3suwQ+YTXQ8/vbl9BwS7J65r73E4Tc/Z1LOfzmHozbH9VMdS G0cxxuwspzUakzIPN95eZmgglCOe5lmsNZ0pbClt3bdEHeE+Rl8s5XPNTGSsAtedgji0 67gTA4r9ZhxP8pLkZd0N3MK33SYUsu4CxUPENIZ8hfa3OCP3XgJz2UVKCAqRzEiPca/N 8BLco9IQtyy77kNWMkqKkKN+O3p6wPH23cUMItEhsqaUWxMLVUjQ2Iev5C/qi4kvDvDp 5ZkSEO/ox5WGshfV4AvkH/pYd+m9Rh74DkmW601+zDUjcntjKjUXQmC6CFlKfkZllXA5 Rvng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=hktw3UwfKl3io2T33Y+MLtv6rBw+xcmTgoKNgGkjnf4=; b=dup2zu/cqyNG7K8+rNJaD0TODebdeXAEkkdIOvOL6pzzYOwY98jcV+QHH3k+5xCZOJ 0dy8InTdzewlFSG5dq8OxmE7TsDtgJkF/KHP1A3RxtqYIhTA0fyNbgQwupHCYjR+swPs oitVuEFSZ6Wqax+ntVKisCKYnSEmRNKuILVj6tclJ+LMsuqjqxiZ8JZD3ue5GWrcC9fu ZSS+1eazPUgoie6bhJQfRwVuk20CMQaxadD1mf4tFxXVK/lReVj3/OypxIBokCYAqu11 hiYmyuw4FhFerYpETJFVOh3PRIneD7kSYNX55AUZJd+YfnH4e/XU/5X+BQ+7KGRB6gcN cdrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=OwP31RfQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id la5-20020a170902fa0500b0019cc3cdcfe5si14806495plb.7.2023.03.08.16.25.40; Wed, 08 Mar 2023 16:25:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=OwP31RfQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230381AbjCHX7i (ORCPT <rfc822;carlos.wei.hk@gmail.com> + 99 others); Wed, 8 Mar 2023 18:59:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229919AbjCHX6d (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 8 Mar 2023 18:58:33 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAAAF99D42; Wed, 8 Mar 2023 15:58:31 -0800 (PST) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 328NvLYh005393; Wed, 8 Mar 2023 23:58:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=hktw3UwfKl3io2T33Y+MLtv6rBw+xcmTgoKNgGkjnf4=; b=OwP31RfQzgQWnADDi+CxKO3eSwj6hdbANH3cgqa8zu1dLAb5TUOzo2lEf/e0a/fzK6u3 Z3cLswyjSRs44Lu5xlWZEbUMCqjhH4PnHyfqKW6EpS9AURJnBY82p430WpiJJhkh4XiQ 0dV3/xHaazh4AzXFuhxImyyD4Oqe7ofRycSTV+/Yc0JwHIo1Ci8Q59JF0gHxWDTllbjj Q+qgS0/GxI2Eoh1rYjN325+Sn7TQIl7ZB4llT2QnuGnfkKy6RIXD00cPxCI4X3bxjHHC X6dOyCFcKu6rw3JxOG64VpVH4d80Uh++5F0x62E7p07B6K6gZQPem/hmO+Na0AdWVCU8 fQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3p6vnah88p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 Mar 2023 23:58:12 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 328NwBKb011976 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 8 Mar 2023 23:58:11 GMT Received: from hu-wcheng-lv.qualcomm.com (10.49.16.6) 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.986.41; Wed, 8 Mar 2023 15:58:10 -0800 From: Wesley Cheng <quic_wcheng@quicinc.com> To: <srinivas.kandagatla@linaro.org>, <mathias.nyman@intel.com>, <perex@perex.cz>, <broonie@kernel.org>, <lgirdwood@gmail.com>, <krzysztof.kozlowski+dt@linaro.org>, <agross@kernel.org>, <Thinh.Nguyen@synopsys.com>, <bgoswami@quicinc.com>, <andersson@kernel.org>, <robh+dt@kernel.org>, <gregkh@linuxfoundation.org>, <tiwai@suse.com> 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>, Wesley Cheng <quic_wcheng@quicinc.com> Subject: [PATCH v3 21/28] ASoC: dt-bindings: Update example for enabling USB offload on SM8250 Date: Wed, 8 Mar 2023 15:57:44 -0800 Message-ID: <20230308235751.495-22-quic_wcheng@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230308235751.495-1-quic_wcheng@quicinc.com> References: <20230308235751.495-1-quic_wcheng@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) 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: bTu7xRmfTsylSs76-W5x9xRG97h1wiq1 X-Proofpoint-ORIG-GUID: bTu7xRmfTsylSs76-W5x9xRG97h1wiq1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-08_15,2023-03-08_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 spamscore=0 clxscore=1015 mlxlogscore=900 impostorscore=0 mlxscore=0 phishscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2303080200 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759847704357268156?= X-GMAIL-MSGID: =?utf-8?q?1759847704357268156?= |
Series |
Introduce QC USB SND audio offloading support
|
|
Commit Message
Wesley Cheng
March 8, 2023, 11:57 p.m. UTC
Add an example on enabling of USB offload for the Q6DSP. The routing can
be done by the mixer, which can pass the multimedia stream to the USB
backend.
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
---
.../devicetree/bindings/sound/qcom,sm8250.yaml | 15 +++++++++++++++
1 file changed, 15 insertions(+)
Comments
On 09/03/2023 00:57, Wesley Cheng wrote: > Add an example on enabling of USB offload for the Q6DSP. The routing can > be done by the mixer, which can pass the multimedia stream to the USB > backend. > > Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> You still miss binding change to APR/GPR. Where is the USB DAI going to sit? Best regards, Krzysztof
Hi Krzysztof, On 3/10/2023 12:56 AM, Krzysztof Kozlowski wrote: > On 09/03/2023 00:57, Wesley Cheng wrote: >> Add an example on enabling of USB offload for the Q6DSP. The routing can >> be done by the mixer, which can pass the multimedia stream to the USB >> backend. >> >> Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com> > > > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > > You still miss binding change to APR/GPR. Where is the USB DAI going to sit? > My initial idea is to have it as part of the q6afe APR node (as a child). It would need to issues some transactions over APR to the Q6AFE port on the audio DSP, which was the main reason for this. Something like: q6afe: apr-service@4 { compatible = "qcom,q6afe"; reg = <APR_SVC_AFE>; q6afedai: dais { compatible = "qcom,q6afe-dais"; #address-cells = <1>; #size-cells = <0>; #sound-dai-cells = <1>; }; ... usbdai: usbd { compatible = "qcom,q6usb"; #sound-dai-cells = <1>; iommus = <&apps_smmu 0x180f 0x0>; qcom,usb-audio-stream-id = <0xf>; qcom,usb-audio-intr-num = <2>; }; }; I think the only modification I would probably make is to have an example of how to add the q6usb node to enable the audio offloading. Thanks, Wesley Cheng > > > Best regards, > Krzysztof >
diff --git a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml index 262de7a60a73..13145e010ddf 100644 --- a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml @@ -220,6 +220,21 @@ examples: sound-dai = <&vamacro 0>; }; }; + + usb-dai-link { + link-name = "USB Playback"; + cpu { + sound-dai = <&q6afedai USB_RX>; + }; + + codec { + sound-dai = <&usbdai USB_RX>; + }; + + platform { + sound-dai = <&q6routing>; + }; + }; }; - |