Message ID | 20240203023645.31105-38-quic_wcheng@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-50855-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp819669dyc; Fri, 2 Feb 2024 18:52:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2SswLqFudVkNEkyk7FQKosTMrv+yHZ984O97s0XZ+FSqfH6vsWfHD0YAMp65o6zwMeCg5 X-Received: by 2002:a17:906:cc0e:b0:a37:4bce:ca00 with SMTP id ml14-20020a170906cc0e00b00a374bceca00mr234362ejb.59.1706928724058; Fri, 02 Feb 2024 18:52:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706928724; cv=pass; d=google.com; s=arc-20160816; b=DdbyltnBtgzQ1sN8RXkSmw3rP+1dCu34erUOVOZZ096HEmkLaTHeMhnXkMBXG6vcjF 4+Lv4ja+FwgUfLIFdp0yFxx8VFpkwlpAEUr/Q/Npeb2j3dOXgzwjOQ+2NBJt+D24mlSl eOzddjyNKXBl8TYxUNGdKWTTnwtOX3KmmSiJ7qO7dQ4mCUhOVhh7Thcl0hpXIeMzj3V8 AjZJNCbH212P5mtxOyjhF82ciTv5UtcxLB21Ex9n3Qg3AysUX0Zub0F1zR/gUwAbaRVU mQTXTWrxlK12gbQSq0tH1qGbkpEgTKrqEi58t8/h0gMZ0qxH73K90BA5nD4wMgksWhAK MeCg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VRemWOXPXiXIlDmi9y+GTnchb7p3I7IDu6uqBmXbsdI=; fh=dJ3wDU+f/ELVbf7uuhcoam33RaBjXI75G2BBXZlcLks=; b=08qYXEHR42DV/BqFsxX2Bjp2hxxUuFzNePPaLoq9dvT7fjau8sUSJg3AG2tnFJxBJH 52Ty9BMTJSuZjnnoDEdowwLRy4HEWAvb5Kxf4UAubXvIsy0BINbynQe7BY9sCcNTGA1y iDPBeCR/PoE/mYl+magoep7P972TZV/FzdV/H/Byjf5JqoL3aQQHXWb8wYSYo8WfSyau aTT+ENlzy0UMXfYnoqtBD7PQW22NlolfYO7LkKj9buIz43bYHzM51SEWEKjxHX2J2rDj 2hQL7vLKfWM7tB6dQXtFkBxLJwuvfLXtCsrGMXYA3T0418dKCGOQFZFxX0sX8y5IAqBS IJFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FlieCGL2; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-50855-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50855-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=1; AJvYcCVsG/+60WjRvJNyuBzkrWpu7Dnmu2bZjQQ6MHdKOEBYBrgI4u2kWmBOSoc4GT7QPvxvWNUk3XfoS1eLbi+C/5DwoyEa2Q== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lk8-20020a170906cb0800b00a366a0a5ef8si1370194ejb.611.2024.02.02.18.52.03 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 18:52:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50855-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FlieCGL2; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-50855-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50855-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 818661F24903 for <ouuuleilei@gmail.com>; Sat, 3 Feb 2024 02:52:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 471A9524CA; Sat, 3 Feb 2024 02:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="FlieCGL2" 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 26D761B818; Sat, 3 Feb 2024 02:37:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706927877; cv=none; b=GjmXQpmFaC3RhZeZk/5KyrLp4rSjJgU0AkifYcvfgC4NYsftTenK9g5dyp+0US3rrA1gwq0VkLgCPe2GREhVxHiH//612VcCrIYj0jpK5uY7tSnw+wwFhfEUjvsFUjhppi/aKyb62rCUqXgaNnfZ4tk+Zxxhd/Hbhnc5s9DEdWk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706927877; c=relaxed/simple; bh=Q9v7m21SznsQRBxoPQiAbg8VdmmvPkGv0cpZczE0uEo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=F6HfuQUYNVv90IA7FzB+yey9IZaCeQAX2oWKBZ8kDqxNSb5iFqGi0QB3U3Dh5eXVdcUpFZB0yLdVrjarAd83m+vf9KkGKShfXJZpIQ4z31cLb5f9M4STVkIeIiLAyB721JMmd/EIiL2AbDo00Rmf45Ir55MnwV9eZL34uW38QXg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=FlieCGL2; arc=none smtp.client-ip=205.220.168.131 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 (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 4132P4fr029143; Sat, 3 Feb 2024 02:37:29 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=VRemWOXPXiXIlDmi9y+G Tnchb7p3I7IDu6uqBmXbsdI=; b=FlieCGL2Y48vavIRopxa1JVKR10va4QJSMC4 +UBn5d9ccby3CKyuuM9Q5hhlIhz8C/oQWq2CMUL6nXG2Dk4KCdrwb7BfVkvGkvZ6 W9oF5GNlbSLvl/n5B1RoHyIBFdLcqlMBCRSuhej2Ke5suIMQfmk5bkG5Bll1foF4 aQNBy0iE4+AaeZL6mobphvM6eExfy20NuNNvYhEu/FlQzkreBMh5nI2THCAIKxY+ lWnx63J2tKvcyf2DYeKYZtc9SC8e7pDX7AtWHMcRA60C6nLH5dO5FbZQ9Iqle/LR 3OW3Rq3N2vLfk6q/DBojPpkaZgZNh1NKPIsmNtV/bYAvL6Gqng== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w17yegd4m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 03 Feb 2024 02:37:29 +0000 (GMT) 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 4132bSvi003588 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 3 Feb 2024 02:37:28 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.1118.40; Fri, 2 Feb 2024 18:37:28 -0800 From: Wesley Cheng <quic_wcheng@quicinc.com> To: <srinivas.kandagatla@linaro.org>, <mathias.nyman@intel.com>, <perex@perex.cz>, <conor+dt@kernel.org>, <corbet@lwn.net>, <lgirdwood@gmail.com>, <andersson@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <gregkh@linuxfoundation.org>, <Thinh.Nguyen@synopsys.com>, <broonie@kernel.org>, <bgoswami@quicinc.com>, <tiwai@suse.com>, <robh+dt@kernel.org>, <konrad.dybcio@linaro.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>, Wesley Cheng <quic_wcheng@quicinc.com> Subject: [PATCH v13 37/53] ASoC: dt-bindings: Add Q6USB backend Date: Fri, 2 Feb 2024 18:36:29 -0800 Message-ID: <20240203023645.31105-38-quic_wcheng@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240203023645.31105-1-quic_wcheng@quicinc.com> References: <20240203023645.31105-1-quic_wcheng@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) 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: QgYV7ZmuoGSZl4O8OJwCN-XcHubzbbDP X-Proofpoint-ORIG-GUID: QgYV7ZmuoGSZl4O8OJwCN-XcHubzbbDP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-02_16,2024-01-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 suspectscore=0 mlxscore=0 lowpriorityscore=0 phishscore=0 spamscore=0 mlxlogscore=989 impostorscore=0 priorityscore=1501 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402030015 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789844493961702433 X-GMAIL-MSGID: 1789844493961702433 |
Series |
Introduce QC USB SND audio offloading support
|
|
Commit Message
Wesley Cheng
Feb. 3, 2024, 2:36 a.m. UTC
Add a dt-binding to describe the definition of enabling the Q6 USB backend device for audio offloading. The node carries information, which is passed along to the QC USB SND class driver counterpart. These parameters will be utilized during QMI stream enable requests. Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com> --- .../devicetree/bindings/sound/qcom,q6usb.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6usb.yaml
diff --git a/Documentation/devicetree/bindings/sound/qcom,q6usb.yaml b/Documentation/devicetree/bindings/sound/qcom,q6usb.yaml new file mode 100644 index 000000000000..37161d2aa96e --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,q6usb.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,q6usb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm ASoC DPCM USB backend DAI + +maintainers: + - Wesley Cheng <quic_wcheng@quicinc.com> + +description: + The USB port is a supported AFE path on the Q6 DSP. This ASoC DPCM + backend DAI will communicate the required settings to initialize the + XHCI host controller properly for enabling the offloaded audio stream. + Parameters defined under this node will carry settings, which will be + passed along during the QMI stream enable request and configuration of + the XHCI host controller. + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + enum: + - qcom,q6usb + + iommus: + maxItems: 1 + + "#sound-dai-cells": + const: 1 + + qcom,usb-audio-intr-idx: + description: + Desired XHCI interrupter number to use. Depending on the audio DSP + on the platform, it will operate on a specific XHCI interrupter. + $ref: /schemas/types.yaml#/definitions/uint16 + maximum: 8 + +required: + - compatible + - "#sound-dai-cells" + - qcom,usb-audio-intr-idx + +additionalProperties: false + +examples: + - | + dais { + compatible = "qcom,q6usb"; + #sound-dai-cells = <1>; + iommus = <&apps_smmu 0x180f 0x0>; + qcom,usb-audio-intr-idx = /bits/ 16 <2>; + };