Message ID | 20221123104342.26140-1-srinivas.kandagatla@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2716823wrr; Wed, 23 Nov 2022 03:00:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf7xbFIZ638DTnNhKEMUs5uCgitIfQzvNZUh26XF5MvHtnkthn6q/QJ/oM8fKLzVBG3SsbNc X-Received: by 2002:a17:906:90c9:b0:7b2:b783:f26b with SMTP id v9-20020a17090690c900b007b2b783f26bmr19764979ejw.406.1669201223673; Wed, 23 Nov 2022 03:00:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669201223; cv=none; d=google.com; s=arc-20160816; b=GYo6hdMbh6/y7PYWYytkCzDk8llM9qTCp7DzWzm/Pitz9aQEA+e+WcpOxIzTi4TgMs hz7kLUGb3Th+L/+Aa2DYjUBcNg9mPHth827QZYGibhLpCn9IaQpZ/yo3Hh6rj++WBlno uWXOSEXnmGTt2Dm0O/zbMc5GNGOyjJKNXDDlU/xIvRAZjrCtIp4HM/gb+RqVFz3iaJol vhARY3C5sG+8DlV+HpkR7UatKcc2LGyPgOmDbkdBYdPrqDSU5HS3lsMGSUoEKZZgeUbw yTKplYO/ExeZo/FfqhfWNolNlEAhgAwnbAFMsxeEqSfFMnymBtVE+tywIKkT1D+kIEWd x+Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=HQyLvCzbt2wM1lhyjajUPlXQlhjXT3xZOAd7RCIM1cM=; b=xtFLUhFSZJPQcQymB6UWlvcgoEZKlpPosXB3ro91FeFIduydEeGnHXjaTMCCHu/3mt e3TSqT2aU6bAAuwL9u2OpBTbBuOCadUcni5cknG1jWw+oRSkMiXhhwfJ1SwQANqkx4sj RIngC2fl342fcRcvJ9PRUPkaSntb36ETqqdgcjuBkY4HXJdnQF6btHG9quKC6se3ssP1 XE6XTHnv2uVPbDJC7Ts6L29MCQNJzm2xyXVryrqfpvYDKRe+fbDk2xgKhTfLiXFepg7M ATh1lzY7CRJeHds6VkckRD4a8AGvGi5WOf9RMXCv4C0lCQOhGmobsjOxdeL1by09sQ1/ J9zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T1E6bfqI; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n17-20020a056402515100b004517955b673si3703421edd.124.2022.11.23.02.59.59; Wed, 23 Nov 2022 03:00:23 -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=@linaro.org header.s=google header.b=T1E6bfqI; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237323AbiKWKzb (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Wed, 23 Nov 2022 05:55:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237123AbiKWKzB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 23 Nov 2022 05:55:01 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C05BA134139 for <linux-kernel@vger.kernel.org>; Wed, 23 Nov 2022 02:43:54 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id ja4-20020a05600c556400b003cf6e77f89cso2727904wmb.0 for <linux-kernel@vger.kernel.org>; Wed, 23 Nov 2022 02:43:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=HQyLvCzbt2wM1lhyjajUPlXQlhjXT3xZOAd7RCIM1cM=; b=T1E6bfqI6mODJG2H5eubFSuOhv0/B2d3xAyxxbSg+wGOxZL1Y8wb9bFb2TPRx94LtP nthw3RGN9xFRp8iI5xpSd2JnEvuWuxS+mrdcXo1nlZbbYiDtFQAtbfyRoEwG0ka2f9M8 YIBxbZer3EB2stmNecHW6w+RWrwb2dbSAEJEn1Uvx92rYEBPzScuIe1VnAVBabWi2B+P rhOv5eG5BziNqIec41HyHRs9cLWJclekRIvRhqvI1gyS6wL/gTR00f6N8NqcuhgHpcxU BwMzuWSK9S6vaReb0HZ2tfxV7nyW0VJG9GVGDc19dUUEvsBeO4j8rLC2GUJHonkIVGhQ 4UxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HQyLvCzbt2wM1lhyjajUPlXQlhjXT3xZOAd7RCIM1cM=; b=yUgOzVCGRFiCKW2y01QKcTnO+og5jZs+44ofx2lxbdzvWj06Jir+Wwyek4RZ5irvbz vop5KjboPw3OOGQzgdhIMlpQoINDAkOMgXASK3s/OFEoUT9QPYexkVjGnX5Iwn/+C8Vs H0N1YoyzE/KUcYbAHrjGXZsDJA4Q7KfQwbByTC/8QksOOb43iLchSUSD7kh1A0dp3UxP JTs+Z7NkZ+jwRpPgltWdkmzpi9ul4NQ8r8T/e0PBHBKlztBDJWjeRPmE06lC1AiFE7mR WGAzO928PuWg76oJYE0cVRSmYJq/OJtJinaFTWafGlOP6xaQGxFfpaPKj86q3Ls/91lq 6iQQ== X-Gm-Message-State: ANoB5pl/OqQCo+oyqKA305ZTZs/45V5+AxkEEvpVqs9RWou3XJuJPyDf DXe60wR75zp0+1as/pP1hHUGwA== X-Received: by 2002:a7b:c00f:0:b0:3cf:7066:cf53 with SMTP id c15-20020a7bc00f000000b003cf7066cf53mr6258770wmb.135.1669200233249; Wed, 23 Nov 2022 02:43:53 -0800 (PST) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id v14-20020a5d4b0e000000b002416e383e1csm16526863wrq.25.2022.11.23.02.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Nov 2022 02:43:52 -0800 (PST) From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> To: agross@kernel.org, andersson@kernel.org Cc: konrad.dybcio@somainline.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Subject: [PATCH v4 0/3] arm64: dts: qcom: sc8280xp: add audio support Date: Wed, 23 Nov 2022 10:43:39 +0000 Message-Id: <20221123104342.26140-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1750284342005997526?= X-GMAIL-MSGID: =?utf-8?q?1750284342005997526?= |
Series |
arm64: dts: qcom: sc8280xp: add audio support
|
|
Message
Srinivas Kandagatla
Nov. 23, 2022, 10:43 a.m. UTC
This patchset adds audio support for sc8280xp Lenovo x13s. Support for Headset Playback/Capture, Speaker Playback and DMIC is tested. A prebuit ASoC topology file available at https://git.linaro.org/people/srinivas.kandagatla/audioreach-topology.git/tree/prebuilt/SC8280XP-LENOVO-X13S-tplg.bin Thanks to Johan, Kryz and Konrad for reviewing v1. Changes since v3: - ordered include in gpr patch - removed sa8540p in subject perfix. Thanks, Srini Srinivas Kandagatla (3): arm64: dts: qcom: sc8280xp: add gpr node arm64: dts: qcom: sc8280xp: add SoundWire and LPASS arm64: dts: qcom: sc8280xp-x13s: Add soundcard support .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 213 +++++++++++ arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 359 ++++++++++++++++++ 2 files changed, 572 insertions(+)
Comments
On Wed, 23 Nov 2022 10:43:39 +0000, Srinivas Kandagatla wrote: > This patchset adds audio support for sc8280xp Lenovo x13s. > Support for Headset Playback/Capture, Speaker Playback and DMIC is > tested. > > A prebuit ASoC topology file available at > https://git.linaro.org/people/srinivas.kandagatla/audioreach-topology.git/tree/prebuilt/SC8280XP-LENOVO-X13S-tplg.bin > > [...] Applied, thanks! [1/3] arm64: dts: qcom: sc8280xp: add gpr node commit: e73defb2deee74f3f4988196bf0c21782dffa415 [2/3] arm64: dts: qcom: sc8280xp: add SoundWire and LPASS commit: c18773d162a63f65024e80ae355e3fbc923e7255 [3/3] arm64: dts: qcom: sc8280xp-x13s: Add soundcard support commit: f29077d8665221ba2802a29ee7bd9fcef66cde81 Best regards,
On Tue, Dec 27, 2022 at 10:36:56PM -0600, Bjorn Andersson wrote: > On Wed, 23 Nov 2022 10:43:39 +0000, Srinivas Kandagatla wrote: > > This patchset adds audio support for sc8280xp Lenovo x13s. > > Support for Headset Playback/Capture, Speaker Playback and DMIC is > > tested. > > > > A prebuit ASoC topology file available at > > https://git.linaro.org/people/srinivas.kandagatla/audioreach-topology.git/tree/prebuilt/SC8280XP-LENOVO-X13S-tplg.bin > > > > [...] > > Applied, thanks! > > [1/3] arm64: dts: qcom: sc8280xp: add gpr node > commit: e73defb2deee74f3f4988196bf0c21782dffa415 > [2/3] arm64: dts: qcom: sc8280xp: add SoundWire and LPASS > commit: c18773d162a63f65024e80ae355e3fbc923e7255 > [3/3] arm64: dts: qcom: sc8280xp-x13s: Add soundcard support > commit: f29077d8665221ba2802a29ee7bd9fcef66cde81 Perhaps merging this was a bit premature. I just gave it a spin, but this is apparently not even expected to work without various changes that are still work in progress. For example, the codecs fails to probe with: [ 11.077727] qcom-prm gprsvc:service:2:2: DSP returned error[100100f] 1 [ 11.077926] rx_macro: probe of 3200000.rxmacro failed with error -22 and you need an out-of-tree hack to get around that: https://git.linaro.org/people/srinivas.kandagatla/linux.git/commit/?h=lenovo-x13s-6.1.0-rc7-audio&id=0bffb619bf7929c56b7458af3a583fa9ce87fc26 I learned that the hard way after a debugging session. Even with those hacks in place, I see: [ 14.466733] qcom-soundwire 3330000.soundwire-controller: qcom_swrm_irq_handler: SWR bus clsh detected [ 14.522324] qcom-soundwire 3330000.soundwire-controller: swrm_wait_for_frame_gen_enabled: link status not disconnected [ 14.522372] qcom-soundwire 3330000.soundwire-controller: link failed to connect so this does not look like it was ready to be merged. I'm still not sure what else is needed, but there are a bunch of other work-in-progress changes in the above branch. Srini, next time can you please document such dependencies in the cover letter to avoid having people debug things that are not even supposed to work yet and so that we can hold-off on merging the dts changes until driver support in place. Johan