[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <dba5a3d3-97ba-491a-9290-35ffd42c740b@baylibre.com>
Date: Wed, 10 Apr 2024 15:46:12 +0200
From: Alexandre Mergnat <amergnat@...libre.com>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
broonie@...nel.org
Cc: wenst@...omium.org, lgirdwood@...il.com, robh@...nel.org,
krzysztof.kozlowski+dt@...aro.org, conor+dt@...nel.org,
matthias.bgg@...il.com, perex@...ex.cz, tiwai@...e.com,
trevor.wu@...iatek.com, maso.huang@...iatek.com,
xiazhengqiao@...qin.corp-partner.google.com, arnd@...db.de,
kuninori.morimoto.gx@...esas.com, shraash@...gle.com,
nicolas.ferre@...rochip.com, u.kleine-koenig@...gutronix.de,
dianders@...omium.org, frank.li@...o.com, allen-kh.cheng@...iatek.com,
eugen.hristev@...labora.com, claudiu.beznea@...on.dev,
jarkko.nikula@...mer.com, jiaxin.yu@...iatek.com, alpernebiyasak@...il.com,
ckeepax@...nsource.cirrus.com, zhourui@...qin.corp-partner.google.com,
nfraprado@...labora.com, alsa-devel@...a-project.org,
shane.chien@...iatek.com, linux-sound@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-mediatek@...ts.infradead.org,
kernel@...labora.com
Subject: Re: [PATCH v4 04/18] ASoC: mediatek: mt8195: Migrate to
mtk_soundcard_common_probe
On 09/04/2024 13:32, AngeloGioacchino Del Regno wrote:
> @@ -29,6 +30,13 @@
> #define RT1019_SPEAKER_AMP_PRESENT BIT(1)
> #define MAX98390_SPEAKER_AMP_PRESENT BIT(2)
>
> +#define DUMB_CODEC_INIT BIT(0)
> +#define MT6359_CODEC_INIT BIT(1)
> +#define RT1011_CODEC_INIT BIT(2)
> +#define RT1019_CODEC_INIT BIT(3)
> +#define MAX98390_CODEC_INIT BIT(4)
> +#define RT5682_CODEC_INIT BIT(5)
> +
Why are you using defines+single variable to track inited parts in the
probe function but do it in the different way for legacy_probe using
bool: is5682s, init6359 ? AFAII, both can use the same method with the
defines above.
> #define RT1011_CODEC_DAI "rt1011-aif"
> #define RT1011_DEV0_NAME "rt1011.2-0038"
> #define RT1011_DEV1_NAME "rt1011.2-0039"
--
Regards,
Alexandre
Powered by blists - more mailing lists