Commit 2f86f20b authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: pxa: rename to snd_soc_component_read()

We need to use snd_soc_component_read()
instead of     snd_soc_component_read32()

This patch renames _read32() to _read()
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87pn9z4men.wl-kuninori.morimoto.gx@renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent e8712315
...@@ -51,14 +51,14 @@ static int rear_amp_power(struct snd_soc_component *component, int power) ...@@ -51,14 +51,14 @@ static int rear_amp_power(struct snd_soc_component *component, int power)
unsigned short reg; unsigned short reg;
if (power) { if (power) {
reg = snd_soc_component_read32(component, AC97_GPIO_CFG); reg = snd_soc_component_read(component, AC97_GPIO_CFG);
snd_soc_component_write(component, AC97_GPIO_CFG, reg | 0x0100); snd_soc_component_write(component, AC97_GPIO_CFG, reg | 0x0100);
reg = snd_soc_component_read32(component, AC97_GPIO_PULL); reg = snd_soc_component_read(component, AC97_GPIO_PULL);
snd_soc_component_write(component, AC97_GPIO_PULL, reg | (1<<15)); snd_soc_component_write(component, AC97_GPIO_PULL, reg | (1<<15));
} else { } else {
reg = snd_soc_component_read32(component, AC97_GPIO_CFG); reg = snd_soc_component_read(component, AC97_GPIO_CFG);
snd_soc_component_write(component, AC97_GPIO_CFG, reg & ~0x0100); snd_soc_component_write(component, AC97_GPIO_CFG, reg & ~0x0100);
reg = snd_soc_component_read32(component, AC97_GPIO_PULL); reg = snd_soc_component_read(component, AC97_GPIO_PULL);
snd_soc_component_write(component, AC97_GPIO_PULL, reg & ~(1<<15)); snd_soc_component_write(component, AC97_GPIO_PULL, reg & ~(1<<15));
} }
......
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