summaryrefslogtreecommitdiffstats
path: root/sound/soc/sh/rcar/ssi.c
diff options
context:
space:
mode:
authorKuninori Morimoto2017-06-15 02:49:27 +0200
committerMark Brown2017-06-15 19:17:54 +0200
commit1ff9593d2f27a48fbeeccd7fc253eed2a7102d16 (patch)
tree5911c70cf4be282456a3252c4695519e631c8d4f /sound/soc/sh/rcar/ssi.c
parentASoC: rsnd: reduce confusable macro parameter magic (diff)
downloadkernel-qcow2-linux-1ff9593d2f27a48fbeeccd7fc253eed2a7102d16.tar.gz
kernel-qcow2-linux-1ff9593d2f27a48fbeeccd7fc253eed2a7102d16.tar.xz
kernel-qcow2-linux-1ff9593d2f27a48fbeeccd7fc253eed2a7102d16.zip
ASoC: rsnd: rename "slots" related variable
Current Renesas sound driver has slots and slots_num in struct rsnd_dai, but these are very un-understandable naming (It had named from TDM slots). In this driver, the "slots" means total usable channels, and "stot_num" means SSI lane number if Multi SSI was used. To more understandable code, this patch renames "slots" to "max_channels", and "slots_num" to "ssi_lane", and replaces related functions name. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Tested-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh/rcar/ssi.c')
-rw-r--r--sound/soc/sh/rcar/ssi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/sh/rcar/ssi.c b/sound/soc/sh/rcar/ssi.c
index f7df3b5e2985..6450095eb547 100644
--- a/sound/soc/sh/rcar/ssi.c
+++ b/sound/soc/sh/rcar/ssi.c
@@ -897,7 +897,8 @@ static void rsnd_ssi_connect(struct rsnd_mod *mod,
type = types[i];
if (!rsnd_io_to_mod(io, type)) {
rsnd_dai_connect(mod, io, type);
- rsnd_set_slot(rdai, 2 * (i + 1), (i + 1));
+ rsnd_rdai_channels_set(rdai, (i + 1) * 2);
+ rsnd_rdai_ssi_lane_set(rdai, (i + 1));
return;
}
}