diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2013-12-19 22:27:03 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-31 08:35:30 -0500 |
commit | 690ef81ebe02a43991b0fcb418d77b8420346cfd (patch) | |
tree | 51392d341e80aa6cfb711ae4a9542acf4e20b6d2 | |
parent | 729aca51a19f2e2b3404c29b82df61d714150a49 (diff) |
ASoC: rsnd: tidyup register naming
Use correct register name which appears in the datasheet
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/sh/rcar/gen.c | 4 | ||||
-rw-r--r-- | sound/soc/sh/rcar/rsnd.h | 4 | ||||
-rw-r--r-- | sound/soc/sh/rcar/scu.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sound/soc/sh/rcar/gen.c b/sound/soc/sh/rcar/gen.c index d0ab203836de..862758d3ec06 100644 --- a/sound/soc/sh/rcar/gen.c +++ b/sound/soc/sh/rcar/gen.c | |||
@@ -314,11 +314,11 @@ static int rsnd_gen1_regmap_init(struct rsnd_priv *priv, struct rsnd_gen *gen) | |||
314 | RSND_GEN1_S_REG(gen, SRU, SRC_TMG_SEL0, 0x08), | 314 | RSND_GEN1_S_REG(gen, SRU, SRC_TMG_SEL0, 0x08), |
315 | RSND_GEN1_S_REG(gen, SRU, SRC_TMG_SEL1, 0x0c), | 315 | RSND_GEN1_S_REG(gen, SRU, SRC_TMG_SEL1, 0x0c), |
316 | RSND_GEN1_S_REG(gen, SRU, SRC_TMG_SEL2, 0x10), | 316 | RSND_GEN1_S_REG(gen, SRU, SRC_TMG_SEL2, 0x10), |
317 | RSND_GEN1_S_REG(gen, SRU, SRC_CTRL, 0xc0), | 317 | RSND_GEN1_S_REG(gen, SRU, SRC_ROUTE_CTRL, 0xc0), |
318 | RSND_GEN1_S_REG(gen, SRU, SSI_MODE0, 0xD0), | 318 | RSND_GEN1_S_REG(gen, SRU, SSI_MODE0, 0xD0), |
319 | RSND_GEN1_S_REG(gen, SRU, SSI_MODE1, 0xD4), | 319 | RSND_GEN1_S_REG(gen, SRU, SSI_MODE1, 0xD4), |
320 | RSND_GEN1_M_REG(gen, SRU, BUSIF_MODE, 0x20, 0x4), | 320 | RSND_GEN1_M_REG(gen, SRU, BUSIF_MODE, 0x20, 0x4), |
321 | RSND_GEN1_M_REG(gen, SRU, BUSIF_ADINR, 0x214, 0x40), | 321 | RSND_GEN1_M_REG(gen, SRU, SRC_ADINR, 0x214, 0x40), |
322 | 322 | ||
323 | RSND_GEN1_S_REG(gen, ADG, BRRA, 0x00), | 323 | RSND_GEN1_S_REG(gen, ADG, BRRA, 0x00), |
324 | RSND_GEN1_S_REG(gen, ADG, BRRB, 0x04), | 324 | RSND_GEN1_S_REG(gen, ADG, BRRB, 0x04), |
diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h index bff7b9e53066..d5c0182c8e50 100644 --- a/sound/soc/sh/rcar/rsnd.h +++ b/sound/soc/sh/rcar/rsnd.h | |||
@@ -36,12 +36,12 @@ enum rsnd_reg { | |||
36 | RSND_REG_SRC_TMG_SEL0, | 36 | RSND_REG_SRC_TMG_SEL0, |
37 | RSND_REG_SRC_TMG_SEL1, | 37 | RSND_REG_SRC_TMG_SEL1, |
38 | RSND_REG_SRC_TMG_SEL2, | 38 | RSND_REG_SRC_TMG_SEL2, |
39 | RSND_REG_SRC_CTRL, | 39 | RSND_REG_SRC_ROUTE_CTRL, |
40 | RSND_REG_SSI_MODE0, | 40 | RSND_REG_SSI_MODE0, |
41 | RSND_REG_SSI_MODE1, | 41 | RSND_REG_SSI_MODE1, |
42 | RSND_REG_BUSIF_MODE, | 42 | RSND_REG_BUSIF_MODE, |
43 | RSND_REG_BUSIF_ADINR, | ||
44 | RSND_REG_INT_ENABLE, | 43 | RSND_REG_INT_ENABLE, |
44 | RSND_REG_SRC_ADINR, | ||
45 | 45 | ||
46 | /* ADG */ | 46 | /* ADG */ |
47 | RSND_REG_BRRA, | 47 | RSND_REG_BRRA, |
diff --git a/sound/soc/sh/rcar/scu.c b/sound/soc/sh/rcar/scu.c index 1ab1bce6be7f..187f7dc30369 100644 --- a/sound/soc/sh/rcar/scu.c +++ b/sound/soc/sh/rcar/scu.c | |||
@@ -115,7 +115,7 @@ static int rsnd_scu_set_mode(struct rsnd_priv *priv, | |||
115 | 115 | ||
116 | if (rsnd_is_gen1(priv)) { | 116 | if (rsnd_is_gen1(priv)) { |
117 | val = (1 << id); | 117 | val = (1 << id); |
118 | rsnd_mod_bset(mod, SRC_CTRL, val, val); | 118 | rsnd_mod_bset(mod, SRC_ROUTE_CTRL, val, val); |
119 | } | 119 | } |
120 | 120 | ||
121 | return 0; | 121 | return 0; |
@@ -141,7 +141,7 @@ static int rsnd_scu_set_hpbif(struct rsnd_priv *priv, | |||
141 | } | 141 | } |
142 | 142 | ||
143 | rsnd_mod_write(mod, BUSIF_MODE, 1); | 143 | rsnd_mod_write(mod, BUSIF_MODE, 1); |
144 | rsnd_mod_write(mod, BUSIF_ADINR, adinr); | 144 | rsnd_mod_write(mod, SRC_ADINR, adinr); |
145 | 145 | ||
146 | return 0; | 146 | return 0; |
147 | } | 147 | } |