From: "Trevor Wu (吳文良)" <Trevor.Wu@mediatek.com>
To: "kuninori.morimoto.gx@renesas.com"
<kuninori.morimoto.gx@renesas.com>,
"lgirdwood@gmail.com" <lgirdwood@gmail.com>,
"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
"broonie@kernel.org" <broonie@kernel.org>,
"tiwai@suse.com" <tiwai@suse.com>,
"perex@perex.cz" <perex@perex.cz>
Cc: "angelogioacchino.delregno@collabora.com"
<angelogioacchino.delregno@collabora.com>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Re: [PATCH 27/38] ASoC: mediatek: merge DAI call back functions into ops
Date: Wed, 2 Aug 2023 12:25:35 +0000 [thread overview]
Message-ID: <5e141dfaba1bf70c51e9d49dd5e40f7d4a1ac9eb.camel@mediatek.com> (raw)
In-Reply-To: <877cqetg6l.wl-kuninori.morimoto.gx@renesas.com>
On Wed, 2023-08-02 at 00:56 +0000, Kuninori Morimoto wrote:
>
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> ALSA SoC merges DAI call backs into .ops.
> This patch merge thesse into one.
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
> sound/soc/mediatek/mt8195/mt8195-dai-etdm.c | 56 ++++++++++++-------
> --
> 1 file changed, 31 insertions(+), 25 deletions(-)
>
> diff --git a/sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
> b/sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
> index eedb9165f911..fd4f9f8f032d 100644
> --- a/sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
> +++ b/sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
> @@ -2456,25 +2456,6 @@ static int
> mtk_dai_hdmitx_dptx_set_sysclk(struct snd_soc_dai *dai,
> return mtk_dai_etdm_cal_mclk(afe, freq, dai->id);
> }
>
> -static const struct snd_soc_dai_ops mtk_dai_etdm_ops = {
> -.startup = mtk_dai_etdm_startup,
> -.shutdown = mtk_dai_etdm_shutdown,
> -.hw_params = mtk_dai_etdm_hw_params,
> -.trigger = mtk_dai_etdm_trigger,
> -.set_sysclk = mtk_dai_etdm_set_sysclk,
> -.set_fmt = mtk_dai_etdm_set_fmt,
> -.set_tdm_slot = mtk_dai_etdm_set_tdm_slot,
> -};
> -
> -static const struct snd_soc_dai_ops mtk_dai_hdmitx_dptx_ops = {
> -.startup= mtk_dai_hdmitx_dptx_startup,
> -.shutdown= mtk_dai_hdmitx_dptx_shutdown,
> -.hw_params= mtk_dai_hdmitx_dptx_hw_params,
> -.trigger= mtk_dai_hdmitx_dptx_trigger,
> -.set_sysclk= mtk_dai_hdmitx_dptx_set_sysclk,
> -.set_fmt= mtk_dai_etdm_set_fmt,
> -};
> -
> /* dai driver */
> #define MTK_ETDM_RATES (SNDRV_PCM_RATE_8000_384000)
>
> @@ -2505,6 +2486,36 @@ static int mtk_dai_etdm_probe(struct
> snd_soc_dai *dai)
> return 0;
> }
>
> +static const struct snd_soc_dai_ops mtk_dai_hdmitx_dptx_ops = {
> +.startup= mtk_dai_hdmitx_dptx_startup,
> +.shutdown= mtk_dai_hdmitx_dptx_shutdown,
> +.hw_params= mtk_dai_hdmitx_dptx_hw_params,
> +.trigger= mtk_dai_hdmitx_dptx_trigger,
> +.set_sysclk= mtk_dai_hdmitx_dptx_set_sysclk,
> +.set_fmt= mtk_dai_etdm_set_fmt,
> +};
> +
> +static const struct snd_soc_dai_ops mtk_dai_hdmitx_dptx_ops2 = {
> +.probe= mtk_dai_etdm_probe,
> +.startup= mtk_dai_hdmitx_dptx_startup,
> +.shutdown= mtk_dai_hdmitx_dptx_shutdown,
> +.hw_params= mtk_dai_hdmitx_dptx_hw_params,
> +.trigger= mtk_dai_hdmitx_dptx_trigger,
> +.set_sysclk= mtk_dai_hdmitx_dptx_set_sysclk,
> +.set_fmt= mtk_dai_etdm_set_fmt,
> +};
> +
Why are you including mtk_dai_hdmitx_dptx_ops2 and keeping
mtk_dai_hdmitx_dptx_ops even though you are not using it?
Thanks,
Trevor
> +static const struct snd_soc_dai_ops mtk_dai_etdm_ops = {
> +.probe= mtk_dai_etdm_probe,
> +.startup= mtk_dai_etdm_startup,
> +.shutdown= mtk_dai_etdm_shutdown,
> +.hw_params= mtk_dai_etdm_hw_params,
> +.trigger= mtk_dai_etdm_trigger,
> +.set_sysclk= mtk_dai_etdm_set_sysclk,
> +.set_fmt= mtk_dai_etdm_set_fmt,
> +.set_tdm_slot= mtk_dai_etdm_set_tdm_slot,
> +};
> +
> static struct snd_soc_dai_driver mtk_dai_etdm_driver[] = {
> {
> .name = "DPTX",
> @@ -2529,7 +2540,6 @@ static struct snd_soc_dai_driver
> mtk_dai_etdm_driver[] = {
> .formats = MTK_ETDM_FORMATS,
> },
> .ops = &mtk_dai_etdm_ops,
> -.probe = mtk_dai_etdm_probe,
> },
> {
> .name = "ETDM2_IN",
> @@ -2542,7 +2552,6 @@ static struct snd_soc_dai_driver
> mtk_dai_etdm_driver[] = {
> .formats = MTK_ETDM_FORMATS,
> },
> .ops = &mtk_dai_etdm_ops,
> -.probe = mtk_dai_etdm_probe,
> },
> {
> .name = "ETDM1_OUT",
> @@ -2555,7 +2564,6 @@ static struct snd_soc_dai_driver
> mtk_dai_etdm_driver[] = {
> .formats = MTK_ETDM_FORMATS,
> },
> .ops = &mtk_dai_etdm_ops,
> -.probe = mtk_dai_etdm_probe,
> },
> {
> .name = "ETDM2_OUT",
> @@ -2568,7 +2576,6 @@ static struct snd_soc_dai_driver
> mtk_dai_etdm_driver[] = {
> .formats = MTK_ETDM_FORMATS,
> },
> .ops = &mtk_dai_etdm_ops,
> -.probe = mtk_dai_etdm_probe,
> },
> {
> .name = "ETDM3_OUT",
> @@ -2580,8 +2587,7 @@ static struct snd_soc_dai_driver
> mtk_dai_etdm_driver[] = {
> .rates = MTK_ETDM_RATES,
> .formats = MTK_ETDM_FORMATS,
> },
> -.ops = &mtk_dai_hdmitx_dptx_ops,
> -.probe = mtk_dai_etdm_probe,
> +.ops = &mtk_dai_hdmitx_dptx_ops2,
> },
> };
>
> --
> 2.25.1
>
next prev parent reply other threads:[~2023-08-02 12:27 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-02 0:51 [PATCH 00/38] ASoC: merge DAI call back functions into ops Kuninori Morimoto
2023-08-02 0:52 ` [PATCH 01/38] ASoC: soc-dai.h: " Kuninori Morimoto
2023-08-02 0:52 ` [PATCH 02/38] ASoC: ti: " Kuninori Morimoto
2023-08-02 0:52 ` [PATCH 03/38] ASoC: adi: " Kuninori Morimoto
2023-08-02 0:52 ` [PATCH 04/38] " Kuninori Morimoto
2023-08-02 0:52 ` [PATCH 05/38] ASoC: amd: " Kuninori Morimoto
2023-08-02 0:52 ` [PATCH 06/38] ASoC: dwc: " Kuninori Morimoto
2023-08-03 5:48 ` Maxim Kochetkov
2023-08-02 0:53 ` [PATCH 07/38] ASoC: pxa: " Kuninori Morimoto
2023-08-02 0:53 ` [PATCH 08/38] ASoC: bcm: " Kuninori Morimoto
2023-08-02 0:53 ` [PATCH 09/38] ASoC: fsl: " Kuninori Morimoto
2023-08-02 0:53 ` [PATCH 10/38] ASoC: img: " Kuninori Morimoto
2023-08-02 0:53 ` [PATCH 11/38] ASoC: sof: " Kuninori Morimoto
2023-08-02 0:53 ` [PATCH 12/38] ASoC: sti: " Kuninori Morimoto
2023-08-02 0:54 ` [PATCH 13/38] ASoC: stm: " Kuninori Morimoto
2023-08-02 0:54 ` [PATCH 14/38] ASoC: pxa: " Kuninori Morimoto
2023-08-02 0:54 ` [PATCH 15/38] ASoC: rsnd: " Kuninori Morimoto
2023-08-02 0:54 ` [PATCH 16/38] ASoC: qcom: " Kuninori Morimoto
2023-08-02 0:54 ` [PATCH 17/38] ASoC: ux500: " Kuninori Morimoto
2023-08-02 0:54 ` [PATCH 18/38] ASoC: sunxi: " Kuninori Morimoto
2023-08-02 19:47 ` Jernej Škrabec
2023-08-02 0:55 ` [PATCH 19/38] ASoC: tegra: " Kuninori Morimoto
2023-08-02 0:55 ` [PATCH 20/38] ASoC: atmel: " Kuninori Morimoto
2023-08-02 0:55 ` [PATCH 21/38] ASoC: intel: " Kuninori Morimoto
2023-08-02 0:55 ` [PATCH 22/38] ASoC: meson: " Kuninori Morimoto
2023-08-02 0:55 ` [PATCH 23/38] ASoC: jz4740: " Kuninori Morimoto
2023-08-02 0:55 ` [PATCH 24/38] ASoC: cirrus: " Kuninori Morimoto
2023-08-02 12:25 ` Alexander Sverdlin
2023-08-02 0:56 ` [PATCH 25/38] ASoC: drm/vc4: " Kuninori Morimoto
2023-08-02 0:56 ` [PATCH 26/38] ASoC: samsung: " Kuninori Morimoto
2023-08-02 0:56 ` [PATCH 27/38] ASoC: mediatek: " Kuninori Morimoto
2023-08-02 12:25 ` Trevor Wu (吳文良) [this message]
2023-08-02 23:12 ` Kuninori Morimoto
2023-08-03 5:13 ` Trevor Wu (吳文良)
2023-08-02 0:57 ` [PATCH 28/38] ASoC: rockchip: " Kuninori Morimoto
2023-08-02 0:57 ` [PATCH 29/38] ASoC: uniphier: " Kuninori Morimoto
2023-08-02 0:57 ` [PATCH 30/38] ASoC: loongson: " Kuninori Morimoto
2023-08-02 0:57 ` [PATCH 31/38] ASoC: starfive: " Kuninori Morimoto
2023-08-02 1:13 ` Walker Chen
2023-08-02 0:57 ` [PATCH 32/38] ASoC: hisilicon: " Kuninori Morimoto
2023-08-02 0:57 ` [PATCH 33/38] ASoC: codecs/wm*: " Kuninori Morimoto
2023-08-02 0:58 ` [PATCH 34/38] ASoC: soc-topology: " Kuninori Morimoto
2023-08-02 0:58 ` [PATCH 35/38] ASoC: codecs/cs47lxx: " Kuninori Morimoto
2023-08-02 0:58 ` [PATCH 36/38] ASoC: codecs/cx2072x: " Kuninori Morimoto
2023-08-02 0:58 ` [PATCH 37/38] ASoC: codecs/hdmi-codec: " Kuninori Morimoto
2023-08-02 0:58 ` [PATCH 38/38] ASoC: soc-dai.h: remove unused call back functions Kuninori Morimoto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5e141dfaba1bf70c51e9d49dd5e40f7d4a1ac9eb.camel@mediatek.com \
--to=trevor.wu@mediatek.com \
--cc=alsa-devel@alsa-project.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=broonie@kernel.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.com \
--cc=matthias.bgg@gmail.com \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).