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

ASoC: doc: replace codec to component

Now we can replace Codec to Component. Let's do it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Kuninori Morimoto and committed by
Mark Brown
0dde4b57 60cc43fc

+4 -4
+4 -4
Documentation/sound/soc/codec.rst
··· 179 179 180 180 static int wm8974_mute(struct snd_soc_dai *dai, int mute) 181 181 { 182 - struct snd_soc_codec *codec = dai->codec; 183 - u16 mute_reg = snd_soc_read(codec, WM8974_DAC) & 0xffbf; 182 + struct snd_soc_component *component = dai->component; 183 + u16 mute_reg = snd_soc_component_read32(component, WM8974_DAC) & 0xffbf; 184 184 185 185 if (mute) 186 - snd_soc_write(codec, WM8974_DAC, mute_reg | 0x40); 186 + snd_soc_component_write(component, WM8974_DAC, mute_reg | 0x40); 187 187 else 188 - snd_soc_write(codec, WM8974_DAC, mute_reg); 188 + snd_soc_component_write(component, WM8974_DAC, mute_reg); 189 189 return 0; 190 190 }