Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp93669pxh; Thu, 7 Apr 2022 15:05:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/fcUWJ84s14BXfcPei2P5q9QYwKkcKypLelpQOzSGDpt7rEe6n25AuCQGkujByokXH8ax X-Received: by 2002:a17:90a:6781:b0:1cb:11f0:9c51 with SMTP id o1-20020a17090a678100b001cb11f09c51mr5829626pjj.243.1649369111434; Thu, 07 Apr 2022 15:05:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649369111; cv=none; d=google.com; s=arc-20160816; b=AwmWMRqmLhiabAQCODNgJwpUX6t/m1qV9VnbD+Jar3V4V7LCDY9JyfVeECgBpPkhkn bBD+fWk0I7L3l4bWqwYIStVbiRN70lWNy9f4ItxeUXxye5nPfFVoml4VjdDGf4wB4gOF QunXf9vjoEo4PIoSNReQqzqDFhSFYr+Pj3bEkS0QLGx5zzqQ+NlnPZchYw8v/EWUweZT lWuxezOQJOYE8zOaMIkKAC5dBpb7FKxylRyWJiAG3qcXVXjOjFrqBWBFNa4wI792KRjN Nrpb/kjafvnQsAFT6JbFn9lHuIvlT9SaJ5TvbXUIxZsXyfciOOUkiv8V7OY7j9UjHPln WXug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5eUdndpmmpqWb4awuaMct4F3GkIlOxAVA9XYhL/zxpE=; b=yA/0/785uOd1gf/sRovdUrqdmqN9wdpUB7ri3EwFn3Wd/hffIgkVTk7UdVRtgjIHMw yCq6RTxByHkYnxPHT4HUWLXH4InDthu0y0ZuYDSpZTdPlvVnR0riuGrsksOdKYPkN496 QM9zw90mUroAf4kMLT8/bN51lJOHoKsLMCZZH/fuMUoRLO6qziRVLrdWDU2XhJVGsqaJ YCW2lzrVDr8/qo/ovtP3daPJHSBuRrRjmKcsGJOGkHgZu5outCmwnQ7HvHjCFOqrNTvv r0Evlc0MiTVR1PdxKVzaAW8qNe8NVIPfVfPEu8eeI7dYBRzx9mFAEkLbVrkMJbFOQYTi c5Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=LiryOxC+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o12-20020a656a4c000000b003994a1ab024si13062218pgu.760.2022.04.07.15.05.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 15:05:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=LiryOxC+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BD05C198511; Thu, 7 Apr 2022 14:24:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231223AbiDGV0j (ORCPT + 99 others); Thu, 7 Apr 2022 17:26:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231180AbiDGV03 (ORCPT ); Thu, 7 Apr 2022 17:26:29 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EACA81947B6; Thu, 7 Apr 2022 14:24:26 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id 9D6F51F46A45 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1649366665; bh=ZM2JW5hpiHTPcC5mYT0UabIz9BN1FEYm0emgVb8w8vQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LiryOxC+H+6BonxWrZ4+pNbcRKz86e6YgydNpcl43YPOLnyxpjUYiuoJfDqPbWNjP za8u8bpPBJ2SUcPe72Vh0zPerv8izJOtPuyw7OH62o+US/bHtLN2nWjGExklAJZa0O bn45EReCe/JewyiEtM9fqb8GTOeZuirZ3BEyzoZbSnk0Dw9ET+f7p7neAGzBslUxZu LiuamJvfs1iYdtbMoc+KagPnr+mPm1qTutqlk/ISg5k1/QqMJTQDK/yJekAndw4APh Ct6w5Zg6lWpsHRJalImfqOHkw9c3inpZsON6kjdmQHIRTNg2i7lOizfBqNpYmJRIUg Fl8PimTFnVqvA== Date: Thu, 7 Apr 2022 17:24:20 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Jiaxin Yu Cc: broonie@kernel.org, robh+dt@kernel.org, tzungbi@google.com, angelogioacchino.delregno@collabora.com, aaronyu@google.com, matthias.bgg@gmail.com, trevor.wu@mediatek.com, linmq006@gmail.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Project_Global_Chrome_Upstream_Group@mediatek.com Subject: Re: [v9 2/4] ASoC: mediatek: mt8192: refactor for I2S3 DAI link of speaker Message-ID: <20220407212420.tncc576jo5iwaqk7@notapiano> References: <20220406100514.11269-1-jiaxin.yu@mediatek.com> <20220406100514.11269-3-jiaxin.yu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220406100514.11269-3-jiaxin.yu@mediatek.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=no 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 Hi Jiaxin, On Wed, Apr 06, 2022 at 06:05:12PM +0800, Jiaxin Yu wrote: > MT8192 platform will use rt1015 or rt1015p codec, so through the > snd_soc_of_get_dai_link_codecs() to complete the configuration > of dai_link's codecs. Suggestion for the commit message: As part of the refactoring to allow the same machine driver to be used for the rt1015(p) and rt5682(s) codecs on the MT8192 platform, parse the rt1015(p) codecs from the speaker-codecs property in the devicetree and wire them to the I2S3 backend, instead of hardcoding the links and selecting through the compatible. > > Signed-off-by: Jiaxin Yu Reviewed-by: N?colas F. R. A. Prado Tested-by: N?colas F. R. A. Prado - Tested on mt8192-asurada-spherion (rt1015p and rt5682). All audio paths still work as previous to this refactor. And it's still possible to omit mediatek,hdmi-codec. Thanks, N?colas