Re: [PATCH 1/2] ASoC: SOF: MediaTek: Add mt8196 hardware support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2025-03-20 at 08:52 +0100, Krzysztof Kozlowski wrote:
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 
> 
> On Thu, Mar 20, 2025 at 11:17:24AM +0800, hailong.fan wrote:
> > +
> > +void mt8196_sof_hifixdsp_shutdown(struct snd_sof_dev *sdev)
> > +{
> > +     /* set RUNSTALL to stop core */
> > +     snd_sof_dsp_update_bits(sdev, DSP_REG_BAR,
> > ADSP_HIFI_RUNSTALL,
> > +                             RUNSTALL, RUNSTALL);
> > +
> > +     /* assert core reset */
> > +     snd_sof_dsp_update_bits(sdev, DSP_REG_BAR,
> > ADSP_CFGREG_SW_RSTN,
> > +                             SW_RSTN_C0 | SW_DBG_RSTN_C0,
> > +                             SW_RSTN_C0 | SW_DBG_RSTN_C0);
> > +}
> > +
> 
> Drop stray blank line.
OK, will fix in v2, thx.
> 
> > diff --git a/sound/soc/sof/mediatek/mt8196/mt8196.c
> > b/sound/soc/sof/mediatek/mt8196/mt8196.c
> > new file mode 100644
> > index 000000000000..364069ce9954
> > --- /dev/null
> > +++ b/sound/soc/sof/mediatek/mt8196/mt8196.c
> > @@ -0,0 +1,650 @@
> > +// SPDX-License-Identifier: GPL-2.0
> 
> Look here
OK, will fix in v2, thx.
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
> 
> > +/*
> > + * Copyright (c) 2025 MediaTek Inc.
> > + * Author: Hailong Fan <hailong.fan@xxxxxxxxxxxx>
> > + */
> 
> ...
> 
> > +
> > +static const struct of_device_id sof_of_mt8196_ids[] = {
> > +     { .compatible = "mediatek,mt8196-dsp", .data =
> > &sof_of_mt8196_desc},
> 
> Bindings are before users.
Will change patch order in v2, thx.
> 
> > +     { }
> > +};
> > +MODULE_DEVICE_TABLE(of, sof_of_mt8196_ids);
> > +
> > +/* DT driver definition */
> > +static struct platform_driver snd_sof_of_mt8196_driver = {
> > +     .probe = sof_of_probe,
> > +     .remove = sof_of_remove,
> > +     .shutdown = sof_of_shutdown,
> > +     .driver = {
> > +     .name = "sof-audio-of-mt8196",
> > +             .pm = &sof_of_pm,
> > +             .of_match_table = sof_of_mt8196_ids,
> > +     },
> > +};
> > +module_platform_driver(snd_sof_of_mt8196_driver);
> > +
> > +MODULE_LICENSE("Dual BSD/GPL");
> 
> And here Hm? Don't fake the licensing.
Will fix in v2, thx.
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-
Clause) */
> 
> > +MODULE_DESCRIPTION("SOF support for MT8196 platforms");
> > +MODULE_IMPORT_NS("SND_SOC_SOF_XTENSA");
> 
> Is this correct?
> 
> 
> Best regards,
> Krzysztof
> 




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux