[PATCH v3 3/6] ASoC: mediatek: mt7986: add platform driver
Maso Huang (黃加竹)
Maso.Huang at mediatek.com
Fri Jul 28 03:13:29 PDT 2023
On Fri, 2023-07-28 at 11:38 +0200, AngeloGioacchino Del Regno wrote:
> Il 28/07/23 11:08, Maso Huang ha scritto:
> > Add mt7986 platform driver.
> >
> > Signed-off-by: Maso Huang <maso.huang at mediatek.com>
> > ---
> > sound/soc/mediatek/Kconfig | 10 +
> > sound/soc/mediatek/Makefile | 1 +
> > sound/soc/mediatek/mt7986/Makefile | 8 +
> > sound/soc/mediatek/mt7986/mt7986-afe-pcm.c | 622
> > +++++++++++++++++++++
> > 4 files changed, 641 insertions(+)
> > create mode 100644 sound/soc/mediatek/mt7986/Makefile
> > create mode 100644 sound/soc/mediatek/mt7986/mt7986-afe-pcm.c
> >
>
> ..snip..
>
> > + /* register component */
> > + ret = devm_snd_soc_register_component(&pdev->dev,
> > + &mt7986_afe_component,
> > + NULL, 0);
> > + if (ret)
> > + return dev_err_probe(dev, ret, "err_platform\n");
>
> I know I only said about using dev_err_probe(), but "err_platform"
> doesn't
> mean anything!
>
> Please write a human readable error message, like "Cannot register
> AFE component\n"
>
> > +
> > + ret = devm_snd_soc_register_component(afe->dev,
> > + &mt7986_afe_pcm_dai_compo
> > nent,
> > + afe->dai_drivers,
> > + afe->num_dai_drivers);
> > + if (ret)
> > + return dev_err_probe(dev, ret, "err_dai_component\n");
>
> And the same here, "Cannot register PCM DAI component\n"
>
> After which:
>
> Reviewed-by: AngeloGioacchino Del Regno <
> angelogioacchino.delregno at collabora.com>
Hi Angelo,
Thanks for your review.
I'll refine it with human readable message!
Best regards,
Maso
More information about the Linux-mediatek
mailing list