Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: doc: Update codec to codec examples

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>

authored by

Amadeusz Sławiński and committed by
Mark Brown
b5d5c879 37b4346e

+7 -4
+5 -3
Documentation/sound/soc/codec-to-codec.rst
··· 70 70 .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF 71 71 | SND_SOC_DAIFMT_CBM_CFM, 72 72 .ignore_suspend = 1, 73 - .params = &dsp_codec_params, 73 + .c2c_params = &dsp_codec_params, 74 + .num_c2c_params = 1, 74 75 }, 75 76 { 76 77 .name = "DSP-CODEC", ··· 82 81 .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF 83 82 | SND_SOC_DAIFMT_CBM_CFM, 84 83 .ignore_suspend = 1, 85 - .params = &dsp_codec_params, 84 + .c2c_params = &dsp_codec_params, 85 + .num_c2c_params = 1, 86 86 }, 87 87 88 88 Above code snippet is motivated from sound/soc/samsung/speyside.c. 89 89 90 - Note the "params" callback which lets the dapm know that this 90 + Note the "c2c_params" callback which lets the dapm know that this 91 91 dai_link is a codec to codec connection. 92 92 93 93 In dapm core a route is created between cpu_dai playback widget
+2 -1
Documentation/sound/soc/dpcm.rst
··· 368 368 .codec_name = "modem", 369 369 .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF 370 370 | SND_SOC_DAIFMT_CBM_CFM, 371 - .params = &dai_params, 371 + .c2c_params = &dai_params, 372 + .num_c2c_params = 1, 372 373 } 373 374 < ... more DAI links here ... > 374 375