Commit 1a1c75a7 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: rsnd: gen: fixup Gen2 channel size

Gen2 has 0 - 9, total 10 channels, not 9 channels.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 60dbb4f1
...@@ -217,11 +217,11 @@ int rsnd_gen_path_exit(struct rsnd_priv *priv, ...@@ -217,11 +217,11 @@ int rsnd_gen_path_exit(struct rsnd_priv *priv,
/* single address mapping */ /* single address mapping */
#define RSND_GEN2_S_REG(gen, reg, id, offset) \ #define RSND_GEN2_S_REG(gen, reg, id, offset) \
RSND_REG_SET(gen, RSND_REG_##id, RSND_GEN2_##reg, offset, 0, 9) RSND_REG_SET(gen, RSND_REG_##id, RSND_GEN2_##reg, offset, 0, 10)
/* multi address mapping */ /* multi address mapping */
#define RSND_GEN2_M_REG(gen, reg, id, offset, _id_offset) \ #define RSND_GEN2_M_REG(gen, reg, id, offset, _id_offset) \
RSND_REG_SET(gen, RSND_REG_##id, RSND_GEN2_##reg, offset, _id_offset, 9) RSND_REG_SET(gen, RSND_REG_##id, RSND_GEN2_##reg, offset, _id_offset, 10)
static int rsnd_gen2_regmap_init(struct rsnd_priv *priv, struct rsnd_gen *gen) static int rsnd_gen2_regmap_init(struct rsnd_priv *priv, struct rsnd_gen *gen)
{ {
......
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