2022-11-07 16:29:32

by Nícolas F. R. A. Prado

[permalink] [raw]
Subject: [PATCH 0/9] ASoC: mediatek: Register machine drivers to module device table


Some ASoC machine drivers for MediaTek platforms were not being
registered to the module device table, preventing them to be
automatically loaded when built as modules. This series adds the missing
registration to the drivers.


Nícolas F. R. A. Prado (9):
ASoC: mediatek: mt2701-cs42448: Register to module device table
ASoC: mediatek: mt2701-wm8960: Register to module device table
ASoC: mediatek: mt6797-mt6351: Register to module device table
ASoC: mediatek: mt8183-da7219: Register to module device table
ASoC: mediatek: mt8183-mt6358: Register to module device table
ASoC: mediatek: mt8186-da7219: Register to module device table
ASoC: mediatek: mt8186-rt5682: Register to module device table
ASoC: mediatek: mt8192-mt6359: Register to module device table
ASoC: mediatek: mt8195-mt6359: Register to module device table

sound/soc/mediatek/mt2701/mt2701-cs42448.c | 1 +
sound/soc/mediatek/mt2701/mt2701-wm8960.c | 1 +
sound/soc/mediatek/mt6797/mt6797-mt6351.c | 1 +
sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c | 1 +
sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c | 1 +
sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c | 1 +
sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c | 1 +
sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c | 1 +
sound/soc/mediatek/mt8195/mt8195-mt6359.c | 1 +
9 files changed, 9 insertions(+)

--
2.38.1



2022-11-07 16:30:33

by Nícolas F. R. A. Prado

[permalink] [raw]
Subject: [PATCH 2/9] ASoC: mediatek: mt2701-wm8960: Register to module device table

Register the compatibles for this module on the module device table so
it can be automatically loaded when a matching device is found on the
system.

Signed-off-by: Nícolas F. R. A. Prado <[email protected]>
---

sound/soc/mediatek/mt2701/mt2701-wm8960.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/sound/soc/mediatek/mt2701/mt2701-wm8960.c b/sound/soc/mediatek/mt2701/mt2701-wm8960.c
index 0cdf2ae36243..a184032c15b6 100644
--- a/sound/soc/mediatek/mt2701/mt2701-wm8960.c
+++ b/sound/soc/mediatek/mt2701/mt2701-wm8960.c
@@ -161,6 +161,7 @@ static const struct of_device_id mt2701_wm8960_machine_dt_match[] = {
{.compatible = "mediatek,mt2701-wm8960-machine",},
{}
};
+MODULE_DEVICE_TABLE(of, mt2701_wm8960_machine_dt_match);
#endif

static struct platform_driver mt2701_wm8960_machine = {
--
2.38.1


2022-11-07 16:31:11

by Nícolas F. R. A. Prado

[permalink] [raw]
Subject: [PATCH 6/9] ASoC: mediatek: mt8186-da7219: Register to module device table

Register the compatibles for this module on the module device table so
it can be automatically loaded when a matching device is found on the
system.

Signed-off-by: Nícolas F. R. A. Prado <[email protected]>
---

sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c b/sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c
index cfca6bdee834..08ff57f7189c 100644
--- a/sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c
+++ b/sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c
@@ -1161,6 +1161,7 @@ static const struct of_device_id mt8186_mt6366_da7219_max98357_dt_match[] = {
},
{}
};
+MODULE_DEVICE_TABLE(of, mt8186_mt6366_da7219_max98357_dt_match);
#endif

static struct platform_driver mt8186_mt6366_da7219_max98357_driver = {
--
2.38.1


2022-11-07 16:50:35

by Nícolas F. R. A. Prado

[permalink] [raw]
Subject: [PATCH 8/9] ASoC: mediatek: mt8192-mt6359: Register to module device table

Register the compatibles for this module on the module device table so
it can be automatically loaded when a matching device is found on the
system.

Signed-off-by: Nícolas F. R. A. Prado <[email protected]>
---

sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c b/sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c
index b93c3237ef2d..16660eda577e 100644
--- a/sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c
+++ b/sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c
@@ -1261,6 +1261,7 @@ static const struct of_device_id mt8192_mt6359_dt_match[] = {
},
{}
};
+MODULE_DEVICE_TABLE(of, mt8192_mt6359_dt_match);
#endif

static const struct dev_pm_ops mt8192_mt6359_pm_ops = {
--
2.38.1


Subject: Re: [PATCH 2/9] ASoC: mediatek: mt2701-wm8960: Register to module device table

Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:
> Register the compatibles for this module on the module device table so
> it can be automatically loaded when a matching device is found on the
> system.
>
> Signed-off-by: Nícolas F. R. A. Prado <[email protected]>

Reviewed-by: AngeloGioacchino Del Regno <[email protected]>



Subject: Re: [PATCH 6/9] ASoC: mediatek: mt8186-da7219: Register to module device table

Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:
> Register the compatibles for this module on the module device table so
> it can be automatically loaded when a matching device is found on the
> system.
>
> Signed-off-by: Nícolas F. R. A. Prado <[email protected]>

Reviewed-by: AngeloGioacchino Del Regno <[email protected]>



Subject: Re: [PATCH 8/9] ASoC: mediatek: mt8192-mt6359: Register to module device table

Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:
> Register the compatibles for this module on the module device table so
> it can be automatically loaded when a matching device is found on the
> system.
>
> Signed-off-by: Nícolas F. R. A. Prado <[email protected]>

Reviewed-by: AngeloGioacchino Del Regno <[email protected]>



2022-11-08 11:37:21

by Chen-Yu Tsai

[permalink] [raw]
Subject: Re: [PATCH 0/9] ASoC: mediatek: Register machine drivers to module device table

On Tue, Nov 8, 2022 at 12:05 AM Nícolas F. R. A. Prado
<[email protected]> wrote:
>
>
> Some ASoC machine drivers for MediaTek platforms were not being
> registered to the module device table, preventing them to be
> automatically loaded when built as modules. This series adds the missing
> registration to the drivers.
>
>
> Nícolas F. R. A. Prado (9):
> ASoC: mediatek: mt2701-cs42448: Register to module device table
> ASoC: mediatek: mt2701-wm8960: Register to module device table
> ASoC: mediatek: mt6797-mt6351: Register to module device table
> ASoC: mediatek: mt8183-da7219: Register to module device table
> ASoC: mediatek: mt8183-mt6358: Register to module device table
> ASoC: mediatek: mt8186-da7219: Register to module device table
> ASoC: mediatek: mt8186-rt5682: Register to module device table
> ASoC: mediatek: mt8192-mt6359: Register to module device table
> ASoC: mediatek: mt8195-mt6359: Register to module device table

Thanks! This was on my TODO list. Whole series is

Reviewed-by: Chen-Yu Tsai <[email protected]>

2022-11-08 11:44:26

by Chen-Yu Tsai

[permalink] [raw]
Subject: Re: [PATCH 8/9] ASoC: mediatek: mt8192-mt6359: Register to module device table

On Tue, Nov 8, 2022 at 4:44 PM AngeloGioacchino Del Regno
<[email protected]> wrote:
>
> Il 07/11/22 17:04, Nícolas F. R. A. Prado ha scritto:
> > Register the compatibles for this module on the module device table so
> > it can be automatically loaded when a matching device is found on the
> > system.
> >
> > Signed-off-by: Nícolas F. R. A. Prado <[email protected]>
>
> Reviewed-by: AngeloGioacchino Del Regno <[email protected]>

Tested-by: Chen-Yu Tsai <[email protected]>