summaryrefslogtreecommitdiffstats
path: root/Documentation/sound
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2018-03-27 22:14:22 -0400
committerMark Brown <broonie@kernel.org>2018-04-16 06:53:34 -0400
commit0dde4b573eee57799a6b07bc46705377deb0bc00 (patch)
treeba878d2729887c27af247a6606ba65044b3e3178 /Documentation/sound
parent60cc43fc888428bb2f18f08997432d426a243338 (diff)
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>
Diffstat (limited to 'Documentation/sound')
-rw-r--r--Documentation/sound/soc/codec.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/sound/soc/codec.rst b/Documentation/sound/soc/codec.rst
index f87612b94812..58f625fe3d39 100644
--- a/Documentation/sound/soc/codec.rst
+++ b/Documentation/sound/soc/codec.rst
@@ -179,12 +179,12 @@ i.e.
179 179
180 static int wm8974_mute(struct snd_soc_dai *dai, int mute) 180 static int wm8974_mute(struct snd_soc_dai *dai, int mute)
181 { 181 {
182 struct snd_soc_codec *codec = dai->codec; 182 struct snd_soc_component *component = dai->component;
183 u16 mute_reg = snd_soc_read(codec, WM8974_DAC) & 0xffbf; 183 u16 mute_reg = snd_soc_component_read32(component, WM8974_DAC) & 0xffbf;
184 184
185 if (mute) 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 else 187 else
188 snd_soc_write(codec, WM8974_DAC, mute_reg); 188 snd_soc_component_write(component, WM8974_DAC, mute_reg);
189 return 0; 189 return 0;
190 } 190 }