summaryrefslogtreecommitdiff
path: root/sound/soc/meson/gx-card.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2023-04-02 22:59:57 +0000
committerMark Brown <broonie@kernel.org>2023-04-05 12:16:37 +0100
commit433f4a1697fae78c34377de1ef3abd26aec8214e (patch)
tree0576d1ce3c8b9515ea83536169bde72e722e8006 /sound/soc/meson/gx-card.c
parenta1cd7e8017aabe4dded887dcca30e126ec2753c3 (diff)
ASoC: meson: switch to use c2c_params instead of params
ASoC is now using c2c_params instead of params. This patch replace it. num_c2c_params (was num_params) was not mandatory before, but let's set it by this patch. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/87lej9c2ky.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/meson/gx-card.c')
-rw-r--r--sound/soc/meson/gx-card.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/meson/gx-card.c b/sound/soc/meson/gx-card.c
index 5119434a81c4..58c411d3c489 100644
--- a/sound/soc/meson/gx-card.c
+++ b/sound/soc/meson/gx-card.c
@@ -104,7 +104,8 @@ static int gx_card_add_link(struct snd_soc_card *card, struct device_node *np,
/* Or apply codec to codec params if necessary */
if (gx_card_cpu_identify(dai_link->cpus, "CODEC CTRL")) {
- dai_link->params = &codec_params;
+ dai_link->c2c_params = &codec_params;
+ dai_link->num_c2c_params = 1;
} else {
dai_link->no_pcm = 1;
snd_soc_dai_link_set_capabilities(dai_link);