ASoC: doc: Update codec to codec examples
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Thu, 28 Sep 2023 13:47:06 +0000 (15:47 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 28 Sep 2023 14:04:13 +0000 (16:04 +0200)
There are examples in documentation for codec to codec connection.
However they show method before recent series of patches which renamed
the fields. Update documentation accordingly.

Fixes: 7ddc7f91beb2 ("ASoC: soc.h: clarify Codec2Codec params")
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20230928134706.662947-1-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/sound/soc/codec-to-codec.rst
Documentation/sound/soc/dpcm.rst

index 4eaa9a0c41fc55ff2d33fc78bd151a7f748fa4f8..0418521b6e03f6af5a8d3acac22bc52b804d8fb5 100644 (file)
@@ -70,7 +70,8 @@ file:
     .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
             | SND_SOC_DAIFMT_CBM_CFM,
     .ignore_suspend = 1,
-    .params = &dsp_codec_params,
+    .c2c_params = &dsp_codec_params,
+    .num_c2c_params = 1,
  },
  {
     .name = "DSP-CODEC",
@@ -81,12 +82,13 @@ file:
     .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
             | SND_SOC_DAIFMT_CBM_CFM,
     .ignore_suspend = 1,
-    .params = &dsp_codec_params,
+    .c2c_params = &dsp_codec_params,
+    .num_c2c_params = 1,
  },
 
 Above code snippet is motivated from sound/soc/samsung/speyside.c.
 
-Note the "params" callback which lets the dapm know that this
+Note the "c2c_params" callback which lets the dapm know that this
 dai_link is a codec to codec connection.
 
 In dapm core a route is created between cpu_dai playback widget
index 77f67ded53de892364149c8cb80be9a53bea3915..2d7ad1d91504313ea864784ca82b63397b8042e9 100644 (file)
@@ -368,7 +368,8 @@ The machine driver sets some additional parameters to the DAI link i.e.
                .codec_name = "modem",
                .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
                                | SND_SOC_DAIFMT_CBM_CFM,
-               .params = &dai_params,
+               .c2c_params = &dai_params,
+               .num_c2c_params = 1,
        }
        < ... more DAI links here ... >