Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15132349rwb; Mon, 28 Nov 2022 08:16:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf57vn0Ap30QpbSTkDzG2lfwtOq6sLkyxVx4DLScT71mFN7c8597SCe2bwjTFkgfSq3G9otl X-Received: by 2002:a17:906:99c8:b0:7b5:ff35:6715 with SMTP id s8-20020a17090699c800b007b5ff356715mr26235485ejn.255.1669652205337; Mon, 28 Nov 2022 08:16:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669652205; cv=none; d=google.com; s=arc-20160816; b=Hs5Jj20gjqQYMH52fR0LlMZs+YsXOhMwKqbp7T+aJA/AAmaERa5TuKcRFExqhDV2Ce iVlFqctOf58XDoT0RvFT/oQkti+K1mzo/Vg0VwasB7+IfAZLZTx+mEP2/Y7rrUPCGfws rlPzBqsX6R19JF5KO/AAUdVqeLbPmiDHT6gNVjSkXKKN1jIqk0Eg6e/x8/9LRQV4fJfx BJYshTKC+sMYhhDJlzOKv1mFnzTjZepGQxLHuvV4c5NasfmNBEMCaOi/CaPv1ijxGp8U PfVGcDAbmWMaCiKL+RcDNQ83uo7aI96BRgWd9PI1hE+Ngo4Xti1JcL2a9hecZo6Ciq2F HKmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=+5amvz7msIQE/Aa+SDeT9RjytpJTz/H0MFfzRFpbJzU=; b=EJFOHjw8Czqr6WN6EaBek8fZ0X2TWUoLN/AfnPY+h6My+bgBb3LhWJgzhXQXYCtFTA suXJ3XxYRVfRFic+QxnqgFs/tZd4vGVXUNBvizf+PbLBrYl+/oqi4qdzDI37r7SLZ407 WKnOrZJCn3gbQIf4rlF5G1BscEmj/+avquebupWVQgsgqxnrLBjIa+00a6gOB+BBX06n p43SRp9Ozz3BO554WTz/Vk/6Pq15srwhkrJqIY7tIKIyHymxOEh89vppwucu2ECY3+JM F2D4I+oqeBmcEzHP6ArTHavq4XO4xq2tg48gUmehy4KVnkKAbYsB1DXTHUAPxPpZxJ7x OdpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LQziLqGW; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w17-20020aa7cb51000000b004615b657cbcsi8287921edt.190.2022.11.28.08.16.23; Mon, 28 Nov 2022 08:16:45 -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=LQziLqGW; 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 S231164AbiK1Pie (ORCPT + 84 others); Mon, 28 Nov 2022 10:38:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231219AbiK1Pib (ORCPT ); Mon, 28 Nov 2022 10:38:31 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3DD71E3E0 for ; Mon, 28 Nov 2022 07:38:30 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id ay14-20020a05600c1e0e00b003cf6ab34b61so11954077wmb.2 for ; Mon, 28 Nov 2022 07:38:30 -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:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=+5amvz7msIQE/Aa+SDeT9RjytpJTz/H0MFfzRFpbJzU=; b=LQziLqGWjTaXkBZAob4Y/r7XrXzAVVTbeG3m3Tn+0JMjAnE4ZXo2oDhV3ZRNpFk2G0 UdfQ12X2ReGkDIMk1367ji/ovCu0R8v+XwCApr/+y+JGu2nTLqLSpFk6Fi47APqIqA5v IlkUoVWDah4pQAj0JwF6gjwWbv9y4/+kUfdld8WvqyZy0CK06Loc4ecPRp6mszQEAwIA BqxQOLkbAi862mI8WQqF3QRXeIhOl55Ee2eDZJnnmssV1axdBypDVsGIa1WyKOlqA3G6 AqDBuJygIq3H04Xx45zwVV0xsK2/2xkA9Mqry9RydqHAp5Jq9sc406IoR6XqriVAuDjW STjA== 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:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+5amvz7msIQE/Aa+SDeT9RjytpJTz/H0MFfzRFpbJzU=; b=hCWy7H+5J7hP5BpF4XDgqitXp3JDHXK07boMB7kB5dG3xbhCgC6pifecUhxVyDLaxX UP8JlpDkl3D/+GUvapiKa2F9HegWdJlFAb6N5xJCaTttlDtkT8R3cvCPXsNqns9lGAji ssj980ZWzB+Jcj+WA2u2aJ5411SWk26Eo4pm6m61HLSYJKr7iJAFkzsUqBm6NBgKvyau ktEt3SD4c3WgaFA4tHF/L1H4X9KWG4VT3PK3bv2pwAdjjTJL/lw1yvuVkb0AIzhC6/k3 cwAOJpa95v8O/5CTbB6UolcxQuDsWG05lcdNG75RVAVGhO6eCyddZmoKCPLGvA1uKbMv dAiw== X-Gm-Message-State: ANoB5plhA8rRp/e+m909umhriD2exgo3WJFLtnMWorsRYmBlA78d01zD XuAKW/1eWmH6G/NSc1WPsFT6MA== X-Received: by 2002:a05:600c:298:b0:3d0:2707:ad98 with SMTP id 24-20020a05600c029800b003d02707ad98mr23955074wmk.171.1669649909080; Mon, 28 Nov 2022 07:38:29 -0800 (PST) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.googlemail.com with ESMTPSA id m7-20020a05600c4f4700b003cf37c5ddc0sm16377632wmq.22.2022.11.28.07.38.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Nov 2022 07:38:28 -0800 (PST) Message-ID: Date: Mon, 28 Nov 2022 15:38:27 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v4 3/3] arm64: dts: qcom: sc8280xp-x13s: Add soundcard support Content-Language: en-US To: Krzysztof Kozlowski , 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, Konrad Dybcio References: <20221123104342.26140-1-srinivas.kandagatla@linaro.org> <20221123104342.26140-4-srinivas.kandagatla@linaro.org> <30be93a3-c57f-d4c9-c154-6f12b9dc5dc5@linaro.org> From: Srinivas Kandagatla In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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: X-Mailing-List: linux-kernel@vger.kernel.org On 28/11/2022 12:58, Krzysztof Kozlowski wrote: > On 28/11/2022 13:44, Krzysztof Kozlowski wrote: >> On 23/11/2022 11:43, Srinivas Kandagatla wrote: >>> + >>> +&swr1 { >>> + status = "okay"; >>> + >>> + wcd_rx: wcd9380-rx@0,4 { >>> + compatible = "sdw20217010d00"; >>> + reg = <0 4>; >>> + qcom,rx-port-mapping = <1 2 3 4 5>; >>> + }; >>> +}; >>> + >>> +&swr2 { >>> + status = "okay"; >>> + >>> + wcd_tx: wcd9380-tx@0,3 { >>> + compatible = "sdw20217010d00"; >>> + reg = <0 3>; >>> + qcom,tx-port-mapping = <1 1 2 3>; >> >> I think I solved my head-phones one-channel problem. >> This should be <1 2 3> and in DTSI: >> qcom,din-ports = <3>; WCD938x TX device has 4 SoundWire ports and LPASS TX macro SoundWire Master has 3 ports this mapping qcom,tx-port-mapping = <1 1 2 3>; defines how wcd device SoundWire ports are connected to SoundWire Master port. >> >> The downstream waipio-audio-overlay.dtsi says: >> >> 56 qcom,swr-port-mapping = <1 SWRM_TX1_CH1 0x1>, >> 57 <1 SWRM_TX1_CH2 0x2>, >> 58 <1 SWRM_TX1_CH3 0x4>, <1 SWRM_TX1_CH4 0x8>, >> 59 <2 SWRM_TX2_CH1 0x1>, <2 SWRM_TX2_CH2 0x2>, >> 60 <2 SWRM_TX2_CH3 0x4>, <2 SWRM_TX2_CH4 0x8>, >> 61 <3 SWRM_TX3_CH1 0x1>, <3 SWRM_TX3_CH2 0x2>, >> 62 <3 SWRM_TX3_CH3 0x4>, <3 SWRM_TX3_CH4 0x8>; >> >> I just don't know what how to trim the port config properties - we >> have there four entries, but channels are only three? >> >> Where do these come from? The downstream: >> asoc/waipio-port-config.h / lahaina-port-config.h >> Do do not have port config for this SWR. yes, that along with dts is the source for this information. --srini > > Eh, not sure anymore. My second headphone started to work without these > changes, so I have no clue. > > Best regards, > Krzysztof >