Commit 0dde4b57 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: doc: replace codec to component

Now we can replace Codec to Component. Let's do it.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 60cc43fc
...@@ -179,12 +179,12 @@ i.e. ...@@ -179,12 +179,12 @@ i.e.
static int wm8974_mute(struct snd_soc_dai *dai, int mute) static int wm8974_mute(struct snd_soc_dai *dai, int mute)
{ {
struct snd_soc_codec *codec = dai->codec; struct snd_soc_component *component = dai->component;
u16 mute_reg = snd_soc_read(codec, WM8974_DAC) & 0xffbf; u16 mute_reg = snd_soc_component_read32(component, WM8974_DAC) & 0xffbf;
if (mute) if (mute)
snd_soc_write(codec, WM8974_DAC, mute_reg | 0x40); snd_soc_component_write(component, WM8974_DAC, mute_reg | 0x40);
else else
snd_soc_write(codec, WM8974_DAC, mute_reg); snd_soc_component_write(component, WM8974_DAC, mute_reg);
return 0; return 0;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment