Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14830069rwb; Mon, 28 Nov 2022 05:29:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf43G6xbqymYa92J2CoShKHcvNgR4fmEf8/QMnVFahQwgwWvikE/gBJQeFXSzWGI6+RdROTI X-Received: by 2002:a17:902:9892:b0:186:c3b2:56d1 with SMTP id s18-20020a170902989200b00186c3b256d1mr32950791plp.15.1669642185835; Mon, 28 Nov 2022 05:29:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669642185; cv=none; d=google.com; s=arc-20160816; b=J+ePDZGsswHjeKIPJKFLe+Ryi8sOog5WBtBymPORZDfVmaJB1w5Gzg9LwSuP7czPvq 9B4oL6L003xnI7nPLCXW+MON88ysPiLVE5JtHzRqxIXw85+PrnytHFUoPt7Frewgzf7R clLbkjKRi7JIlQ9oJSxwj0q2XvKqRZ220SrK7gGPvGW2Ny2le63byPDUs7I3A5hTQOkL OqvxTdnsVMajzBscZMDqf5Irur6DKI9PZRor+yOg/jBaHpdzuhePgNW1nmwPdZYaSpk7 ZFfzOQBBqdt5Jq60JWq93074t9XyoAdqrhQGDI/vDK7jsGJ3IO213AsXXvDf2467O+JC ZQrw== 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=/wTo2gW+4x5gFndSLbB4s+nQn/GLvI6rLokgtLqY6ts=; b=zT+zGnOTIeD8dKi90HjEbWAbYnvwwU4f5jwWlihb1vm+RKgdi+fZj2RaYMzM5aPLVr iWWKxpRPlp1KTUEzPHn3gFIUpUzhU6tf8n9vR8pcUeDTXfWEuWgNFVqwaqLj69Jmbz+/ qODhz1gitGYeBFW7auiLiBhQupqYGL3O0O3VemMW3f/22tD4xJ2qHqowO+Py07t5aaW1 JSPqzslkrBwJ+XOLf487gXHl47JpPBnA7IyEjgtMb+DedoI7E0lD9sGmk0wdvosadqWa x4l6x2OCGRRjzvWfclbDNyBjf2ndeYjDYTdlMRwKK9Auv77ZH+D+J4ZQdA8BNpxuOCce Swsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WdB9AjzS; 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 w13-20020a170902e88d00b00188ef2314b2si13401979plg.79.2022.11.28.05.29.25; Mon, 28 Nov 2022 05:29: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=WdB9AjzS; 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 S230509AbiK1MpF (ORCPT + 84 others); Mon, 28 Nov 2022 07:45:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230214AbiK1Mo4 (ORCPT ); Mon, 28 Nov 2022 07:44:56 -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 92A966562 for ; Mon, 28 Nov 2022 04:44:55 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id u27so6132099lfc.9 for ; Mon, 28 Nov 2022 04:44:55 -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=/wTo2gW+4x5gFndSLbB4s+nQn/GLvI6rLokgtLqY6ts=; b=WdB9AjzSRXkmVkdu6kO7Jrb98eEuh0kiOaUCU9H60cuTXUNZCHUh0Ab5sjjcynBV9c RiLIPLuevW6E7+/kyCB2DaRMW4ieB470W0ljDYWp2FshNFcqTF+KakV6yZHy8mN4dorf duigqh6VdoxRFlunLxQyed177wCDduiJ0EwfCfQMujC2uUBeiehg3irr5izYtYvPKaAL kao9IkvN5vNdLs00UC+Ma9O324lYwt+4QQrmMcwziL9wxKa1KkvuokXnyj7z9KASQv9A TAokMQ2Q345WhmSHjrzfIE/uQkIKUwzpWx381QAkmEy0hu7hoXbusEOCOONawfKfvjTg s+sg== 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=/wTo2gW+4x5gFndSLbB4s+nQn/GLvI6rLokgtLqY6ts=; b=Rh9qSl0xM5uDc5XPz32WVxYP0mIOyG2X2Xi4USMgPIj9ZRSvdDY5yOWRcczS8RyA8U YfPW52qhVn2WyKgr7NXAAo+71hCY4OX1+YF+n0Mjx6Gn0oRbA0XavGvCJda8qVN8BMs4 xXiSNpY0zH78rMHNGeAVP8sfq5O+Of7vo5qgfDaoThA2XILwrlomTOJboX0hIByLoV63 MnsGr8d1X3q2J7cOkqNMIbhlICse0hpZB/rq9awBCQDaSwhN+pVE9eQUrqkvZmdRJWAS DtX0jOwx7iuZmMQ5kiV1bZqa7vYEXWzssFEn9rT0lgjw/RYmujtG1FUMwK3oij7VlK9B 0WuQ== X-Gm-Message-State: ANoB5pnr0AYJyuydyQxRnvkG4qAKAKJxwhQSB1+4bpchUPe3/Pxxz4Qz kicceaDr+VvWclub34lB6Vkndw== X-Received: by 2002:a05:6512:2985:b0:49a:d9ae:3038 with SMTP id du5-20020a056512298500b0049ad9ae3038mr11795884lfb.44.1669639493946; Mon, 28 Nov 2022 04:44:53 -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 z25-20020a195e59000000b004aa14caf6e9sm1735425lfi.58.2022.11.28.04.44.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Nov 2022 04:44:53 -0800 (PST) Message-ID: <30be93a3-c57f-d4c9-c154-6f12b9dc5dc5@linaro.org> Date: Mon, 28 Nov 2022 13:44:52 +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 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> From: Krzysztof Kozlowski In-Reply-To: <20221123104342.26140-4-srinivas.kandagatla@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 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. Best regards, Krzysztof