ASoC: rsnd: fixup mod ID calculation in rsnd_ctu_probe_
authorNilkanth Ahirrao <anilkanth@jp.adit-jv.com>
Tue, 18 Jun 2019 05:19:53 +0000 (14:19 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 18 Jun 2019 18:17:39 +0000 (19:17 +0100)
commitac28ec07ae1c5c1e18ed6855eb105a328418da88
treea082de12908e03c9808e20152b61ae35e35ab293
parent501e94b52aeda5841a60ceead5984ff575aeefa0
ASoC: rsnd: fixup mod ID calculation in rsnd_ctu_probe_

commit c16015f36cc1 ("ASoC: rsnd: add .get_id/.get_id_sub")
introduces rsnd_ctu_id which calcualates and gives
the main Device id of the CTU by dividing the id by 4.
rsnd_mod_id uses this interface to get the CTU main
Device id. But this commit forgets to revert the main
Device id calcution previously done in rsnd_ctu_probe_
which also divides the id by 4. This path corrects the
same to get the correct main Device id.

The issue is observered when rsnd_ctu_probe_ is done for CTU1

Fixes: c16015f36cc1 ("ASoC: rsnd: add .get_id/.get_id_sub")
Signed-off-by: Nilkanth Ahirrao <anilkanth@jp.adit-jv.com>
Signed-off-by: Suresh Udipi <sudipi@jp.adit-jv.com>
Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/ctu.c