Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2804215lqp; Mon, 25 Mar 2024 09:37:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVgrearMaw+gVP9QHvBrtPx58AStj5S9qL89PSbzhxPADMo7lpdUt7Ta/cVkHRSKp5uQ53XHw/6996Zdrk/Vb/yfZpl/RGmGMru4HSc5Q== X-Google-Smtp-Source: AGHT+IECA/jncM+99RUY1ETmMys9YQlg1ZsWMb/pCH8mq7oPpcuBunnLkHVohIsc3wG5bmqOAt5M X-Received: by 2002:a05:6a00:a0d:b0:6e7:82f4:d904 with SMTP id p13-20020a056a000a0d00b006e782f4d904mr10031221pfh.11.1711384633619; Mon, 25 Mar 2024 09:37:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711384633; cv=pass; d=google.com; s=arc-20160816; b=G60tULtSxwaZcNdQ+p//AIvHQ5RgtPqlQHFaGwQtZCKUMR10CaPzJ+ZRKCymBXhq19 GBkFyQgG8OyW61ZKBQL9C/x1qh5yYmSHHpZ9is3+SYNmhgwvu+hNXJSTY3bQpJS0rjT/ UmqBD4peXLqBS6fF6hOiuJUvL3pkfrIYUXMGpykVOf18sxvfjZBezIzWNPe/RahIBICT ixm39QwlW1IxirB0aceV2exqu2QO6IKYd/S4NfzLa3js7B2cDfxgxdDG6WvK/3NQZPcG 7kqEfwBGsnXJG1EKKhjTf7lqX2pGs7DyfILYxYm47S3prCfmBNyC0alb0ANZzgF9QxT9 j1ng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6QJoobOdCQdR9R/mVEy3woF/hSUg+GYu60zK2M90pvY=; fh=q3/SMkWQ2iL1SPIx8/ONIo4qfTEbtoa/Eykkw6b9wr8=; b=bVRGbJG0e3Oai5DpZbwdkfpWOKHHJ6vJvBdInZWzFkrBc0H9G/CrpFlgUVbAxsLMWn SGLI5+HkCOHBaeBSTD7+pwm88yF8qEMmwzRt1wfYE3dDlJSF8kDDcVbdBvM+RKev0wzQ 7EHEscg8K7dyjdOkzE/f8RaV56evNBVGNJQrJWG2RGIcOLR9Ti+t1ZXb67OyrQwfN3XQ RWvMLJK05W0jiNEVwm1cojYKCXPjZTN5vCpFK90VELjyHDL8/kPLP8wuYBgIirOfVbwf 7vm7ngLnX1YKzt4gkvT81DurgU23VxY1nVR7JfH6GbXKFexft7Jb9QWnGvmp2i3CZkaB RLYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SIJBcOZw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-117232-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117232-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id gu6-20020a056a004e4600b006e6ca4153absi5398950pfb.293.2024.03.25.09.37.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 09:37:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117232-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SIJBcOZw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-117232-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117232-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 86CBD3657BF for ; Mon, 25 Mar 2024 16:21:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2C9C153833; Mon, 25 Mar 2024 14:18:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SIJBcOZw" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADFC2153806; Mon, 25 Mar 2024 14:18:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711376298; cv=none; b=AN1me4kNceDB7wYqF1cErRj3Gm/+yXVPbOKE/a60KGkJXYbxpBQ1I39FJh4hTdP313SMpWZGYzy+49GlydfCchGxG/YQnz/D7ohlMym/Wc9A3FHddzYauDlqrrbi1JLkgFSSJF+h7I1fK+OWQvauk2tKm72W/U6BQCqVWeZe9Qs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711376298; c=relaxed/simple; bh=jbD2Lb5wA/eUCNXCJLVthr6/MzEiKX6SqxWZxnTuOnE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JhIhKkT2YqMOINhxnxyGwNB1kyRxXZ7Wwe0PQeJfOgVC0YDtV43ESpld4We7mlMMO7WD8tk5m6tRRWulbbEd45/rRZBisz3cGZp5xXqD9mgLF2IdZGUmtSpN/Lh1CrE7jIEV37KJ2rW3z/5HhxfyZaxIOBfMLw3g1uAQKYfe+Nc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SIJBcOZw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 551B6C3278D; Mon, 25 Mar 2024 14:18:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711376298; bh=jbD2Lb5wA/eUCNXCJLVthr6/MzEiKX6SqxWZxnTuOnE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SIJBcOZwUhINwFcGdCy+3ok576TN9S810xuZ8ZzXc+YsDCkkdm2aFq4Rb/QQx0lUi 1wCvxXFctAcTrEW1JWL8HrusNRZ090ozLa1y+/4W1HSAvRJjjagI3SeojbTeSEOpth JVqpRvqwRP4xMipGrKVSugC394E0I0wHmQz9uqnRmKjiVb/ma5GFpOxfhYS80hw1VN kVa+H456ovUt/aptnwA12NIMQRD+kFb7iLum3bA1g0EF9EYSVIOthLrTUNXqEuuQBR 8qkEq2K1UK+3Qux+vNE58QmXDQuoGAu7RuT+3ssdB6orI+bYKjCVexSqifI7VacJfd +OE8pqjMaaDuA== Date: Mon, 25 Mar 2024 14:18:08 +0000 From: Mark Brown To: AngeloGioacchino Del Regno 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, amergnat@baylibre.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 Subject: Re: [PATCH v3 05/22] ASoC: mediatek: Add common machine soundcard driver probe mechanism Message-ID: <6b9dd2ad-a24e-497a-8a5c-c7c04475cf5d@sirena.org.uk> References: <20240313110147.1267793-1-angelogioacchino.delregno@collabora.com> <20240313110147.1267793-6-angelogioacchino.delregno@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HA8wmAlBS5gx6s1i" Content-Disposition: inline In-Reply-To: <20240313110147.1267793-6-angelogioacchino.delregno@collabora.com> X-Cookie: Is it clean in other dimensions? --HA8wmAlBS5gx6s1i Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 13, 2024 at 12:01:30PM +0100, 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. >=20 > 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. >=20 > 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. This breaks allmodconfig builds: /build/stage/linux/sound/soc/mediatek/common/mtk-dsp-sof-common.c: In funct= ion =E2=80=98mtk_sof_dai_link_fixup=E2=80=99: /build/stage/linux/sound/soc/mediatek/common/mtk-dsp-sof-common.c:18:41: er= ror: initialization discards =E2=80=98const=E2=80=99 qualifier from pointer= target type [-Werror=3Ddiscarded-qualifiers] 18 | struct mtk_sof_priv *sof_priv =3D soc_card_data->sof_priv; | ^~~~~~~~~~~~~ /build/stage/linux/sound/soc/mediatek/common/mtk-dsp-sof-common.c: In funct= ion =E2=80=98mtk_sof_card_probe=E2=80=99: /build/stage/linux/sound/soc/mediatek/common/mtk-dsp-sof-common.c:58:41: er= ror: initialization discards =E2=80=98const=E2=80=99 qualifier from pointer= target type [-Werror=3Ddiscarded-qualifiers] 58 | struct mtk_sof_priv *sof_priv =3D soc_card_data->sof_priv; | ^~~~~~~~~~~~~ /build/stage/linux/sound/soc/mediatek/common/mtk-dsp-sof-common.c: In funct= ion =E2=80=98mtk_sof_find_tplg_be=E2=80=99: /build/stage/linux/sound/soc/mediatek/common/mtk-dsp-sof-common.c:76:41: er= ror: initialization discards =E2=80=98const=E2=80=99 qualifier from pointer= target type [-Werror=3Ddiscarded-qualifiers] 76 | struct mtk_sof_priv *sof_priv =3D soc_card_data->sof_priv; | ^~~~~~~~~~~~~ /build/stage/linux/sound/soc/mediatek/common/mtk-dsp-sof-common.c: In funct= ion =E2=80=98mtk_sof_check_tplg_be_dai_link_fixup=E2=80=99: /build/stage/linux/sound/soc/mediatek/common/mtk-dsp-sof-common.c:116:41: e= rror: initialization discards =E2=80=98const=E2=80=99 qualifier from pointe= r target type [-Werror=3Ddiscarded-qualifiers] 116 | struct mtk_sof_priv *sof_priv =3D soc_card_data->sof_priv; | ^~~~~~~~~~~~~ /build/stage/linux/sound/soc/mediatek/common/mtk-dsp-sof-common.c: In funct= ion =E2=80=98mtk_sof_card_late_probe=E2=80=99: /build/stage/linux/sound/soc/mediatek/common/mtk-dsp-sof-common.c:147:41: e= rror: initialization discards =E2=80=98const=E2=80=99 qualifier from pointe= r target type [-Werror=3Ddiscarded-qualifiers] 147 | struct mtk_sof_priv *sof_priv =3D soc_card_data->sof_priv; | ^~~~~~~~~~~~~ cc1: all warnings being treated as errors --HA8wmAlBS5gx6s1i Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmYBh58ACgkQJNaLcl1U h9Dw2Qf+OK6uEVJdUDAeL+cRMOtxJ5v8lWJ4kCDEd4EzMY8PITg8YZaxDb1HJs18 yfD4+oR2f/uMSGayxCnuRgzBthSs96xOJ34EkRpUgsB81RrC1Jjv5zWwIP1SCQlN e2rKPS4ccBdE5uowKduc5TIbqbgbjLCArqTpqHDX6IBQP4A3SqYkcv/tOwFHuC/t kE6+fH8gG7hQ9no9cE3WumRCLDyE8rRca6smAENrfcco8/5DCg2LqJ+SOEC64X+o TYw0mmtRwPdObNmdHyrCtfk9XppdDLh21bKZrQvpj7WW2+EqSzbYLdyxvArVbzMq bEqhwUbisC0nv6/RJbKsKWZy/N3IUA== =6CF1 -----END PGP SIGNATURE----- --HA8wmAlBS5gx6s1i--