Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2E7AC77B7A for ; Wed, 24 May 2023 13:28:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230255AbjEXN2p (ORCPT ); Wed, 24 May 2023 09:28:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229752AbjEXN2o (ORCPT ); Wed, 24 May 2023 09:28:44 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EDE0A9 for ; Wed, 24 May 2023 06:28:42 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3f623adec61so5701415e9.0 for ; Wed, 24 May 2023 06:28:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1684934921; x=1687526921; 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=dpaEDaEMiz0twNyfrOrBugRFe4goGloP1Qpqk47QwlA=; b=RRpnCjpjHBTwE/i8foXECp1howHpUJB08S3RDHVRKvOK+eeAwsKC3x39tLqwNhysca cI/sZp9eC0H8WA5MnMR3Wck3kwLEVf86vv/q5HMBHGSWy4KCGj8fcAyYih8bFlYz+sdD pxEo14qjxYnXZIROoJUVb/epU2pySWQZPM/UhVVhdK+inP5pxhiZDg0rcJ8490MDOf2D lFZHi9cri7PBUqx0937e80otPcYbB6cxD6Aov9gHkFGDb0QFamRLyqrj2Ycmk3UH1NrR hoc4lFkin632699KFRBucYZo/CD34eAaRYyFXiPx/o7vUmZC9N/i30ORAGH8AuOAj9jx oGnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684934921; x=1687526921; 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=dpaEDaEMiz0twNyfrOrBugRFe4goGloP1Qpqk47QwlA=; b=HPRCRAPeQAM4rinY8Q6vKNC+ZJdqEhhPGZF0/ZSxmAdqvNU0o2dBofPW79PaPprrhF 5FQHOROufd6lrqV/SZHpfipp/yfaJIrVPbS03d7fWu00/hz05+wtf1+g/06OKPLyNimq e0gk2IzEixTv9l/x5jwt2Qt7yDENievVmdFVoD5U3d+r4ZIfQnSTwaaDY+0IzQ/mzJq9 +xvdrw0GF+DWBgWb1+sLIEXeM13cPTvibOaPs5RbcXJMwQ1Zdo8zudfPvBjFOWRBYc1W I0yxogt5j8Roy3o4n58FdjwjrV17tcpZZ5Dq4RgJVH/gvMszXMfIUtwgeOvrMhY9GgE0 mvJg== X-Gm-Message-State: AC+VfDz5mkBC5VPfDuwvEeT928eQMf8FpqwNE56X1gtagUovtBJHXL1v h9zWZRO9IGEArBM56LvrgAAQsg== X-Google-Smtp-Source: ACHHUZ5UxTF7Ty4Ha1qHIPwkF1euAKvGxSLopaZQrr7mrvaQchq5F7/btnqI5+pGB6je42At5/7vFA== X-Received: by 2002:adf:ff90:0:b0:309:ccad:b2fb with SMTP id j16-20020adfff90000000b00309ccadb2fbmr10813993wrr.5.1684934920688; Wed, 24 May 2023 06:28:40 -0700 (PDT) Received: from [192.168.1.172] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.gmail.com with ESMTPSA id j3-20020a5d4483000000b003062b57ffd1sm14483595wrq.50.2023.05.24.06.28.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 May 2023 06:28:39 -0700 (PDT) Message-ID: <56b892cd-977e-5b24-55f0-df25e187308b@baylibre.com> Date: Wed, 24 May 2023 15:28:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2 2/7] ASoC: dt-bindings: mediatek,mt8188-mt6359: remove ADDA_BE from link-name Content-Language: en-US To: =?UTF-8?B?VHJldm9yIFd1ICjlkLPmlofoia8p?= , "robh+dt@kernel.org" , "broonie@kernel.org" , "conor+dt@kernel.org" , "tiwai@suse.com" , "lgirdwood@gmail.com" , "krzysztof.kozlowski+dt@linaro.org" , "matthias.bgg@gmail.com" , "perex@perex.cz" , "angelogioacchino.delregno@collabora.com" Cc: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "alsa-devel@alsa-project.org" , "devicetree@vger.kernel.org" References: <20230523021933.3422-1-trevor.wu@mediatek.com> <20230523021933.3422-3-trevor.wu@mediatek.com> From: Alexandre Mergnat In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 24/05/2023 04:25, Trevor Wu (吳文良) wrote: > On Tue, 2023-05-23 at 18:26 +0200, Alexandre Mergnat wrote: >> On 23/05/2023 04:19, Trevor Wu wrote: >>> ADDA_BE is used to connect to mt6359. For machine mt8188-mt6359, >>> codec >>> for ADDA_BE must be mt6359 which are configured on the machine >>> driver. >>> Besides, ADDA_BE is divided into two dais, UL_SRC_BE and DL_SRC_BE. >>> As a result, remove ADDA_BE from items of link-name. >>> >>> Signed-off-by: Trevor Wu >> >> I don't understand how "DL_SRC_BE" and "UL_SRC_BE" links are done. >> Why these dais don't replace "ADDA_BE" in this binding ? >> >> Regards, >> Alexandre >> > > Hi Alexandre, > > Because the sound card is mt8188-mt6359, the codec for these two links > must be mt6359. Thus, I specifiy the codec in machine driver directly. > If the codec is changed, there will be a new sound card and binding > file. In conclusion, the codec won't be updated via dts, and that's why > I don't just replace ADDA_BE in this binding. > > Do you suggest me add some information in the commit message? No it's fine, I'm just trying to understand. When you say "I specifiy the codec in machine driver directly", you are talking about this change ? + } else if (strcmp(dai_link->name, "DL_SRC_BE") == 0 || + strcmp(dai_link->name, "UL_SRC_BE") == 0) { + if (!init_mt6359) { + dai_link->init = mt8188_mt6359_init; I'm asking because the equivalent was done here: - [DAI_LINK_ADDA_BE] = { - .name = "ADDA_BE", + [DAI_LINK_DL_SRC_BE] = { + .name = "DL_SRC_BE", .no_pcm = 1, .dpcm_playback = 1, - .dpcm_capture = 1, - .init = mt8188_mt6359_init, - SND_SOC_DAILINK_REG(adda), + SND_SOC_DAILINK_REG(dl_src), So I'm wondering why "ADDA_BE" & "DPTX_BE" & "ETDM3_OUT_BE" are in the enum list of the binding since the codec is already specified in machine driver too. I probably miss something but I don't know what. -- Regards, Alexandre