Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp108267lqj; Wed, 10 Apr 2024 05:43:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDx6Fl31RVbvHVI7KIy9YT7oesxwqQqds/unuuQoap0Kh1T6HoNaH7gAYdWFwXyJkKVPGMH4PMtzK9slDqGDu91ZNI58mV/iOSI9a/BA== X-Google-Smtp-Source: AGHT+IFJ38uenTMgU37eaI0r3VbBChUNwA9agdYErrAJ+xfCNwLhHoyNh4QmZDBg0G0SqUsrF2K8 X-Received: by 2002:a50:9319:0:b0:56e:2b80:d875 with SMTP id m25-20020a509319000000b0056e2b80d875mr1799661eda.6.1712752988086; Wed, 10 Apr 2024 05:43:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712752988; cv=pass; d=google.com; s=arc-20160816; b=BxkBRCLMosIUn9YnlA+SYqzyMf4pySCEvbW2XTjFLjJUDcNh8os++WjarieubfKWjl 4dYQ513s905eSfGOTbhra3USglX1mQy0kRfNAAq1VUu5h3pkhmol/qMlDAaS6+a63e5c HO7HltugY4atE0lYHGL3X4ozU4vQlll7DLhSNJKKX6r9HyvrFwl2dKm80KQv472pck2l sL/hqjyhg6M7rnLu6i2ZsfCNhJNmIaFjGh8czeI01+B99zmUqX6i9bHNvgg7okHSeIou POd1IBIXrFrSZIHClg2r9PNElVrtAtQH0zRtvujaFddkkAOLnbwe272009yrfPHhr9Go Pj1w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=s6I23qc5vtFfA69hwi5DwiHXGwJhre0eHDpmfJgJbQg=; fh=bkedob25LXpsM6ENhmP9yqu8XbuzyBX6bmGU8xRP2RM=; b=Mjd/M6bYDwmX8Ya/9zSDR66UYdcAlUOxbChXuWnbbpPK20KyW1BGT2yRw4Xkesnn4F 2cH72waHV8rGID5g9avk56o/aASYMe3pxbC2YYD9NInO95reHLsWkvvuCjGwLqkXyGX9 bWEJJfcC1kMXTfkxtfb/DvzkE5zqwSOEccoGlCP0kz5sjwszCLFr6/Q/BxadD8gLhIzQ 9vnFbyLcrXS7IuKj+tEgZd8Gwv+6pA6seRk3TnVCY3WXam45SyQHi7zBgDNEPnZqlS/F 0u8EmPUR9FuCMQtGgSkcTHbKpqoFREm6B25xVuSvOgobht6b2N+NDvbBzQZGFZpL/JZT NOTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b="t/WQ/oAT"; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-138517-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138517-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ew13-20020a056402538d00b0056e245d535bsi5657835edb.179.2024.04.10.05.43.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 05:43:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138517-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b="t/WQ/oAT"; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-138517-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138517-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8CF801F23787 for ; Wed, 10 Apr 2024 12:42:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E01D15B10D; Wed, 10 Apr 2024 12:42:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="t/WQ/oAT" Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4224B158DB9 for ; Wed, 10 Apr 2024 12:42:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712752970; cv=none; b=NFaGKcr9kZaH2UcAl7r0WTtQogu5gnIwL+WaplVFlnQkjUR3XL8aRVAwn1NKvK9JNlZaq2WJjP6baHp/V3A5wtzcCB/VwqN5Zt9+VOkF5Exqd5soy/ZHPRikopS9tSgg4Yv4d8dNS/0REoUpiDt59X3HZnNIk6fDNCvD7vboTlE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712752970; c=relaxed/simple; bh=7ARq7CtkufCoSJtbuCqkwQo/bhan5+eThkCUX7hkdd4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=KW+LjLIjBvmI1ISd/Tt1HOiUdpou4xa0I9y7pEq2IARLWzHuMXBzm64ox6ZgER8Bpdh59vfS8YvaSuwDVt2rmwdn1Wjrtec8RQFZSQU8N+U1uC6Uw/B03/fVjmoSCQZfBN5cAB0yybzLwfl0s522SdwLSE5j5HkiXymf3qJnC6I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=t/WQ/oAT; arc=none smtp.client-ip=209.85.221.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-346406a5fb9so1068243f8f.1 for ; Wed, 10 Apr 2024 05:42:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1712752965; x=1713357765; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=s6I23qc5vtFfA69hwi5DwiHXGwJhre0eHDpmfJgJbQg=; b=t/WQ/oATq6j2hHFcs4vT2QzflFqIi8geQYcDv6WyoEZ32loD5v9i4mwJISEjPy0fl5 yczxNzfJoHeS9NvutCsXI1fle3m3nyM1fvJ7P3UXmlKJdP+9XkarWArH9/6NuwLQ80ZL 5HLdwnltZ4B1DYgXdkZziLdU86q2tLoXqG8EIUDHaLBq5IB3B1EWrrniox8SEKDapvhJ ki9uR5JlgLhTS6DgDwGfS9VQmGBlpXjXRxozrMG0aTZub7zYFVVWhIFSikhi2Hs1vvU1 mxo1OWdXCTI3xNG+dYJZxsoAxIbYQHCC4BN48qbh2IEE5NxmCYYm2Yf9LDFQcKSCEPZ8 rw3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712752965; x=1713357765; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=s6I23qc5vtFfA69hwi5DwiHXGwJhre0eHDpmfJgJbQg=; b=NLEhSW5b+t3+BHGJTSePaYNhoLwKxCdxntsynx26uNstR7kYg5eRh/M6Y6MTyQuOYb ULTwA2zuW8I0j458KfZEHY6HKj79euPHXblLcVwuKKTaYB7fRIcMtGrP7eiFPc60RhJf S2BPk7WjSD11FJOkuB5ySpzx+2YwX1KGn+A/FcrYlRQPykZ4m2plP7aPtCb5DjjnvLLk aOXlrKVc1eI1fa6sWsG0ZsDCQpAXPjQexkU0qydrDNh5gU8KmE24LQ/ixUigtOCYZXON OS7bQJmodMdPZ9etAO57r8/rVAlbD9L+q1nmvYSjDzdLYhArU/z4CGVPGa+v05O4SxjO 5Sog== X-Forwarded-Encrypted: i=1; AJvYcCV6zpluSYhwNwzbY/cMW6zB2FOzooCeXnrkW0VX6sfKC38C9uzDW0o3SmHUbEWJgS+3l0fpcHDPKPJj/rydpyOcVbtJQFRxvAcMK0x7 X-Gm-Message-State: AOJu0YzEcoeHWZ5y19RN5Q7osISC3RRNPvmR8arYl4wTLhH6iAMjtGJl hk1yFgBSagsuK6Rs4hO18bTp9SFlm7oqxMNVC5E5iZjYYyjMcwfQ3VjPKRkcHaU= X-Received: by 2002:a5d:64c3:0:b0:33e:19ae:3716 with SMTP id f3-20020a5d64c3000000b0033e19ae3716mr2319146wri.11.1712752965497; Wed, 10 Apr 2024 05:42:45 -0700 (PDT) Received: from [192.168.1.172] ([93.5.22.158]) by smtp.gmail.com with ESMTPSA id a17-20020a5d5091000000b00341ba91c1f5sm13702046wrt.102.2024.04.10.05.42.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Apr 2024 05:42:45 -0700 (PDT) Message-ID: <6ae5ed54-4205-46ae-b903-188a8138eaa4@baylibre.com> Date: Wed, 10 Apr 2024 14:42:43 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 01/18] ASoC: mediatek: Add common machine soundcard driver probe mechanism To: AngeloGioacchino Del Regno , broonie@kernel.org Cc: wenst@chromium.org, lgirdwood@gmail.com, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, matthias.bgg@gmail.com, perex@perex.cz, tiwai@suse.com, trevor.wu@mediatek.com, maso.huang@mediatek.com, xiazhengqiao@huaqin.corp-partner.google.com, arnd@arndb.de, kuninori.morimoto.gx@renesas.com, shraash@google.com, nicolas.ferre@microchip.com, u.kleine-koenig@pengutronix.de, dianders@chromium.org, frank.li@vivo.com, allen-kh.cheng@mediatek.com, eugen.hristev@collabora.com, claudiu.beznea@tuxon.dev, jarkko.nikula@bitmer.com, jiaxin.yu@mediatek.com, alpernebiyasak@gmail.com, ckeepax@opensource.cirrus.com, zhourui@huaqin.corp-partner.google.com, nfraprado@collabora.com, alsa-devel@alsa-project.org, shane.chien@mediatek.com, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com References: <20240409113310.303261-1-angelogioacchino.delregno@collabora.com> <20240409113310.303261-2-angelogioacchino.delregno@collabora.com> Content-Language: en-US From: Alexandre Mergnat In-Reply-To: <20240409113310.303261-2-angelogioacchino.delregno@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Reviewed-by: Alexandre Mergnat On 09/04/2024 13:32, AngeloGioacchino Del Regno wrote: > Add a common machine soundcard driver probe function that supports both > DSP and AFE-direct usecases and also provides a hook for legacy machine > soundcard driver probe mechanisms. > > Note that the hook is there because, even for legacy probe, a lot of the > actual code can still be commonized, hence still reducing duplication > for the legacy devicetree retrocompatibility cases. > > This common probe function deprecates all of the inconsistent previous > probe mechanisms and aims to settle all of the MediaTek card drivers on > consistent and common devicetree properties describing wanted DAIs, > device specific DAI configuration and DAI links to codecs found on > each device/board. -- Regards, Alexandre