Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14886666rwb; Mon, 28 Nov 2022 06:03:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf5oK0FnsGfvBL1e/TmCQ/aY9XF03140F726jsXxjXz8naoUntq6krumv/DJ3a6P/vmA0SSn X-Received: by 2002:a17:906:c7c9:b0:7bc:c56d:1026 with SMTP id dc9-20020a170906c7c900b007bcc56d1026mr13485028ejb.291.1669644199501; Mon, 28 Nov 2022 06:03:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669644199; cv=none; d=google.com; s=arc-20160816; b=PsbjSEIQYTZ9cWMhFMeWJyhstD8liqfrQL0PHS33k87CjduOAfI/St6jpyd3v/rVP2 0d2ayefLvOvkLCC5CzL7TKeThGSRU4sHzOd6uHIlIbt51aKPQVRKVJPqgVhNHvLN1B06 +EImDhVyNRJr/Pl30zaQ97SjWR3oDehjsqsuO2RWjXCVvwfV5ZR0VHGuuZdvvu1n1HEN 0dodE2TOTbC6VvcwDLbSt8KywpFVzkTTLYGxCr0XQrO8gEwKOsBwVYSAzOgMBsg6t+o0 SUD1cFziGY7K35w9rNc/HXzrDkMHXv1g8eRHXRLNznV9Nxl55cvl9lb5l96CP9bQI1qS HWpQ== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=ySA7bRXHeIR11FzsN6t6JCDddPE/x+8Ds1P9CNQXQOg=; b=PJVc/uw4Ep+lD//jcscvdD8qCdi/SQIPd7qg3JPg44WKAi5/Bjw7AQ0ypdmNfm1Kaf EPqI3wOHaw+KBEn5fwmAqwbdW8JR80JrpdELaJCxDs6LakZKZPR4yWY2EphkjwDkJcte 81gh46mt+rIkWTrBBwiQJijGbRyJn2KC2Et0pxa7aUZ4H84IMJV3CjLOfHVu4bdCyNeU 2oJ0blmp1lIvjLEK2Ycm9BVG4rNCRZ4a2J7YoADZnY0A04wtv8//55lhPSgplFuEQ6qZ tsFTdrldmSpuy/q4ldHllh3BDV1ED4FMPe7hA+SeSaVY0yShDG+7NKlYm49buTdhJgWG rc1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="lH2Z/gd3"; 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 dr5-20020a170907720500b007a7a3b40920si10864753ejc.995.2022.11.28.06.02.51; Mon, 28 Nov 2022 06:03:19 -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="lH2Z/gd3"; 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 S229869AbiK1M6M (ORCPT + 84 others); Mon, 28 Nov 2022 07:58:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229659AbiK1M6K (ORCPT ); Mon, 28 Nov 2022 07:58:10 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0824DF12 for ; Mon, 28 Nov 2022 04:58:09 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id p8so17177412lfu.11 for ; Mon, 28 Nov 2022 04:58:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ySA7bRXHeIR11FzsN6t6JCDddPE/x+8Ds1P9CNQXQOg=; b=lH2Z/gd3UH+oqwY2SOhBzqVjGuJqhBvscZA+S7Gx+WNUrzF9oDc1la6QCOV6+PDjz0 n/jz7GN5yoUKVSqxMSxRhRjoPQ3KRhJQuLK4ccqUhvW8bu/g5P4pdJqizJ/JljZMUWMC 5MrPEzHBrWHblEuwlxAqWf/DiBNMl6AZC5CwT6/Uq2eq/m3i9Pt8GtNHl6+IOXlxg0gt WNcT2HEvjQVrERngJYXH6/Q7pNE2+oHQ8PtSFf+yZknzJBfxBQ0fllRki1iCTJeic0Nm RWdb1uNBObR8Law4uhsIxBBJrrQUgInmLIhKXrtsMC7F9JSOdstYpGW4L14LQFgDkBS/ VETA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ySA7bRXHeIR11FzsN6t6JCDddPE/x+8Ds1P9CNQXQOg=; b=wInXDhukW8s+lFst31FQwy/4FOBmhuhQ/z4PlIdjaDQFi7+2WUJWh3H8jJq5PTncvG MUmcZ0oUAFgt6ZZO2zs4MpiB97gOYo1LcQ53HowPWQTaSrsv3Hujl5CZfTPQxhO8Qnyu /eqpKX1Fe+TywtLtz0X4FxxrPYuOyEiaUftPRZOCW0yFRER+JpSf3PEIVhhW/aETm6Tv HDO6DFKXmLwlEp+OKLSuG7uY/4YcOWXd2n/Knoys/hyGZbAjfamnxpNN3/wjECeohTzK n/aLCrEOvzB1pIST4sWlpAqkc2iTOFubzoGhLBt/heJoA8Ptx5rKcIfgaLjwn1/2iQv/ +sew== X-Gm-Message-State: ANoB5pmPlNI9QT/1KQxUY3DXujHeceC39g4htOmJFlB4ch+ce+VDIZki zDXtZ+aUgISkwCM27qZ3T+IhBw== X-Received: by 2002:a05:6512:36c5:b0:4a5:fda9:70b1 with SMTP id e5-20020a05651236c500b004a5fda970b1mr19558003lfs.473.1669640288100; Mon, 28 Nov 2022 04:58:08 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id i12-20020a056512318c00b004b51cec187bsm62406lfe.290.2022.11.28.04.58.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Nov 2022 04:58:07 -0800 (PST) Message-ID: Date: Mon, 28 Nov 2022 13:58:06 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v4 3/3] arm64: dts: qcom: sc8280xp-x13s: Add soundcard support Content-Language: en-US From: Krzysztof Kozlowski To: Srinivas Kandagatla , 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> In-Reply-To: <30be93a3-c57f-d4c9-c154-6f12b9dc5dc5@linaro.org> Content-Type: text/plain; charset=UTF-8 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=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: X-Mailing-List: linux-kernel@vger.kernel.org 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>; > > 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. Eh, not sure anymore. My second headphone started to work without these changes, so I have no clue. Best regards, Krzysztof