]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rsnd: fixup mod ID for CTU regmap read/write
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 4 Dec 2018 08:00:47 +0000 (08:00 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 4 Dec 2018 15:50:56 +0000 (15:50 +0000)
commit9b3b31a30f1730f3671978cc95ac5110c3c3ff83
tree0155957dedbc98da2d825232be78f24252b3e1f6
parent5b64626404b25c0e856452a7c6ffb4c78f1c444d
ASoC: rsnd: fixup mod ID for CTU regmap read/write

commit 2d5a6b793fe8a373 ("ASoC: rsnd: add .get_id/.get_id_sub")
add new .get_id/.get_id_sub to indicate module ID/subID.
It is used for SSIU and CTU. In SSIU case, subID indicates BUSIF,
but register settings is based on SSIU ID.
OTOH, in CTU case, subID indicates CTU channel, and register settings
is based on it. This means regmap read/write function needs to care it.
This patch fixup this issue. It can't play MIXed sound without this
patch.

Fixes: 2d5a6b793fe8a373 ("ASoC: rsnd: add .get_id/.get_id_sub")
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/ctu.c
sound/soc/sh/rcar/gen.c
sound/soc/sh/rcar/rsnd.h