OSDN Git Service

ASoC: rsnd: add .get_id/.get_id_sub
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 30 Oct 2018 07:47:18 +0000 (07:47 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 5 Nov 2018 11:27:45 +0000 (11:27 +0000)
commitc16015f36cc128244c910152663de45c3b99f551
treef022ff2b261c82891f9e043ad598e1ecc427ecac
parent7e7fe06de376e9874f4399dac81d65ea9b0a9507
ASoC: rsnd: add .get_id/.get_id_sub

ID for CTU and SSIU are confusable.
1 CTU has 4 sub nodes. This means, CTU0 has CTU01 - CTU03, CTU1 has
CTU10 - CTU13. SSIU is more confusable. Gen2 SSIU has BUSIF0-3, Gen3
SSIU has BUSIF0-7, but not for all SSIU.
In rsnd driver, each mod drivers are assuming rsnd_mod_id() returns
main device ID (In CTU case CTU0-1, SSIU case SSIU0-9), not serial
number.
This patch adds new .id/.id_sub to handling more detail ID.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c
sound/soc/sh/rcar/ctu.c
sound/soc/sh/rcar/rsnd.h