All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Mark Brown <broonie@kernel.org>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>
Subject: [PATCH 15/44] ASoC: fsl: imx-audmix: don't select unnecessary Platform
Date: 07 Jun 2019 11:24:56 +0900	[thread overview]
Message-ID: <87lfyeckhn.wl-kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <877e9ydz81.wl-kuninori.morimoto.gx@renesas.com>

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

ALSA SoC is now supporting "no Platform". Sound card doesn't need to
select "CPU component" as "Platform" anymore if it doesn't need
special Platform.
This patch removes such settings.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/fsl/imx-audmix.c | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/sound/soc/fsl/imx-audmix.c b/sound/soc/fsl/imx-audmix.c
index 9e1cb18..9d41266 100644
--- a/sound/soc/fsl/imx-audmix.c
+++ b/sound/soc/fsl/imx-audmix.c
@@ -207,8 +207,8 @@ static int imx_audmix_probe(struct platform_device *pdev)
 	for (i = 0; i < num_dai; i++) {
 		struct snd_soc_dai_link_component *dlc;
 
-		/* for CPU/Codec/Platform x 2 */
-		dlc = devm_kzalloc(&pdev->dev, 6 * sizeof(*dlc), GFP_KERNEL);
+		/* for CPU/Codec x 2 */
+		dlc = devm_kzalloc(&pdev->dev, 4 * sizeof(*dlc), GFP_KERNEL);
 		if (!dlc) {
 			dev_err(&pdev->dev, "failed to allocate dai_link\n");
 			return -ENOMEM;
@@ -242,11 +242,9 @@ static int imx_audmix_probe(struct platform_device *pdev)
 
 		priv->dai[i].cpus = &dlc[0];
 		priv->dai[i].codecs = &dlc[1];
-		priv->dai[i].platforms = &dlc[2];
 
 		priv->dai[i].num_cpus = 1;
 		priv->dai[i].num_codecs = 1;
-		priv->dai[i].num_platforms = 1;
 
 		priv->dai[i].name = dai_name;
 		priv->dai[i].stream_name = "HiFi-AUDMIX-FE";
@@ -254,7 +252,6 @@ static int imx_audmix_probe(struct platform_device *pdev)
 		priv->dai[i].codecs->name = "snd-soc-dummy";
 		priv->dai[i].cpus->of_node = args.np;
 		priv->dai[i].cpus->dai_name = dev_name(&cpu_pdev->dev);
-		priv->dai[i].platforms->of_node = args.np;
 		priv->dai[i].dynamic = 1;
 		priv->dai[i].dpcm_playback = 1;
 		priv->dai[i].dpcm_capture = (i == 0 ? 1 : 0);
@@ -269,20 +266,17 @@ static int imx_audmix_probe(struct platform_device *pdev)
 		be_cp = devm_kasprintf(&pdev->dev, GFP_KERNEL,
 				       "AUDMIX-Capture-%d", i);
 
-		priv->dai[num_dai + i].cpus = &dlc[3];
-		priv->dai[num_dai + i].codecs = &dlc[4];
-		priv->dai[num_dai + i].platforms = &dlc[5];
+		priv->dai[num_dai + i].cpus = &dlc[2];
+		priv->dai[num_dai + i].codecs = &dlc[3];
 
 		priv->dai[num_dai + i].num_cpus = 1;
 		priv->dai[num_dai + i].num_codecs = 1;
-		priv->dai[num_dai + i].num_platforms = 1;
 
 		priv->dai[num_dai + i].name = be_name;
 		priv->dai[num_dai + i].codecs->dai_name = "snd-soc-dummy-dai";
 		priv->dai[num_dai + i].codecs->name = "snd-soc-dummy";
 		priv->dai[num_dai + i].cpus->of_node = audmix_np;
 		priv->dai[num_dai + i].cpus->dai_name = be_name;
-		priv->dai[num_dai + i].platforms->name = "snd-soc-dummy";
 		priv->dai[num_dai + i].no_pcm = 1;
 		priv->dai[num_dai + i].dpcm_playback = 1;
 		priv->dai[num_dai + i].dpcm_capture  = 1;
-- 
2.7.4

  parent reply	other threads:[~2019-06-07  2:24 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-07  2:21 [PATCH 00/44] ASoC: no Platform support Kuninori Morimoto
2019-06-07  2:21 ` [PATCH 01/44] ASoC: soc-core: allow no Platform on dai_link Kuninori Morimoto
2019-06-07  2:22 ` [PATCH 02/44] ASoC: vc4: vc4_hdmi: don't select unnecessary Platform Kuninori Morimoto
2019-06-07  2:22 ` [PATCH 03/44] ASoC: atmel: atmel-classd: " Kuninori Morimoto
2019-06-07  2:22 ` [PATCH 04/44] ASoC: atmel: atmel-pdmic: " Kuninori Morimoto
2019-06-07  2:22 ` [PATCH 05/44] ASoC: atmel: atmel_wm8904: " Kuninori Morimoto
2019-06-07  2:23 ` [PATCH 06/44] ASoC: atmel: mikroe-proto: " Kuninori Morimoto
2019-06-07  2:23 ` [PATCH 07/44] ASoC: atmel: sam9g20_wm8731: " Kuninori Morimoto
2019-06-07  2:23 ` [PATCH 08/44] ASoC: atmel: sam9x5_wm8731: " Kuninori Morimoto
2019-06-07  2:23 ` [PATCH 09/44] ASoC: atmel: tse850-pcm5142: " Kuninori Morimoto
2019-06-07  2:23 ` [PATCH 10/44] ASoC: fsl: eukrea-tlv320: " Kuninori Morimoto
2019-06-07  2:24 ` [PATCH 11/44] ASoC: fsl: fsl-asoc-card: " Kuninori Morimoto
2019-06-07  2:24 ` [PATCH 12/44] ASoC: fsl: imx-es8328: " Kuninori Morimoto
2019-06-07  2:24 ` [PATCH 13/44] ASoC: fsl: imx-sgtl5000: " Kuninori Morimoto
2019-06-07  2:24 ` [PATCH 14/44] ASoC: fsl: imx-spdif: " Kuninori Morimoto
2019-06-07  2:24 ` Kuninori Morimoto [this message]
2019-06-07  2:25 ` [PATCH 16/44] ASoC: kirkwood: armada-370-db: " Kuninori Morimoto
2019-06-07  2:25 ` [PATCH 17/44] ASoC: mxs: mxs-sgtl5000: " Kuninori Morimoto
2019-06-07  2:25 ` [PATCH 18/44] ASoC: qcom: apq8016_sbc: " Kuninori Morimoto
2019-06-07  2:25 ` [PATCH 19/44] ASoC: qcom: storm: " Kuninori Morimoto
2019-06-07  2:26 ` [PATCH 20/44] ASoC: rockchip: rk3288_hdmi_analog: " Kuninori Morimoto
2019-06-07  2:26 ` [PATCH 21/44] ASoC: rockchip: rockchip_max98090: " Kuninori Morimoto
2019-06-07  2:26 ` [PATCH 22/44] ASoC: rockchip: rockchip_rt5645: " Kuninori Morimoto
2019-06-07  2:26 ` [PATCH 23/44] ASoC: samsung: arndale_rt5631: " Kuninori Morimoto
2019-06-07  2:26 ` [PATCH 24/44] ASoC: samsung: smdk_wm8994: " Kuninori Morimoto
2019-06-07  2:26 ` [PATCH 25/44] ASoC: samsung: snow: " Kuninori Morimoto
2019-06-07  2:26 ` [PATCH 26/44] ASoC: samsung: tm2_wm5110: " Kuninori Morimoto
2019-06-07  2:27 ` [PATCH 27/44] ASoC: sirf: sirf-audio: " Kuninori Morimoto
2019-06-07  2:27 ` [PATCH 28/44] ASoC: sunxi: sun4i-codec: " Kuninori Morimoto
2019-06-07  2:27 ` [PATCH 29/44] ASoC: tegra: tegra_alc5632: " Kuninori Morimoto
2019-06-07  2:27 ` [PATCH 30/44] ASoC: tegra: tegra_max98090: " Kuninori Morimoto
2019-06-07  2:27 ` [PATCH 31/44] ASoC: tegra: tegra_rt5640: " Kuninori Morimoto
2019-06-07  2:27 ` [PATCH 32/44] ASoC: tegra: tegra_rt5677: " Kuninori Morimoto
2019-06-07  2:27 ` [PATCH 33/44] ASoC: tegra: tegra_sgtl5000: " Kuninori Morimoto
2019-06-07  2:27 ` [PATCH 34/44] ASoC: tegra: tegra_wm8753: " Kuninori Morimoto
2019-06-07  2:27 ` [PATCH 35/44] ASoC: tegra: tegra_wm8903: " Kuninori Morimoto
2019-06-07  2:28 ` [PATCH 36/44] ASoC: tegra: tegra_wm9712: " Kuninori Morimoto
2019-06-07  2:28 ` [PATCH 37/44] ASoC: tegra: trimslice: " Kuninori Morimoto
2019-06-07  2:28 ` [PATCH 38/44] ASoC: ti: davinci-evm: " Kuninori Morimoto
2019-06-07  2:28 ` [PATCH 39/44] ASoC: ti: omap-abe-twl6040: " Kuninori Morimoto
2019-06-07  2:28 ` [PATCH 40/44] ASoC: ti: omap-hdmi: " Kuninori Morimoto
2019-06-07  2:28 ` [PATCH 41/44] ASoC: ti: omap-twl4030: " Kuninori Morimoto
2019-06-07  2:28 ` [PATCH 42/44] ASoC: ti: rx51: " Kuninori Morimoto
2019-06-07  2:29 ` [PATCH 43/44] ASoC: ux500: mop500: " Kuninori Morimoto
2019-06-07  2:29 ` [PATCH 44/44] ASoC: soc-utils: remove dummy Platform Kuninori Morimoto
2019-06-07  3:57 ` [PATCH 00/44] ASoC: no Platform support Kuninori Morimoto
2019-06-07  3:58   ` [PATCH 1/3] ASoC: simple-card-utils: don't select unnecessary Platform Kuninori Morimoto
2019-06-07  3:58   ` [PATCH 2/3] ASoC: qcom: " Kuninori Morimoto
2019-06-07  3:59   ` [PATCH 3/3] ASoC: rockchip: rk3399_gru_sound: " 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=87lfyeckhn.wl-kuninori.morimoto.gx@renesas.com \
    --to=kuninori.morimoto.gx@renesas.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.